2 # From configure.in Revision: 1.413 .
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 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1256 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1259 cat >>confdefs.h <<\_ACEOF
1260 #define _NETBSD_SOURCE 1
1264 define_xopen_source=yes
1266 # Arguments passed to configure.
1268 CONFIG_ARGS="$ac_configure_args"
1270 # Check whether --enable-framework or --disable-framework was given.
1271 if test "${enable_framework+set}" = set; then
1272 enableval="$enable_framework"
1276 enableval=/Library/Frameworks
1281 PYTHONFRAMEWORKDIR=no-framework
1282 PYTHONFRAMEWORKPREFIX=
1283 PYTHONFRAMEWORKINSTALLDIR=
1287 PYTHONFRAMEWORK=Python
1288 PYTHONFRAMEWORKDIR=Python.framework
1289 PYTHONFRAMEWORKPREFIX=$enableval
1290 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1291 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1297 PYTHONFRAMEWORKDIR=no-framework
1298 PYTHONFRAMEWORKPREFIX=
1299 PYTHONFRAMEWORKINSTALLDIR=
1309 ## AC_HELP_STRING(--with-dyld,
1310 ## Use (OpenStep|Rhapsody) dynamic linker))
1312 # Set name for machine-dependent library files
1314 echo "$as_me:$LINENO: checking MACHDEP" >&5
1315 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1316 if test -z "$MACHDEP"
1318 ac_sys_system=`uname -s`
1319 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1320 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1321 ac_sys_release=`uname -v`
1323 ac_sys_release=`uname -r`
1325 ac_md_system=`echo $ac_sys_system |
1326 tr -d '/ ' | tr '[A-Z
]' '[a-z
]'`
1327 ac_md_release=`echo $ac_sys_release |
1328 tr -d '/ ' | sed 's
/^
[A-Z
]\.
//' | sed 's
/\..
*//'`
1329 MACHDEP="$ac_md_system$ac_md_release"
1332 cygwin*) MACHDEP="cygwin";;
1333 darwin*) MACHDEP="darwin";;
1334 atheos*) MACHDEP="atheos";;
1335 '') MACHDEP="unknown";;
1339 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1340 # disable features if it is defined, without any means to access these
1341 # features as extensions. For these systems, we skip the definition of
1342 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1343 # some feature, make sure there is no alternative way to access this
1344 # feature. Also, when using wildcards, make sure you have verified the
1345 # need for not defining _XOPEN_SOURCE on all systems matching the
1346 # wildcard, and that the wildcard does not include future systems
1347 # (which may remove their limitations).
1348 case $ac_sys_system/$ac_sys_release in
1349 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
1350 # even though select is a POSIX function. Reported by J. Ribbens.
1351 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm.
1352 OpenBSD/2.* | OpenBSD/3.[0123])
1353 define_xopen_source=no;;
1354 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
1355 # of union __?sigval. Reported by Stuart Bishop.
1357 define_xopen_source=no;;
1358 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
1359 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
1360 OpenUNIX/8.0.0| UnixWare/7.1.[0-3])
1361 define_xopen_source=no;;
1362 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
1363 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
1365 define_xopen_source=no;;
1368 if test $define_xopen_source = yes
1371 cat >>confdefs.h <<\_ACEOF
1372 #define _XOPEN_SOURCE 600
1376 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1377 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1378 # several APIs are not declared. Since this is also needed in some
1379 # cases for HP-UX, we define it globally.
1382 cat >>confdefs.h <<\_ACEOF
1383 #define _XOPEN_SOURCE_EXTENDED 1
1387 cat >>confdefs.h <<\_ACEOF
1388 #define _POSIX_C_SOURCE 200112L
1395 # SGI compilers allow the specification of the both the ABI and the
1396 # ISA on the command line. Depending on the values of these switches,
1397 # different and often incompatable code will be generated.
1399 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1400 # thus supply support for various ABI/ISA combinations. The MACHDEP
1401 # variable is also adjusted.
1404 if test ! -z "$SGI_ABI"
1407 LDFLAGS="$SGI_ABI $LDFLAGS"
1408 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's
/ *//g
'`
1410 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1411 echo "${ECHO_T}$MACHDEP" >&6
1413 # And add extra plat-mac for darwin
1416 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1417 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1418 if test -z "$EXTRAPLATDIR"
1422 EXTRAPLATDIR="\$(PLATMACDIRS)"
1423 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
1431 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1432 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1434 # checks for alternative programs
1436 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1437 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1438 # just to get things to compile and link. Users are free to override OPT
1439 # when running configure or make. The build should not break if they do.
1440 # BASECFLAGS should generally not be messed with, however.
1442 # XXX shouldn't some
/most
/all of this code be merged with the stuff later
1443 # on that fiddles with OPT and BASECFLAGS?
1444 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1445 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1447 # Check whether --with-gcc or --without-gcc was given.
1448 if test "${with_gcc+set}" = set; then
1457 without_gcc
=$withval;;
1461 case $ac_sys_system in
1465 case $BE_HOST_CPU in
1469 BASECFLAGS
="$BASECFLAGS -export pragma"
1471 LDFLAGS
="$LDFLAGS -nodup"
1479 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1480 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1481 { (exit 1); exit 1; }; }
1484 AR
="\$(srcdir)/Modules/ar_beos"
1493 echo "$as_me:$LINENO: result: $without_gcc" >&5
1494 echo "${ECHO_T}$without_gcc" >&6
1499 echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5
1500 echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6
1502 # Check whether --with-cxx or --without-cxx was given.
1503 if test "${with_cxx+set}" = set; then
1520 echo "$as_me:$LINENO: result: $with_cxx" >&5
1521 echo "${ECHO_T}$with_cxx" >&6
1523 if test "$with_cxx" = "yes"
1525 { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5
1526 echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;}
1527 { (exit 1); exit 1; }; }
1533 if test "$check_cxx" = "yes"
1535 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
1537 # Extract the first word of "$ac_prog", so it can be a program name with args.
1538 set dummy
$ac_prog; ac_word
=$2
1539 echo "$as_me:$LINENO: checking for $ac_word" >&5
1540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1541 if test "${ac_cv_prog_CXX+set}" = set; then
1542 echo $ECHO_N "(cached) $ECHO_C" >&6
1544 if test -n "$CXX"; then
1545 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1547 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1551 test -z "$as_dir" && as_dir
=.
1552 for ac_exec_ext
in '' $ac_executable_extensions; do
1553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1554 ac_cv_prog_CXX
="$ac_prog"
1555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1564 if test -n "$CXX"; then
1565 echo "$as_me:$LINENO: result: $CXX" >&5
1566 echo "${ECHO_T}$CXX" >&6
1568 echo "$as_me:$LINENO: result: no" >&5
1569 echo "${ECHO_T}no" >&6
1572 test -n "$CXX" && break
1574 test -n "$CXX" || CXX
="notfound"
1576 if test "$CXX" = "notfound"
1581 ac_cpp
='$CXXCPP $CPPFLAGS'
1582 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1583 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1584 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
1585 cat >conftest.
$ac_ext <<_ACEOF
1586 #line $LINENO "configure"
1587 #include "confdefs.h"
1589 #ifdef F77_DUMMY_MAIN
1593 int F77_DUMMY_MAIN() { return 1; }
1603 ac_clean_files_save
=$ac_clean_files
1604 ac_clean_files
="$ac_clean_files a.out a.exe"
1605 # Try to create an executable without -o first, disregard a.out.
1606 # It will help us diagnose broken compilers, and finding out an intuition
1608 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1609 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1610 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1611 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1612 (eval $ac_link_default) 2>&5
1614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1615 (exit $ac_status); }; then
1616 # Find the output, starting from the most likely. This scheme is
1617 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1620 # Be careful to initialize this variable, since it used to be cached.
1621 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1623 for ac_file
in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1624 ls a.out conftest 2>/dev/null;
1625 ls a.* conftest.* 2>/dev/null`; do
1627 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM
) ;;
1628 a.out
) # We found the default executable, but exeext='' is most
1631 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1632 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1639 echo "$as_me: failed program was:" >&5
1640 cat conftest.
$ac_ext >&5
1641 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5
1642 echo "$as_me: error: C++ compiler cannot create executables" >&2;}
1643 { (exit 77); exit 77; }; }
1646 ac_exeext
=$ac_cv_exeext
1647 echo "$as_me:$LINENO: result: $ac_file" >&5
1648 echo "${ECHO_T}$ac_file" >&6
1650 # Check the compiler produces executables we can run. If not, either
1651 # the compiler is broken, or we cross compile.
1652 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1653 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1654 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1655 # If not cross compiling, check that we can run a simple program.
1656 if test "$cross_compiling" != yes; then
1657 if { ac_try
='./$ac_file'
1658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1662 (exit $ac_status); }; }; then
1665 if test "$cross_compiling" = maybe
; then
1668 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1669 If you meant to cross compile, use \`--host'." >&5
1670 echo "$as_me: error: cannot run C++ compiled programs.
1671 If you meant to cross compile, use \`--host'." >&2;}
1672 { (exit 1); exit 1; }; }
1676 echo "$as_me:$LINENO: result: yes" >&5
1677 echo "${ECHO_T}yes" >&6
1679 rm -f a.out a.exe conftest
$ac_cv_exeext
1680 ac_clean_files
=$ac_clean_files_save
1681 # Check the compiler produces executables we can run. If not, either
1682 # the compiler is broken, or we cross compile.
1683 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1684 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1685 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1686 echo "${ECHO_T}$cross_compiling" >&6
1688 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1689 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1691 (eval $ac_link) 2>&5
1693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1694 (exit $ac_status); }; then
1695 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1696 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1697 # work properly (i.e., refer to `conftest.exe'), while it won't with
1699 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1701 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
1702 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1709 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1710 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1711 { (exit 1); exit 1; }; }
1714 rm -f conftest
$ac_cv_exeext
1715 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1716 echo "${ECHO_T}$ac_cv_exeext" >&6
1718 rm -f conftest.
$ac_ext
1719 EXEEXT
=$ac_cv_exeext
1723 ac_cpp
='$CPP $CPPFLAGS'
1724 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1725 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1726 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1733 # If the user switches compilers, we can't believe the cache
1734 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1736 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1737 (it is also a good idea to do 'make clean' before compiling)" >&5
1738 echo "$as_me: error: cached CC is different -- throw away $cache_file
1739 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1740 { (exit 1); exit 1; }; }
1744 ac_cpp
='$CPP $CPPFLAGS'
1745 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1746 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1747 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1748 if test -n "$ac_tool_prefix"; then
1749 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1750 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1751 echo "$as_me:$LINENO: checking for $ac_word" >&5
1752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1753 if test "${ac_cv_prog_CC+set}" = set; then
1754 echo $ECHO_N "(cached) $ECHO_C" >&6
1756 if test -n "$CC"; then
1757 ac_cv_prog_CC
="$CC" # Let the user override the test.
1759 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1763 test -z "$as_dir" && as_dir
=.
1764 for ac_exec_ext
in '' $ac_executable_extensions; do
1765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1766 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1776 if test -n "$CC"; then
1777 echo "$as_me:$LINENO: result: $CC" >&5
1778 echo "${ECHO_T}$CC" >&6
1780 echo "$as_me:$LINENO: result: no" >&5
1781 echo "${ECHO_T}no" >&6
1785 if test -z "$ac_cv_prog_CC"; then
1787 # Extract the first word of "gcc", so it can be a program name with args.
1788 set dummy gcc
; ac_word
=$2
1789 echo "$as_me:$LINENO: checking for $ac_word" >&5
1790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1791 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1792 echo $ECHO_N "(cached) $ECHO_C" >&6
1794 if test -n "$ac_ct_CC"; then
1795 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1797 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1801 test -z "$as_dir" && as_dir
=.
1802 for ac_exec_ext
in '' $ac_executable_extensions; do
1803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1804 ac_cv_prog_ac_ct_CC
="gcc"
1805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1813 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1814 if test -n "$ac_ct_CC"; then
1815 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1816 echo "${ECHO_T}$ac_ct_CC" >&6
1818 echo "$as_me:$LINENO: result: no" >&5
1819 echo "${ECHO_T}no" >&6
1827 if test -z "$CC"; then
1828 if test -n "$ac_tool_prefix"; then
1829 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1830 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1831 echo "$as_me:$LINENO: checking for $ac_word" >&5
1832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1833 if test "${ac_cv_prog_CC+set}" = set; then
1834 echo $ECHO_N "(cached) $ECHO_C" >&6
1836 if test -n "$CC"; then
1837 ac_cv_prog_CC
="$CC" # Let the user override the test.
1839 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1843 test -z "$as_dir" && as_dir
=.
1844 for ac_exec_ext
in '' $ac_executable_extensions; do
1845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1846 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1856 if test -n "$CC"; then
1857 echo "$as_me:$LINENO: result: $CC" >&5
1858 echo "${ECHO_T}$CC" >&6
1860 echo "$as_me:$LINENO: result: no" >&5
1861 echo "${ECHO_T}no" >&6
1865 if test -z "$ac_cv_prog_CC"; then
1867 # Extract the first word of "cc", so it can be a program name with args.
1868 set dummy cc
; ac_word
=$2
1869 echo "$as_me:$LINENO: checking for $ac_word" >&5
1870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1874 if test -n "$ac_ct_CC"; then
1875 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1877 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1881 test -z "$as_dir" && as_dir
=.
1882 for ac_exec_ext
in '' $ac_executable_extensions; do
1883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884 ac_cv_prog_ac_ct_CC
="cc"
1885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1894 if test -n "$ac_ct_CC"; then
1895 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1896 echo "${ECHO_T}$ac_ct_CC" >&6
1898 echo "$as_me:$LINENO: result: no" >&5
1899 echo "${ECHO_T}no" >&6
1908 if test -z "$CC"; then
1909 # Extract the first word of "cc", so it can be a program name with args.
1910 set dummy cc
; ac_word
=$2
1911 echo "$as_me:$LINENO: checking for $ac_word" >&5
1912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913 if test "${ac_cv_prog_CC+set}" = set; then
1914 echo $ECHO_N "(cached) $ECHO_C" >&6
1916 if test -n "$CC"; then
1917 ac_cv_prog_CC
="$CC" # Let the user override the test.
1920 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1924 test -z "$as_dir" && as_dir
=.
1925 for ac_exec_ext
in '' $ac_executable_extensions; do
1926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1928 ac_prog_rejected
=yes
1932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1938 if test $ac_prog_rejected = yes; then
1939 # We found a bogon in the path, so make sure we never use it.
1940 set dummy
$ac_cv_prog_CC
1942 if test $# != 0; then
1943 # We chose a different compiler from the bogus one.
1944 # However, it has the same basename, so the bogon will be chosen
1945 # first if we set CC to just the basename; use the full file name.
1947 set dummy
"$as_dir/$ac_word" ${1+"$@"}
1955 if test -n "$CC"; then
1956 echo "$as_me:$LINENO: result: $CC" >&5
1957 echo "${ECHO_T}$CC" >&6
1959 echo "$as_me:$LINENO: result: no" >&5
1960 echo "${ECHO_T}no" >&6
1964 if test -z "$CC"; then
1965 if test -n "$ac_tool_prefix"; then
1968 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1969 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1970 echo "$as_me:$LINENO: checking for $ac_word" >&5
1971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1972 if test "${ac_cv_prog_CC+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 if test -n "$CC"; then
1976 ac_cv_prog_CC
="$CC" # Let the user override the test.
1978 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1982 test -z "$as_dir" && as_dir
=.
1983 for ac_exec_ext
in '' $ac_executable_extensions; do
1984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1985 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995 if test -n "$CC"; then
1996 echo "$as_me:$LINENO: result: $CC" >&5
1997 echo "${ECHO_T}$CC" >&6
1999 echo "$as_me:$LINENO: result: no" >&5
2000 echo "${ECHO_T}no" >&6
2003 test -n "$CC" && break
2006 if test -z "$CC"; then
2010 # Extract the first word of "$ac_prog", so it can be a program name with args.
2011 set dummy
$ac_prog; ac_word
=$2
2012 echo "$as_me:$LINENO: checking for $ac_word" >&5
2013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2014 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2015 echo $ECHO_N "(cached) $ECHO_C" >&6
2017 if test -n "$ac_ct_CC"; then
2018 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2020 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2024 test -z "$as_dir" && as_dir
=.
2025 for ac_exec_ext
in '' $ac_executable_extensions; do
2026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2027 ac_cv_prog_ac_ct_CC
="$ac_prog"
2028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2036 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2037 if test -n "$ac_ct_CC"; then
2038 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2039 echo "${ECHO_T}$ac_ct_CC" >&6
2041 echo "$as_me:$LINENO: result: no" >&5
2042 echo "${ECHO_T}no" >&6
2045 test -n "$ac_ct_CC" && break
2054 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2055 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2056 { (exit 1); exit 1; }; }
2058 # Provide some information about the compiler.
2059 echo "$as_me:$LINENO:" \
2060 "checking for C compiler version" >&5
2061 ac_compiler
=`set X $ac_compile; echo $2`
2062 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2063 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066 (exit $ac_status); }
2067 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2068 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); }
2072 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2073 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076 (exit $ac_status); }
2078 cat >conftest.
$ac_ext <<_ACEOF
2079 #line $LINENO "configure"
2080 #include "confdefs.h"
2082 #ifdef F77_DUMMY_MAIN
2086 int F77_DUMMY_MAIN() { return 1; }
2096 ac_clean_files_save
=$ac_clean_files
2097 ac_clean_files
="$ac_clean_files a.out a.exe"
2098 # Try to create an executable without -o first, disregard a.out.
2099 # It will help us diagnose broken compilers, and finding out an intuition
2101 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2102 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2103 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2104 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2105 (eval $ac_link_default) 2>&5
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }; then
2109 # Find the output, starting from the most likely. This scheme is
2110 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2113 # Be careful to initialize this variable, since it used to be cached.
2114 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2116 for ac_file
in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2117 ls a.out conftest 2>/dev/null;
2118 ls a.* conftest.* 2>/dev/null`; do
2120 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM
) ;;
2121 a.out
) # We found the default executable, but exeext='' is most
2124 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2125 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2132 echo "$as_me: failed program was:" >&5
2133 cat conftest.
$ac_ext >&5
2134 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2135 echo "$as_me: error: C compiler cannot create executables" >&2;}
2136 { (exit 77); exit 77; }; }
2139 ac_exeext
=$ac_cv_exeext
2140 echo "$as_me:$LINENO: result: $ac_file" >&5
2141 echo "${ECHO_T}$ac_file" >&6
2143 # Check the compiler produces executables we can run. If not, either
2144 # the compiler is broken, or we cross compile.
2145 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2146 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2147 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2148 # If not cross compiling, check that we can run a simple program.
2149 if test "$cross_compiling" != yes; then
2150 if { ac_try
='./$ac_file'
2151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; }; then
2158 if test "$cross_compiling" = maybe
; then
2161 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2162 If you meant to cross compile, use \`--host'." >&5
2163 echo "$as_me: error: cannot run C compiled programs.
2164 If you meant to cross compile, use \`--host'." >&2;}
2165 { (exit 1); exit 1; }; }
2169 echo "$as_me:$LINENO: result: yes" >&5
2170 echo "${ECHO_T}yes" >&6
2172 rm -f a.out a.exe conftest
$ac_cv_exeext
2173 ac_clean_files
=$ac_clean_files_save
2174 # Check the compiler produces executables we can run. If not, either
2175 # the compiler is broken, or we cross compile.
2176 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2177 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2178 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2179 echo "${ECHO_T}$cross_compiling" >&6
2181 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2182 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2184 (eval $ac_link) 2>&5
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }; then
2188 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2189 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2190 # work properly (i.e., refer to `conftest.exe'), while it won't with
2192 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2194 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2195 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2202 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2203 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2204 { (exit 1); exit 1; }; }
2207 rm -f conftest
$ac_cv_exeext
2208 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2209 echo "${ECHO_T}$ac_cv_exeext" >&6
2211 rm -f conftest.
$ac_ext
2212 EXEEXT
=$ac_cv_exeext
2214 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2215 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2216 if test "${ac_cv_objext+set}" = set; then
2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2219 cat >conftest.
$ac_ext <<_ACEOF
2220 #line $LINENO "configure"
2221 #include "confdefs.h"
2223 #ifdef F77_DUMMY_MAIN
2227 int F77_DUMMY_MAIN() { return 1; }
2237 rm -f conftest.o conftest.obj
2238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2239 (eval $ac_compile) 2>&5
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }; then
2243 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2245 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2246 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2251 echo "$as_me: failed program was:" >&5
2252 cat conftest.
$ac_ext >&5
2253 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2254 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2255 { (exit 1); exit 1; }; }
2258 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2260 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2261 echo "${ECHO_T}$ac_cv_objext" >&6
2262 OBJEXT
=$ac_cv_objext
2264 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2265 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2266 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2267 echo $ECHO_N "(cached) $ECHO_C" >&6
2269 cat >conftest.
$ac_ext <<_ACEOF
2270 #line $LINENO "configure"
2271 #include "confdefs.h"
2273 #ifdef F77_DUMMY_MAIN
2277 int F77_DUMMY_MAIN() { return 1; }
2290 rm -f conftest.
$ac_objext
2291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2292 (eval $ac_compile) 2>&5
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); } &&
2296 { ac_try
='test -s conftest.$ac_objext'
2297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; }; then
2304 echo "$as_me: failed program was:" >&5
2305 cat conftest.
$ac_ext >&5
2308 rm -f conftest.
$ac_objext conftest.
$ac_ext
2309 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2312 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2313 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2314 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2315 ac_test_CFLAGS
=${CFLAGS+set}
2316 ac_save_CFLAGS
=$CFLAGS
2318 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2319 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2320 if test "${ac_cv_prog_cc_g+set}" = set; then
2321 echo $ECHO_N "(cached) $ECHO_C" >&6
2323 cat >conftest.
$ac_ext <<_ACEOF
2324 #line $LINENO "configure"
2325 #include "confdefs.h"
2327 #ifdef F77_DUMMY_MAIN
2331 int F77_DUMMY_MAIN() { return 1; }
2341 rm -f conftest.
$ac_objext
2342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343 (eval $ac_compile) 2>&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); } &&
2347 { ac_try
='test -s conftest.$ac_objext'
2348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; }; then
2355 echo "$as_me: failed program was:" >&5
2356 cat conftest.
$ac_ext >&5
2359 rm -f conftest.
$ac_objext conftest.
$ac_ext
2361 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2362 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2363 if test "$ac_test_CFLAGS" = set; then
2364 CFLAGS
=$ac_save_CFLAGS
2365 elif test $ac_cv_prog_cc_g = yes; then
2366 if test "$GCC" = yes; then
2372 if test "$GCC" = yes; then
2378 # Some people use a C++ compiler to compile C. Since we use `exit',
2379 # in C++ we need to declare it. In case someone uses the same compiler
2380 # for both compiling C and C++ we need to have the C++ compiler decide
2381 # the declaration of exit, since it's the most demanding environment.
2382 cat >conftest.
$ac_ext <<_ACEOF
2387 rm -f conftest.
$ac_objext
2388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2389 (eval $ac_compile) 2>&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); } &&
2393 { ac_try
='test -s conftest.$ac_objext'
2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; }; then
2399 for ac_declaration
in \
2401 '#include <stdlib.h>' \
2402 'extern "C" void std::exit (int) throw (); using std::exit;' \
2403 'extern "C" void std::exit (int); using std::exit;' \
2404 'extern "C" void exit (int) throw ();' \
2405 'extern "C" void exit (int);' \
2408 cat >conftest.
$ac_ext <<_ACEOF
2409 #line $LINENO "configure"
2410 #include "confdefs.h"
2413 #ifdef F77_DUMMY_MAIN
2417 int F77_DUMMY_MAIN() { return 1; }
2427 rm -f conftest.
$ac_objext
2428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2429 (eval $ac_compile) 2>&5
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); } &&
2433 { ac_try
='test -s conftest.$ac_objext'
2434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; }; then
2441 echo "$as_me: failed program was:" >&5
2442 cat conftest.
$ac_ext >&5
2445 rm -f conftest.
$ac_objext conftest.
$ac_ext
2446 cat >conftest.
$ac_ext <<_ACEOF
2447 #line $LINENO "configure"
2448 #include "confdefs.h"
2450 #ifdef F77_DUMMY_MAIN
2454 int F77_DUMMY_MAIN() { return 1; }
2464 rm -f conftest.
$ac_objext
2465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2466 (eval $ac_compile) 2>&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); } &&
2470 { ac_try
='test -s conftest.$ac_objext'
2471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }; }; then
2478 echo "$as_me: failed program was:" >&5
2479 cat conftest.
$ac_ext >&5
2481 rm -f conftest.
$ac_objext conftest.
$ac_ext
2484 if test -n "$ac_declaration"; then
2485 echo '#ifdef __cplusplus' >>confdefs.h
2486 echo $ac_declaration >>confdefs.h
2487 echo '#endif' >>confdefs.h
2491 echo "$as_me: failed program was:" >&5
2492 cat conftest.
$ac_ext >&5
2494 rm -f conftest.
$ac_objext conftest.
$ac_ext
2496 ac_cpp
='$CPP $CPPFLAGS'
2497 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2498 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2499 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2502 # checks for UNIX variants that set C preprocessor variables
2505 ac_cpp
='$CPP $CPPFLAGS'
2506 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2507 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2508 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2509 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2510 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2511 # On Suns, sometimes $CPP names a directory.
2512 if test -n "$CPP" && test -d "$CPP"; then
2515 if test -z "$CPP"; then
2516 if test "${ac_cv_prog_CPP+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2519 # Double quotes because CPP needs to be expanded
2520 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2523 for ac_c_preproc_warn_flag
in '' yes
2525 # Use a header file that comes with gcc, so configuring glibc
2526 # with a fresh cross-compiler works.
2527 # On the NeXT, cc -E runs the code through the compiler's parser,
2528 # not just through cpp. "Syntax error" is here to catch this case.
2529 cat >conftest.
$ac_ext <<_ACEOF
2530 #line $LINENO "configure"
2531 #include "confdefs.h"
2535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2536 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2538 egrep -v '^ *\+' conftest.er1
>conftest.err
2540 cat conftest.err
>&5
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); } >/dev
/null
; then
2543 if test -s conftest.err
; then
2544 ac_cpp_err
=$ac_c_preproc_warn_flag
2551 if test -z "$ac_cpp_err"; then
2554 echo "$as_me: failed program was:" >&5
2555 cat conftest.
$ac_ext >&5
2556 # Broken: fails on valid input.
2559 rm -f conftest.err conftest.
$ac_ext
2561 # OK, works on sane cases. Now check whether non-existent headers
2562 # can be detected and how.
2563 cat >conftest.
$ac_ext <<_ACEOF
2564 #line $LINENO "configure"
2565 #include "confdefs.h"
2566 #include <ac_nonexistent.h>
2568 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2569 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2571 egrep -v '^ *\+' conftest.er1
>conftest.err
2573 cat conftest.err
>&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); } >/dev
/null
; then
2576 if test -s conftest.err
; then
2577 ac_cpp_err
=$ac_c_preproc_warn_flag
2584 if test -z "$ac_cpp_err"; then
2585 # Broken: success on invalid input.
2588 echo "$as_me: failed program was:" >&5
2589 cat conftest.
$ac_ext >&5
2590 # Passes both tests.
2594 rm -f conftest.err conftest.
$ac_ext
2597 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2598 rm -f conftest.err conftest.
$ac_ext
2599 if $ac_preproc_ok; then
2611 echo "$as_me:$LINENO: result: $CPP" >&5
2612 echo "${ECHO_T}$CPP" >&6
2614 for ac_c_preproc_warn_flag
in '' yes
2616 # Use a header file that comes with gcc, so configuring glibc
2617 # with a fresh cross-compiler works.
2618 # On the NeXT, cc -E runs the code through the compiler's parser,
2619 # not just through cpp. "Syntax error" is here to catch this case.
2620 cat >conftest.
$ac_ext <<_ACEOF
2621 #line $LINENO "configure"
2622 #include "confdefs.h"
2626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2627 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2629 egrep -v '^ *\+' conftest.er1
>conftest.err
2631 cat conftest.err
>&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); } >/dev
/null
; then
2634 if test -s conftest.err
; then
2635 ac_cpp_err
=$ac_c_preproc_warn_flag
2642 if test -z "$ac_cpp_err"; then
2645 echo "$as_me: failed program was:" >&5
2646 cat conftest.
$ac_ext >&5
2647 # Broken: fails on valid input.
2650 rm -f conftest.err conftest.
$ac_ext
2652 # OK, works on sane cases. Now check whether non-existent headers
2653 # can be detected and how.
2654 cat >conftest.
$ac_ext <<_ACEOF
2655 #line $LINENO "configure"
2656 #include "confdefs.h"
2657 #include <ac_nonexistent.h>
2659 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2660 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2662 egrep -v '^ *\+' conftest.er1
>conftest.err
2664 cat conftest.err
>&5
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); } >/dev
/null
; then
2667 if test -s conftest.err
; then
2668 ac_cpp_err
=$ac_c_preproc_warn_flag
2675 if test -z "$ac_cpp_err"; then
2676 # Broken: success on invalid input.
2679 echo "$as_me: failed program was:" >&5
2680 cat conftest.
$ac_ext >&5
2681 # Passes both tests.
2685 rm -f conftest.err conftest.
$ac_ext
2688 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2689 rm -f conftest.err conftest.
$ac_ext
2690 if $ac_preproc_ok; then
2693 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2694 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2695 { (exit 1); exit 1; }; }
2699 ac_cpp
='$CPP $CPPFLAGS'
2700 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2701 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2702 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2706 echo "$as_me:$LINENO: checking for AIX" >&5
2707 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2708 cat >conftest.
$ac_ext <<_ACEOF
2709 #line $LINENO "configure"
2710 #include "confdefs.h"
2716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2717 egrep "yes" >/dev
/null
2>&1; then
2718 echo "$as_me:$LINENO: result: yes" >&5
2719 echo "${ECHO_T}yes" >&6
2720 cat >>confdefs.h
<<\_ACEOF
2721 #define _ALL_SOURCE 1
2725 echo "$as_me:$LINENO: result: no" >&5
2726 echo "${ECHO_T}no" >&6
2731 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2732 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2733 if test "${ac_cv_header_stdc+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2736 cat >conftest.
$ac_ext <<_ACEOF
2737 #line $LINENO "configure"
2738 #include "confdefs.h"
2745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2746 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2748 egrep -v '^ *\+' conftest.er1
>conftest.err
2750 cat conftest.err
>&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); } >/dev
/null
; then
2753 if test -s conftest.err
; then
2754 ac_cpp_err
=$ac_c_preproc_warn_flag
2761 if test -z "$ac_cpp_err"; then
2762 ac_cv_header_stdc
=yes
2764 echo "$as_me: failed program was:" >&5
2765 cat conftest.
$ac_ext >&5
2766 ac_cv_header_stdc
=no
2768 rm -f conftest.err conftest.
$ac_ext
2770 if test $ac_cv_header_stdc = yes; then
2771 # SunOS 4.x string.h does not declare mem*, 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 "memchr" >/dev
/null
2>&1; then
2782 ac_cv_header_stdc
=no
2788 if test $ac_cv_header_stdc = yes; then
2789 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2790 cat >conftest.
$ac_ext <<_ACEOF
2791 #line $LINENO "configure"
2792 #include "confdefs.h"
2796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2797 egrep "free" >/dev
/null
2>&1; then
2800 ac_cv_header_stdc
=no
2806 if test $ac_cv_header_stdc = yes; then
2807 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2808 if test "$cross_compiling" = yes; then
2811 cat >conftest.
$ac_ext <<_ACEOF
2812 #line $LINENO "configure"
2813 #include "confdefs.h"
2815 #if ((' ' & 0x0FF) == 0x020)
2816 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2817 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2819 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2820 || ('j' <= (c) && (c) <= 'r') \
2821 || ('s' <= (c) && (c) <= 'z'))
2822 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2825 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2830 for (i = 0; i < 256; i++)
2831 if (XOR (islower (i), ISLOWER (i))
2832 || toupper (i) != TOUPPER (i))
2837 rm -f conftest
$ac_exeext
2838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2839 (eval $ac_link) 2>&5
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; }; then
2850 echo "$as_me: program exited with status $ac_status" >&5
2851 echo "$as_me: failed program was:" >&5
2852 cat conftest.
$ac_ext >&5
2854 ac_cv_header_stdc
=no
2856 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2860 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2861 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2862 if test $ac_cv_header_stdc = yes; then
2864 cat >>confdefs.h
<<\_ACEOF
2865 #define STDC_HEADERS 1
2870 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2880 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
2881 inttypes.h stdint.h unistd.h
2883 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2884 echo "$as_me:$LINENO: checking for $ac_header" >&5
2885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2889 cat >conftest.
$ac_ext <<_ACEOF
2890 #line $LINENO "configure"
2891 #include "confdefs.h"
2892 $ac_includes_default
2894 #include <$ac_header>
2896 rm -f conftest.
$ac_objext
2897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2898 (eval $ac_compile) 2>&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); } &&
2902 { ac_try
='test -s conftest.$ac_objext'
2903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }; }; then
2908 eval "$as_ac_Header=yes"
2910 echo "$as_me: failed program was:" >&5
2911 cat conftest.
$ac_ext >&5
2912 eval "$as_ac_Header=no"
2914 rm -f conftest.
$ac_objext conftest.
$ac_ext
2916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2919 cat >>confdefs.h
<<_ACEOF
2920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2928 if test "${ac_cv_header_minix_config_h+set}" = set; then
2929 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2930 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2931 if test "${ac_cv_header_minix_config_h+set}" = set; then
2932 echo $ECHO_N "(cached) $ECHO_C" >&6
2934 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2935 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2937 # Is the header compilable?
2938 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
2939 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
2940 cat >conftest.
$ac_ext <<_ACEOF
2941 #line $LINENO "configure"
2942 #include "confdefs.h"
2943 $ac_includes_default
2944 #include <minix/config.h>
2946 rm -f conftest.
$ac_objext
2947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2948 (eval $ac_compile) 2>&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); } &&
2952 { ac_try
='test -s conftest.$ac_objext'
2953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; }; then
2958 ac_header_compiler
=yes
2960 echo "$as_me: failed program was:" >&5
2961 cat conftest.
$ac_ext >&5
2962 ac_header_compiler
=no
2964 rm -f conftest.
$ac_objext conftest.
$ac_ext
2965 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2966 echo "${ECHO_T}$ac_header_compiler" >&6
2968 # Is the header present?
2969 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
2970 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
2971 cat >conftest.
$ac_ext <<_ACEOF
2972 #line $LINENO "configure"
2973 #include "confdefs.h"
2974 #include <minix/config.h>
2976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2977 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2979 egrep -v '^ *\+' conftest.er1
>conftest.err
2981 cat conftest.err
>&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } >/dev
/null
; then
2984 if test -s conftest.err
; then
2985 ac_cpp_err
=$ac_c_preproc_warn_flag
2992 if test -z "$ac_cpp_err"; then
2993 ac_header_preproc
=yes
2995 echo "$as_me: failed program was:" >&5
2996 cat conftest.
$ac_ext >&5
2997 ac_header_preproc
=no
2999 rm -f conftest.err conftest.
$ac_ext
3000 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3001 echo "${ECHO_T}$ac_header_preproc" >&6
3003 # So? What about this header?
3004 case $ac_header_compiler:$ac_header_preproc in
3006 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3007 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3008 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3009 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
3011 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3012 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3013 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3014 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3015 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3016 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
3018 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3019 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3020 if test "${ac_cv_header_minix_config_h+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3023 ac_cv_header_minix_config_h
=$ac_header_preproc
3025 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3026 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3029 if test $ac_cv_header_minix_config_h = yes; then
3036 if test "$MINIX" = yes; then
3038 cat >>confdefs.h
<<\_ACEOF
3039 #define _POSIX_SOURCE 1
3043 cat >>confdefs.h
<<\_ACEOF
3044 #define _POSIX_1_SOURCE 2
3048 cat >>confdefs.h
<<\_ACEOF
3055 # Check for unsupported systems
3056 case $ac_sys_system/$ac_sys_release in
3057 SunOS
/4*|DYNIX
/*|dgux
*/*|IRIX
/4*|Linux
*/1*)
3058 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3059 echo See README
for details.
3063 if test "$MINIX" = yes; then
3064 echo This system \
(MINIX\
) is no longer supported.
3065 echo Read README
for details.
3070 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3071 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3073 # Check whether --with-suffix or --without-suffix was given.
3074 if test "${with_suffix+set}" = set; then
3075 withval
="$with_suffix"
3080 *) EXEEXT
=$withval;;
3083 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3084 echo "${ECHO_T}$EXEEXT" >&6
3086 # Test whether we're running on a non-case-sensitive system, in which
3087 # case we give a warning if no ext is given
3089 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3090 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3091 if test ! -d CaseSensitiveTestDir
; then
3092 mkdir CaseSensitiveTestDir
3095 if test -d casesensitivetestdir
3097 echo "$as_me:$LINENO: result: yes" >&5
3098 echo "${ECHO_T}yes" >&6
3101 echo "$as_me:$LINENO: result: no" >&5
3102 echo "${ECHO_T}no" >&6
3105 rmdir CaseSensitiveTestDir
3110 gcc
) CC
="$CC -D_HAVE_BSDI";;
3114 case $ac_sys_system in
3117 cc|
*/cc
) CC
="$CC -Ae";;
3121 cc
) CC
="$CC -Wl,-Bexport";;
3124 # Some functions have a prototype only with that define, e.g. confstr
3126 cat >>confdefs.h
<<\_ACEOF
3127 #define __EXTENSIONS__ 1
3135 echo "$as_me:$LINENO: checking LIBRARY" >&5
3136 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3137 if test -z "$LIBRARY"
3139 LIBRARY
='libpython$(VERSION).a'
3141 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3142 echo "${ECHO_T}$LIBRARY" >&6
3144 # LDLIBRARY is the name of the library to link against (as opposed to the
3145 # name of the library into which to insert object files). BLDLIBRARY is also
3146 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3147 # is blank as the main program is not linked directly against LDLIBRARY.
3148 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3149 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3150 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3151 # DLLLIBRARY is the shared (i.e., DLL) library.
3153 # RUNSHARED is used to run shared python without installed libraries
3155 # INSTSONAME is the name of the shared library that will be use to install
3156 # on the system - some systems like version suffix, others don't
3163 LDLIBRARY
="$LIBRARY"
3164 BLDLIBRARY
='$(LDLIBRARY)'
3165 INSTSONAME
='$(LDLIBRARY)'
3170 # LINKCC is the command that links the python executable -- default is $(CC).
3171 # If CXX is set, and if it is needed to link a main function that was
3172 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3173 # python might then depend on the C++ runtime
3174 # This is altered for AIX in order to build the export list before
3177 echo "$as_me:$LINENO: checking LINKCC" >&5
3178 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3179 if test -z "$LINKCC"
3181 if test -z "$CXX"; then
3182 LINKCC
="\$(PURIFY) \$(CC)"
3184 echo 'void foo();int main(){foo();}void foo(){}' > conftest.
$ac_ext
3185 $CXX -c conftest.
$ac_ext 2>&5
3186 if $CC -o conftest
$ac_exeext conftest.
$ac_objext 2>&5 \
3187 && test -s conftest
$ac_exeext && .
/conftest
$ac_exeext
3189 LINKCC
="\$(PURIFY) \$(CC)"
3191 LINKCC
="\$(PURIFY) \$(CXX)"
3195 case $ac_sys_system in
3198 if test $ac_sys_release -ge 5 -o \
3199 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3202 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3204 LINKCC
="LD_RUN_PATH=$libdir $LINKCC";;
3206 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3209 echo "$as_me:$LINENO: result: $LINKCC" >&5
3210 echo "${ECHO_T}$LINKCC" >&6
3212 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3213 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3214 # Check whether --enable-shared or --disable-shared was given.
3215 if test "${enable_shared+set}" = set; then
3216 enableval
="$enable_shared"
3220 if test -z "$enable_shared"
3222 case $ac_sys_system in
3224 enable_shared
="yes";;
3226 enable_shared
="no";;
3229 echo "$as_me:$LINENO: result: $enable_shared" >&5
3230 echo "${ECHO_T}$enable_shared" >&6
3233 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3234 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3236 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3237 # library that we build, but we do not want to link against it (we
3238 # will find it with a -framework option). For this reason there is an
3239 # extra variable BLDLIBRARY against which Python and the extension
3240 # modules are linked, BLDLIBRARY. This is normally the same as
3241 # LDLIBRARY, but empty for MacOSX framework builds.
3242 if test "$enable_framework"
3244 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3245 LDLIBRARYDIR
='$(PYTHONFRAMEWORKDIR)'
3248 BLDLIBRARY
='$(LDLIBRARY)'
3251 # Other platforms follow
3252 if test $enable_shared = "yes"; then
3254 cat >>confdefs.h
<<\_ACEOF
3255 #define Py_ENABLE_SHARED 1
3258 case $ac_sys_system in
3260 LDLIBRARY
='libpython$(VERSION).so'
3263 LDLIBRARY
='libpython$(VERSION).dll.a'
3264 DLLLIBRARY
='libpython$(VERSION).dll'
3267 LDLIBRARY
='libpython$(VERSION).so'
3268 BLDLIBRARY
='-Wl,-rpath,$(LIBDIR) -L. -lpython$(VERSION)'
3269 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:$LD_LIBRARY_PATH
3271 Linux
*|GNU
*|NetBSD
*)
3272 LDLIBRARY
='libpython$(VERSION).so'
3273 BLDLIBRARY
='-L. -lpython$(VERSION)'
3274 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:$LD_LIBRARY_PATH
3275 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3278 LDLIBRARY
='libpython$(VERSION).sl'
3279 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3280 RUNSHARED
=SHLIB_PATH
=`pwd`:$SHLIB_PATH
3283 LDLIBRARY
='libpython$(VERSION).so'
3284 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3285 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:$LD_LIBRARY_PATH
3288 LDLIBRARY
='libpython$(VERSION).so'
3289 BLDLIBRARY
='-L. -lpython$(VERSION)'
3290 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3293 # DG/UX requires some fancy ld contortions to produce a .so from an .a
3296 LDLIBRARY
='libpython$(VERSION).so'
3297 BASECFLAGS
="$BASECFLAGS -pic"
3302 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3303 echo "${ECHO_T}$LDLIBRARY" >&6
3305 if test -n "$ac_tool_prefix"; then
3306 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3307 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3308 echo "$as_me:$LINENO: checking for $ac_word" >&5
3309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3310 if test "${ac_cv_prog_RANLIB+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 if test -n "$RANLIB"; then
3314 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3316 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3320 test -z "$as_dir" && as_dir
=.
3321 for ac_exec_ext
in '' $ac_executable_extensions; do
3322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3323 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3332 RANLIB
=$ac_cv_prog_RANLIB
3333 if test -n "$RANLIB"; then
3334 echo "$as_me:$LINENO: result: $RANLIB" >&5
3335 echo "${ECHO_T}$RANLIB" >&6
3337 echo "$as_me:$LINENO: result: no" >&5
3338 echo "${ECHO_T}no" >&6
3342 if test -z "$ac_cv_prog_RANLIB"; then
3343 ac_ct_RANLIB
=$RANLIB
3344 # Extract the first word of "ranlib", so it can be a program name with args.
3345 set dummy ranlib
; ac_word
=$2
3346 echo "$as_me:$LINENO: checking for $ac_word" >&5
3347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3348 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3351 if test -n "$ac_ct_RANLIB"; then
3352 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3354 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3358 test -z "$as_dir" && as_dir
=.
3359 for ac_exec_ext
in '' $ac_executable_extensions; do
3360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3361 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3368 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3371 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3372 if test -n "$ac_ct_RANLIB"; then
3373 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3374 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3376 echo "$as_me:$LINENO: result: no" >&5
3377 echo "${ECHO_T}no" >&6
3380 RANLIB
=$ac_ct_RANLIB
3382 RANLIB
="$ac_cv_prog_RANLIB"
3386 for ac_prog
in ar aal
3388 # Extract the first word of "$ac_prog", so it can be a program name with args.
3389 set dummy
$ac_prog; ac_word
=$2
3390 echo "$as_me:$LINENO: checking for $ac_word" >&5
3391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3392 if test "${ac_cv_prog_AR+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3395 if test -n "$AR"; then
3396 ac_cv_prog_AR
="$AR" # Let the user override the test.
3398 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3402 test -z "$as_dir" && as_dir
=.
3403 for ac_exec_ext
in '' $ac_executable_extensions; do
3404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3405 ac_cv_prog_AR
="$ac_prog"
3406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3415 if test -n "$AR"; then
3416 echo "$as_me:$LINENO: result: $AR" >&5
3417 echo "${ECHO_T}$AR" >&6
3419 echo "$as_me:$LINENO: result: no" >&5
3420 echo "${ECHO_T}no" >&6
3423 test -n "$AR" && break
3425 test -n "$AR" || AR
="ar"
3430 # install -d does not work on BSDI or HP-UX
3431 if test -z "$INSTALL"
3433 INSTALL
="${srcdir}/install-sh -c"
3437 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
3438 if test -f $ac_dir/install-sh
; then
3440 ac_install_sh
="$ac_aux_dir/install-sh -c"
3442 elif test -f $ac_dir/install.sh
; then
3444 ac_install_sh
="$ac_aux_dir/install.sh -c"
3446 elif test -f $ac_dir/shtool
; then
3448 ac_install_sh
="$ac_aux_dir/shtool install -c"
3452 if test -z "$ac_aux_dir"; then
3453 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3454 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3455 { (exit 1); exit 1; }; }
3457 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
3458 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
3459 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3461 # Find a good install program. We prefer a C program (faster),
3462 # so one script is as good as another. But avoid the broken or
3463 # incompatible versions:
3464 # SysV /etc/install, /usr/sbin/install
3465 # SunOS /usr/etc/install
3466 # IRIX /sbin/install
3468 # AmigaOS /C/install, which installs bootblocks on floppy discs
3469 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3470 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3471 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3472 # ./install, which can be erroneously created by make from ./install.sh.
3473 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3474 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3475 if test -z "$INSTALL"; then
3476 if test "${ac_cv_path_install+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6
3479 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3483 test -z "$as_dir" && as_dir
=.
3484 # Account for people who put trailing slashes in PATH elements.
3486 .
/ | .
// |
/cC
/* | \
3487 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3490 # OSF1 and SCO ODT 3.0 have their own names for install.
3491 # Don't use installbsd from OSF since it installs stuff as root
3493 for ac_prog
in ginstall scoinst
install; do
3494 for ac_exec_ext
in '' $ac_executable_extensions; do
3495 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3496 if test $ac_prog = install &&
3497 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3498 # AIX install. It has an incompatible calling convention.
3500 elif test $ac_prog = install &&
3501 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3502 # program-specific install script used by HP pwplus--don't use.
3505 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3517 if test "${ac_cv_path_install+set}" = set; then
3518 INSTALL
=$ac_cv_path_install
3520 # As a last resort, use the slow shell script. We don't cache a
3521 # path for INSTALL within a source directory, because that will
3522 # break other packages using the cache if that directory is
3523 # removed, or if the path is relative.
3524 INSTALL
=$ac_install_sh
3527 echo "$as_me:$LINENO: result: $INSTALL" >&5
3528 echo "${ECHO_T}$INSTALL" >&6
3530 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3531 # It thinks the first close brace ends the variable substitution.
3532 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3534 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3536 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3539 # Not every filesystem supports hard links
3541 if test -z "$LN" ; then
3542 case $ac_sys_system in
3544 CYGWIN
*) LN
="ln -s";;
3545 atheos
*) LN
="ln -s";;
3550 # Check for --with-pydebug
3551 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3552 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3554 # Check whether --with-pydebug or --without-pydebug was given.
3555 if test "${with_pydebug+set}" = set; then
3556 withval
="$with_pydebug"
3558 if test "$withval" != no
3561 cat >>confdefs.h
<<\_ACEOF
3565 echo "$as_me:$LINENO: result: yes" >&5
3566 echo "${ECHO_T}yes" >&6;
3568 else echo "$as_me:$LINENO: result: no" >&5
3569 echo "${ECHO_T}no" >&6; Py_DEBUG
='false'
3572 echo "$as_me:$LINENO: result: no" >&5
3573 echo "${ECHO_T}no" >&6
3576 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3577 # merged with this chunk of code?
3579 # Optimizer/debugger flags
3580 # ------------------------
3581 # (The following bit of code is complicated enough - please keep things
3582 # indented properly. Just pretend you're editing Python code. ;-)
3584 # There are two parallel sets of case statements below, one that checks to
3585 # see if OPT was set and one that does BASECFLAGS setting based upon
3586 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3589 # tweak OPT based on compiler and platform, only if the user didn't set
3590 # it on the command line
3596 case $ac_cv_prog_cc_g in
3598 if test "$Py_DEBUG" = 'true' ; then
3599 # Optimization messes up debuggers, so turn it off for
3601 OPT
="-g -Wall -Wstrict-prototypes"
3603 OPT
="-g -O3 -Wall -Wstrict-prototypes"
3607 OPT
="-O3 -Wall -Wstrict-prototypes"
3610 case $ac_sys_system in
3611 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
3621 # The current (beta) Monterey compiler dies with optimizations
3622 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3623 case $ac_sys_system in
3632 # tweak BASECFLAGS based on compiler and platform
3635 case $ac_sys_system in
3637 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
3639 # is there any other compiler on Darwin besides gcc?
3641 BASECFLAGS
="$BASECFLAGS -Wno-long-double -no-cpp-precomp"
3647 case $ac_sys_system in
3648 OpenUNIX
*|UnixWare
*)
3649 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3652 BASECFLAGS
="$BASECFLAGS -ieee -std"
3655 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
3661 if test "$Py_DEBUG" = 'true'; then
3667 if test "$ac_arch_flags"
3669 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
3672 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3673 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3674 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3678 CC
="$CC -OPT:Olimit=0"
3679 if test "$cross_compiling" = yes; then
3680 ac_cv_opt_olimit_ok
=no
3682 cat >conftest.
$ac_ext <<_ACEOF
3683 #line $LINENO "configure"
3684 #include "confdefs.h"
3685 int main() { return 0; }
3687 rm -f conftest
$ac_exeext
3688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3689 (eval $ac_link) 2>&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; }; then
3698 ac_cv_opt_olimit_ok
=yes
3700 echo "$as_me: program exited with status $ac_status" >&5
3701 echo "$as_me: failed program was:" >&5
3702 cat conftest.
$ac_ext >&5
3704 ac_cv_opt_olimit_ok
=no
3706 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3711 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3712 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3713 if test $ac_cv_opt_olimit_ok = yes; then
3714 case $ac_sys_system in
3715 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3716 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3721 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
3725 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3726 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3727 if test "${ac_cv_olimit_ok+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3731 CC
="$CC -Olimit 1500"
3732 if test "$cross_compiling" = yes; then
3735 cat >conftest.
$ac_ext <<_ACEOF
3736 #line $LINENO "configure"
3737 #include "confdefs.h"
3738 int main() { return 0; }
3740 rm -f conftest
$ac_exeext
3741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3742 (eval $ac_link) 2>&5
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }; }; then
3753 echo "$as_me: program exited with status $ac_status" >&5
3754 echo "$as_me: failed program was:" >&5
3755 cat conftest.
$ac_ext >&5
3759 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3764 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
3765 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
3766 if test $ac_cv_olimit_ok = yes; then
3767 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
3771 # On some compilers, pthreads are available without further options
3772 # (e.g. MacOS X). On some of these systems, the compiler will not
3773 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
3774 # So we have to see first whether pthreads are available without
3775 # options before we can check whether -Kpthread improves anything.
3776 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
3777 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
3778 if test "${ac_cv_pthread_is_default+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 if test "$cross_compiling" = yes; then
3782 ac_cv_pthread_is_default
=no
3784 cat >conftest.
$ac_ext <<_ACEOF
3785 #line $LINENO "configure"
3786 #include "confdefs.h"
3788 #include <pthread.h>
3790 void* routine(void* p){return NULL;}
3794 if(pthread_create(&p,NULL,routine,NULL)!=0)
3796 (void)pthread_detach(p);
3801 rm -f conftest
$ac_exeext
3802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3803 (eval $ac_link) 2>&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); }; }; then
3812 ac_cv_pthread_is_default
=yes
3814 echo "$as_me: program exited with status $ac_status" >&5
3815 echo "$as_me: failed program was:" >&5
3816 cat conftest.
$ac_ext >&5
3818 ac_cv_pthread_is_default
=no
3820 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3825 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
3826 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
3829 if test $ac_cv_pthread_is_default = yes
3833 # -Kpthread, if available, provides the right #defines
3834 # and linker options to make pthread_create available
3835 # Some compilers won't report that they do not support -Kpthread,
3836 # so we need to run a program to see whether it really made the
3837 # function available.
3838 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
3839 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
3840 if test "${ac_cv_kpthread+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3845 if test "$cross_compiling" = yes; then
3848 cat >conftest.
$ac_ext <<_ACEOF
3849 #line $LINENO "configure"
3850 #include "confdefs.h"
3852 #include <pthread.h>
3854 void* routine(void* p){return NULL;}
3858 if(pthread_create(&p,NULL,routine,NULL)!=0)
3860 (void)pthread_detach(p);
3865 rm -f conftest
$ac_exeext
3866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3867 (eval $ac_link) 2>&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); }; }; then
3878 echo "$as_me: program exited with status $ac_status" >&5
3879 echo "$as_me: failed program was:" >&5
3880 cat conftest.
$ac_ext >&5
3884 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3889 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
3890 echo "${ECHO_T}$ac_cv_kpthread" >&6
3893 if test $ac_cv_kpthread = no
3895 # -Kthread, if available, provides the right #defines
3896 # and linker options to make pthread_create available
3897 # Some compilers won't report that they do not support -Kthread,
3898 # so we need to run a program to see whether it really made the
3899 # function available.
3900 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
3901 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
3902 if test "${ac_cv_kthread+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3907 if test "$cross_compiling" = yes; then
3910 cat >conftest.
$ac_ext <<_ACEOF
3911 #line $LINENO "configure"
3912 #include "confdefs.h"
3914 #include <pthread.h>
3916 void* routine(void* p){return NULL;}
3920 if(pthread_create(&p,NULL,routine,NULL)!=0)
3922 (void)pthread_detach(p);
3927 rm -f conftest
$ac_exeext
3928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3929 (eval $ac_link) 2>&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); }; }; then
3940 echo "$as_me: program exited with status $ac_status" >&5
3941 echo "$as_me: failed program was:" >&5
3942 cat conftest.
$ac_ext >&5
3946 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3951 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
3952 echo "${ECHO_T}$ac_cv_kthread" >&6
3955 if test $ac_cv_kthread = no
3957 # -pthread, if available, provides the right #defines
3958 # and linker options to make pthread_create available
3959 # Some compilers won't report that they do not support -pthread,
3960 # so we need to run a program to see whether it really made the
3961 # function available.
3962 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
3963 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
3964 if test "${ac_cv_thread+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3969 if test "$cross_compiling" = yes; then
3972 cat >conftest.
$ac_ext <<_ACEOF
3973 #line $LINENO "configure"
3974 #include "confdefs.h"
3976 #include <pthread.h>
3978 void* routine(void* p){return NULL;}
3982 if(pthread_create(&p,NULL,routine,NULL)!=0)
3984 (void)pthread_detach(p);
3989 rm -f conftest
$ac_exeext
3990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3991 (eval $ac_link) 2>&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }; }; then
4002 echo "$as_me: program exited with status $ac_status" >&5
4003 echo "$as_me: failed program was:" >&5
4004 cat conftest.
$ac_ext >&5
4008 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4013 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4014 echo "${ECHO_T}$ac_cv_pthread" >&6
4018 # checks for header files
4019 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4020 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4021 if test "${ac_cv_header_stdc+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 cat >conftest.
$ac_ext <<_ACEOF
4025 #line $LINENO "configure"
4026 #include "confdefs.h"
4033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4034 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4036 egrep -v '^ *\+' conftest.er1
>conftest.err
4038 cat conftest.err
>&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); } >/dev
/null
; then
4041 if test -s conftest.err
; then
4042 ac_cpp_err
=$ac_c_preproc_warn_flag
4049 if test -z "$ac_cpp_err"; then
4050 ac_cv_header_stdc
=yes
4052 echo "$as_me: failed program was:" >&5
4053 cat conftest.
$ac_ext >&5
4054 ac_cv_header_stdc
=no
4056 rm -f conftest.err conftest.
$ac_ext
4058 if test $ac_cv_header_stdc = yes; then
4059 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4060 cat >conftest.
$ac_ext <<_ACEOF
4061 #line $LINENO "configure"
4062 #include "confdefs.h"
4066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4067 egrep "memchr" >/dev
/null
2>&1; then
4070 ac_cv_header_stdc
=no
4076 if test $ac_cv_header_stdc = yes; then
4077 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4078 cat >conftest.
$ac_ext <<_ACEOF
4079 #line $LINENO "configure"
4080 #include "confdefs.h"
4084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4085 egrep "free" >/dev
/null
2>&1; then
4088 ac_cv_header_stdc
=no
4094 if test $ac_cv_header_stdc = yes; then
4095 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4096 if test "$cross_compiling" = yes; then
4099 cat >conftest.
$ac_ext <<_ACEOF
4100 #line $LINENO "configure"
4101 #include "confdefs.h"
4103 #if ((' ' & 0x0FF) == 0x020)
4104 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4105 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4107 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4108 || ('j' <= (c) && (c) <= 'r') \
4109 || ('s' <= (c) && (c) <= 'z'))
4110 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4113 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4118 for (i = 0; i < 256; i++)
4119 if (XOR (islower (i), ISLOWER (i))
4120 || toupper (i) != TOUPPER (i))
4125 rm -f conftest
$ac_exeext
4126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4127 (eval $ac_link) 2>&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; }; then
4138 echo "$as_me: program exited with status $ac_status" >&5
4139 echo "$as_me: failed program was:" >&5
4140 cat conftest.
$ac_ext >&5
4142 ac_cv_header_stdc
=no
4144 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4148 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4149 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4150 if test $ac_cv_header_stdc = yes; then
4152 cat >>confdefs.h
<<\_ACEOF
4153 #define STDC_HEADERS 1
4198 for ac_header
in dlfcn.h fcntl.h grp.h limits.h langinfo.h \
4199 libintl.h locale.h ncurses.h poll.h pthread.h \
4200 signal.h stdarg.h stddef.h stdlib.h stropts.h termios.h thread.h \
4202 sys
/audioio.h sys
/bsdtty.h sys
/file.h sys
/lock.h sys
/mkdev.h sys
/modem.h \
4203 sys
/param.h sys
/poll.h sys
/select.h sys
/socket.h sys
/time.h sys
/times.h \
4204 sys
/un.h sys
/utsname.h sys
/wait.h pty.h term.h libutil.h \
4205 sys
/resource.h netpacket
/packet.h sysexits.h
4207 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4209 echo "$as_me:$LINENO: checking for $ac_header" >&5
4210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4212 echo $ECHO_N "(cached) $ECHO_C" >&6
4214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4217 # Is the header compilable?
4218 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4219 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4220 cat >conftest.
$ac_ext <<_ACEOF
4221 #line $LINENO "configure"
4222 #include "confdefs.h"
4223 $ac_includes_default
4224 #include <$ac_header>
4226 rm -f conftest.
$ac_objext
4227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4228 (eval $ac_compile) 2>&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } &&
4232 { ac_try
='test -s conftest.$ac_objext'
4233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; }; then
4238 ac_header_compiler
=yes
4240 echo "$as_me: failed program was:" >&5
4241 cat conftest.
$ac_ext >&5
4242 ac_header_compiler
=no
4244 rm -f conftest.
$ac_objext conftest.
$ac_ext
4245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4246 echo "${ECHO_T}$ac_header_compiler" >&6
4248 # Is the header present?
4249 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4251 cat >conftest.
$ac_ext <<_ACEOF
4252 #line $LINENO "configure"
4253 #include "confdefs.h"
4254 #include <$ac_header>
4256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4257 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4259 egrep -v '^ *\+' conftest.er1
>conftest.err
4261 cat conftest.err
>&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); } >/dev
/null
; then
4264 if test -s conftest.err
; then
4265 ac_cpp_err
=$ac_c_preproc_warn_flag
4272 if test -z "$ac_cpp_err"; then
4273 ac_header_preproc
=yes
4275 echo "$as_me: failed program was:" >&5
4276 cat conftest.
$ac_ext >&5
4277 ac_header_preproc
=no
4279 rm -f conftest.err conftest.
$ac_ext
4280 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4281 echo "${ECHO_T}$ac_header_preproc" >&6
4283 # So? What about this header?
4284 case $ac_header_compiler:$ac_header_preproc in
4286 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4287 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4291 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4292 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4293 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4294 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4298 echo "$as_me:$LINENO: checking for $ac_header" >&5
4299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 eval "$as_ac_Header=$ac_header_preproc"
4305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4310 cat >>confdefs.h
<<_ACEOF
4311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4324 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4325 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4326 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4327 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 cat >conftest.
$ac_ext <<_ACEOF
4332 #line $LINENO "configure"
4333 #include "confdefs.h"
4334 #include <sys/types.h>
4337 #ifdef F77_DUMMY_MAIN
4341 int F77_DUMMY_MAIN() { return 1; }
4352 rm -f conftest.
$ac_objext
4353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4354 (eval $ac_compile) 2>&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } &&
4358 { ac_try
='test -s conftest.$ac_objext'
4359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; }; then
4364 eval "$as_ac_Header=yes"
4366 echo "$as_me: failed program was:" >&5
4367 cat conftest.
$ac_ext >&5
4368 eval "$as_ac_Header=no"
4370 rm -f conftest.
$ac_objext conftest.
$ac_ext
4372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4375 cat >>confdefs.h
<<_ACEOF
4376 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4379 ac_header_dirent
=$ac_hdr; break
4383 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4384 if test $ac_header_dirent = dirent.h
; then
4385 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4386 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4387 if test "${ac_cv_search_opendir+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4390 ac_func_search_save_LIBS
=$LIBS
4391 ac_cv_search_opendir
=no
4392 cat >conftest.
$ac_ext <<_ACEOF
4393 #line $LINENO "configure"
4394 #include "confdefs.h"
4396 /* Override any gcc2 internal prototype to avoid an error. */
4400 /* We use char because int might match the return type of a gcc2
4401 builtin and then its argument prototype would still apply. */
4403 #ifdef F77_DUMMY_MAIN
4407 int F77_DUMMY_MAIN() { return 1; }
4417 rm -f conftest.
$ac_objext conftest
$ac_exeext
4418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4419 (eval $ac_link) 2>&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); } &&
4423 { ac_try
='test -s conftest$ac_exeext'
4424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); }; }; then
4429 ac_cv_search_opendir
="none required"
4431 echo "$as_me: failed program was:" >&5
4432 cat conftest.
$ac_ext >&5
4434 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4435 if test "$ac_cv_search_opendir" = no
; then
4436 for ac_lib
in dir
; do
4437 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4438 cat >conftest.
$ac_ext <<_ACEOF
4439 #line $LINENO "configure"
4440 #include "confdefs.h"
4442 /* Override any gcc2 internal prototype to avoid an error. */
4446 /* We use char because int might match the return type of a gcc2
4447 builtin and then its argument prototype would still apply. */
4449 #ifdef F77_DUMMY_MAIN
4453 int F77_DUMMY_MAIN() { return 1; }
4463 rm -f conftest.
$ac_objext conftest
$ac_exeext
4464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4465 (eval $ac_link) 2>&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); } &&
4469 { ac_try
='test -s conftest$ac_exeext'
4470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); }; }; then
4475 ac_cv_search_opendir
="-l$ac_lib"
4478 echo "$as_me: failed program was:" >&5
4479 cat conftest.
$ac_ext >&5
4481 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4484 LIBS
=$ac_func_search_save_LIBS
4486 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4487 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4488 if test "$ac_cv_search_opendir" != no
; then
4489 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
4494 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4495 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4496 if test "${ac_cv_search_opendir+set}" = set; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
4499 ac_func_search_save_LIBS
=$LIBS
4500 ac_cv_search_opendir
=no
4501 cat >conftest.
$ac_ext <<_ACEOF
4502 #line $LINENO "configure"
4503 #include "confdefs.h"
4505 /* Override any gcc2 internal prototype to avoid an error. */
4509 /* We use char because int might match the return type of a gcc2
4510 builtin and then its argument prototype would still apply. */
4512 #ifdef F77_DUMMY_MAIN
4516 int F77_DUMMY_MAIN() { return 1; }
4526 rm -f conftest.
$ac_objext conftest
$ac_exeext
4527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4528 (eval $ac_link) 2>&5
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); } &&
4532 { ac_try
='test -s conftest$ac_exeext'
4533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); }; }; then
4538 ac_cv_search_opendir
="none required"
4540 echo "$as_me: failed program was:" >&5
4541 cat conftest.
$ac_ext >&5
4543 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4544 if test "$ac_cv_search_opendir" = no
; then
4546 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4547 cat >conftest.
$ac_ext <<_ACEOF
4548 #line $LINENO "configure"
4549 #include "confdefs.h"
4551 /* Override any gcc2 internal prototype to avoid an error. */
4555 /* We use char because int might match the return type of a gcc2
4556 builtin and then its argument prototype would still apply. */
4558 #ifdef F77_DUMMY_MAIN
4562 int F77_DUMMY_MAIN() { return 1; }
4572 rm -f conftest.
$ac_objext conftest
$ac_exeext
4573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4574 (eval $ac_link) 2>&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); } &&
4578 { ac_try
='test -s conftest$ac_exeext'
4579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; }; then
4584 ac_cv_search_opendir
="-l$ac_lib"
4587 echo "$as_me: failed program was:" >&5
4588 cat conftest.
$ac_ext >&5
4590 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4593 LIBS
=$ac_func_search_save_LIBS
4595 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4596 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4597 if test "$ac_cv_search_opendir" != no
; then
4598 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
4604 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
4605 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
4606 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 cat >conftest.
$ac_ext <<_ACEOF
4610 #line $LINENO "configure"
4611 #include "confdefs.h"
4612 #include <sys/types.h>
4613 #ifdef F77_DUMMY_MAIN
4617 int F77_DUMMY_MAIN() { return 1; }
4622 return makedev(0, 0);
4627 rm -f conftest.
$ac_objext conftest
$ac_exeext
4628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4629 (eval $ac_link) 2>&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); } &&
4633 { ac_try
='test -s conftest$ac_exeext'
4634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); }; }; then
4639 ac_cv_header_sys_types_h_makedev
=yes
4641 echo "$as_me: failed program was:" >&5
4642 cat conftest.
$ac_ext >&5
4643 ac_cv_header_sys_types_h_makedev
=no
4645 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4648 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
4649 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
4651 if test $ac_cv_header_sys_types_h_makedev = no
; then
4652 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4653 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4654 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
4655 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4659 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
4661 # Is the header compilable?
4662 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
4663 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
4664 cat >conftest.
$ac_ext <<_ACEOF
4665 #line $LINENO "configure"
4666 #include "confdefs.h"
4667 $ac_includes_default
4668 #include <sys/mkdev.h>
4670 rm -f conftest.
$ac_objext
4671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4672 (eval $ac_compile) 2>&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } &&
4676 { ac_try
='test -s conftest.$ac_objext'
4677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; }; then
4682 ac_header_compiler
=yes
4684 echo "$as_me: failed program was:" >&5
4685 cat conftest.
$ac_ext >&5
4686 ac_header_compiler
=no
4688 rm -f conftest.
$ac_objext conftest.
$ac_ext
4689 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4690 echo "${ECHO_T}$ac_header_compiler" >&6
4692 # Is the header present?
4693 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
4694 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
4695 cat >conftest.
$ac_ext <<_ACEOF
4696 #line $LINENO "configure"
4697 #include "confdefs.h"
4698 #include <sys/mkdev.h>
4700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4701 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4703 egrep -v '^ *\+' conftest.er1
>conftest.err
4705 cat conftest.err
>&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } >/dev
/null
; then
4708 if test -s conftest.err
; then
4709 ac_cpp_err
=$ac_c_preproc_warn_flag
4716 if test -z "$ac_cpp_err"; then
4717 ac_header_preproc
=yes
4719 echo "$as_me: failed program was:" >&5
4720 cat conftest.
$ac_ext >&5
4721 ac_header_preproc
=no
4723 rm -f conftest.err conftest.
$ac_ext
4724 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4725 echo "${ECHO_T}$ac_header_preproc" >&6
4727 # So? What about this header?
4728 case $ac_header_compiler:$ac_header_preproc in
4730 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
4731 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4732 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
4733 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};;
4735 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
4736 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
4737 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
4738 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
4739 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
4740 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};;
4742 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4743 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
4744 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 ac_cv_header_sys_mkdev_h
=$ac_header_preproc
4749 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4750 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
4753 if test $ac_cv_header_sys_mkdev_h = yes; then
4755 cat >>confdefs.h
<<\_ACEOF
4756 #define MAJOR_IN_MKDEV 1
4763 if test $ac_cv_header_sys_mkdev_h = no
; then
4764 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4765 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4766 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
4767 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4768 echo $ECHO_N "(cached) $ECHO_C" >&6
4770 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4771 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
4773 # Is the header compilable?
4774 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
4775 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
4776 cat >conftest.
$ac_ext <<_ACEOF
4777 #line $LINENO "configure"
4778 #include "confdefs.h"
4779 $ac_includes_default
4780 #include <sys/sysmacros.h>
4782 rm -f conftest.
$ac_objext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4784 (eval $ac_compile) 2>&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } &&
4788 { ac_try
='test -s conftest.$ac_objext'
4789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; }; then
4794 ac_header_compiler
=yes
4796 echo "$as_me: failed program was:" >&5
4797 cat conftest.
$ac_ext >&5
4798 ac_header_compiler
=no
4800 rm -f conftest.
$ac_objext conftest.
$ac_ext
4801 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4802 echo "${ECHO_T}$ac_header_compiler" >&6
4804 # Is the header present?
4805 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
4806 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
4807 cat >conftest.
$ac_ext <<_ACEOF
4808 #line $LINENO "configure"
4809 #include "confdefs.h"
4810 #include <sys/sysmacros.h>
4812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4813 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4815 egrep -v '^ *\+' conftest.er1
>conftest.err
4817 cat conftest.err
>&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); } >/dev
/null
; then
4820 if test -s conftest.err
; then
4821 ac_cpp_err
=$ac_c_preproc_warn_flag
4828 if test -z "$ac_cpp_err"; then
4829 ac_header_preproc
=yes
4831 echo "$as_me: failed program was:" >&5
4832 cat conftest.
$ac_ext >&5
4833 ac_header_preproc
=no
4835 rm -f conftest.err conftest.
$ac_ext
4836 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4837 echo "${ECHO_T}$ac_header_preproc" >&6
4839 # So? What about this header?
4840 case $ac_header_compiler:$ac_header_preproc in
4842 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
4843 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4844 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
4845 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};;
4847 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
4848 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
4849 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
4850 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
4851 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
4852 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};;
4854 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4855 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
4856 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4857 echo $ECHO_N "(cached) $ECHO_C" >&6
4859 ac_cv_header_sys_sysmacros_h
=$ac_header_preproc
4861 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4862 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
4865 if test $ac_cv_header_sys_sysmacros_h = yes; then
4867 cat >>confdefs.h
<<\_ACEOF
4868 #define MAJOR_IN_SYSMACROS 1
4878 # checks for typedefs
4880 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
4881 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
4882 cat >conftest.
$ac_ext <<_ACEOF
4883 #line $LINENO "configure"
4884 #include "confdefs.h"
4888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4889 egrep "clock_t" >/dev
/null
2>&1; then
4894 cat >>confdefs.h
<<\_ACEOF
4895 #define clock_t long
4902 echo "$as_me:$LINENO: result: $was_it_defined" >&5
4903 echo "${ECHO_T}$was_it_defined" >&6
4905 # Check whether using makedev requires defining _OSF_SOURCE
4906 echo "$as_me:$LINENO: checking for makedev" >&5
4907 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
4908 cat >conftest.
$ac_ext <<_ACEOF
4909 #line $LINENO "configure"
4910 #include "confdefs.h"
4911 #include <sys/types.h>
4912 #ifdef F77_DUMMY_MAIN
4916 int F77_DUMMY_MAIN() { return 1; }
4926 rm -f conftest.
$ac_objext conftest
$ac_exeext
4927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4928 (eval $ac_link) 2>&5
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); } &&
4932 { ac_try
='test -s conftest$ac_exeext'
4933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); }; }; then
4938 ac_cv_has_makedev
=yes
4940 echo "$as_me: failed program was:" >&5
4941 cat conftest.
$ac_ext >&5
4942 ac_cv_has_makedev
=no
4944 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4945 if test "$ac_cv_has_makedev" = "no"; then
4946 # we didn't link, try if _OSF_SOURCE will allow us to link
4947 cat >conftest.
$ac_ext <<_ACEOF
4948 #line $LINENO "configure"
4949 #include "confdefs.h"
4951 #define _OSF_SOURCE 1
4952 #include <sys/types.h>
4954 #ifdef F77_DUMMY_MAIN
4958 int F77_DUMMY_MAIN() { return 1; }
4968 rm -f conftest.
$ac_objext conftest
$ac_exeext
4969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4970 (eval $ac_link) 2>&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } &&
4974 { ac_try
='test -s conftest$ac_exeext'
4975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; }; then
4980 ac_cv_has_makedev
=yes
4982 echo "$as_me: failed program was:" >&5
4983 cat conftest.
$ac_ext >&5
4984 ac_cv_has_makedev
=no
4986 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4987 if test "$ac_cv_has_makedev" = "yes"; then
4989 cat >>confdefs.h
<<\_ACEOF
4990 #define _OSF_SOURCE 1
4995 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
4996 echo "${ECHO_T}$ac_cv_has_makedev" >&6
4997 if test "$ac_cv_has_makedev" = "yes"; then
4999 cat >>confdefs.h
<<\_ACEOF
5000 #define HAVE_MAKEDEV 1
5005 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5006 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5007 # defined, but the compiler does not support pragma redefine_extname,
5008 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5009 # structures (such as rlimit64) without declaring them. As a
5010 # work-around, disable LFS on such configurations
5013 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5014 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5015 cat >conftest.
$ac_ext <<_ACEOF
5016 #line $LINENO "configure"
5017 #include "confdefs.h"
5019 #define _LARGEFILE_SOURCE 1
5020 #define _FILE_OFFSET_BITS 64
5021 #include <sys/resource.h>
5023 #ifdef F77_DUMMY_MAIN
5027 int F77_DUMMY_MAIN() { return 1; }
5037 rm -f conftest.
$ac_objext
5038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5039 (eval $ac_compile) 2>&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); } &&
5043 { ac_try
='test -s conftest.$ac_objext'
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
5051 echo "$as_me: failed program was:" >&5
5052 cat conftest.
$ac_ext >&5
5055 rm -f conftest.
$ac_objext conftest.
$ac_ext
5056 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5057 echo "${ECHO_T}$sol_lfs_bug" >&6
5058 if test "$sol_lfs_bug" = "yes"; then
5062 if test "$use_lfs" = "yes"; then
5063 # Two defines needed to enable largefile support on various platforms
5064 # These may affect some typedefs
5066 cat >>confdefs.h
<<\_ACEOF
5067 #define _LARGEFILE_SOURCE 1
5071 cat >>confdefs.h
<<\_ACEOF
5072 #define _FILE_OFFSET_BITS 64
5077 # Add some code to confdefs.h so that the test for off_t works on SCO
5078 cat >> confdefs.h
<<\EOF
5084 # Type availability checks
5085 echo "$as_me:$LINENO: checking for mode_t" >&5
5086 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5087 if test "${ac_cv_type_mode_t+set}" = set; then
5088 echo $ECHO_N "(cached) $ECHO_C" >&6
5090 cat >conftest.
$ac_ext <<_ACEOF
5091 #line $LINENO "configure"
5092 #include "confdefs.h"
5093 $ac_includes_default
5094 #ifdef F77_DUMMY_MAIN
5098 int F77_DUMMY_MAIN() { return 1; }
5105 if (sizeof (mode_t))
5111 rm -f conftest.
$ac_objext
5112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5113 (eval $ac_compile) 2>&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); } &&
5117 { ac_try
='test -s conftest.$ac_objext'
5118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); }; }; then
5123 ac_cv_type_mode_t
=yes
5125 echo "$as_me: failed program was:" >&5
5126 cat conftest.
$ac_ext >&5
5127 ac_cv_type_mode_t
=no
5129 rm -f conftest.
$ac_objext conftest.
$ac_ext
5131 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5132 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5133 if test $ac_cv_type_mode_t = yes; then
5137 cat >>confdefs.h
<<_ACEOF
5143 echo "$as_me:$LINENO: checking for off_t" >&5
5144 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5145 if test "${ac_cv_type_off_t+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5148 cat >conftest.
$ac_ext <<_ACEOF
5149 #line $LINENO "configure"
5150 #include "confdefs.h"
5151 $ac_includes_default
5152 #ifdef F77_DUMMY_MAIN
5156 int F77_DUMMY_MAIN() { return 1; }
5169 rm -f conftest.
$ac_objext
5170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5171 (eval $ac_compile) 2>&5
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); } &&
5175 { ac_try
='test -s conftest.$ac_objext'
5176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); }; }; then
5181 ac_cv_type_off_t
=yes
5183 echo "$as_me: failed program was:" >&5
5184 cat conftest.
$ac_ext >&5
5187 rm -f conftest.
$ac_objext conftest.
$ac_ext
5189 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5190 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5191 if test $ac_cv_type_off_t = yes; then
5195 cat >>confdefs.h
<<_ACEOF
5201 echo "$as_me:$LINENO: checking for pid_t" >&5
5202 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5203 if test "${ac_cv_type_pid_t+set}" = set; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5206 cat >conftest.
$ac_ext <<_ACEOF
5207 #line $LINENO "configure"
5208 #include "confdefs.h"
5209 $ac_includes_default
5210 #ifdef F77_DUMMY_MAIN
5214 int F77_DUMMY_MAIN() { return 1; }
5227 rm -f conftest.
$ac_objext
5228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5229 (eval $ac_compile) 2>&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); } &&
5233 { ac_try
='test -s conftest.$ac_objext'
5234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); }; }; then
5239 ac_cv_type_pid_t
=yes
5241 echo "$as_me: failed program was:" >&5
5242 cat conftest.
$ac_ext >&5
5245 rm -f conftest.
$ac_objext conftest.
$ac_ext
5247 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5248 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
5249 if test $ac_cv_type_pid_t = yes; then
5253 cat >>confdefs.h
<<_ACEOF
5259 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5260 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5261 if test "${ac_cv_type_signal+set}" = set; then
5262 echo $ECHO_N "(cached) $ECHO_C" >&6
5264 cat >conftest.
$ac_ext <<_ACEOF
5265 #line $LINENO "configure"
5266 #include "confdefs.h"
5267 #include <sys/types.h>
5273 extern "C" void (*signal (int, void (*)(int)))(int);
5275 void (*signal ()) ();
5278 #ifdef F77_DUMMY_MAIN
5282 int F77_DUMMY_MAIN() { return 1; }
5292 rm -f conftest.
$ac_objext
5293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5294 (eval $ac_compile) 2>&5
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); } &&
5298 { ac_try
='test -s conftest.$ac_objext'
5299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); }; }; then
5304 ac_cv_type_signal
=void
5306 echo "$as_me: failed program was:" >&5
5307 cat conftest.
$ac_ext >&5
5308 ac_cv_type_signal
=int
5310 rm -f conftest.
$ac_objext conftest.
$ac_ext
5312 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5313 echo "${ECHO_T}$ac_cv_type_signal" >&6
5315 cat >>confdefs.h
<<_ACEOF
5316 #define RETSIGTYPE $ac_cv_type_signal
5320 echo "$as_me:$LINENO: checking for size_t" >&5
5321 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5322 if test "${ac_cv_type_size_t+set}" = set; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5325 cat >conftest.
$ac_ext <<_ACEOF
5326 #line $LINENO "configure"
5327 #include "confdefs.h"
5328 $ac_includes_default
5329 #ifdef F77_DUMMY_MAIN
5333 int F77_DUMMY_MAIN() { return 1; }
5340 if (sizeof (size_t))
5346 rm -f conftest.
$ac_objext
5347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5348 (eval $ac_compile) 2>&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); } &&
5352 { ac_try
='test -s conftest.$ac_objext'
5353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); }; }; then
5358 ac_cv_type_size_t
=yes
5360 echo "$as_me: failed program was:" >&5
5361 cat conftest.
$ac_ext >&5
5362 ac_cv_type_size_t
=no
5364 rm -f conftest.
$ac_objext conftest.
$ac_ext
5366 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5367 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5368 if test $ac_cv_type_size_t = yes; then
5372 cat >>confdefs.h
<<_ACEOF
5373 #define size_t unsigned
5378 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5379 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
5380 if test "${ac_cv_type_uid_t+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5383 cat >conftest.
$ac_ext <<_ACEOF
5384 #line $LINENO "configure"
5385 #include "confdefs.h"
5386 #include <sys/types.h>
5389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5390 egrep "uid_t" >/dev
/null
2>&1; then
5391 ac_cv_type_uid_t
=yes
5398 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5399 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5400 if test $ac_cv_type_uid_t = no
; then
5402 cat >>confdefs.h
<<\_ACEOF
5407 cat >>confdefs.h
<<\_ACEOF
5414 # Sizes of various common basic types
5415 echo "$as_me:$LINENO: checking for int" >&5
5416 echo $ECHO_N "checking for int... $ECHO_C" >&6
5417 if test "${ac_cv_type_int+set}" = set; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5420 cat >conftest.
$ac_ext <<_ACEOF
5421 #line $LINENO "configure"
5422 #include "confdefs.h"
5423 $ac_includes_default
5424 #ifdef F77_DUMMY_MAIN
5428 int F77_DUMMY_MAIN() { return 1; }
5441 rm -f conftest.
$ac_objext
5442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5443 (eval $ac_compile) 2>&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); } &&
5447 { ac_try
='test -s conftest.$ac_objext'
5448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }; }; then
5455 echo "$as_me: failed program was:" >&5
5456 cat conftest.
$ac_ext >&5
5459 rm -f conftest.
$ac_objext conftest.
$ac_ext
5461 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5462 echo "${ECHO_T}$ac_cv_type_int" >&6
5464 echo "$as_me:$LINENO: checking size of int" >&5
5465 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5466 if test "${ac_cv_sizeof_int+set}" = set; then
5467 echo $ECHO_N "(cached) $ECHO_C" >&6
5469 if test "$ac_cv_type_int" = yes; then
5470 # The cast to unsigned long works around a bug in the HP C Compiler
5471 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5472 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5473 # This bug is HP SR number 8606223364.
5474 if test "$cross_compiling" = yes; then
5475 # Depending upon the size, compute the lo and hi bounds.
5476 cat >conftest.
$ac_ext <<_ACEOF
5477 #line $LINENO "configure"
5478 #include "confdefs.h"
5479 $ac_includes_default
5480 #ifdef F77_DUMMY_MAIN
5484 int F77_DUMMY_MAIN() { return 1; }
5489 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5496 rm -f conftest.
$ac_objext
5497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5498 (eval $ac_compile) 2>&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); } &&
5502 { ac_try
='test -s conftest.$ac_objext'
5503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); }; }; then
5510 cat >conftest.
$ac_ext <<_ACEOF
5511 #line $LINENO "configure"
5512 #include "confdefs.h"
5513 $ac_includes_default
5514 #ifdef F77_DUMMY_MAIN
5518 int F77_DUMMY_MAIN() { return 1; }
5523 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5530 rm -f conftest.
$ac_objext
5531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5532 (eval $ac_compile) 2>&5
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); } &&
5536 { ac_try
='test -s conftest.$ac_objext'
5537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); }; }; then
5542 ac_hi
=$ac_mid; break
5544 echo "$as_me: failed program was:" >&5
5545 cat conftest.
$ac_ext >&5
5546 ac_lo
=`expr $ac_mid + 1`
5547 if test $ac_lo -le $ac_mid; then
5551 ac_mid
=`expr 2 '*' $ac_mid + 1`
5553 rm -f conftest.
$ac_objext conftest.
$ac_ext
5556 echo "$as_me: failed program was:" >&5
5557 cat conftest.
$ac_ext >&5
5558 cat >conftest.
$ac_ext <<_ACEOF
5559 #line $LINENO "configure"
5560 #include "confdefs.h"
5561 $ac_includes_default
5562 #ifdef F77_DUMMY_MAIN
5566 int F77_DUMMY_MAIN() { return 1; }
5571 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5578 rm -f conftest.
$ac_objext
5579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5580 (eval $ac_compile) 2>&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } &&
5584 { ac_try
='test -s conftest.$ac_objext'
5585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }; }; then
5592 cat >conftest.
$ac_ext <<_ACEOF
5593 #line $LINENO "configure"
5594 #include "confdefs.h"
5595 $ac_includes_default
5596 #ifdef F77_DUMMY_MAIN
5600 int F77_DUMMY_MAIN() { return 1; }
5605 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5612 rm -f conftest.
$ac_objext
5613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5614 (eval $ac_compile) 2>&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); } &&
5618 { ac_try
='test -s conftest.$ac_objext'
5619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); }; }; then
5624 ac_lo
=$ac_mid; break
5626 echo "$as_me: failed program was:" >&5
5627 cat conftest.
$ac_ext >&5
5628 ac_hi
=`expr '(' $ac_mid ')' - 1`
5629 if test $ac_mid -le $ac_hi; then
5633 ac_mid
=`expr 2 '*' $ac_mid`
5635 rm -f conftest.
$ac_objext conftest.
$ac_ext
5638 echo "$as_me: failed program was:" >&5
5639 cat conftest.
$ac_ext >&5
5642 rm -f conftest.
$ac_objext conftest.
$ac_ext
5644 rm -f conftest.
$ac_objext conftest.
$ac_ext
5645 # Binary search between lo and hi bounds.
5646 while test "x$ac_lo" != "x$ac_hi"; do
5647 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5648 cat >conftest.
$ac_ext <<_ACEOF
5649 #line $LINENO "configure"
5650 #include "confdefs.h"
5651 $ac_includes_default
5652 #ifdef F77_DUMMY_MAIN
5656 int F77_DUMMY_MAIN() { return 1; }
5661 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5668 rm -f conftest.
$ac_objext
5669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5670 (eval $ac_compile) 2>&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } &&
5674 { ac_try
='test -s conftest.$ac_objext'
5675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; }; then
5682 echo "$as_me: failed program was:" >&5
5683 cat conftest.
$ac_ext >&5
5684 ac_lo
=`expr '(' $ac_mid ')' + 1`
5686 rm -f conftest.
$ac_objext conftest.
$ac_ext
5689 ?
*) ac_cv_sizeof_int
=$ac_lo;;
5690 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
5691 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
5692 { (exit 1); exit 1; }; } ;;
5695 if test "$cross_compiling" = yes; then
5696 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5697 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5698 { (exit 1); exit 1; }; }
5700 cat >conftest.
$ac_ext <<_ACEOF
5701 #line $LINENO "configure"
5702 #include "confdefs.h"
5703 $ac_includes_default
5704 long longval () { return (long) (sizeof (int)); }
5705 unsigned long ulongval () { return (long) (sizeof (int)); }
5708 #ifdef F77_DUMMY_MAIN
5712 int F77_DUMMY_MAIN() { return 1; }
5718 FILE *f = fopen ("conftest.val", "w");
5721 if (((long) (sizeof (int))) < 0)
5723 long i = longval ();
5724 if (i != ((long) (sizeof (int))))
5726 fprintf (f, "%ld\n", i);
5730 unsigned long i = ulongval ();
5731 if (i != ((long) (sizeof (int))))
5733 fprintf (f, "%lu\n", i);
5735 exit (ferror (f) || fclose (f) != 0);
5741 rm -f conftest
$ac_exeext
5742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5743 (eval $ac_link) 2>&5
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; }; then
5752 ac_cv_sizeof_int
=`cat conftest.val`
5754 echo "$as_me: program exited with status $ac_status" >&5
5755 echo "$as_me: failed program was:" >&5
5756 cat conftest.
$ac_ext >&5
5758 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
5759 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
5760 { (exit 1); exit 1; }; }
5762 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5770 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5771 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5772 cat >>confdefs.h
<<_ACEOF
5773 #define SIZEOF_INT $ac_cv_sizeof_int
5777 echo "$as_me:$LINENO: checking for long" >&5
5778 echo $ECHO_N "checking for long... $ECHO_C" >&6
5779 if test "${ac_cv_type_long+set}" = set; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
5782 cat >conftest.
$ac_ext <<_ACEOF
5783 #line $LINENO "configure"
5784 #include "confdefs.h"
5785 $ac_includes_default
5786 #ifdef F77_DUMMY_MAIN
5790 int F77_DUMMY_MAIN() { return 1; }
5803 rm -f conftest.
$ac_objext
5804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5805 (eval $ac_compile) 2>&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); } &&
5809 { ac_try
='test -s conftest.$ac_objext'
5810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; }; then
5817 echo "$as_me: failed program was:" >&5
5818 cat conftest.
$ac_ext >&5
5821 rm -f conftest.
$ac_objext conftest.
$ac_ext
5823 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5824 echo "${ECHO_T}$ac_cv_type_long" >&6
5826 echo "$as_me:$LINENO: checking size of long" >&5
5827 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5828 if test "${ac_cv_sizeof_long+set}" = set; then
5829 echo $ECHO_N "(cached) $ECHO_C" >&6
5831 if test "$ac_cv_type_long" = yes; then
5832 # The cast to unsigned long works around a bug in the HP C Compiler
5833 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5834 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5835 # This bug is HP SR number 8606223364.
5836 if test "$cross_compiling" = yes; then
5837 # Depending upon the size, compute the lo and hi bounds.
5838 cat >conftest.
$ac_ext <<_ACEOF
5839 #line $LINENO "configure"
5840 #include "confdefs.h"
5841 $ac_includes_default
5842 #ifdef F77_DUMMY_MAIN
5846 int F77_DUMMY_MAIN() { return 1; }
5851 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5858 rm -f conftest.
$ac_objext
5859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5860 (eval $ac_compile) 2>&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } &&
5864 { ac_try
='test -s conftest.$ac_objext'
5865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }; }; then
5872 cat >conftest.
$ac_ext <<_ACEOF
5873 #line $LINENO "configure"
5874 #include "confdefs.h"
5875 $ac_includes_default
5876 #ifdef F77_DUMMY_MAIN
5880 int F77_DUMMY_MAIN() { return 1; }
5885 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5892 rm -f conftest.
$ac_objext
5893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5894 (eval $ac_compile) 2>&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); } &&
5898 { ac_try
='test -s conftest.$ac_objext'
5899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); }; }; then
5904 ac_hi
=$ac_mid; break
5906 echo "$as_me: failed program was:" >&5
5907 cat conftest.
$ac_ext >&5
5908 ac_lo
=`expr $ac_mid + 1`
5909 if test $ac_lo -le $ac_mid; then
5913 ac_mid
=`expr 2 '*' $ac_mid + 1`
5915 rm -f conftest.
$ac_objext conftest.
$ac_ext
5918 echo "$as_me: failed program was:" >&5
5919 cat conftest.
$ac_ext >&5
5920 cat >conftest.
$ac_ext <<_ACEOF
5921 #line $LINENO "configure"
5922 #include "confdefs.h"
5923 $ac_includes_default
5924 #ifdef F77_DUMMY_MAIN
5928 int F77_DUMMY_MAIN() { return 1; }
5933 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5940 rm -f conftest.
$ac_objext
5941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5942 (eval $ac_compile) 2>&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); } &&
5946 { ac_try
='test -s conftest.$ac_objext'
5947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }; }; then
5954 cat >conftest.
$ac_ext <<_ACEOF
5955 #line $LINENO "configure"
5956 #include "confdefs.h"
5957 $ac_includes_default
5958 #ifdef F77_DUMMY_MAIN
5962 int F77_DUMMY_MAIN() { return 1; }
5967 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5974 rm -f conftest.
$ac_objext
5975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5976 (eval $ac_compile) 2>&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } &&
5980 { ac_try
='test -s conftest.$ac_objext'
5981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); }; }; then
5986 ac_lo
=$ac_mid; break
5988 echo "$as_me: failed program was:" >&5
5989 cat conftest.
$ac_ext >&5
5990 ac_hi
=`expr '(' $ac_mid ')' - 1`
5991 if test $ac_mid -le $ac_hi; then
5995 ac_mid
=`expr 2 '*' $ac_mid`
5997 rm -f conftest.
$ac_objext conftest.
$ac_ext
6000 echo "$as_me: failed program was:" >&5
6001 cat conftest.
$ac_ext >&5
6004 rm -f conftest.
$ac_objext conftest.
$ac_ext
6006 rm -f conftest.
$ac_objext conftest.
$ac_ext
6007 # Binary search between lo and hi bounds.
6008 while test "x$ac_lo" != "x$ac_hi"; do
6009 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6010 cat >conftest.
$ac_ext <<_ACEOF
6011 #line $LINENO "configure"
6012 #include "confdefs.h"
6013 $ac_includes_default
6014 #ifdef F77_DUMMY_MAIN
6018 int F77_DUMMY_MAIN() { return 1; }
6023 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6030 rm -f conftest.
$ac_objext
6031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6032 (eval $ac_compile) 2>&5
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); } &&
6036 { ac_try
='test -s conftest.$ac_objext'
6037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); }; }; then
6044 echo "$as_me: failed program was:" >&5
6045 cat conftest.
$ac_ext >&5
6046 ac_lo
=`expr '(' $ac_mid ')' + 1`
6048 rm -f conftest.
$ac_objext conftest.
$ac_ext
6051 ?
*) ac_cv_sizeof_long
=$ac_lo;;
6052 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
6053 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
6054 { (exit 1); exit 1; }; } ;;
6057 if test "$cross_compiling" = yes; then
6058 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6059 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6060 { (exit 1); exit 1; }; }
6062 cat >conftest.
$ac_ext <<_ACEOF
6063 #line $LINENO "configure"
6064 #include "confdefs.h"
6065 $ac_includes_default
6066 long longval () { return (long) (sizeof (long)); }
6067 unsigned long ulongval () { return (long) (sizeof (long)); }
6070 #ifdef F77_DUMMY_MAIN
6074 int F77_DUMMY_MAIN() { return 1; }
6080 FILE *f = fopen ("conftest.val", "w");
6083 if (((long) (sizeof (long))) < 0)
6085 long i = longval ();
6086 if (i != ((long) (sizeof (long))))
6088 fprintf (f, "%ld\n", i);
6092 unsigned long i = ulongval ();
6093 if (i != ((long) (sizeof (long))))
6095 fprintf (f, "%lu\n", i);
6097 exit (ferror (f) || fclose (f) != 0);
6103 rm -f conftest
$ac_exeext
6104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6105 (eval $ac_link) 2>&5
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); }; }; then
6114 ac_cv_sizeof_long
=`cat conftest.val`
6116 echo "$as_me: program exited with status $ac_status" >&5
6117 echo "$as_me: failed program was:" >&5
6118 cat conftest.
$ac_ext >&5
6120 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
6121 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
6122 { (exit 1); exit 1; }; }
6124 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6132 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6133 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6134 cat >>confdefs.h
<<_ACEOF
6135 #define SIZEOF_LONG $ac_cv_sizeof_long
6139 echo "$as_me:$LINENO: checking for void *" >&5
6140 echo $ECHO_N "checking for void *... $ECHO_C" >&6
6141 if test "${ac_cv_type_void_p+set}" = set; then
6142 echo $ECHO_N "(cached) $ECHO_C" >&6
6144 cat >conftest.
$ac_ext <<_ACEOF
6145 #line $LINENO "configure"
6146 #include "confdefs.h"
6147 $ac_includes_default
6148 #ifdef F77_DUMMY_MAIN
6152 int F77_DUMMY_MAIN() { return 1; }
6159 if (sizeof (void *))
6165 rm -f conftest.
$ac_objext
6166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6167 (eval $ac_compile) 2>&5
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); } &&
6171 { ac_try
='test -s conftest.$ac_objext'
6172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); }; }; then
6177 ac_cv_type_void_p
=yes
6179 echo "$as_me: failed program was:" >&5
6180 cat conftest.
$ac_ext >&5
6181 ac_cv_type_void_p
=no
6183 rm -f conftest.
$ac_objext conftest.
$ac_ext
6185 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
6186 echo "${ECHO_T}$ac_cv_type_void_p" >&6
6188 echo "$as_me:$LINENO: checking size of void *" >&5
6189 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
6190 if test "${ac_cv_sizeof_void_p+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6193 if test "$ac_cv_type_void_p" = yes; then
6194 # The cast to unsigned long works around a bug in the HP C Compiler
6195 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6196 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6197 # This bug is HP SR number 8606223364.
6198 if test "$cross_compiling" = yes; then
6199 # Depending upon the size, compute the lo and hi bounds.
6200 cat >conftest.
$ac_ext <<_ACEOF
6201 #line $LINENO "configure"
6202 #include "confdefs.h"
6203 $ac_includes_default
6204 #ifdef F77_DUMMY_MAIN
6208 int F77_DUMMY_MAIN() { return 1; }
6213 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
6220 rm -f conftest.
$ac_objext
6221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6222 (eval $ac_compile) 2>&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); } &&
6226 { ac_try
='test -s conftest.$ac_objext'
6227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; }; then
6234 cat >conftest.
$ac_ext <<_ACEOF
6235 #line $LINENO "configure"
6236 #include "confdefs.h"
6237 $ac_includes_default
6238 #ifdef F77_DUMMY_MAIN
6242 int F77_DUMMY_MAIN() { return 1; }
6247 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6254 rm -f conftest.
$ac_objext
6255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6256 (eval $ac_compile) 2>&5
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); } &&
6260 { ac_try
='test -s conftest.$ac_objext'
6261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); }; }; then
6266 ac_hi
=$ac_mid; break
6268 echo "$as_me: failed program was:" >&5
6269 cat conftest.
$ac_ext >&5
6270 ac_lo
=`expr $ac_mid + 1`
6271 if test $ac_lo -le $ac_mid; then
6275 ac_mid
=`expr 2 '*' $ac_mid + 1`
6277 rm -f conftest.
$ac_objext conftest.
$ac_ext
6280 echo "$as_me: failed program was:" >&5
6281 cat conftest.
$ac_ext >&5
6282 cat >conftest.
$ac_ext <<_ACEOF
6283 #line $LINENO "configure"
6284 #include "confdefs.h"
6285 $ac_includes_default
6286 #ifdef F77_DUMMY_MAIN
6290 int F77_DUMMY_MAIN() { return 1; }
6295 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
6302 rm -f conftest.
$ac_objext
6303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6304 (eval $ac_compile) 2>&5
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); } &&
6308 { ac_try
='test -s conftest.$ac_objext'
6309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); }; }; then
6316 cat >conftest.
$ac_ext <<_ACEOF
6317 #line $LINENO "configure"
6318 #include "confdefs.h"
6319 $ac_includes_default
6320 #ifdef F77_DUMMY_MAIN
6324 int F77_DUMMY_MAIN() { return 1; }
6329 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
6336 rm -f conftest.
$ac_objext
6337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6338 (eval $ac_compile) 2>&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } &&
6342 { ac_try
='test -s conftest.$ac_objext'
6343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }; }; then
6348 ac_lo
=$ac_mid; break
6350 echo "$as_me: failed program was:" >&5
6351 cat conftest.
$ac_ext >&5
6352 ac_hi
=`expr '(' $ac_mid ')' - 1`
6353 if test $ac_mid -le $ac_hi; then
6357 ac_mid
=`expr 2 '*' $ac_mid`
6359 rm -f conftest.
$ac_objext conftest.
$ac_ext
6362 echo "$as_me: failed program was:" >&5
6363 cat conftest.
$ac_ext >&5
6366 rm -f conftest.
$ac_objext conftest.
$ac_ext
6368 rm -f conftest.
$ac_objext conftest.
$ac_ext
6369 # Binary search between lo and hi bounds.
6370 while test "x$ac_lo" != "x$ac_hi"; do
6371 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6372 cat >conftest.
$ac_ext <<_ACEOF
6373 #line $LINENO "configure"
6374 #include "confdefs.h"
6375 $ac_includes_default
6376 #ifdef F77_DUMMY_MAIN
6380 int F77_DUMMY_MAIN() { return 1; }
6385 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6392 rm -f conftest.
$ac_objext
6393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6394 (eval $ac_compile) 2>&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } &&
6398 { ac_try
='test -s conftest.$ac_objext'
6399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; }; then
6406 echo "$as_me: failed program was:" >&5
6407 cat conftest.
$ac_ext >&5
6408 ac_lo
=`expr '(' $ac_mid ')' + 1`
6410 rm -f conftest.
$ac_objext conftest.
$ac_ext
6413 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
6414 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5
6415 echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;}
6416 { (exit 1); exit 1; }; } ;;
6419 if test "$cross_compiling" = yes; then
6420 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6421 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6422 { (exit 1); exit 1; }; }
6424 cat >conftest.
$ac_ext <<_ACEOF
6425 #line $LINENO "configure"
6426 #include "confdefs.h"
6427 $ac_includes_default
6428 long longval () { return (long) (sizeof (void *)); }
6429 unsigned long ulongval () { return (long) (sizeof (void *)); }
6432 #ifdef F77_DUMMY_MAIN
6436 int F77_DUMMY_MAIN() { return 1; }
6442 FILE *f = fopen ("conftest.val", "w");
6445 if (((long) (sizeof (void *))) < 0)
6447 long i = longval ();
6448 if (i != ((long) (sizeof (void *))))
6450 fprintf (f, "%ld\n", i);
6454 unsigned long i = ulongval ();
6455 if (i != ((long) (sizeof (void *))))
6457 fprintf (f, "%lu\n", i);
6459 exit (ferror (f) || fclose (f) != 0);
6465 rm -f conftest
$ac_exeext
6466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6467 (eval $ac_link) 2>&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); }; }; then
6476 ac_cv_sizeof_void_p
=`cat conftest.val`
6478 echo "$as_me: program exited with status $ac_status" >&5
6479 echo "$as_me: failed program was:" >&5
6480 cat conftest.
$ac_ext >&5
6482 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5
6483 echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;}
6484 { (exit 1); exit 1; }; }
6486 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6491 ac_cv_sizeof_void_p
=0
6494 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6495 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
6496 cat >>confdefs.h
<<_ACEOF
6497 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6501 echo "$as_me:$LINENO: checking for char" >&5
6502 echo $ECHO_N "checking for char... $ECHO_C" >&6
6503 if test "${ac_cv_type_char+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6506 cat >conftest.
$ac_ext <<_ACEOF
6507 #line $LINENO "configure"
6508 #include "confdefs.h"
6509 $ac_includes_default
6510 #ifdef F77_DUMMY_MAIN
6514 int F77_DUMMY_MAIN() { return 1; }
6527 rm -f conftest.
$ac_objext
6528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6529 (eval $ac_compile) 2>&5
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); } &&
6533 { ac_try
='test -s conftest.$ac_objext'
6534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); }; }; then
6541 echo "$as_me: failed program was:" >&5
6542 cat conftest.
$ac_ext >&5
6545 rm -f conftest.
$ac_objext conftest.
$ac_ext
6547 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
6548 echo "${ECHO_T}$ac_cv_type_char" >&6
6550 echo "$as_me:$LINENO: checking size of char" >&5
6551 echo $ECHO_N "checking size of char... $ECHO_C" >&6
6552 if test "${ac_cv_sizeof_char+set}" = set; then
6553 echo $ECHO_N "(cached) $ECHO_C" >&6
6555 if test "$ac_cv_type_char" = yes; then
6556 # The cast to unsigned long works around a bug in the HP C Compiler
6557 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6558 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6559 # This bug is HP SR number 8606223364.
6560 if test "$cross_compiling" = yes; then
6561 # Depending upon the size, compute the lo and hi bounds.
6562 cat >conftest.
$ac_ext <<_ACEOF
6563 #line $LINENO "configure"
6564 #include "confdefs.h"
6565 $ac_includes_default
6566 #ifdef F77_DUMMY_MAIN
6570 int F77_DUMMY_MAIN() { return 1; }
6575 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
6582 rm -f conftest.
$ac_objext
6583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6584 (eval $ac_compile) 2>&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); } &&
6588 { ac_try
='test -s conftest.$ac_objext'
6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; }; then
6596 cat >conftest.
$ac_ext <<_ACEOF
6597 #line $LINENO "configure"
6598 #include "confdefs.h"
6599 $ac_includes_default
6600 #ifdef F77_DUMMY_MAIN
6604 int F77_DUMMY_MAIN() { return 1; }
6609 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
6616 rm -f conftest.
$ac_objext
6617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6618 (eval $ac_compile) 2>&5
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); } &&
6622 { ac_try
='test -s conftest.$ac_objext'
6623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); }; }; then
6628 ac_hi
=$ac_mid; break
6630 echo "$as_me: failed program was:" >&5
6631 cat conftest.
$ac_ext >&5
6632 ac_lo
=`expr $ac_mid + 1`
6633 if test $ac_lo -le $ac_mid; then
6637 ac_mid
=`expr 2 '*' $ac_mid + 1`
6639 rm -f conftest.
$ac_objext conftest.
$ac_ext
6642 echo "$as_me: failed program was:" >&5
6643 cat conftest.
$ac_ext >&5
6644 cat >conftest.
$ac_ext <<_ACEOF
6645 #line $LINENO "configure"
6646 #include "confdefs.h"
6647 $ac_includes_default
6648 #ifdef F77_DUMMY_MAIN
6652 int F77_DUMMY_MAIN() { return 1; }
6657 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
6664 rm -f conftest.
$ac_objext
6665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6666 (eval $ac_compile) 2>&5
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); } &&
6670 { ac_try
='test -s conftest.$ac_objext'
6671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); }; }; then
6678 cat >conftest.
$ac_ext <<_ACEOF
6679 #line $LINENO "configure"
6680 #include "confdefs.h"
6681 $ac_includes_default
6682 #ifdef F77_DUMMY_MAIN
6686 int F77_DUMMY_MAIN() { return 1; }
6691 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
6698 rm -f conftest.
$ac_objext
6699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6700 (eval $ac_compile) 2>&5
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); } &&
6704 { ac_try
='test -s conftest.$ac_objext'
6705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); }; }; then
6710 ac_lo
=$ac_mid; break
6712 echo "$as_me: failed program was:" >&5
6713 cat conftest.
$ac_ext >&5
6714 ac_hi
=`expr '(' $ac_mid ')' - 1`
6715 if test $ac_mid -le $ac_hi; then
6719 ac_mid
=`expr 2 '*' $ac_mid`
6721 rm -f conftest.
$ac_objext conftest.
$ac_ext
6724 echo "$as_me: failed program was:" >&5
6725 cat conftest.
$ac_ext >&5
6728 rm -f conftest.
$ac_objext conftest.
$ac_ext
6730 rm -f conftest.
$ac_objext conftest.
$ac_ext
6731 # Binary search between lo and hi bounds.
6732 while test "x$ac_lo" != "x$ac_hi"; do
6733 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6734 cat >conftest.
$ac_ext <<_ACEOF
6735 #line $LINENO "configure"
6736 #include "confdefs.h"
6737 $ac_includes_default
6738 #ifdef F77_DUMMY_MAIN
6742 int F77_DUMMY_MAIN() { return 1; }
6747 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
6754 rm -f conftest.
$ac_objext
6755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6756 (eval $ac_compile) 2>&5
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); } &&
6760 { ac_try
='test -s conftest.$ac_objext'
6761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); }; }; then
6768 echo "$as_me: failed program was:" >&5
6769 cat conftest.
$ac_ext >&5
6770 ac_lo
=`expr '(' $ac_mid ')' + 1`
6772 rm -f conftest.
$ac_objext conftest.
$ac_ext
6775 ?
*) ac_cv_sizeof_char
=$ac_lo;;
6776 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
6777 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
6778 { (exit 1); exit 1; }; } ;;
6781 if test "$cross_compiling" = yes; then
6782 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6783 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6784 { (exit 1); exit 1; }; }
6786 cat >conftest.
$ac_ext <<_ACEOF
6787 #line $LINENO "configure"
6788 #include "confdefs.h"
6789 $ac_includes_default
6790 long longval () { return (long) (sizeof (char)); }
6791 unsigned long ulongval () { return (long) (sizeof (char)); }
6794 #ifdef F77_DUMMY_MAIN
6798 int F77_DUMMY_MAIN() { return 1; }
6804 FILE *f = fopen ("conftest.val", "w");
6807 if (((long) (sizeof (char))) < 0)
6809 long i = longval ();
6810 if (i != ((long) (sizeof (char))))
6812 fprintf (f, "%ld\n", i);
6816 unsigned long i = ulongval ();
6817 if (i != ((long) (sizeof (char))))
6819 fprintf (f, "%lu\n", i);
6821 exit (ferror (f) || fclose (f) != 0);
6827 rm -f conftest
$ac_exeext
6828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6829 (eval $ac_link) 2>&5
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); }; }; then
6838 ac_cv_sizeof_char
=`cat conftest.val`
6840 echo "$as_me: program exited with status $ac_status" >&5
6841 echo "$as_me: failed program was:" >&5
6842 cat conftest.
$ac_ext >&5
6844 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
6845 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
6846 { (exit 1); exit 1; }; }
6848 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6856 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
6857 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
6858 cat >>confdefs.h
<<_ACEOF
6859 #define SIZEOF_CHAR $ac_cv_sizeof_char
6863 echo "$as_me:$LINENO: checking for short" >&5
6864 echo $ECHO_N "checking for short... $ECHO_C" >&6
6865 if test "${ac_cv_type_short+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6868 cat >conftest.
$ac_ext <<_ACEOF
6869 #line $LINENO "configure"
6870 #include "confdefs.h"
6871 $ac_includes_default
6872 #ifdef F77_DUMMY_MAIN
6876 int F77_DUMMY_MAIN() { return 1; }
6889 rm -f conftest.
$ac_objext
6890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6891 (eval $ac_compile) 2>&5
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); } &&
6895 { ac_try
='test -s conftest.$ac_objext'
6896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); }; }; then
6901 ac_cv_type_short
=yes
6903 echo "$as_me: failed program was:" >&5
6904 cat conftest.
$ac_ext >&5
6907 rm -f conftest.
$ac_objext conftest.
$ac_ext
6909 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
6910 echo "${ECHO_T}$ac_cv_type_short" >&6
6912 echo "$as_me:$LINENO: checking size of short" >&5
6913 echo $ECHO_N "checking size of short... $ECHO_C" >&6
6914 if test "${ac_cv_sizeof_short+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
6917 if test "$ac_cv_type_short" = yes; then
6918 # The cast to unsigned long works around a bug in the HP C Compiler
6919 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6920 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6921 # This bug is HP SR number 8606223364.
6922 if test "$cross_compiling" = yes; then
6923 # Depending upon the size, compute the lo and hi bounds.
6924 cat >conftest.
$ac_ext <<_ACEOF
6925 #line $LINENO "configure"
6926 #include "confdefs.h"
6927 $ac_includes_default
6928 #ifdef F77_DUMMY_MAIN
6932 int F77_DUMMY_MAIN() { return 1; }
6937 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
6944 rm -f conftest.
$ac_objext
6945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6946 (eval $ac_compile) 2>&5
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); } &&
6950 { ac_try
='test -s conftest.$ac_objext'
6951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); }; }; then
6958 cat >conftest.
$ac_ext <<_ACEOF
6959 #line $LINENO "configure"
6960 #include "confdefs.h"
6961 $ac_includes_default
6962 #ifdef F77_DUMMY_MAIN
6966 int F77_DUMMY_MAIN() { return 1; }
6971 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6978 rm -f conftest.
$ac_objext
6979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6980 (eval $ac_compile) 2>&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); } &&
6984 { ac_try
='test -s conftest.$ac_objext'
6985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); }; }; then
6990 ac_hi
=$ac_mid; break
6992 echo "$as_me: failed program was:" >&5
6993 cat conftest.
$ac_ext >&5
6994 ac_lo
=`expr $ac_mid + 1`
6995 if test $ac_lo -le $ac_mid; then
6999 ac_mid
=`expr 2 '*' $ac_mid + 1`
7001 rm -f conftest.
$ac_objext conftest.
$ac_ext
7004 echo "$as_me: failed program was:" >&5
7005 cat conftest.
$ac_ext >&5
7006 cat >conftest.
$ac_ext <<_ACEOF
7007 #line $LINENO "configure"
7008 #include "confdefs.h"
7009 $ac_includes_default
7010 #ifdef F77_DUMMY_MAIN
7014 int F77_DUMMY_MAIN() { return 1; }
7019 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7026 rm -f conftest.
$ac_objext
7027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7028 (eval $ac_compile) 2>&5
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); } &&
7032 { ac_try
='test -s conftest.$ac_objext'
7033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); }; }; then
7040 cat >conftest.
$ac_ext <<_ACEOF
7041 #line $LINENO "configure"
7042 #include "confdefs.h"
7043 $ac_includes_default
7044 #ifdef F77_DUMMY_MAIN
7048 int F77_DUMMY_MAIN() { return 1; }
7053 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7060 rm -f conftest.
$ac_objext
7061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7062 (eval $ac_compile) 2>&5
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); } &&
7066 { ac_try
='test -s conftest.$ac_objext'
7067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); }; }; then
7072 ac_lo
=$ac_mid; break
7074 echo "$as_me: failed program was:" >&5
7075 cat conftest.
$ac_ext >&5
7076 ac_hi
=`expr '(' $ac_mid ')' - 1`
7077 if test $ac_mid -le $ac_hi; then
7081 ac_mid
=`expr 2 '*' $ac_mid`
7083 rm -f conftest.
$ac_objext conftest.
$ac_ext
7086 echo "$as_me: failed program was:" >&5
7087 cat conftest.
$ac_ext >&5
7090 rm -f conftest.
$ac_objext conftest.
$ac_ext
7092 rm -f conftest.
$ac_objext conftest.
$ac_ext
7093 # Binary search between lo and hi bounds.
7094 while test "x$ac_lo" != "x$ac_hi"; do
7095 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7096 cat >conftest.
$ac_ext <<_ACEOF
7097 #line $LINENO "configure"
7098 #include "confdefs.h"
7099 $ac_includes_default
7100 #ifdef F77_DUMMY_MAIN
7104 int F77_DUMMY_MAIN() { return 1; }
7109 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7116 rm -f conftest.
$ac_objext
7117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7118 (eval $ac_compile) 2>&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); } &&
7122 { ac_try
='test -s conftest.$ac_objext'
7123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); }; }; then
7130 echo "$as_me: failed program was:" >&5
7131 cat conftest.
$ac_ext >&5
7132 ac_lo
=`expr '(' $ac_mid ')' + 1`
7134 rm -f conftest.
$ac_objext conftest.
$ac_ext
7137 ?
*) ac_cv_sizeof_short
=$ac_lo;;
7138 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
7139 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
7140 { (exit 1); exit 1; }; } ;;
7143 if test "$cross_compiling" = yes; then
7144 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7145 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7146 { (exit 1); exit 1; }; }
7148 cat >conftest.
$ac_ext <<_ACEOF
7149 #line $LINENO "configure"
7150 #include "confdefs.h"
7151 $ac_includes_default
7152 long longval () { return (long) (sizeof (short)); }
7153 unsigned long ulongval () { return (long) (sizeof (short)); }
7156 #ifdef F77_DUMMY_MAIN
7160 int F77_DUMMY_MAIN() { return 1; }
7166 FILE *f = fopen ("conftest.val", "w");
7169 if (((long) (sizeof (short))) < 0)
7171 long i = longval ();
7172 if (i != ((long) (sizeof (short))))
7174 fprintf (f, "%ld\n", i);
7178 unsigned long i = ulongval ();
7179 if (i != ((long) (sizeof (short))))
7181 fprintf (f, "%lu\n", i);
7183 exit (ferror (f) || fclose (f) != 0);
7189 rm -f conftest
$ac_exeext
7190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7191 (eval $ac_link) 2>&5
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); }; }; then
7200 ac_cv_sizeof_short
=`cat conftest.val`
7202 echo "$as_me: program exited with status $ac_status" >&5
7203 echo "$as_me: failed program was:" >&5
7204 cat conftest.
$ac_ext >&5
7206 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
7207 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
7208 { (exit 1); exit 1; }; }
7210 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7215 ac_cv_sizeof_short
=0
7218 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7219 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7220 cat >>confdefs.h
<<_ACEOF
7221 #define SIZEOF_SHORT $ac_cv_sizeof_short
7225 echo "$as_me:$LINENO: checking for float" >&5
7226 echo $ECHO_N "checking for float... $ECHO_C" >&6
7227 if test "${ac_cv_type_float+set}" = set; then
7228 echo $ECHO_N "(cached) $ECHO_C" >&6
7230 cat >conftest.
$ac_ext <<_ACEOF
7231 #line $LINENO "configure"
7232 #include "confdefs.h"
7233 $ac_includes_default
7234 #ifdef F77_DUMMY_MAIN
7238 int F77_DUMMY_MAIN() { return 1; }
7251 rm -f conftest.
$ac_objext
7252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7253 (eval $ac_compile) 2>&5
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); } &&
7257 { ac_try
='test -s conftest.$ac_objext'
7258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262 (exit $ac_status); }; }; then
7263 ac_cv_type_float
=yes
7265 echo "$as_me: failed program was:" >&5
7266 cat conftest.
$ac_ext >&5
7269 rm -f conftest.
$ac_objext conftest.
$ac_ext
7271 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
7272 echo "${ECHO_T}$ac_cv_type_float" >&6
7274 echo "$as_me:$LINENO: checking size of float" >&5
7275 echo $ECHO_N "checking size of float... $ECHO_C" >&6
7276 if test "${ac_cv_sizeof_float+set}" = set; then
7277 echo $ECHO_N "(cached) $ECHO_C" >&6
7279 if test "$ac_cv_type_float" = yes; then
7280 # The cast to unsigned long works around a bug in the HP C Compiler
7281 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7282 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7283 # This bug is HP SR number 8606223364.
7284 if test "$cross_compiling" = yes; then
7285 # Depending upon the size, compute the lo and hi bounds.
7286 cat >conftest.
$ac_ext <<_ACEOF
7287 #line $LINENO "configure"
7288 #include "confdefs.h"
7289 $ac_includes_default
7290 #ifdef F77_DUMMY_MAIN
7294 int F77_DUMMY_MAIN() { return 1; }
7299 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
7306 rm -f conftest.
$ac_objext
7307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7308 (eval $ac_compile) 2>&5
7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); } &&
7312 { ac_try
='test -s conftest.$ac_objext'
7313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); }; }; then
7320 cat >conftest.
$ac_ext <<_ACEOF
7321 #line $LINENO "configure"
7322 #include "confdefs.h"
7323 $ac_includes_default
7324 #ifdef F77_DUMMY_MAIN
7328 int F77_DUMMY_MAIN() { return 1; }
7333 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
7340 rm -f conftest.
$ac_objext
7341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7342 (eval $ac_compile) 2>&5
7344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345 (exit $ac_status); } &&
7346 { ac_try
='test -s conftest.$ac_objext'
7347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); }; }; then
7352 ac_hi
=$ac_mid; break
7354 echo "$as_me: failed program was:" >&5
7355 cat conftest.
$ac_ext >&5
7356 ac_lo
=`expr $ac_mid + 1`
7357 if test $ac_lo -le $ac_mid; then
7361 ac_mid
=`expr 2 '*' $ac_mid + 1`
7363 rm -f conftest.
$ac_objext conftest.
$ac_ext
7366 echo "$as_me: failed program was:" >&5
7367 cat conftest.
$ac_ext >&5
7368 cat >conftest.
$ac_ext <<_ACEOF
7369 #line $LINENO "configure"
7370 #include "confdefs.h"
7371 $ac_includes_default
7372 #ifdef F77_DUMMY_MAIN
7376 int F77_DUMMY_MAIN() { return 1; }
7381 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
7388 rm -f conftest.
$ac_objext
7389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7390 (eval $ac_compile) 2>&5
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); } &&
7394 { ac_try
='test -s conftest.$ac_objext'
7395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); }; }; then
7402 cat >conftest.
$ac_ext <<_ACEOF
7403 #line $LINENO "configure"
7404 #include "confdefs.h"
7405 $ac_includes_default
7406 #ifdef F77_DUMMY_MAIN
7410 int F77_DUMMY_MAIN() { return 1; }
7415 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
7422 rm -f conftest.
$ac_objext
7423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7424 (eval $ac_compile) 2>&5
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); } &&
7428 { ac_try
='test -s conftest.$ac_objext'
7429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); }; }; then
7434 ac_lo
=$ac_mid; break
7436 echo "$as_me: failed program was:" >&5
7437 cat conftest.
$ac_ext >&5
7438 ac_hi
=`expr '(' $ac_mid ')' - 1`
7439 if test $ac_mid -le $ac_hi; then
7443 ac_mid
=`expr 2 '*' $ac_mid`
7445 rm -f conftest.
$ac_objext conftest.
$ac_ext
7448 echo "$as_me: failed program was:" >&5
7449 cat conftest.
$ac_ext >&5
7452 rm -f conftest.
$ac_objext conftest.
$ac_ext
7454 rm -f conftest.
$ac_objext conftest.
$ac_ext
7455 # Binary search between lo and hi bounds.
7456 while test "x$ac_lo" != "x$ac_hi"; do
7457 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7458 cat >conftest.
$ac_ext <<_ACEOF
7459 #line $LINENO "configure"
7460 #include "confdefs.h"
7461 $ac_includes_default
7462 #ifdef F77_DUMMY_MAIN
7466 int F77_DUMMY_MAIN() { return 1; }
7471 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
7478 rm -f conftest.
$ac_objext
7479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7480 (eval $ac_compile) 2>&5
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); } &&
7484 { ac_try
='test -s conftest.$ac_objext'
7485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; }; then
7492 echo "$as_me: failed program was:" >&5
7493 cat conftest.
$ac_ext >&5
7494 ac_lo
=`expr '(' $ac_mid ')' + 1`
7496 rm -f conftest.
$ac_objext conftest.
$ac_ext
7499 ?
*) ac_cv_sizeof_float
=$ac_lo;;
7500 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5
7501 echo "$as_me: error: cannot compute sizeof (float), 77" >&2;}
7502 { (exit 1); exit 1; }; } ;;
7505 if test "$cross_compiling" = yes; then
7506 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7507 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7508 { (exit 1); exit 1; }; }
7510 cat >conftest.
$ac_ext <<_ACEOF
7511 #line $LINENO "configure"
7512 #include "confdefs.h"
7513 $ac_includes_default
7514 long longval () { return (long) (sizeof (float)); }
7515 unsigned long ulongval () { return (long) (sizeof (float)); }
7518 #ifdef F77_DUMMY_MAIN
7522 int F77_DUMMY_MAIN() { return 1; }
7528 FILE *f = fopen ("conftest.val", "w");
7531 if (((long) (sizeof (float))) < 0)
7533 long i = longval ();
7534 if (i != ((long) (sizeof (float))))
7536 fprintf (f, "%ld\n", i);
7540 unsigned long i = ulongval ();
7541 if (i != ((long) (sizeof (float))))
7543 fprintf (f, "%lu\n", i);
7545 exit (ferror (f) || fclose (f) != 0);
7551 rm -f conftest
$ac_exeext
7552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7553 (eval $ac_link) 2>&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); }; }; then
7562 ac_cv_sizeof_float
=`cat conftest.val`
7564 echo "$as_me: program exited with status $ac_status" >&5
7565 echo "$as_me: failed program was:" >&5
7566 cat conftest.
$ac_ext >&5
7568 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5
7569 echo "$as_me: error: cannot compute sizeof (float), 77" >&2;}
7570 { (exit 1); exit 1; }; }
7572 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7577 ac_cv_sizeof_float
=0
7580 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
7581 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
7582 cat >>confdefs.h
<<_ACEOF
7583 #define SIZEOF_FLOAT $ac_cv_sizeof_float
7587 echo "$as_me:$LINENO: checking for double" >&5
7588 echo $ECHO_N "checking for double... $ECHO_C" >&6
7589 if test "${ac_cv_type_double+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7592 cat >conftest.
$ac_ext <<_ACEOF
7593 #line $LINENO "configure"
7594 #include "confdefs.h"
7595 $ac_includes_default
7596 #ifdef F77_DUMMY_MAIN
7600 int F77_DUMMY_MAIN() { return 1; }
7607 if (sizeof (double))
7613 rm -f conftest.
$ac_objext
7614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7615 (eval $ac_compile) 2>&5
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); } &&
7619 { ac_try
='test -s conftest.$ac_objext'
7620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); }; }; then
7625 ac_cv_type_double
=yes
7627 echo "$as_me: failed program was:" >&5
7628 cat conftest.
$ac_ext >&5
7629 ac_cv_type_double
=no
7631 rm -f conftest.
$ac_objext conftest.
$ac_ext
7633 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
7634 echo "${ECHO_T}$ac_cv_type_double" >&6
7636 echo "$as_me:$LINENO: checking size of double" >&5
7637 echo $ECHO_N "checking size of double... $ECHO_C" >&6
7638 if test "${ac_cv_sizeof_double+set}" = set; then
7639 echo $ECHO_N "(cached) $ECHO_C" >&6
7641 if test "$ac_cv_type_double" = yes; then
7642 # The cast to unsigned long works around a bug in the HP C Compiler
7643 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7644 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7645 # This bug is HP SR number 8606223364.
7646 if test "$cross_compiling" = yes; then
7647 # Depending upon the size, compute the lo and hi bounds.
7648 cat >conftest.
$ac_ext <<_ACEOF
7649 #line $LINENO "configure"
7650 #include "confdefs.h"
7651 $ac_includes_default
7652 #ifdef F77_DUMMY_MAIN
7656 int F77_DUMMY_MAIN() { return 1; }
7661 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
7668 rm -f conftest.
$ac_objext
7669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7670 (eval $ac_compile) 2>&5
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); } &&
7674 { ac_try
='test -s conftest.$ac_objext'
7675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); }; }; then
7682 cat >conftest.
$ac_ext <<_ACEOF
7683 #line $LINENO "configure"
7684 #include "confdefs.h"
7685 $ac_includes_default
7686 #ifdef F77_DUMMY_MAIN
7690 int F77_DUMMY_MAIN() { return 1; }
7695 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
7702 rm -f conftest.
$ac_objext
7703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7704 (eval $ac_compile) 2>&5
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); } &&
7708 { ac_try
='test -s conftest.$ac_objext'
7709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); }; }; then
7714 ac_hi
=$ac_mid; break
7716 echo "$as_me: failed program was:" >&5
7717 cat conftest.
$ac_ext >&5
7718 ac_lo
=`expr $ac_mid + 1`
7719 if test $ac_lo -le $ac_mid; then
7723 ac_mid
=`expr 2 '*' $ac_mid + 1`
7725 rm -f conftest.
$ac_objext conftest.
$ac_ext
7728 echo "$as_me: failed program was:" >&5
7729 cat conftest.
$ac_ext >&5
7730 cat >conftest.
$ac_ext <<_ACEOF
7731 #line $LINENO "configure"
7732 #include "confdefs.h"
7733 $ac_includes_default
7734 #ifdef F77_DUMMY_MAIN
7738 int F77_DUMMY_MAIN() { return 1; }
7743 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
7750 rm -f conftest.
$ac_objext
7751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7752 (eval $ac_compile) 2>&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); } &&
7756 { ac_try
='test -s conftest.$ac_objext'
7757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); }; }; then
7764 cat >conftest.
$ac_ext <<_ACEOF
7765 #line $LINENO "configure"
7766 #include "confdefs.h"
7767 $ac_includes_default
7768 #ifdef F77_DUMMY_MAIN
7772 int F77_DUMMY_MAIN() { return 1; }
7777 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
7784 rm -f conftest.
$ac_objext
7785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7786 (eval $ac_compile) 2>&5
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); } &&
7790 { ac_try
='test -s conftest.$ac_objext'
7791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); }; }; then
7796 ac_lo
=$ac_mid; break
7798 echo "$as_me: failed program was:" >&5
7799 cat conftest.
$ac_ext >&5
7800 ac_hi
=`expr '(' $ac_mid ')' - 1`
7801 if test $ac_mid -le $ac_hi; then
7805 ac_mid
=`expr 2 '*' $ac_mid`
7807 rm -f conftest.
$ac_objext conftest.
$ac_ext
7810 echo "$as_me: failed program was:" >&5
7811 cat conftest.
$ac_ext >&5
7814 rm -f conftest.
$ac_objext conftest.
$ac_ext
7816 rm -f conftest.
$ac_objext conftest.
$ac_ext
7817 # Binary search between lo and hi bounds.
7818 while test "x$ac_lo" != "x$ac_hi"; do
7819 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7820 cat >conftest.
$ac_ext <<_ACEOF
7821 #line $LINENO "configure"
7822 #include "confdefs.h"
7823 $ac_includes_default
7824 #ifdef F77_DUMMY_MAIN
7828 int F77_DUMMY_MAIN() { return 1; }
7833 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
7840 rm -f conftest.
$ac_objext
7841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7842 (eval $ac_compile) 2>&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); } &&
7846 { ac_try
='test -s conftest.$ac_objext'
7847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); }; }; then
7854 echo "$as_me: failed program was:" >&5
7855 cat conftest.
$ac_ext >&5
7856 ac_lo
=`expr '(' $ac_mid ')' + 1`
7858 rm -f conftest.
$ac_objext conftest.
$ac_ext
7861 ?
*) ac_cv_sizeof_double
=$ac_lo;;
7862 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5
7863 echo "$as_me: error: cannot compute sizeof (double), 77" >&2;}
7864 { (exit 1); exit 1; }; } ;;
7867 if test "$cross_compiling" = yes; then
7868 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7869 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7870 { (exit 1); exit 1; }; }
7872 cat >conftest.
$ac_ext <<_ACEOF
7873 #line $LINENO "configure"
7874 #include "confdefs.h"
7875 $ac_includes_default
7876 long longval () { return (long) (sizeof (double)); }
7877 unsigned long ulongval () { return (long) (sizeof (double)); }
7880 #ifdef F77_DUMMY_MAIN
7884 int F77_DUMMY_MAIN() { return 1; }
7890 FILE *f = fopen ("conftest.val", "w");
7893 if (((long) (sizeof (double))) < 0)
7895 long i = longval ();
7896 if (i != ((long) (sizeof (double))))
7898 fprintf (f, "%ld\n", i);
7902 unsigned long i = ulongval ();
7903 if (i != ((long) (sizeof (double))))
7905 fprintf (f, "%lu\n", i);
7907 exit (ferror (f) || fclose (f) != 0);
7913 rm -f conftest
$ac_exeext
7914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7915 (eval $ac_link) 2>&5
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); }; }; then
7924 ac_cv_sizeof_double
=`cat conftest.val`
7926 echo "$as_me: program exited with status $ac_status" >&5
7927 echo "$as_me: failed program was:" >&5
7928 cat conftest.
$ac_ext >&5
7930 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5
7931 echo "$as_me: error: cannot compute sizeof (double), 77" >&2;}
7932 { (exit 1); exit 1; }; }
7934 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7939 ac_cv_sizeof_double
=0
7942 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
7943 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
7944 cat >>confdefs.h
<<_ACEOF
7945 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
7949 echo "$as_me:$LINENO: checking for fpos_t" >&5
7950 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
7951 if test "${ac_cv_type_fpos_t+set}" = set; then
7952 echo $ECHO_N "(cached) $ECHO_C" >&6
7954 cat >conftest.
$ac_ext <<_ACEOF
7955 #line $LINENO "configure"
7956 #include "confdefs.h"
7957 $ac_includes_default
7958 #ifdef F77_DUMMY_MAIN
7962 int F77_DUMMY_MAIN() { return 1; }
7969 if (sizeof (fpos_t))
7975 rm -f conftest.
$ac_objext
7976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7977 (eval $ac_compile) 2>&5
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); } &&
7981 { ac_try
='test -s conftest.$ac_objext'
7982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); }; }; then
7987 ac_cv_type_fpos_t
=yes
7989 echo "$as_me: failed program was:" >&5
7990 cat conftest.
$ac_ext >&5
7991 ac_cv_type_fpos_t
=no
7993 rm -f conftest.
$ac_objext conftest.
$ac_ext
7995 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
7996 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
7998 echo "$as_me:$LINENO: checking size of fpos_t" >&5
7999 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8000 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8001 echo $ECHO_N "(cached) $ECHO_C" >&6
8003 if test "$ac_cv_type_fpos_t" = yes; then
8004 # The cast to unsigned long works around a bug in the HP C Compiler
8005 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8006 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8007 # This bug is HP SR number 8606223364.
8008 if test "$cross_compiling" = yes; then
8009 # Depending upon the size, compute the lo and hi bounds.
8010 cat >conftest.
$ac_ext <<_ACEOF
8011 #line $LINENO "configure"
8012 #include "confdefs.h"
8013 $ac_includes_default
8014 #ifdef F77_DUMMY_MAIN
8018 int F77_DUMMY_MAIN() { return 1; }
8023 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8030 rm -f conftest.
$ac_objext
8031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8032 (eval $ac_compile) 2>&5
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); } &&
8036 { ac_try
='test -s conftest.$ac_objext'
8037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); }; }; then
8044 cat >conftest.
$ac_ext <<_ACEOF
8045 #line $LINENO "configure"
8046 #include "confdefs.h"
8047 $ac_includes_default
8048 #ifdef F77_DUMMY_MAIN
8052 int F77_DUMMY_MAIN() { return 1; }
8057 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8064 rm -f conftest.
$ac_objext
8065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8066 (eval $ac_compile) 2>&5
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); } &&
8070 { ac_try
='test -s conftest.$ac_objext'
8071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); }; }; then
8076 ac_hi
=$ac_mid; break
8078 echo "$as_me: failed program was:" >&5
8079 cat conftest.
$ac_ext >&5
8080 ac_lo
=`expr $ac_mid + 1`
8081 if test $ac_lo -le $ac_mid; then
8085 ac_mid
=`expr 2 '*' $ac_mid + 1`
8087 rm -f conftest.
$ac_objext conftest.
$ac_ext
8090 echo "$as_me: failed program was:" >&5
8091 cat conftest.
$ac_ext >&5
8092 cat >conftest.
$ac_ext <<_ACEOF
8093 #line $LINENO "configure"
8094 #include "confdefs.h"
8095 $ac_includes_default
8096 #ifdef F77_DUMMY_MAIN
8100 int F77_DUMMY_MAIN() { return 1; }
8105 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
8112 rm -f conftest.
$ac_objext
8113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8114 (eval $ac_compile) 2>&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } &&
8118 { ac_try
='test -s conftest.$ac_objext'
8119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); }; }; then
8126 cat >conftest.
$ac_ext <<_ACEOF
8127 #line $LINENO "configure"
8128 #include "confdefs.h"
8129 $ac_includes_default
8130 #ifdef F77_DUMMY_MAIN
8134 int F77_DUMMY_MAIN() { return 1; }
8139 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
8146 rm -f conftest.
$ac_objext
8147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8148 (eval $ac_compile) 2>&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); } &&
8152 { ac_try
='test -s conftest.$ac_objext'
8153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); }; }; then
8158 ac_lo
=$ac_mid; break
8160 echo "$as_me: failed program was:" >&5
8161 cat conftest.
$ac_ext >&5
8162 ac_hi
=`expr '(' $ac_mid ')' - 1`
8163 if test $ac_mid -le $ac_hi; then
8167 ac_mid
=`expr 2 '*' $ac_mid`
8169 rm -f conftest.
$ac_objext conftest.
$ac_ext
8172 echo "$as_me: failed program was:" >&5
8173 cat conftest.
$ac_ext >&5
8176 rm -f conftest.
$ac_objext conftest.
$ac_ext
8178 rm -f conftest.
$ac_objext conftest.
$ac_ext
8179 # Binary search between lo and hi bounds.
8180 while test "x$ac_lo" != "x$ac_hi"; do
8181 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8182 cat >conftest.
$ac_ext <<_ACEOF
8183 #line $LINENO "configure"
8184 #include "confdefs.h"
8185 $ac_includes_default
8186 #ifdef F77_DUMMY_MAIN
8190 int F77_DUMMY_MAIN() { return 1; }
8195 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8202 rm -f conftest.
$ac_objext
8203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8204 (eval $ac_compile) 2>&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } &&
8208 { ac_try
='test -s conftest.$ac_objext'
8209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); }; }; then
8216 echo "$as_me: failed program was:" >&5
8217 cat conftest.
$ac_ext >&5
8218 ac_lo
=`expr '(' $ac_mid ')' + 1`
8220 rm -f conftest.
$ac_objext conftest.
$ac_ext
8223 ?
*) ac_cv_sizeof_fpos_t
=$ac_lo;;
8224 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5
8225 echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;}
8226 { (exit 1); exit 1; }; } ;;
8229 if test "$cross_compiling" = yes; then
8230 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8231 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8232 { (exit 1); exit 1; }; }
8234 cat >conftest.
$ac_ext <<_ACEOF
8235 #line $LINENO "configure"
8236 #include "confdefs.h"
8237 $ac_includes_default
8238 long longval () { return (long) (sizeof (fpos_t)); }
8239 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
8242 #ifdef F77_DUMMY_MAIN
8246 int F77_DUMMY_MAIN() { return 1; }
8252 FILE *f = fopen ("conftest.val", "w");
8255 if (((long) (sizeof (fpos_t))) < 0)
8257 long i = longval ();
8258 if (i != ((long) (sizeof (fpos_t))))
8260 fprintf (f, "%ld\n", i);
8264 unsigned long i = ulongval ();
8265 if (i != ((long) (sizeof (fpos_t))))
8267 fprintf (f, "%lu\n", i);
8269 exit (ferror (f) || fclose (f) != 0);
8275 rm -f conftest
$ac_exeext
8276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8277 (eval $ac_link) 2>&5
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); }; }; then
8286 ac_cv_sizeof_fpos_t
=`cat conftest.val`
8288 echo "$as_me: program exited with status $ac_status" >&5
8289 echo "$as_me: failed program was:" >&5
8290 cat conftest.
$ac_ext >&5
8292 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5
8293 echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;}
8294 { (exit 1); exit 1; }; }
8296 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8301 ac_cv_sizeof_fpos_t
=0
8304 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
8305 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
8306 cat >>confdefs.h
<<_ACEOF
8307 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
8312 echo "$as_me:$LINENO: checking for long long support" >&5
8313 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
8315 cat >conftest.
$ac_ext <<_ACEOF
8316 #line $LINENO "configure"
8317 #include "confdefs.h"
8319 #ifdef F77_DUMMY_MAIN
8323 int F77_DUMMY_MAIN() { return 1; }
8328 long long x; x = (long long)0;
8333 rm -f conftest.
$ac_objext
8334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8335 (eval $ac_compile) 2>&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); } &&
8339 { ac_try
='test -s conftest.$ac_objext'
8340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); }; }; then
8347 cat >>confdefs.h
<<\_ACEOF
8348 #define HAVE_LONG_LONG 1
8354 echo "$as_me: failed program was:" >&5
8355 cat conftest.
$ac_ext >&5
8357 rm -f conftest.
$ac_objext conftest.
$ac_ext
8358 echo "$as_me:$LINENO: result: $have_long_long" >&5
8359 echo "${ECHO_T}$have_long_long" >&6
8360 if test "$have_long_long" = yes ; then
8361 echo "$as_me:$LINENO: checking for long long" >&5
8362 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8363 if test "${ac_cv_type_long_long+set}" = set; then
8364 echo $ECHO_N "(cached) $ECHO_C" >&6
8366 cat >conftest.
$ac_ext <<_ACEOF
8367 #line $LINENO "configure"
8368 #include "confdefs.h"
8369 $ac_includes_default
8370 #ifdef F77_DUMMY_MAIN
8374 int F77_DUMMY_MAIN() { return 1; }
8379 if ((long long *) 0)
8381 if (sizeof (long long))
8387 rm -f conftest.
$ac_objext
8388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8389 (eval $ac_compile) 2>&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); } &&
8393 { ac_try
='test -s conftest.$ac_objext'
8394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); }; }; then
8399 ac_cv_type_long_long
=yes
8401 echo "$as_me: failed program was:" >&5
8402 cat conftest.
$ac_ext >&5
8403 ac_cv_type_long_long
=no
8405 rm -f conftest.
$ac_objext conftest.
$ac_ext
8407 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8408 echo "${ECHO_T}$ac_cv_type_long_long" >&6
8410 echo "$as_me:$LINENO: checking size of long long" >&5
8411 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8412 if test "${ac_cv_sizeof_long_long+set}" = set; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
8415 if test "$ac_cv_type_long_long" = yes; then
8416 # The cast to unsigned long works around a bug in the HP C Compiler
8417 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8418 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8419 # This bug is HP SR number 8606223364.
8420 if test "$cross_compiling" = yes; then
8421 # Depending upon the size, compute the lo and hi bounds.
8422 cat >conftest.
$ac_ext <<_ACEOF
8423 #line $LINENO "configure"
8424 #include "confdefs.h"
8425 $ac_includes_default
8426 #ifdef F77_DUMMY_MAIN
8430 int F77_DUMMY_MAIN() { return 1; }
8435 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
8442 rm -f conftest.
$ac_objext
8443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8444 (eval $ac_compile) 2>&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); } &&
8448 { ac_try
='test -s conftest.$ac_objext'
8449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); }; }; then
8456 cat >conftest.
$ac_ext <<_ACEOF
8457 #line $LINENO "configure"
8458 #include "confdefs.h"
8459 $ac_includes_default
8460 #ifdef F77_DUMMY_MAIN
8464 int F77_DUMMY_MAIN() { return 1; }
8469 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8476 rm -f conftest.
$ac_objext
8477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8478 (eval $ac_compile) 2>&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); } &&
8482 { ac_try
='test -s conftest.$ac_objext'
8483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); }; }; then
8488 ac_hi
=$ac_mid; break
8490 echo "$as_me: failed program was:" >&5
8491 cat conftest.
$ac_ext >&5
8492 ac_lo
=`expr $ac_mid + 1`
8493 if test $ac_lo -le $ac_mid; then
8497 ac_mid
=`expr 2 '*' $ac_mid + 1`
8499 rm -f conftest.
$ac_objext conftest.
$ac_ext
8502 echo "$as_me: failed program was:" >&5
8503 cat conftest.
$ac_ext >&5
8504 cat >conftest.
$ac_ext <<_ACEOF
8505 #line $LINENO "configure"
8506 #include "confdefs.h"
8507 $ac_includes_default
8508 #ifdef F77_DUMMY_MAIN
8512 int F77_DUMMY_MAIN() { return 1; }
8517 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
8524 rm -f conftest.
$ac_objext
8525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8526 (eval $ac_compile) 2>&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); } &&
8530 { ac_try
='test -s conftest.$ac_objext'
8531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; }; then
8538 cat >conftest.
$ac_ext <<_ACEOF
8539 #line $LINENO "configure"
8540 #include "confdefs.h"
8541 $ac_includes_default
8542 #ifdef F77_DUMMY_MAIN
8546 int F77_DUMMY_MAIN() { return 1; }
8551 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
8558 rm -f conftest.
$ac_objext
8559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8560 (eval $ac_compile) 2>&5
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); } &&
8564 { ac_try
='test -s conftest.$ac_objext'
8565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); }; }; then
8570 ac_lo
=$ac_mid; break
8572 echo "$as_me: failed program was:" >&5
8573 cat conftest.
$ac_ext >&5
8574 ac_hi
=`expr '(' $ac_mid ')' - 1`
8575 if test $ac_mid -le $ac_hi; then
8579 ac_mid
=`expr 2 '*' $ac_mid`
8581 rm -f conftest.
$ac_objext conftest.
$ac_ext
8584 echo "$as_me: failed program was:" >&5
8585 cat conftest.
$ac_ext >&5
8588 rm -f conftest.
$ac_objext conftest.
$ac_ext
8590 rm -f conftest.
$ac_objext conftest.
$ac_ext
8591 # Binary search between lo and hi bounds.
8592 while test "x$ac_lo" != "x$ac_hi"; do
8593 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8594 cat >conftest.
$ac_ext <<_ACEOF
8595 #line $LINENO "configure"
8596 #include "confdefs.h"
8597 $ac_includes_default
8598 #ifdef F77_DUMMY_MAIN
8602 int F77_DUMMY_MAIN() { return 1; }
8607 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8614 rm -f conftest.
$ac_objext
8615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8616 (eval $ac_compile) 2>&5
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); } &&
8620 { ac_try
='test -s conftest.$ac_objext'
8621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); }; }; then
8628 echo "$as_me: failed program was:" >&5
8629 cat conftest.
$ac_ext >&5
8630 ac_lo
=`expr '(' $ac_mid ')' + 1`
8632 rm -f conftest.
$ac_objext conftest.
$ac_ext
8635 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
8636 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
8637 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
8638 { (exit 1); exit 1; }; } ;;
8641 if test "$cross_compiling" = yes; then
8642 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8643 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8644 { (exit 1); exit 1; }; }
8646 cat >conftest.
$ac_ext <<_ACEOF
8647 #line $LINENO "configure"
8648 #include "confdefs.h"
8649 $ac_includes_default
8650 long longval () { return (long) (sizeof (long long)); }
8651 unsigned long ulongval () { return (long) (sizeof (long long)); }
8654 #ifdef F77_DUMMY_MAIN
8658 int F77_DUMMY_MAIN() { return 1; }
8664 FILE *f = fopen ("conftest.val", "w");
8667 if (((long) (sizeof (long long))) < 0)
8669 long i = longval ();
8670 if (i != ((long) (sizeof (long long))))
8672 fprintf (f, "%ld\n", i);
8676 unsigned long i = ulongval ();
8677 if (i != ((long) (sizeof (long long))))
8679 fprintf (f, "%lu\n", i);
8681 exit (ferror (f) || fclose (f) != 0);
8687 rm -f conftest
$ac_exeext
8688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8689 (eval $ac_link) 2>&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); }; }; then
8698 ac_cv_sizeof_long_long
=`cat conftest.val`
8700 echo "$as_me: program exited with status $ac_status" >&5
8701 echo "$as_me: failed program was:" >&5
8702 cat conftest.
$ac_ext >&5
8704 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
8705 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
8706 { (exit 1); exit 1; }; }
8708 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8713 ac_cv_sizeof_long_long
=0
8716 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8717 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8718 cat >>confdefs.h
<<_ACEOF
8719 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8725 echo "$as_me:$LINENO: checking for uintptr_t support" >&5
8726 echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6
8728 cat >conftest.
$ac_ext <<_ACEOF
8729 #line $LINENO "configure"
8730 #include "confdefs.h"
8732 #ifdef F77_DUMMY_MAIN
8736 int F77_DUMMY_MAIN() { return 1; }
8741 uintptr_t x; x = (uintptr_t)0;
8746 rm -f conftest.
$ac_objext
8747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8748 (eval $ac_compile) 2>&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); } &&
8752 { ac_try
='test -s conftest.$ac_objext'
8753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); }; }; then
8760 cat >>confdefs.h
<<\_ACEOF
8761 #define HAVE_UINTPTR_T 1
8767 echo "$as_me: failed program was:" >&5
8768 cat conftest.
$ac_ext >&5
8770 rm -f conftest.
$ac_objext conftest.
$ac_ext
8771 echo "$as_me:$LINENO: result: $have_uintptr_t" >&5
8772 echo "${ECHO_T}$have_uintptr_t" >&6
8773 if test "$have_uintptr_t" = yes ; then
8774 echo "$as_me:$LINENO: checking for uintptr_t" >&5
8775 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
8776 if test "${ac_cv_type_uintptr_t+set}" = set; then
8777 echo $ECHO_N "(cached) $ECHO_C" >&6
8779 cat >conftest.
$ac_ext <<_ACEOF
8780 #line $LINENO "configure"
8781 #include "confdefs.h"
8782 $ac_includes_default
8783 #ifdef F77_DUMMY_MAIN
8787 int F77_DUMMY_MAIN() { return 1; }
8792 if ((uintptr_t *) 0)
8794 if (sizeof (uintptr_t))
8800 rm -f conftest.
$ac_objext
8801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8802 (eval $ac_compile) 2>&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); } &&
8806 { ac_try
='test -s conftest.$ac_objext'
8807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); }; }; then
8812 ac_cv_type_uintptr_t
=yes
8814 echo "$as_me: failed program was:" >&5
8815 cat conftest.
$ac_ext >&5
8816 ac_cv_type_uintptr_t
=no
8818 rm -f conftest.
$ac_objext conftest.
$ac_ext
8820 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
8821 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
8823 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
8824 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
8825 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
8826 echo $ECHO_N "(cached) $ECHO_C" >&6
8828 if test "$ac_cv_type_uintptr_t" = yes; then
8829 # The cast to unsigned long works around a bug in the HP C Compiler
8830 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8831 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8832 # This bug is HP SR number 8606223364.
8833 if test "$cross_compiling" = yes; then
8834 # Depending upon the size, compute the lo and hi bounds.
8835 cat >conftest.
$ac_ext <<_ACEOF
8836 #line $LINENO "configure"
8837 #include "confdefs.h"
8838 $ac_includes_default
8839 #ifdef F77_DUMMY_MAIN
8843 int F77_DUMMY_MAIN() { return 1; }
8848 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
8855 rm -f conftest.
$ac_objext
8856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8857 (eval $ac_compile) 2>&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); } &&
8861 { ac_try
='test -s conftest.$ac_objext'
8862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); }; }; then
8869 cat >conftest.
$ac_ext <<_ACEOF
8870 #line $LINENO "configure"
8871 #include "confdefs.h"
8872 $ac_includes_default
8873 #ifdef F77_DUMMY_MAIN
8877 int F77_DUMMY_MAIN() { return 1; }
8882 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
8889 rm -f conftest.
$ac_objext
8890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8891 (eval $ac_compile) 2>&5
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); } &&
8895 { ac_try
='test -s conftest.$ac_objext'
8896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); }; }; then
8901 ac_hi
=$ac_mid; break
8903 echo "$as_me: failed program was:" >&5
8904 cat conftest.
$ac_ext >&5
8905 ac_lo
=`expr $ac_mid + 1`
8906 if test $ac_lo -le $ac_mid; then
8910 ac_mid
=`expr 2 '*' $ac_mid + 1`
8912 rm -f conftest.
$ac_objext conftest.
$ac_ext
8915 echo "$as_me: failed program was:" >&5
8916 cat conftest.
$ac_ext >&5
8917 cat >conftest.
$ac_ext <<_ACEOF
8918 #line $LINENO "configure"
8919 #include "confdefs.h"
8920 $ac_includes_default
8921 #ifdef F77_DUMMY_MAIN
8925 int F77_DUMMY_MAIN() { return 1; }
8930 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
8937 rm -f conftest.
$ac_objext
8938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8939 (eval $ac_compile) 2>&5
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); } &&
8943 { ac_try
='test -s conftest.$ac_objext'
8944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); }; }; then
8951 cat >conftest.
$ac_ext <<_ACEOF
8952 #line $LINENO "configure"
8953 #include "confdefs.h"
8954 $ac_includes_default
8955 #ifdef F77_DUMMY_MAIN
8959 int F77_DUMMY_MAIN() { return 1; }
8964 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
8971 rm -f conftest.
$ac_objext
8972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8973 (eval $ac_compile) 2>&5
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); } &&
8977 { ac_try
='test -s conftest.$ac_objext'
8978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); }; }; then
8983 ac_lo
=$ac_mid; break
8985 echo "$as_me: failed program was:" >&5
8986 cat conftest.
$ac_ext >&5
8987 ac_hi
=`expr '(' $ac_mid ')' - 1`
8988 if test $ac_mid -le $ac_hi; then
8992 ac_mid
=`expr 2 '*' $ac_mid`
8994 rm -f conftest.
$ac_objext conftest.
$ac_ext
8997 echo "$as_me: failed program was:" >&5
8998 cat conftest.
$ac_ext >&5
9001 rm -f conftest.
$ac_objext conftest.
$ac_ext
9003 rm -f conftest.
$ac_objext conftest.
$ac_ext
9004 # Binary search between lo and hi bounds.
9005 while test "x$ac_lo" != "x$ac_hi"; do
9006 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9007 cat >conftest.
$ac_ext <<_ACEOF
9008 #line $LINENO "configure"
9009 #include "confdefs.h"
9010 $ac_includes_default
9011 #ifdef F77_DUMMY_MAIN
9015 int F77_DUMMY_MAIN() { return 1; }
9020 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
9027 rm -f conftest.
$ac_objext
9028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9029 (eval $ac_compile) 2>&5
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); } &&
9033 { ac_try
='test -s conftest.$ac_objext'
9034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); }; }; then
9041 echo "$as_me: failed program was:" >&5
9042 cat conftest.
$ac_ext >&5
9043 ac_lo
=`expr '(' $ac_mid ')' + 1`
9045 rm -f conftest.
$ac_objext conftest.
$ac_ext
9048 ?
*) ac_cv_sizeof_uintptr_t
=$ac_lo;;
9049 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5
9050 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;}
9051 { (exit 1); exit 1; }; } ;;
9054 if test "$cross_compiling" = yes; then
9055 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
9056 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9057 { (exit 1); exit 1; }; }
9059 cat >conftest.
$ac_ext <<_ACEOF
9060 #line $LINENO "configure"
9061 #include "confdefs.h"
9062 $ac_includes_default
9063 long longval () { return (long) (sizeof (uintptr_t)); }
9064 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
9067 #ifdef F77_DUMMY_MAIN
9071 int F77_DUMMY_MAIN() { return 1; }
9077 FILE *f = fopen ("conftest.val", "w");
9080 if (((long) (sizeof (uintptr_t))) < 0)
9082 long i = longval ();
9083 if (i != ((long) (sizeof (uintptr_t))))
9085 fprintf (f, "%ld\n", i);
9089 unsigned long i = ulongval ();
9090 if (i != ((long) (sizeof (uintptr_t))))
9092 fprintf (f, "%lu\n", i);
9094 exit (ferror (f) || fclose (f) != 0);
9100 rm -f conftest
$ac_exeext
9101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9102 (eval $ac_link) 2>&5
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); }; }; then
9111 ac_cv_sizeof_uintptr_t
=`cat conftest.val`
9113 echo "$as_me: program exited with status $ac_status" >&5
9114 echo "$as_me: failed program was:" >&5
9115 cat conftest.
$ac_ext >&5
9117 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5
9118 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;}
9119 { (exit 1); exit 1; }; }
9121 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9126 ac_cv_sizeof_uintptr_t
=0
9129 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
9130 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
9131 cat >>confdefs.h
<<_ACEOF
9132 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
9138 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
9139 echo "$as_me:$LINENO: checking size of off_t" >&5
9140 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
9141 if test "${ac_cv_sizeof_off_t+set}" = set; then
9142 echo $ECHO_N "(cached) $ECHO_C" >&6
9144 if test "$cross_compiling" = yes; then
9145 ac_cv_sizeof_off_t
=4
9147 cat >conftest.
$ac_ext <<_ACEOF
9148 #line $LINENO "configure"
9149 #include "confdefs.h"
9151 #include <sys/types.h>
9154 FILE *f=fopen("conftestval", "w");
9156 fprintf(f, "%d\n", sizeof(off_t));
9160 rm -f conftest
$ac_exeext
9161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9162 (eval $ac_link) 2>&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); }; }; then
9171 ac_cv_sizeof_off_t
=`cat conftestval`
9173 echo "$as_me: program exited with status $ac_status" >&5
9174 echo "$as_me: failed program was:" >&5
9175 cat conftest.
$ac_ext >&5
9177 ac_cv_sizeof_off_t
=0
9179 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9184 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
9185 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
9187 cat >>confdefs.h
<<_ACEOF
9188 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
9192 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
9193 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
9194 if test "$have_long_long" = yes -a \
9195 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
9196 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
9198 cat >>confdefs.h
<<\_ACEOF
9199 #define HAVE_LARGEFILE_SUPPORT 1
9202 echo "$as_me:$LINENO: result: yes" >&5
9203 echo "${ECHO_T}yes" >&6
9205 echo "$as_me:$LINENO: result: no" >&5
9206 echo "${ECHO_T}no" >&6
9209 # AC_CHECK_SIZEOF() doesn't include <time.h>.
9210 echo "$as_me:$LINENO: checking size of time_t" >&5
9211 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
9212 if test "${ac_cv_sizeof_time_t+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9215 if test "$cross_compiling" = yes; then
9216 ac_cv_sizeof_time_t
=4
9218 cat >conftest.
$ac_ext <<_ACEOF
9219 #line $LINENO "configure"
9220 #include "confdefs.h"
9225 FILE *f=fopen("conftestval", "w");
9227 fprintf(f, "%d\n", sizeof(time_t));
9231 rm -f conftest
$ac_exeext
9232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9233 (eval $ac_link) 2>&5
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); }; }; then
9242 ac_cv_sizeof_time_t
=`cat conftestval`
9244 echo "$as_me: program exited with status $ac_status" >&5
9245 echo "$as_me: failed program was:" >&5
9246 cat conftest.
$ac_ext >&5
9248 ac_cv_sizeof_time_t
=0
9250 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9255 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
9256 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
9258 cat >>confdefs.h
<<_ACEOF
9259 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
9264 # if have pthread_t then define SIZEOF_PTHREAD_T
9266 if test "$ac_cv_kpthread" = "yes"
9267 then CC
="$CC -Kpthread"
9268 elif test "$ac_cv_kthread" = "yes"
9269 then CC
="$CC -Kthread"
9270 elif test "$ac_cv_pthread" = "yes"
9271 then CC
="$CC -pthread"
9273 echo "$as_me:$LINENO: checking for pthread_t" >&5
9274 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
9276 cat >conftest.
$ac_ext <<_ACEOF
9277 #line $LINENO "configure"
9278 #include "confdefs.h"
9279 #include <pthread.h>
9280 #ifdef F77_DUMMY_MAIN
9284 int F77_DUMMY_MAIN() { return 1; }
9289 pthread_t x; x = *(pthread_t*)0;
9294 rm -f conftest.
$ac_objext
9295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9296 (eval $ac_compile) 2>&5
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); } &&
9300 { ac_try
='test -s conftest.$ac_objext'
9301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); }; }; then
9308 echo "$as_me: failed program was:" >&5
9309 cat conftest.
$ac_ext >&5
9311 rm -f conftest.
$ac_objext conftest.
$ac_ext
9312 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
9313 echo "${ECHO_T}$have_pthread_t" >&6
9314 if test "$have_pthread_t" = yes ; then
9315 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
9316 echo "$as_me:$LINENO: checking size of pthread_t" >&5
9317 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
9318 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
9319 echo $ECHO_N "(cached) $ECHO_C" >&6
9321 if test "$cross_compiling" = yes; then
9322 ac_cv_sizeof_pthread_t
=4
9324 cat >conftest.
$ac_ext <<_ACEOF
9325 #line $LINENO "configure"
9326 #include "confdefs.h"
9328 #include <pthread.h>
9331 FILE *f=fopen("conftestval", "w");
9333 fprintf(f, "%d\n", sizeof(pthread_t));
9337 rm -f conftest
$ac_exeext
9338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9339 (eval $ac_link) 2>&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); }; }; then
9348 ac_cv_sizeof_pthread_t
=`cat conftestval`
9350 echo "$as_me: program exited with status $ac_status" >&5
9351 echo "$as_me: failed program was:" >&5
9352 cat conftest.
$ac_ext >&5
9354 ac_cv_sizeof_pthread_t
=0
9356 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9361 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
9362 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
9364 cat >>confdefs.h
<<_ACEOF
9365 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
9371 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
9372 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
9373 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
9374 if test "${enable_toolbox_glue+set}" = set; then
9375 enableval
="$enable_toolbox_glue"
9379 if test -z "$enable_toolbox_glue"
9381 case $ac_sys_system/$ac_sys_release in
9383 enable_toolbox_glue
="yes";;
9385 enable_toolbox_glue
="no";;
9388 case "$enable_toolbox_glue" in
9390 extra_frameworks
="-framework CoreServices -framework Foundation"
9391 extra_machdep_objs
="Python/mactoolboxglue.o"
9392 extra_undefs
="-u __dummy -u _PyMac_Error"
9394 cat >>confdefs.h
<<\_ACEOF
9395 #define USE_TOOLBOX_OBJECT_GLUE 1
9401 extra_machdep_objs
=""
9405 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
9406 echo "${ECHO_T}$enable_toolbox_glue" >&6
9409 case $ac_sys_system/$ac_sys_release in
9411 LIBTOOL_CRUFT
="-lcc_dynamic -arch_only ppc"
9412 LIBTOOL_CRUFT
="$LIBTOOL_CRUFT $extra_frameworks"
9413 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python'
9414 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
9416 LIBTOOL_CRUFT
="-lcc_dynamic -arch_only ppc"
9417 LIBTOOL_CRUFT
="$LIBTOOL_CRUFT $extra_frameworks"
9418 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python'
9419 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
9422 echo "$as_me:$LINENO: checking for --enable-framework" >&5
9423 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
9424 if test "$enable_framework"
9426 BASECFLAGS
="$BASECFLAGS -fno-common -dynamic"
9427 # -F. is needed to allow linking to the framework while
9428 # in the build location.
9429 LDFLAGS
="$LDFLAGS -Wl,-F."
9431 cat >>confdefs.h
<<\_ACEOF
9432 #define WITH_NEXT_FRAMEWORK 1
9435 echo "$as_me:$LINENO: result: yes" >&5
9436 echo "${ECHO_T}yes" >&6
9438 echo "$as_me:$LINENO: result: no" >&5
9439 echo "${ECHO_T}no" >&6
9442 echo "$as_me:$LINENO: checking for dyld" >&5
9443 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
9444 case $ac_sys_system/$ac_sys_release in
9447 cat >>confdefs.h
<<\_ACEOF
9451 echo "$as_me:$LINENO: result: always on for Darwin" >&5
9452 echo "${ECHO_T}always on for Darwin" >&6
9455 echo "$as_me:$LINENO: result: no" >&5
9456 echo "${ECHO_T}no" >&6
9460 # Set info about shared libraries.
9466 # SO is the extension of shared libraries `(including the dot!)
9467 # -- usually .so, .sl on HP-UX, .dll on Cygwin
9468 echo "$as_me:$LINENO: checking SO" >&5
9469 echo $ECHO_N "checking SO... $ECHO_C" >&6
9472 case $ac_sys_system in
9478 echo "$as_me:$LINENO: result: $SO" >&5
9479 echo "${ECHO_T}$SO" >&6
9480 # LDSHARED is the ld *command* used to create shared library
9481 # -- "ld" on SunOS 4.x.x, "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
9482 # (Shared libraries in this instance are shared modules to be loaded into
9483 # Python, as opposed to building Python itself as a shared library.)
9484 echo "$as_me:$LINENO: checking LDSHARED" >&5
9485 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
9486 if test -z "$LDSHARED"
9488 case $ac_sys_system/$ac_sys_release in
9490 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
9491 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
9494 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
9495 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
9497 IRIX
/5*) LDSHARED
="ld -shared";;
9498 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
9499 SunOS
/4*) LDSHARED
="ld";;
9501 if test "$GCC" = "yes"
9502 then LDSHARED
='$(CC) -shared'
9503 else LDSHARED
='$(CC) -G';
9505 hp
*|HP
*) LDSHARED
="ld -b";;
9506 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
9507 DYNIX
/ptx*) LDSHARED
="ld -G";;
9509 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
9510 if test "$enable_framework" ; then
9511 # Link against the framework. All externals should be defined.
9512 LDSHARED
="$LDSHARED "'-framework $(PYTHONFRAMEWORK)'
9514 # No framework. Ignore undefined symbols, assuming they come from Python
9515 LDSHARED
="$LDSHARED -undefined suppress"
9518 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
9519 if test "$enable_framework" ; then
9520 # Link against the framework. All externals should be defined.
9521 LDSHARED
="$LDSHARED "'-framework $(PYTHONFRAMEWORK)'
9523 # No framework, use the Python app as bundle-loader
9524 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
9525 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
9527 Linux
*|GNU
*) LDSHARED
='$(CC) -shared';;
9528 dgux
*) LDSHARED
="ld -G";;
9529 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
9531 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
9533 LDSHARED
="cc -shared ${LDFLAGS}"
9535 LDSHARED
="ld -Bshareable ${LDFLAGS}"
9537 NetBSD
*) LDSHARED
="cc -shared ${LDFLAGS}";;
9538 OpenUNIX
*|UnixWare
*)
9539 if test "$GCC" = "yes"
9540 then LDSHARED
='$(CC) -shared'
9541 else LDSHARED
='$(CC) -G'
9543 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
9544 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
9545 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
9546 atheos
*) LDSHARED
="gcc -shared";;
9550 echo "$as_me:$LINENO: result: $LDSHARED" >&5
9551 echo "${ECHO_T}$LDSHARED" >&6
9552 BLDSHARED
=${BLDSHARED-$LDSHARED}
9553 # CCSHARED are the C *flags* used to create objects to go into a shared
9554 # library (module) -- this is only needed for a few systems
9555 echo "$as_me:$LINENO: checking CCSHARED" >&5
9556 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
9557 if test -z "$CCSHARED"
9559 case $ac_sys_system/$ac_sys_release in
9560 SunOS
*) if test "$GCC" = yes;
9561 then CCSHARED
="-fPIC";
9563 hp
*|HP
*) if test "$GCC" = yes;
9564 then CCSHARED
="-fPIC";
9567 Linux
*|GNU
*) CCSHARED
="-fPIC";;
9568 BSD
/OS
*/4*) CCSHARED
="-fpic";;
9569 FreeBSD
*|NetBSD
*|OpenBSD
*) CCSHARED
="-fPIC";;
9570 OpenUNIX
*|UnixWare
*)
9571 if test "$GCC" = "yes"
9572 then CCSHARED
="-fPIC"
9573 else CCSHARED
="-KPIC"
9576 if test "$GCC" = "yes"
9577 then CCSHARED
="-fPIC"
9578 else CCSHARED
="-Kpic -belf"
9580 Monterey
*) CCSHARED
="-G";;
9581 IRIX
*/6*) case $CC in
9582 *gcc
*) CCSHARED
="-shared";;
9585 atheos
*) CCSHARED
="-fPIC";;
9588 echo "$as_me:$LINENO: result: $CCSHARED" >&5
9589 echo "${ECHO_T}$CCSHARED" >&6
9590 # LINKFORSHARED are the flags passed to the $(CC) command that links
9591 # the python executable -- this is only needed for a few systems
9592 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
9593 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
9594 if test -z "$LINKFORSHARED"
9596 case $ac_sys_system/$ac_sys_release in
9597 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
9599 LINKFORSHARED
="-Wl,-E -Wl,+s";;
9600 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
9601 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
9602 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
9603 # -u libsys_s pulls in all symbols in libsys
9605 # -u __dummy makes the linker aware of the objc runtime
9606 # in System.framework; otherwise, __objcInit (referenced in
9607 # crt1.o) gets erroneously defined as common, which breaks dynamic
9608 # loading of any modules which reference it in System.framework.
9609 # -u _PyMac_Error is needed to pull in the mac toolbox glue, which is
9610 # not used by the core itself but which needs to be in the core so
9611 # that dynamically loaded extension modules have access to it.
9612 # -prebind is no longer used, because it actually seems to give a
9613 # slowdown in stead of a speedup, maybe due to the large number of
9614 # dynamic loads Python does.
9615 LINKFORSHARED
="$extra_undefs -framework System"
9616 if test "$enable_framework"
9618 LINKFORSHARED
="$LINKFORSHARED -framework Python"
9620 LINKFORSHARED
="$LINKFORSHARED $extra_frameworks";;
9621 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
9622 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
9623 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
9624 FreeBSD
*|NetBSD
*|OpenBSD
*)
9625 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
9627 LINKFORSHARED
="-Wl,--export-dynamic"
9629 SunOS
/5*) case $CC in
9631 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
9633 LINKFORSHARED
="-Xlinker --export-dynamic"
9638 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
9639 echo "${ECHO_T}$LINKFORSHARED" >&6
9642 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
9643 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
9644 if test ! "$LIBRARY" = "$LDLIBRARY"
9646 case $ac_sys_system in
9648 # Cygwin needs CCSHARED when building extension DLLs
9649 # but not when building the interpreter DLL.
9650 CFLAGSFORSHARED
='';;
9652 CFLAGSFORSHARED
='$(CCSHARED)'
9655 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
9656 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
9658 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
9659 # library (with --enable-shared).
9660 # For platforms on which shared libraries are not allowed to have unresolved
9661 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
9662 # if it is not required, since it creates a dependency of the shared library
9663 # to LIBS. This, in turn, means that applications linking the shared libpython
9664 # don't need to link LIBS explicitly. The default should be only changed
9665 # on systems where this approach causes problems.
9667 echo "$as_me:$LINENO: checking SHLIBS" >&5
9668 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
9669 case "$ac_sys_system" in
9673 echo "$as_me:$LINENO: result: $SHLIBS" >&5
9674 echo "${ECHO_T}$SHLIBS" >&6
9677 # checks for libraries
9679 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9680 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9681 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9682 echo $ECHO_N "(cached) $ECHO_C" >&6
9684 ac_check_lib_save_LIBS
=$LIBS
9686 cat >conftest.
$ac_ext <<_ACEOF
9687 #line $LINENO "configure"
9688 #include "confdefs.h"
9690 /* Override any gcc2 internal prototype to avoid an error. */
9694 /* We use char because int might match the return type of a gcc2
9695 builtin and then its argument prototype would still apply. */
9697 #ifdef F77_DUMMY_MAIN
9701 int F77_DUMMY_MAIN() { return 1; }
9711 rm -f conftest.
$ac_objext conftest
$ac_exeext
9712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9713 (eval $ac_link) 2>&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); } &&
9717 { ac_try
='test -s conftest$ac_exeext'
9718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); }; }; then
9723 ac_cv_lib_dl_dlopen
=yes
9725 echo "$as_me: failed program was:" >&5
9726 cat conftest.
$ac_ext >&5
9727 ac_cv_lib_dl_dlopen
=no
9729 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9730 LIBS
=$ac_check_lib_save_LIBS
9732 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9733 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9734 if test $ac_cv_lib_dl_dlopen = yes; then
9735 cat >>confdefs.h
<<_ACEOF
9736 #define HAVE_LIBDL 1
9742 # Dynamic linking for SunOS/Solaris and SYSV
9744 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9745 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9746 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9747 echo $ECHO_N "(cached) $ECHO_C" >&6
9749 ac_check_lib_save_LIBS
=$LIBS
9751 cat >conftest.
$ac_ext <<_ACEOF
9752 #line $LINENO "configure"
9753 #include "confdefs.h"
9755 /* Override any gcc2 internal prototype to avoid an error. */
9759 /* We use char because int might match the return type of a gcc2
9760 builtin and then its argument prototype would still apply. */
9762 #ifdef F77_DUMMY_MAIN
9766 int F77_DUMMY_MAIN() { return 1; }
9776 rm -f conftest.
$ac_objext conftest
$ac_exeext
9777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9778 (eval $ac_link) 2>&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } &&
9782 { ac_try
='test -s conftest$ac_exeext'
9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; }; then
9788 ac_cv_lib_dld_shl_load
=yes
9790 echo "$as_me: failed program was:" >&5
9791 cat conftest.
$ac_ext >&5
9792 ac_cv_lib_dld_shl_load
=no
9794 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9795 LIBS
=$ac_check_lib_save_LIBS
9797 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9798 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9799 if test $ac_cv_lib_dld_shl_load = yes; then
9800 cat >>confdefs.h
<<_ACEOF
9801 #define HAVE_LIBDLD 1
9807 # Dynamic linking for HP-UX
9808 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
9809 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
9810 if test "${ac_cv_search_sem_init+set}" = set; then
9811 echo $ECHO_N "(cached) $ECHO_C" >&6
9813 ac_func_search_save_LIBS
=$LIBS
9814 ac_cv_search_sem_init
=no
9815 cat >conftest.
$ac_ext <<_ACEOF
9816 #line $LINENO "configure"
9817 #include "confdefs.h"
9819 /* Override any gcc2 internal prototype to avoid an error. */
9823 /* We use char because int might match the return type of a gcc2
9824 builtin and then its argument prototype would still apply. */
9826 #ifdef F77_DUMMY_MAIN
9830 int F77_DUMMY_MAIN() { return 1; }
9840 rm -f conftest.
$ac_objext conftest
$ac_exeext
9841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9842 (eval $ac_link) 2>&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); } &&
9846 { ac_try
='test -s conftest$ac_exeext'
9847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; }; then
9852 ac_cv_search_sem_init
="none required"
9854 echo "$as_me: failed program was:" >&5
9855 cat conftest.
$ac_ext >&5
9857 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9858 if test "$ac_cv_search_sem_init" = no
; then
9859 for ac_lib
in pthread rt posix4
; do
9860 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9861 cat >conftest.
$ac_ext <<_ACEOF
9862 #line $LINENO "configure"
9863 #include "confdefs.h"
9865 /* Override any gcc2 internal prototype to avoid an error. */
9869 /* We use char because int might match the return type of a gcc2
9870 builtin and then its argument prototype would still apply. */
9872 #ifdef F77_DUMMY_MAIN
9876 int F77_DUMMY_MAIN() { return 1; }
9886 rm -f conftest.
$ac_objext conftest
$ac_exeext
9887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9888 (eval $ac_link) 2>&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); } &&
9892 { ac_try
='test -s conftest$ac_exeext'
9893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; }; then
9898 ac_cv_search_sem_init
="-l$ac_lib"
9901 echo "$as_me: failed program was:" >&5
9902 cat conftest.
$ac_ext >&5
9904 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9907 LIBS
=$ac_func_search_save_LIBS
9909 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
9910 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
9911 if test "$ac_cv_search_sem_init" != no
; then
9912 test "$ac_cv_search_sem_init" = "none required" || LIBS
="$ac_cv_search_sem_init $LIBS"
9915 # 'Real Time' functions on Solaris
9916 # posix4 on Solaris 2.6
9917 # pthread (first!) on Linux
9919 # checks for system dependent C++ extensions support
9920 case "$ac_sys_system" in
9921 AIX
*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
9922 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
9923 cat >conftest.
$ac_ext <<_ACEOF
9924 #line $LINENO "configure"
9925 #include "confdefs.h"
9926 #include "/usr/lpp/xlC/include/load.h"
9927 #ifdef F77_DUMMY_MAIN
9931 int F77_DUMMY_MAIN() { return 1; }
9936 loadAndInit("", 0, "")
9941 rm -f conftest.
$ac_objext conftest
$ac_exeext
9942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9943 (eval $ac_link) 2>&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); } &&
9947 { ac_try
='test -s conftest$ac_exeext'
9948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); }; }; then
9954 cat >>confdefs.h
<<\_ACEOF
9955 #define AIX_GENUINE_CPLUSPLUS 1
9958 echo "$as_me:$LINENO: result: yes" >&5
9959 echo "${ECHO_T}yes" >&6
9961 echo "$as_me: failed program was:" >&5
9962 cat conftest.
$ac_ext >&5
9963 echo "$as_me:$LINENO: result: no" >&5
9964 echo "${ECHO_T}no" >&6
9966 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext;;
9970 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
9971 # However on SGI IRIX 4, these exist but are broken.
9972 # BeOS' sockets are stashed in libnet.
9973 case "$ac_sys_system" in
9976 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
9977 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
9978 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
9981 ac_check_lib_save_LIBS
=$LIBS
9983 cat >conftest.
$ac_ext <<_ACEOF
9984 #line $LINENO "configure"
9985 #include "confdefs.h"
9987 /* Override any gcc2 internal prototype to avoid an error. */
9991 /* We use char because int might match the return type of a gcc2
9992 builtin and then its argument prototype would still apply. */
9994 #ifdef F77_DUMMY_MAIN
9998 int F77_DUMMY_MAIN() { return 1; }
10008 rm -f conftest.
$ac_objext conftest
$ac_exeext
10009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10010 (eval $ac_link) 2>&5
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); } &&
10014 { ac_try
='test -s conftest$ac_exeext'
10015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10016 (eval $ac_try) 2>&5
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); }; }; then
10020 ac_cv_lib_nsl_t_open
=yes
10022 echo "$as_me: failed program was:" >&5
10023 cat conftest.
$ac_ext >&5
10024 ac_cv_lib_nsl_t_open
=no
10026 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10027 LIBS
=$ac_check_lib_save_LIBS
10029 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
10030 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
10031 if test $ac_cv_lib_nsl_t_open = yes; then
10035 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
10036 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
10037 if test "${ac_cv_lib_socket_socket+set}" = set; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10040 ac_check_lib_save_LIBS
=$LIBS
10041 LIBS
="-lsocket $LIBS $LIBS"
10042 cat >conftest.
$ac_ext <<_ACEOF
10043 #line $LINENO "configure"
10044 #include "confdefs.h"
10046 /* Override any gcc2 internal prototype to avoid an error. */
10050 /* We use char because int might match the return type of a gcc2
10051 builtin and then its argument prototype would still apply. */
10053 #ifdef F77_DUMMY_MAIN
10054 # ifdef __cplusplus
10057 int F77_DUMMY_MAIN() { return 1; }
10067 rm -f conftest.
$ac_objext conftest
$ac_exeext
10068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10069 (eval $ac_link) 2>&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); } &&
10073 { ac_try
='test -s conftest$ac_exeext'
10074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10075 (eval $ac_try) 2>&5
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); }; }; then
10079 ac_cv_lib_socket_socket
=yes
10081 echo "$as_me: failed program was:" >&5
10082 cat conftest.
$ac_ext >&5
10083 ac_cv_lib_socket_socket
=no
10085 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10086 LIBS
=$ac_check_lib_save_LIBS
10088 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
10089 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
10090 if test $ac_cv_lib_socket_socket = yes; then
10091 LIBS
="-lsocket $LIBS"
10096 case "$ac_sys_system" in
10098 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
10099 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
10100 if test "${ac_cv_lib_net_socket+set}" = set; then
10101 echo $ECHO_N "(cached) $ECHO_C" >&6
10103 ac_check_lib_save_LIBS
=$LIBS
10104 LIBS
="-lnet $LIBS $LIBS"
10105 cat >conftest.
$ac_ext <<_ACEOF
10106 #line $LINENO "configure"
10107 #include "confdefs.h"
10109 /* Override any gcc2 internal prototype to avoid an error. */
10113 /* We use char because int might match the return type of a gcc2
10114 builtin and then its argument prototype would still apply. */
10116 #ifdef F77_DUMMY_MAIN
10117 # ifdef __cplusplus
10120 int F77_DUMMY_MAIN() { return 1; }
10130 rm -f conftest.
$ac_objext conftest
$ac_exeext
10131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10132 (eval $ac_link) 2>&5
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); } &&
10136 { ac_try
='test -s conftest$ac_exeext'
10137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10138 (eval $ac_try) 2>&5
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); }; }; then
10142 ac_cv_lib_net_socket
=yes
10144 echo "$as_me: failed program was:" >&5
10145 cat conftest.
$ac_ext >&5
10146 ac_cv_lib_net_socket
=no
10148 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10149 LIBS
=$ac_check_lib_save_LIBS
10151 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
10152 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
10153 if test $ac_cv_lib_net_socket = yes; then
10160 echo "$as_me:$LINENO: checking for --with-libs" >&5
10161 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
10163 # Check whether --with-libs or --without-libs was given.
10164 if test "${with_libs+set}" = set; then
10165 withval
="$with_libs"
10167 echo "$as_me:$LINENO: result: $withval" >&5
10168 echo "${ECHO_T}$withval" >&6
10169 LIBS
="$withval $LIBS"
10172 echo "$as_me:$LINENO: result: no" >&5
10173 echo "${ECHO_T}no" >&6
10176 # Determine if signalmodule should be used.
10179 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
10180 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
10182 # Check whether --with-signal-module or --without-signal-module was given.
10183 if test "${with_signal_module+set}" = set; then
10184 withval
="$with_signal_module"
10188 if test -z "$with_signal_module"
10189 then with_signal_module
="yes"
10191 echo "$as_me:$LINENO: result: $with_signal_module" >&5
10192 echo "${ECHO_T}$with_signal_module" >&6
10194 if test "${with_signal_module}" = "yes"; then
10195 USE_SIGNAL_MODULE
=""
10198 USE_SIGNAL_MODULE
="#"
10199 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
10202 # This is used to generate Setup.config
10204 USE_THREAD_MODULE
=""
10206 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
10207 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
10210 # Check whether --with-dec-threads or --without-dec-threads was given.
10211 if test "${with_dec_threads+set}" = set; then
10212 withval
="$with_dec_threads"
10214 echo "$as_me:$LINENO: result: $withval" >&5
10215 echo "${ECHO_T}$withval" >&6
10217 if test "${with_thread+set}" != set; then
10218 with_thread
="$withval";
10221 echo "$as_me:$LINENO: result: no" >&5
10222 echo "${ECHO_T}no" >&6
10225 # Templates for things AC_DEFINEd more than once.
10226 # For a single AC_DEFINE, no template is needed.
10234 echo "$as_me:$LINENO: checking for --with-threads" >&5
10235 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
10237 # Check whether --with-threads or --without-threads was given.
10238 if test "${with_threads+set}" = set; then
10239 withval
="$with_threads"
10243 # --with-thread is deprecated, but check for it anyway
10245 # Check whether --with-thread or --without-thread was given.
10246 if test "${with_thread+set}" = set; then
10247 withval
="$with_thread"
10248 with_threads
=$with_thread
10251 if test -z "$with_threads"
10252 then with_threads
="yes"
10254 echo "$as_me:$LINENO: result: $with_threads" >&5
10255 echo "${ECHO_T}$with_threads" >&6
10258 if test "$with_threads" = "no"
10260 USE_THREAD_MODULE
="#"
10261 elif test "$ac_cv_pthread_is_default" = yes
10263 cat >>confdefs.h
<<\_ACEOF
10264 #define WITH_THREAD 1
10267 # Defining _REENTRANT on system with POSIX threads should not hurt.
10268 cat >>confdefs.h
<<\_ACEOF
10269 #define _REENTRANT 1
10273 THREADOBJ
="Python/thread.o"
10274 elif test "$ac_cv_kpthread" = "yes"
10277 cat >>confdefs.h
<<\_ACEOF
10278 #define WITH_THREAD 1
10282 THREADOBJ
="Python/thread.o"
10283 elif test "$ac_cv_kthread" = "yes"
10286 cat >>confdefs.h
<<\_ACEOF
10287 #define WITH_THREAD 1
10291 THREADOBJ
="Python/thread.o"
10292 elif test "$ac_cv_pthread" = "yes"
10295 cat >>confdefs.h
<<\_ACEOF
10296 #define WITH_THREAD 1
10300 THREADOBJ
="Python/thread.o"
10302 if test ! -z "$with_threads" -a -d "$with_threads"
10303 then LDFLAGS
="$LDFLAGS -L$with_threads"
10305 if test ! -z "$withval" -a -d "$withval"
10306 then LDFLAGS
="$LDFLAGS -L$withval"
10309 # According to the POSIX spec, a pthreads implementation must
10310 # define _POSIX_THREADS in unistd.h. Some apparently don't (which ones?)
10311 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
10312 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
10313 cat >conftest.
$ac_ext <<_ACEOF
10314 #line $LINENO "configure"
10315 #include "confdefs.h"
10317 #include <unistd.h>
10318 #ifdef _POSIX_THREADS
10323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10324 egrep "yes" >/dev
/null
2>&1; then
10325 unistd_defines_pthreads
=yes
10327 unistd_defines_pthreads
=no
10331 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
10332 echo "${ECHO_T}$unistd_defines_pthreads" >&6
10334 cat >>confdefs.h
<<\_ACEOF
10335 #define _REENTRANT 1
10338 if test "${ac_cv_header_cthreads_h+set}" = set; then
10339 echo "$as_me:$LINENO: checking for cthreads.h" >&5
10340 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
10341 if test "${ac_cv_header_cthreads_h+set}" = set; then
10342 echo $ECHO_N "(cached) $ECHO_C" >&6
10344 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
10345 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
10347 # Is the header compilable?
10348 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
10349 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
10350 cat >conftest.
$ac_ext <<_ACEOF
10351 #line $LINENO "configure"
10352 #include "confdefs.h"
10353 $ac_includes_default
10354 #include <cthreads.h>
10356 rm -f conftest.
$ac_objext
10357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10358 (eval $ac_compile) 2>&5
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); } &&
10362 { ac_try
='test -s conftest.$ac_objext'
10363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10364 (eval $ac_try) 2>&5
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); }; }; then
10368 ac_header_compiler
=yes
10370 echo "$as_me: failed program was:" >&5
10371 cat conftest.
$ac_ext >&5
10372 ac_header_compiler
=no
10374 rm -f conftest.
$ac_objext conftest.
$ac_ext
10375 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10376 echo "${ECHO_T}$ac_header_compiler" >&6
10378 # Is the header present?
10379 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
10380 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
10381 cat >conftest.
$ac_ext <<_ACEOF
10382 #line $LINENO "configure"
10383 #include "confdefs.h"
10384 #include <cthreads.h>
10386 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10387 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10389 egrep -v '^ *\+' conftest.er1
>conftest.err
10391 cat conftest.err
>&5
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); } >/dev
/null
; then
10394 if test -s conftest.err
; then
10395 ac_cpp_err
=$ac_c_preproc_warn_flag
10402 if test -z "$ac_cpp_err"; then
10403 ac_header_preproc
=yes
10405 echo "$as_me: failed program was:" >&5
10406 cat conftest.
$ac_ext >&5
10407 ac_header_preproc
=no
10409 rm -f conftest.err conftest.
$ac_ext
10410 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10411 echo "${ECHO_T}$ac_header_preproc" >&6
10413 # So? What about this header?
10414 case $ac_header_compiler:$ac_header_preproc in
10416 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
10417 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10418 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
10419 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};;
10421 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
10422 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
10423 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
10424 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
10425 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
10426 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};;
10428 echo "$as_me:$LINENO: checking for cthreads.h" >&5
10429 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
10430 if test "${ac_cv_header_cthreads_h+set}" = set; then
10431 echo $ECHO_N "(cached) $ECHO_C" >&6
10433 ac_cv_header_cthreads_h
=$ac_header_preproc
10435 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
10436 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
10439 if test $ac_cv_header_cthreads_h = yes; then
10440 cat >>confdefs.h
<<\_ACEOF
10441 #define WITH_THREAD 1
10444 cat >>confdefs.h
<<\_ACEOF
10445 #define C_THREADS 1
10449 cat >>confdefs.h
<<\_ACEOF
10450 #define HURD_C_THREADS 1
10453 LIBS
="$LIBS -lthreads"
10454 THREADOBJ
="Python/thread.o"
10457 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
10458 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
10459 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
10460 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
10461 echo $ECHO_N "(cached) $ECHO_C" >&6
10463 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
10464 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
10466 # Is the header compilable?
10467 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
10468 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
10469 cat >conftest.
$ac_ext <<_ACEOF
10470 #line $LINENO "configure"
10471 #include "confdefs.h"
10472 $ac_includes_default
10473 #include <mach/cthreads.h>
10475 rm -f conftest.
$ac_objext
10476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10477 (eval $ac_compile) 2>&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } &&
10481 { ac_try
='test -s conftest.$ac_objext'
10482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10483 (eval $ac_try) 2>&5
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); }; }; then
10487 ac_header_compiler
=yes
10489 echo "$as_me: failed program was:" >&5
10490 cat conftest.
$ac_ext >&5
10491 ac_header_compiler
=no
10493 rm -f conftest.
$ac_objext conftest.
$ac_ext
10494 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10495 echo "${ECHO_T}$ac_header_compiler" >&6
10497 # Is the header present?
10498 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
10499 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
10500 cat >conftest.
$ac_ext <<_ACEOF
10501 #line $LINENO "configure"
10502 #include "confdefs.h"
10503 #include <mach/cthreads.h>
10505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10506 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10508 egrep -v '^ *\+' conftest.er1
>conftest.err
10510 cat conftest.err
>&5
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); } >/dev
/null
; then
10513 if test -s conftest.err
; then
10514 ac_cpp_err
=$ac_c_preproc_warn_flag
10521 if test -z "$ac_cpp_err"; then
10522 ac_header_preproc
=yes
10524 echo "$as_me: failed program was:" >&5
10525 cat conftest.
$ac_ext >&5
10526 ac_header_preproc
=no
10528 rm -f conftest.err conftest.
$ac_ext
10529 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10530 echo "${ECHO_T}$ac_header_preproc" >&6
10532 # So? What about this header?
10533 case $ac_header_compiler:$ac_header_preproc in
10535 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
10536 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10537 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
10538 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};;
10540 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
10541 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
10542 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
10543 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
10544 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
10545 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};;
10547 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
10548 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
10549 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
10550 echo $ECHO_N "(cached) $ECHO_C" >&6
10552 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
10554 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
10555 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
10558 if test $ac_cv_header_mach_cthreads_h = yes; then
10559 cat >>confdefs.h
<<\_ACEOF
10560 #define WITH_THREAD 1
10563 cat >>confdefs.h
<<\_ACEOF
10564 #define C_THREADS 1
10568 cat >>confdefs.h
<<\_ACEOF
10569 #define MACH_C_THREADS 1
10572 THREADOBJ
="Python/thread.o"
10575 echo "$as_me:$LINENO: checking for --with-pth" >&5
10576 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
10578 # Check whether --with-pth or --without-pth was given.
10579 if test "${with_pth+set}" = set; then
10580 withval
="$with_pth"
10581 echo "$as_me:$LINENO: result: $withval" >&5
10582 echo "${ECHO_T}$withval" >&6
10583 cat >>confdefs.h
<<\_ACEOF
10584 #define WITH_THREAD 1
10588 cat >>confdefs.h
<<\_ACEOF
10593 THREADOBJ
="Python/thread.o"
10595 echo "$as_me:$LINENO: result: no" >&5
10596 echo "${ECHO_T}no" >&6
10598 # Just looking for pthread_create in libpthread is not enough:
10599 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
10600 # So we really have to include pthread.h, and then link.
10602 LIBS
="$LIBS -lpthread"
10603 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
10604 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
10605 cat >conftest.
$ac_ext <<_ACEOF
10606 #line $LINENO "configure"
10607 #include "confdefs.h"
10608 #include <pthread.h>
10610 void * start_routine (void *arg) { exit (0); }
10611 #ifdef F77_DUMMY_MAIN
10612 # ifdef __cplusplus
10615 int F77_DUMMY_MAIN() { return 1; }
10621 pthread_create (NULL, NULL, start_routine, NULL)
10626 rm -f conftest.
$ac_objext conftest
$ac_exeext
10627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10628 (eval $ac_link) 2>&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); } &&
10632 { ac_try
='test -s conftest$ac_exeext'
10633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10634 (eval $ac_try) 2>&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); }; }; then
10639 echo "$as_me:$LINENO: result: yes" >&5
10640 echo "${ECHO_T}yes" >&6
10641 cat >>confdefs.h
<<\_ACEOF
10642 #define WITH_THREAD 1
10646 THREADOBJ
="Python/thread.o"
10648 echo "$as_me: failed program was:" >&5
10649 cat conftest.
$ac_ext >&5
10652 echo "$as_me:$LINENO: checking for pthread_detach" >&5
10653 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
10654 if test "${ac_cv_func_pthread_detach+set}" = set; then
10655 echo $ECHO_N "(cached) $ECHO_C" >&6
10657 cat >conftest.
$ac_ext <<_ACEOF
10658 #line $LINENO "configure"
10659 #include "confdefs.h"
10660 /* System header to define __stub macros and hopefully few prototypes,
10661 which can conflict with char pthread_detach (); below. */
10662 #include <assert.h>
10663 /* Override any gcc2 internal prototype to avoid an error. */
10667 /* We use char because int might match the return type of a gcc2
10668 builtin and then its argument prototype would still apply. */
10669 char pthread_detach ();
10672 #ifdef F77_DUMMY_MAIN
10673 # ifdef __cplusplus
10676 int F77_DUMMY_MAIN() { return 1; }
10681 /* The GNU C library defines this for functions which it implements
10682 to always fail with ENOSYS. Some functions are actually named
10683 something starting with __ and the normal name is an alias. */
10684 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
10687 f = pthread_detach;
10694 rm -f conftest.
$ac_objext conftest
$ac_exeext
10695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10696 (eval $ac_link) 2>&5
10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); } &&
10700 { ac_try
='test -s conftest$ac_exeext'
10701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10702 (eval $ac_try) 2>&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); }; }; then
10706 ac_cv_func_pthread_detach
=yes
10708 echo "$as_me: failed program was:" >&5
10709 cat conftest.
$ac_ext >&5
10710 ac_cv_func_pthread_detach
=no
10712 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10714 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
10715 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
10716 if test $ac_cv_func_pthread_detach = yes; then
10717 cat >>confdefs.h
<<\_ACEOF
10718 #define WITH_THREAD 1
10722 THREADOBJ
="Python/thread.o"
10725 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
10726 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
10727 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
10728 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
10729 echo $ECHO_N "(cached) $ECHO_C" >&6
10731 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
10732 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
10734 # Is the header compilable?
10735 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
10736 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
10737 cat >conftest.
$ac_ext <<_ACEOF
10738 #line $LINENO "configure"
10739 #include "confdefs.h"
10740 $ac_includes_default
10741 #include <atheos/threads.h>
10743 rm -f conftest.
$ac_objext
10744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10745 (eval $ac_compile) 2>&5
10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748 (exit $ac_status); } &&
10749 { ac_try
='test -s conftest.$ac_objext'
10750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10751 (eval $ac_try) 2>&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); }; }; then
10755 ac_header_compiler
=yes
10757 echo "$as_me: failed program was:" >&5
10758 cat conftest.
$ac_ext >&5
10759 ac_header_compiler
=no
10761 rm -f conftest.
$ac_objext conftest.
$ac_ext
10762 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10763 echo "${ECHO_T}$ac_header_compiler" >&6
10765 # Is the header present?
10766 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
10767 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
10768 cat >conftest.
$ac_ext <<_ACEOF
10769 #line $LINENO "configure"
10770 #include "confdefs.h"
10771 #include <atheos/threads.h>
10773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10774 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10776 egrep -v '^ *\+' conftest.er1
>conftest.err
10778 cat conftest.err
>&5
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); } >/dev
/null
; then
10781 if test -s conftest.err
; then
10782 ac_cpp_err
=$ac_c_preproc_warn_flag
10789 if test -z "$ac_cpp_err"; then
10790 ac_header_preproc
=yes
10792 echo "$as_me: failed program was:" >&5
10793 cat conftest.
$ac_ext >&5
10794 ac_header_preproc
=no
10796 rm -f conftest.err conftest.
$ac_ext
10797 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10798 echo "${ECHO_T}$ac_header_preproc" >&6
10800 # So? What about this header?
10801 case $ac_header_compiler:$ac_header_preproc in
10803 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
10804 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10805 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
10806 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};;
10808 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
10809 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
10810 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
10811 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
10812 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
10813 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};;
10815 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
10816 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
10817 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
10818 echo $ECHO_N "(cached) $ECHO_C" >&6
10820 ac_cv_header_atheos_threads_h
=$ac_header_preproc
10822 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
10823 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
10826 if test $ac_cv_header_atheos_threads_h = yes; then
10827 cat >>confdefs.h
<<\_ACEOF
10828 #define WITH_THREAD 1
10832 cat >>confdefs.h
<<\_ACEOF
10833 #define ATHEOS_THREADS 1
10836 THREADOBJ
="Python/thread.o"
10839 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
10840 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
10841 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
10842 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
10843 echo $ECHO_N "(cached) $ECHO_C" >&6
10845 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
10846 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
10848 # Is the header compilable?
10849 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
10850 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
10851 cat >conftest.
$ac_ext <<_ACEOF
10852 #line $LINENO "configure"
10853 #include "confdefs.h"
10854 $ac_includes_default
10855 #include <kernel/OS.h>
10857 rm -f conftest.
$ac_objext
10858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10859 (eval $ac_compile) 2>&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); } &&
10863 { ac_try
='test -s conftest.$ac_objext'
10864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10865 (eval $ac_try) 2>&5
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); }; }; then
10869 ac_header_compiler
=yes
10871 echo "$as_me: failed program was:" >&5
10872 cat conftest.
$ac_ext >&5
10873 ac_header_compiler
=no
10875 rm -f conftest.
$ac_objext conftest.
$ac_ext
10876 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10877 echo "${ECHO_T}$ac_header_compiler" >&6
10879 # Is the header present?
10880 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
10881 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
10882 cat >conftest.
$ac_ext <<_ACEOF
10883 #line $LINENO "configure"
10884 #include "confdefs.h"
10885 #include <kernel/OS.h>
10887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10888 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10890 egrep -v '^ *\+' conftest.er1
>conftest.err
10892 cat conftest.err
>&5
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); } >/dev
/null
; then
10895 if test -s conftest.err
; then
10896 ac_cpp_err
=$ac_c_preproc_warn_flag
10903 if test -z "$ac_cpp_err"; then
10904 ac_header_preproc
=yes
10906 echo "$as_me: failed program was:" >&5
10907 cat conftest.
$ac_ext >&5
10908 ac_header_preproc
=no
10910 rm -f conftest.err conftest.
$ac_ext
10911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10912 echo "${ECHO_T}$ac_header_preproc" >&6
10914 # So? What about this header?
10915 case $ac_header_compiler:$ac_header_preproc in
10917 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
10918 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10919 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
10920 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};;
10922 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
10923 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
10924 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
10925 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
10926 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
10927 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};;
10929 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
10930 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
10931 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
10932 echo $ECHO_N "(cached) $ECHO_C" >&6
10934 ac_cv_header_kernel_OS_h
=$ac_header_preproc
10936 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
10937 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
10940 if test $ac_cv_header_kernel_OS_h = yes; then
10941 cat >>confdefs.h
<<\_ACEOF
10942 #define WITH_THREAD 1
10946 cat >>confdefs.h
<<\_ACEOF
10947 #define BEOS_THREADS 1
10950 THREADOBJ
="Python/thread.o"
10953 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
10954 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
10955 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
10956 echo $ECHO_N "(cached) $ECHO_C" >&6
10958 ac_check_lib_save_LIBS
=$LIBS
10959 LIBS
="-lpthreads $LIBS"
10960 cat >conftest.
$ac_ext <<_ACEOF
10961 #line $LINENO "configure"
10962 #include "confdefs.h"
10964 /* Override any gcc2 internal prototype to avoid an error. */
10968 /* We use char because int might match the return type of a gcc2
10969 builtin and then its argument prototype would still apply. */
10970 char pthread_create ();
10971 #ifdef F77_DUMMY_MAIN
10972 # ifdef __cplusplus
10975 int F77_DUMMY_MAIN() { return 1; }
10985 rm -f conftest.
$ac_objext conftest
$ac_exeext
10986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10987 (eval $ac_link) 2>&5
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); } &&
10991 { ac_try
='test -s conftest$ac_exeext'
10992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10993 (eval $ac_try) 2>&5
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); }; }; then
10997 ac_cv_lib_pthreads_pthread_create
=yes
10999 echo "$as_me: failed program was:" >&5
11000 cat conftest.
$ac_ext >&5
11001 ac_cv_lib_pthreads_pthread_create
=no
11003 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11004 LIBS
=$ac_check_lib_save_LIBS
11006 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
11007 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
11008 if test $ac_cv_lib_pthreads_pthread_create = yes; then
11009 cat >>confdefs.h
<<\_ACEOF
11010 #define WITH_THREAD 1
11014 LIBS
="$LIBS -lpthreads"
11015 THREADOBJ
="Python/thread.o"
11018 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
11019 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
11020 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
11021 echo $ECHO_N "(cached) $ECHO_C" >&6
11023 ac_check_lib_save_LIBS
=$LIBS
11025 cat >conftest.
$ac_ext <<_ACEOF
11026 #line $LINENO "configure"
11027 #include "confdefs.h"
11029 /* Override any gcc2 internal prototype to avoid an error. */
11033 /* We use char because int might match the return type of a gcc2
11034 builtin and then its argument prototype would still apply. */
11035 char pthread_create ();
11036 #ifdef F77_DUMMY_MAIN
11037 # ifdef __cplusplus
11040 int F77_DUMMY_MAIN() { return 1; }
11050 rm -f conftest.
$ac_objext conftest
$ac_exeext
11051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11052 (eval $ac_link) 2>&5
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); } &&
11056 { ac_try
='test -s conftest$ac_exeext'
11057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11058 (eval $ac_try) 2>&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; }; then
11062 ac_cv_lib_c_r_pthread_create
=yes
11064 echo "$as_me: failed program was:" >&5
11065 cat conftest.
$ac_ext >&5
11066 ac_cv_lib_c_r_pthread_create
=no
11068 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11069 LIBS
=$ac_check_lib_save_LIBS
11071 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
11072 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
11073 if test $ac_cv_lib_c_r_pthread_create = yes; then
11074 cat >>confdefs.h
<<\_ACEOF
11075 #define WITH_THREAD 1
11080 THREADOBJ
="Python/thread.o"
11083 echo "$as_me:$LINENO: checking for __d6_pthread_create in -lthread" >&5
11084 echo $ECHO_N "checking for __d6_pthread_create in -lthread... $ECHO_C" >&6
11085 if test "${ac_cv_lib_thread___d6_pthread_create+set}" = set; then
11086 echo $ECHO_N "(cached) $ECHO_C" >&6
11088 ac_check_lib_save_LIBS
=$LIBS
11089 LIBS
="-lthread $LIBS"
11090 cat >conftest.
$ac_ext <<_ACEOF
11091 #line $LINENO "configure"
11092 #include "confdefs.h"
11094 /* Override any gcc2 internal prototype to avoid an error. */
11098 /* We use char because int might match the return type of a gcc2
11099 builtin and then its argument prototype would still apply. */
11100 char __d6_pthread_create ();
11101 #ifdef F77_DUMMY_MAIN
11102 # ifdef __cplusplus
11105 int F77_DUMMY_MAIN() { return 1; }
11110 __d6_pthread_create ();
11115 rm -f conftest.
$ac_objext conftest
$ac_exeext
11116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11117 (eval $ac_link) 2>&5
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); } &&
11121 { ac_try
='test -s conftest$ac_exeext'
11122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11123 (eval $ac_try) 2>&5
11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); }; }; then
11127 ac_cv_lib_thread___d6_pthread_create
=yes
11129 echo "$as_me: failed program was:" >&5
11130 cat conftest.
$ac_ext >&5
11131 ac_cv_lib_thread___d6_pthread_create
=no
11133 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11134 LIBS
=$ac_check_lib_save_LIBS
11136 echo "$as_me:$LINENO: result: $ac_cv_lib_thread___d6_pthread_create" >&5
11137 echo "${ECHO_T}$ac_cv_lib_thread___d6_pthread_create" >&6
11138 if test $ac_cv_lib_thread___d6_pthread_create = yes; then
11139 cat >>confdefs.h
<<\_ACEOF
11140 #define WITH_THREAD 1
11143 echo Systems with __d6_pthread_create are not supported anymore.
11147 LIBS
="$LIBS -lthread"
11148 THREADOBJ
="Python/thread.o"
11151 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
11152 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
11153 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
11154 echo $ECHO_N "(cached) $ECHO_C" >&6
11156 ac_check_lib_save_LIBS
=$LIBS
11157 LIBS
="-lpthread $LIBS"
11158 cat >conftest.
$ac_ext <<_ACEOF
11159 #line $LINENO "configure"
11160 #include "confdefs.h"
11162 /* Override any gcc2 internal prototype to avoid an error. */
11166 /* We use char because int might match the return type of a gcc2
11167 builtin and then its argument prototype would still apply. */
11168 char __pthread_create_system ();
11169 #ifdef F77_DUMMY_MAIN
11170 # ifdef __cplusplus
11173 int F77_DUMMY_MAIN() { return 1; }
11178 __pthread_create_system ();
11183 rm -f conftest.
$ac_objext conftest
$ac_exeext
11184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11185 (eval $ac_link) 2>&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } &&
11189 { ac_try
='test -s 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_lib_pthread___pthread_create_system
=yes
11197 echo "$as_me: failed program was:" >&5
11198 cat conftest.
$ac_ext >&5
11199 ac_cv_lib_pthread___pthread_create_system
=no
11201 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11202 LIBS
=$ac_check_lib_save_LIBS
11204 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
11205 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
11206 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
11207 cat >>confdefs.h
<<\_ACEOF
11208 #define WITH_THREAD 1
11212 LIBS
="$LIBS -lpthread"
11213 THREADOBJ
="Python/thread.o"
11216 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
11217 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
11218 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
11219 echo $ECHO_N "(cached) $ECHO_C" >&6
11221 ac_check_lib_save_LIBS
=$LIBS
11223 cat >conftest.
$ac_ext <<_ACEOF
11224 #line $LINENO "configure"
11225 #include "confdefs.h"
11227 /* Override any gcc2 internal prototype to avoid an error. */
11231 /* We use char because int might match the return type of a gcc2
11232 builtin and then its argument prototype would still apply. */
11233 char pthread_create ();
11234 #ifdef F77_DUMMY_MAIN
11235 # ifdef __cplusplus
11238 int F77_DUMMY_MAIN() { return 1; }
11248 rm -f conftest.
$ac_objext conftest
$ac_exeext
11249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11250 (eval $ac_link) 2>&5
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); } &&
11254 { ac_try
='test -s conftest$ac_exeext'
11255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11256 (eval $ac_try) 2>&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); }; }; then
11260 ac_cv_lib_cma_pthread_create
=yes
11262 echo "$as_me: failed program was:" >&5
11263 cat conftest.
$ac_ext >&5
11264 ac_cv_lib_cma_pthread_create
=no
11266 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11267 LIBS
=$ac_check_lib_save_LIBS
11269 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
11270 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
11271 if test $ac_cv_lib_cma_pthread_create = yes; then
11272 cat >>confdefs.h
<<\_ACEOF
11273 #define WITH_THREAD 1
11278 THREADOBJ
="Python/thread.o"
11281 USE_THREAD_MODULE
="#"
11302 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11311 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
11312 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
11313 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
11314 echo $ECHO_N "(cached) $ECHO_C" >&6
11316 ac_check_lib_save_LIBS
=$LIBS
11318 cat >conftest.
$ac_ext <<_ACEOF
11319 #line $LINENO "configure"
11320 #include "confdefs.h"
11322 /* Override any gcc2 internal prototype to avoid an error. */
11326 /* We use char because int might match the return type of a gcc2
11327 builtin and then its argument prototype would still apply. */
11329 #ifdef F77_DUMMY_MAIN
11330 # ifdef __cplusplus
11333 int F77_DUMMY_MAIN() { return 1; }
11343 rm -f conftest.
$ac_objext conftest
$ac_exeext
11344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11345 (eval $ac_link) 2>&5
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); } &&
11349 { ac_try
='test -s conftest$ac_exeext'
11350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11351 (eval $ac_try) 2>&5
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); }; }; then
11355 ac_cv_lib_mpc_usconfig
=yes
11357 echo "$as_me: failed program was:" >&5
11358 cat conftest.
$ac_ext >&5
11359 ac_cv_lib_mpc_usconfig
=no
11361 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11362 LIBS
=$ac_check_lib_save_LIBS
11364 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
11365 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
11366 if test $ac_cv_lib_mpc_usconfig = yes; then
11367 cat >>confdefs.h
<<\_ACEOF
11368 #define WITH_THREAD 1
11372 THREADOBJ
="Python/thread.o"
11373 USE_THREAD_MODULE
=""
11377 if test "$posix_threads" != "yes"; then
11378 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
11379 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
11380 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
11381 echo $ECHO_N "(cached) $ECHO_C" >&6
11383 ac_check_lib_save_LIBS
=$LIBS
11384 LIBS
="-lthread $LIBS"
11385 cat >conftest.
$ac_ext <<_ACEOF
11386 #line $LINENO "configure"
11387 #include "confdefs.h"
11389 /* Override any gcc2 internal prototype to avoid an error. */
11393 /* We use char because int might match the return type of a gcc2
11394 builtin and then its argument prototype would still apply. */
11395 char thr_create ();
11396 #ifdef F77_DUMMY_MAIN
11397 # ifdef __cplusplus
11400 int F77_DUMMY_MAIN() { return 1; }
11410 rm -f conftest.
$ac_objext conftest
$ac_exeext
11411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11412 (eval $ac_link) 2>&5
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); } &&
11416 { ac_try
='test -s conftest$ac_exeext'
11417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418 (eval $ac_try) 2>&5
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }; }; then
11422 ac_cv_lib_thread_thr_create
=yes
11424 echo "$as_me: failed program was:" >&5
11425 cat conftest.
$ac_ext >&5
11426 ac_cv_lib_thread_thr_create
=no
11428 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11429 LIBS
=$ac_check_lib_save_LIBS
11431 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
11432 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
11433 if test $ac_cv_lib_thread_thr_create = yes; then
11434 cat >>confdefs.h
<<\_ACEOF
11435 #define WITH_THREAD 1
11438 LIBS
="$LIBS -lthread"
11439 THREADOBJ
="Python/thread.o"
11440 USE_THREAD_MODULE
=""
11445 if test "$USE_THREAD_MODULE" != "#"
11447 # If the above checks didn't disable threads, (at least) OSF1
11448 # needs this '-threads' argument during linking.
11449 case $ac_sys_system in
11450 OSF1
) LDLAST
=-threads;;
11455 if test "$posix_threads" = "yes"; then
11456 if test "$unistd_defines_pthreads" = "no"; then
11458 cat >>confdefs.h
<<\_ACEOF
11459 #define _POSIX_THREADS 1
11464 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
11465 case $ac_sys_system/$ac_sys_release in
11467 cat >>confdefs.h
<<\_ACEOF
11468 #define HAVE_PTHREAD_DESTRUCTOR 1
11473 cat >>confdefs.h
<<\_ACEOF
11474 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
11480 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
11481 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
11482 if test "${ac_cv_pthread_system_supported+set}" = set; then
11483 echo $ECHO_N "(cached) $ECHO_C" >&6
11485 if test "$cross_compiling" = yes; then
11486 ac_cv_pthread_system_supported
=no
11488 cat >conftest.
$ac_ext <<_ACEOF
11489 #line $LINENO "configure"
11490 #include "confdefs.h"
11491 #include <pthread.h>
11492 void *foo(void *parm) {
11496 pthread_attr_t attr;
11498 if (pthread_attr_init(&attr)) exit(-1);
11499 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
11500 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
11504 rm -f conftest
$ac_exeext
11505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11506 (eval $ac_link) 2>&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11511 (eval $ac_try) 2>&5
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); }; }; then
11515 ac_cv_pthread_system_supported
=yes
11517 echo "$as_me: program exited with status $ac_status" >&5
11518 echo "$as_me: failed program was:" >&5
11519 cat conftest.
$ac_ext >&5
11520 ( exit $ac_status )
11521 ac_cv_pthread_system_supported
=no
11523 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11528 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
11529 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
11530 if test "$ac_cv_pthread_system_supported" = "yes"; then
11532 cat >>confdefs.h
<<\_ACEOF
11533 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
11538 for ac_func
in pthread_sigmask
11540 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11541 echo "$as_me:$LINENO: checking for $ac_func" >&5
11542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11543 if eval "test \"\${$as_ac_var+set}\" = set"; then
11544 echo $ECHO_N "(cached) $ECHO_C" >&6
11546 cat >conftest.
$ac_ext <<_ACEOF
11547 #line $LINENO "configure"
11548 #include "confdefs.h"
11549 /* System header to define __stub macros and hopefully few prototypes,
11550 which can conflict with char $ac_func (); below. */
11551 #include <assert.h>
11552 /* Override any gcc2 internal prototype to avoid an error. */
11556 /* We use char because int might match the return type of a gcc2
11557 builtin and then its argument prototype would still apply. */
11561 #ifdef F77_DUMMY_MAIN
11562 # ifdef __cplusplus
11565 int F77_DUMMY_MAIN() { return 1; }
11570 /* The GNU C library defines this for functions which it implements
11571 to always fail with ENOSYS. Some functions are actually named
11572 something starting with __ and the normal name is an alias. */
11573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11583 rm -f conftest.
$ac_objext conftest
$ac_exeext
11584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11585 (eval $ac_link) 2>&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); } &&
11589 { ac_try
='test -s conftest$ac_exeext'
11590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11591 (eval $ac_try) 2>&5
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); }; }; then
11595 eval "$as_ac_var=yes"
11597 echo "$as_me: failed program was:" >&5
11598 cat conftest.
$ac_ext >&5
11599 eval "$as_ac_var=no"
11601 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11604 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11605 if test `eval echo '${'$as_ac_var'}'` = yes; then
11606 cat >>confdefs.h
<<_ACEOF
11607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11616 # Check for enable-ipv6
11619 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
11620 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
11621 # Check whether --enable-ipv6 or --disable-ipv6 was given.
11622 if test "${enable_ipv6+set}" = set; then
11623 enableval
="$enable_ipv6"
11624 case "$enableval" in
11626 echo "$as_me:$LINENO: result: no" >&5
11627 echo "${ECHO_T}no" >&6
11630 *) echo "$as_me:$LINENO: result: yes" >&5
11631 echo "${ECHO_T}yes" >&6
11632 cat >>confdefs.h
<<\_ACEOF
11633 #define ENABLE_IPV6 1
11641 if test "$cross_compiling" = yes; then
11642 echo "$as_me:$LINENO: result: no" >&5
11643 echo "${ECHO_T}no" >&6
11647 cat >conftest.
$ac_ext <<_ACEOF
11648 #line $LINENO "configure"
11649 #include "confdefs.h"
11650 /* AF_INET6 available check */
11651 #include <sys/types.h>
11652 #include <sys/socket.h>
11655 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
11662 rm -f conftest
$ac_exeext
11663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11664 (eval $ac_link) 2>&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669 (eval $ac_try) 2>&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); }; }; then
11673 echo "$as_me:$LINENO: result: yes" >&5
11674 echo "${ECHO_T}yes" >&6
11677 echo "$as_me: program exited with status $ac_status" >&5
11678 echo "$as_me: failed program was:" >&5
11679 cat conftest.
$ac_ext >&5
11680 ( exit $ac_status )
11681 echo "$as_me:$LINENO: result: no" >&5
11682 echo "${ECHO_T}no" >&6
11685 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11688 if test "$ipv6" = "yes"; then
11689 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
11690 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
11691 cat >conftest.
$ac_ext <<_ACEOF
11692 #line $LINENO "configure"
11693 #include "confdefs.h"
11694 #include <sys/types.h>
11695 #include <netinet/in.h>
11696 #ifdef F77_DUMMY_MAIN
11697 # ifdef __cplusplus
11700 int F77_DUMMY_MAIN() { return 1; }
11705 struct sockaddr_in6 x;
11711 rm -f conftest.
$ac_objext
11712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11713 (eval $ac_compile) 2>&5
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); } &&
11717 { ac_try
='test -s conftest.$ac_objext'
11718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719 (eval $ac_try) 2>&5
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; }; then
11723 echo "$as_me:$LINENO: result: yes" >&5
11724 echo "${ECHO_T}yes" >&6
11727 echo "$as_me: failed program was:" >&5
11728 cat conftest.
$ac_ext >&5
11729 echo "$as_me:$LINENO: result: no" >&5
11730 echo "${ECHO_T}no" >&6
11733 rm -f conftest.
$ac_objext conftest.
$ac_ext
11736 if test "$ipv6" = "yes"; then
11737 cat >>confdefs.h
<<\_ACEOF
11738 #define ENABLE_IPV6 1
11749 if test "$ipv6" = "yes"; then
11750 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
11751 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
11752 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
11756 cat >conftest.
$ac_ext <<_ACEOF
11757 #line $LINENO "configure"
11758 #include "confdefs.h"
11760 #include <netinet/in.h>
11761 #ifdef IPV6_INRIA_VERSION
11765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11766 egrep "yes" >/dev
/null
2>&1; then
11773 cat >conftest.
$ac_ext <<_ACEOF
11774 #line $LINENO "configure"
11775 #include "confdefs.h"
11777 #include <netinet/in.h>
11782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11783 egrep "yes" >/dev
/null
2>&1; then
11786 ipv6libdir
=/usr
/local
/v
6/lib
11793 cat >conftest.
$ac_ext <<_ACEOF
11794 #line $LINENO "configure"
11795 #include "confdefs.h"
11797 #include <features.h>
11798 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
11802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11803 egrep "yes" >/dev
/null
2>&1; then
11811 if test -d /usr
/inet6
; then
11814 ipv6libdir
=/usr
/inet
6/lib
11815 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
11819 if test -f /etc
/netconfig
; then
11820 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
11827 cat >conftest.
$ac_ext <<_ACEOF
11828 #line $LINENO "configure"
11829 #include "confdefs.h"
11831 #include <sys/param.h>
11832 #ifdef _TOSHIBA_INET6
11836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11837 egrep "yes" >/dev
/null
2>&1; then
11840 ipv6libdir
=/usr
/local
/v
6/lib
11846 cat >conftest.
$ac_ext <<_ACEOF
11847 #line $LINENO "configure"
11848 #include "confdefs.h"
11850 #include </usr/local/v6/include/sys/v6config.h>
11855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11856 egrep "yes" >/dev
/null
2>&1; then
11859 ipv6libdir
=/usr
/local
/v
6/lib
;
11860 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
11866 cat >conftest.
$ac_ext <<_ACEOF
11867 #line $LINENO "configure"
11868 #include "confdefs.h"
11870 #include <sys/param.h>
11871 #ifdef _ZETA_MINAMI_INET6
11875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11876 egrep "yes" >/dev
/null
2>&1; then
11879 ipv6libdir
=/usr
/local
/v
6/lib
11885 if test "$ipv6type" != "unknown"; then
11889 echo "$as_me:$LINENO: result: $ipv6type" >&5
11890 echo "${ECHO_T}$ipv6type" >&6
11893 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
11894 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
11895 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
11896 echo "using lib$ipv6lib"
11898 if test $ipv6trylibc = "yes"; then
11901 echo 'Fatal: no $ipv6lib library found. cannot continue.'
11902 echo "You need to fetch lib$ipv6lib.a from appropriate"
11903 echo 'ipv6 kit and compile beforehand.'
11909 # Check for universal newline support
11910 echo "$as_me:$LINENO: checking for --with-universal-newlines" >&5
11911 echo $ECHO_N "checking for --with-universal-newlines... $ECHO_C" >&6
11913 # Check whether --with-universal-newlines or --without-universal-newlines was given.
11914 if test "${with_universal_newlines+set}" = set; then
11915 withval
="$with_universal_newlines"
11919 if test -z "$with_universal_newlines"
11920 then with_universal_newlines
="yes"
11922 if test "$with_universal_newlines" = "no"
11924 echo --without-universal-newlines is unsupported
, see README
11928 cat >>confdefs.h
<<\_ACEOF
11929 #define WITH_UNIVERSAL_NEWLINES 1
11933 echo "$as_me:$LINENO: result: $with_universal_newlines" >&5
11934 echo "${ECHO_T}$with_universal_newlines" >&6
11936 # Check for --with-doc-strings
11937 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
11938 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
11940 # Check whether --with-doc-strings or --without-doc-strings was given.
11941 if test "${with_doc_strings+set}" = set; then
11942 withval
="$with_doc_strings"
11946 if test -z "$with_doc_strings"
11947 then with_doc_strings
="yes"
11949 if test "$with_doc_strings" != "no"
11952 cat >>confdefs.h
<<\_ACEOF
11953 #define WITH_DOC_STRINGS 1
11957 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
11958 echo "${ECHO_T}$with_doc_strings" >&6
11960 # Check for Python-specific malloc support
11961 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
11962 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
11964 # Check whether --with-pymalloc or --without-pymalloc was given.
11965 if test "${with_pymalloc+set}" = set; then
11966 withval
="$with_pymalloc"
11970 if test -z "$with_pymalloc"
11971 then with_pymalloc
="yes"
11973 if test "$with_pymalloc" != "no"
11976 cat >>confdefs.h
<<\_ACEOF
11977 #define WITH_PYMALLOC 1
11981 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
11982 echo "${ECHO_T}$with_pymalloc" >&6
11984 # Check for --with-wctype-functions
11985 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
11986 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
11988 # Check whether --with-wctype-functions or --without-wctype-functions was given.
11989 if test "${with_wctype_functions+set}" = set; then
11990 withval
="$with_wctype_functions"
11992 if test "$withval" != no
11995 cat >>confdefs.h
<<\_ACEOF
11996 #define WANT_WCTYPE_FUNCTIONS 1
11999 echo "$as_me:$LINENO: result: yes" >&5
12000 echo "${ECHO_T}yes" >&6
12001 else echo "$as_me:$LINENO: result: no" >&5
12002 echo "${ECHO_T}no" >&6
12005 echo "$as_me:$LINENO: result: no" >&5
12006 echo "${ECHO_T}no" >&6
12009 # -I${DLINCLDIR} is added to the compile rule for importdl.o
12013 echo "$as_me:$LINENO: checking for --with-sgi-dl" >&5
12014 echo $ECHO_N "checking for --with-sgi-dl... $ECHO_C" >&6
12016 # Check whether --with-sgi-dl or --without-sgi-dl was given.
12017 if test "${with_sgi_dl+set}" = set; then
12018 withval
="$with_sgi_dl"
12020 echo "$as_me:$LINENO: result: $withval" >&5
12021 echo "${ECHO_T}$withval" >&6
12022 echo --with-sgi-dl is unsupported
, see README
12025 cat >>confdefs.h
<<\_ACEOF
12026 #define WITH_SGI_DL 1
12029 DYNLOADFILE
="dynload_dl.o"
12031 if test ! -z "$dldir" -a -d "$dldir"
12032 then LDFLAGS
="$LDFLAGS -L$dldir"
12033 else { { echo "$as_me:$LINENO: error: proper usage is --with-sgi-dl=DIRECTORY" >&5
12034 echo "$as_me: error: proper usage is --with-sgi-dl=DIRECTORY" >&2;}
12035 { (exit 1); exit 1; }; }
12038 LIBS
="$LIBS -ldl -lmld"
12040 echo "$as_me:$LINENO: result: no" >&5
12041 echo "${ECHO_T}no" >&6
12044 echo "$as_me:$LINENO: checking for --with-dl-dld" >&5
12045 echo $ECHO_N "checking for --with-dl-dld... $ECHO_C" >&6
12047 # Check whether --with-dl-dld or --without-dl-dld was given.
12048 if test "${with_dl_dld+set}" = set; then
12049 withval
="$with_dl_dld"
12051 echo "$as_me:$LINENO: result: $withval" >&5
12052 echo "${ECHO_T}$withval" >&6
12053 echo --with-dl-dld is unsupported
, see README
12056 cat >>confdefs.h
<<\_ACEOF
12057 #define WITH_DL_DLD 1
12060 DYNLOADFILE
="dynload_dl.o"
12061 dldir
=`echo "$withval" | sed 's/,.*//'`
12062 dlddir
=`echo "$withval" | sed 's/.*,//'`
12063 if test ! -z "$dldir" -a -d "$dldir" -a ! -z "$dlddir" -a -d "$dlddir"
12064 then LDFLAGS
="$LDFLAGS -L$dldir -L$dlddir"
12065 else { { echo "$as_me:$LINENO: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&5
12066 echo "$as_me: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&2;}
12067 { (exit 1); exit 1; }; }
12070 LIBS
="$LIBS -ldl -ldld"
12072 echo "$as_me:$LINENO: result: no" >&5
12073 echo "${ECHO_T}no" >&6
12076 # the dlopen() function means we might want to use dynload_shlib.o. some
12077 # platforms, such as AIX, have dlopen(), but don't want to use it.
12079 for ac_func
in dlopen
12081 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12082 echo "$as_me:$LINENO: checking for $ac_func" >&5
12083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12084 if eval "test \"\${$as_ac_var+set}\" = set"; then
12085 echo $ECHO_N "(cached) $ECHO_C" >&6
12087 cat >conftest.
$ac_ext <<_ACEOF
12088 #line $LINENO "configure"
12089 #include "confdefs.h"
12090 /* System header to define __stub macros and hopefully few prototypes,
12091 which can conflict with char $ac_func (); below. */
12092 #include <assert.h>
12093 /* Override any gcc2 internal prototype to avoid an error. */
12097 /* We use char because int might match the return type of a gcc2
12098 builtin and then its argument prototype would still apply. */
12102 #ifdef F77_DUMMY_MAIN
12103 # ifdef __cplusplus
12106 int F77_DUMMY_MAIN() { return 1; }
12111 /* The GNU C library defines this for functions which it implements
12112 to always fail with ENOSYS. Some functions are actually named
12113 something starting with __ and the normal name is an alias. */
12114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12124 rm -f conftest.
$ac_objext conftest
$ac_exeext
12125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12126 (eval $ac_link) 2>&5
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); } &&
12130 { ac_try
='test -s conftest$ac_exeext'
12131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12132 (eval $ac_try) 2>&5
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); }; }; then
12136 eval "$as_ac_var=yes"
12138 echo "$as_me: failed program was:" >&5
12139 cat conftest.
$ac_ext >&5
12140 eval "$as_ac_var=no"
12142 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12145 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12146 if test `eval echo '${'$as_ac_var'}'` = yes; then
12147 cat >>confdefs.h
<<_ACEOF
12148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12155 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
12156 # loading of modules.
12158 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
12159 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
12160 if test -z "$DYNLOADFILE"
12162 case $ac_sys_system/$ac_sys_release in
12163 AIX
*) DYNLOADFILE
="dynload_aix.o";;
12164 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
12165 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
12166 Darwin
/*) DYNLOADFILE
="dynload_next.o";;
12167 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
12169 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
12170 # out any dynamic loading
12171 if test "$ac_cv_func_dlopen" = yes
12172 then DYNLOADFILE
="dynload_shlib.o"
12173 else DYNLOADFILE
="dynload_stub.o"
12178 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
12179 echo "${ECHO_T}$DYNLOADFILE" >&6
12180 if test "$DYNLOADFILE" != "dynload_stub.o"
12183 cat >>confdefs.h
<<\_ACEOF
12184 #define HAVE_DYNAMIC_LOADING 1
12189 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
12192 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
12193 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
12194 if test -z "$MACHDEP_OBJS"
12196 MACHDEP_OBJS
=$extra_machdep_objs
12198 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
12200 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
12201 echo "${ECHO_T}MACHDEP_OBJS" >&6
12203 # checks for library functions
12278 for ac_func
in alarm chown
clock confstr ctermid execv \
12279 fchdir fork fsync fdatasync fpathconf ftime ftruncate \
12280 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
12281 getpriority getpwent getwd \
12282 kill killpg lchown lstat
mkfifo mknod mktime \
12283 mremap nice pathconf pause plock poll pthread_init \
12284 putenv readlink realpath \
12285 select setegid seteuid setgid \
12286 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
12287 sigaction siginterrupt sigrelse strftime strptime \
12288 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
12289 truncate uname unsetenv utimes waitpid wcscoll _getpty
12291 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12292 echo "$as_me:$LINENO: checking for $ac_func" >&5
12293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12294 if eval "test \"\${$as_ac_var+set}\" = set"; then
12295 echo $ECHO_N "(cached) $ECHO_C" >&6
12297 cat >conftest.
$ac_ext <<_ACEOF
12298 #line $LINENO "configure"
12299 #include "confdefs.h"
12300 /* System header to define __stub macros and hopefully few prototypes,
12301 which can conflict with char $ac_func (); below. */
12302 #include <assert.h>
12303 /* Override any gcc2 internal prototype to avoid an error. */
12307 /* We use char because int might match the return type of a gcc2
12308 builtin and then its argument prototype would still apply. */
12312 #ifdef F77_DUMMY_MAIN
12313 # ifdef __cplusplus
12316 int F77_DUMMY_MAIN() { return 1; }
12321 /* The GNU C library defines this for functions which it implements
12322 to always fail with ENOSYS. Some functions are actually named
12323 something starting with __ and the normal name is an alias. */
12324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12334 rm -f conftest.
$ac_objext conftest
$ac_exeext
12335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12336 (eval $ac_link) 2>&5
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); } &&
12340 { ac_try
='test -s conftest$ac_exeext'
12341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342 (eval $ac_try) 2>&5
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); }; }; then
12346 eval "$as_ac_var=yes"
12348 echo "$as_me: failed program was:" >&5
12349 cat conftest.
$ac_ext >&5
12350 eval "$as_ac_var=no"
12352 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12355 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12356 if test `eval echo '${'$as_ac_var'}'` = yes; then
12357 cat >>confdefs.h
<<_ACEOF
12358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12365 # For some functions, having a definition is not sufficient, since
12366 # we want to take their address.
12367 echo "$as_me:$LINENO: checking for chroot" >&5
12368 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
12369 cat >conftest.
$ac_ext <<_ACEOF
12370 #line $LINENO "configure"
12371 #include "confdefs.h"
12372 #include <unistd.h>
12373 #ifdef F77_DUMMY_MAIN
12374 # ifdef __cplusplus
12377 int F77_DUMMY_MAIN() { return 1; }
12387 rm -f conftest.
$ac_objext
12388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12389 (eval $ac_compile) 2>&5
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); } &&
12393 { ac_try
='test -s conftest.$ac_objext'
12394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12395 (eval $ac_try) 2>&5
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); }; }; then
12400 cat >>confdefs.h
<<\_ACEOF
12401 #define HAVE_CHROOT 1
12404 echo "$as_me:$LINENO: result: yes" >&5
12405 echo "${ECHO_T}yes" >&6
12407 echo "$as_me: failed program was:" >&5
12408 cat conftest.
$ac_ext >&5
12409 echo "$as_me:$LINENO: result: no" >&5
12410 echo "${ECHO_T}no" >&6
12413 rm -f conftest.
$ac_objext conftest.
$ac_ext
12414 echo "$as_me:$LINENO: checking for link" >&5
12415 echo $ECHO_N "checking for link... $ECHO_C" >&6
12416 cat >conftest.
$ac_ext <<_ACEOF
12417 #line $LINENO "configure"
12418 #include "confdefs.h"
12419 #include <unistd.h>
12420 #ifdef F77_DUMMY_MAIN
12421 # ifdef __cplusplus
12424 int F77_DUMMY_MAIN() { return 1; }
12434 rm -f conftest.
$ac_objext
12435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12436 (eval $ac_compile) 2>&5
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); } &&
12440 { ac_try
='test -s conftest.$ac_objext'
12441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12442 (eval $ac_try) 2>&5
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }; }; then
12447 cat >>confdefs.h
<<\_ACEOF
12448 #define HAVE_LINK 1
12451 echo "$as_me:$LINENO: result: yes" >&5
12452 echo "${ECHO_T}yes" >&6
12454 echo "$as_me: failed program was:" >&5
12455 cat conftest.
$ac_ext >&5
12456 echo "$as_me:$LINENO: result: no" >&5
12457 echo "${ECHO_T}no" >&6
12460 rm -f conftest.
$ac_objext conftest.
$ac_ext
12461 echo "$as_me:$LINENO: checking for symlink" >&5
12462 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
12463 cat >conftest.
$ac_ext <<_ACEOF
12464 #line $LINENO "configure"
12465 #include "confdefs.h"
12466 #include <unistd.h>
12467 #ifdef F77_DUMMY_MAIN
12468 # ifdef __cplusplus
12471 int F77_DUMMY_MAIN() { return 1; }
12481 rm -f conftest.
$ac_objext
12482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12483 (eval $ac_compile) 2>&5
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); } &&
12487 { ac_try
='test -s conftest.$ac_objext'
12488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12489 (eval $ac_try) 2>&5
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }; }; then
12494 cat >>confdefs.h
<<\_ACEOF
12495 #define HAVE_SYMLINK 1
12498 echo "$as_me:$LINENO: result: yes" >&5
12499 echo "${ECHO_T}yes" >&6
12501 echo "$as_me: failed program was:" >&5
12502 cat conftest.
$ac_ext >&5
12503 echo "$as_me:$LINENO: result: no" >&5
12504 echo "${ECHO_T}no" >&6
12507 rm -f conftest.
$ac_objext conftest.
$ac_ext
12509 # On some systems (eg. FreeBSD 5), we would find a definition of the
12510 # functions ctermid_r, setgroups in the library, but no prototype
12511 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
12512 # address to avoid compiler warnings and potential miscompilations
12513 # because of the missing prototypes.
12515 echo "$as_me:$LINENO: checking for ctermid_r" >&5
12516 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
12517 cat >conftest.
$ac_ext <<_ACEOF
12518 #line $LINENO "configure"
12519 #include "confdefs.h"
12521 #include "confdefs.h"
12524 #ifdef F77_DUMMY_MAIN
12525 # ifdef __cplusplus
12528 int F77_DUMMY_MAIN() { return 1; }
12533 void* p = ctermid_r
12538 rm -f conftest.
$ac_objext
12539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12540 (eval $ac_compile) 2>&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } &&
12544 { ac_try
='test -s conftest.$ac_objext'
12545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546 (eval $ac_try) 2>&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; }; then
12551 cat >>confdefs.h
<<\_ACEOF
12552 #define HAVE_CTERMID_R 1
12555 echo "$as_me:$LINENO: result: yes" >&5
12556 echo "${ECHO_T}yes" >&6
12558 echo "$as_me: failed program was:" >&5
12559 cat conftest.
$ac_ext >&5
12560 echo "$as_me:$LINENO: result: no" >&5
12561 echo "${ECHO_T}no" >&6
12564 rm -f conftest.
$ac_objext conftest.
$ac_ext
12566 echo "$as_me:$LINENO: checking for flock" >&5
12567 echo $ECHO_N "checking for flock... $ECHO_C" >&6
12568 cat >conftest.
$ac_ext <<_ACEOF
12569 #line $LINENO "configure"
12570 #include "confdefs.h"
12572 #include "confdefs.h"
12573 #include <sys/file.h>
12575 #ifdef F77_DUMMY_MAIN
12576 # ifdef __cplusplus
12579 int F77_DUMMY_MAIN() { return 1; }
12589 rm -f conftest.
$ac_objext
12590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12591 (eval $ac_compile) 2>&5
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); } &&
12595 { ac_try
='test -s conftest.$ac_objext'
12596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12597 (eval $ac_try) 2>&5
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); }; }; then
12602 cat >>confdefs.h
<<\_ACEOF
12603 #define HAVE_FLOCK 1
12606 echo "$as_me:$LINENO: result: yes" >&5
12607 echo "${ECHO_T}yes" >&6
12609 echo "$as_me: failed program was:" >&5
12610 cat conftest.
$ac_ext >&5
12611 echo "$as_me:$LINENO: result: no" >&5
12612 echo "${ECHO_T}no" >&6
12615 rm -f conftest.
$ac_objext conftest.
$ac_ext
12617 echo "$as_me:$LINENO: checking for getpagesize" >&5
12618 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
12619 cat >conftest.
$ac_ext <<_ACEOF
12620 #line $LINENO "configure"
12621 #include "confdefs.h"
12623 #include "confdefs.h"
12624 #include <unistd.h>
12626 #ifdef F77_DUMMY_MAIN
12627 # ifdef __cplusplus
12630 int F77_DUMMY_MAIN() { return 1; }
12635 void* p = getpagesize
12640 rm -f conftest.
$ac_objext
12641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12642 (eval $ac_compile) 2>&5
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); } &&
12646 { ac_try
='test -s conftest.$ac_objext'
12647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648 (eval $ac_try) 2>&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; }; then
12653 cat >>confdefs.h
<<\_ACEOF
12654 #define HAVE_GETPAGESIZE 1
12657 echo "$as_me:$LINENO: result: yes" >&5
12658 echo "${ECHO_T}yes" >&6
12660 echo "$as_me: failed program was:" >&5
12661 cat conftest.
$ac_ext >&5
12662 echo "$as_me:$LINENO: result: no" >&5
12663 echo "${ECHO_T}no" >&6
12666 rm -f conftest.
$ac_objext conftest.
$ac_ext
12668 for ac_prog
in true
12670 # Extract the first word of "$ac_prog", so it can be a program name with args.
12671 set dummy
$ac_prog; ac_word
=$2
12672 echo "$as_me:$LINENO: checking for $ac_word" >&5
12673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12674 if test "${ac_cv_prog_TRUE+set}" = set; then
12675 echo $ECHO_N "(cached) $ECHO_C" >&6
12677 if test -n "$TRUE"; then
12678 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
12680 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12681 for as_dir
in $PATH
12684 test -z "$as_dir" && as_dir
=.
12685 for ac_exec_ext
in '' $ac_executable_extensions; do
12686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12687 ac_cv_prog_TRUE
="$ac_prog"
12688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12696 TRUE
=$ac_cv_prog_TRUE
12697 if test -n "$TRUE"; then
12698 echo "$as_me:$LINENO: result: $TRUE" >&5
12699 echo "${ECHO_T}$TRUE" >&6
12701 echo "$as_me:$LINENO: result: no" >&5
12702 echo "${ECHO_T}no" >&6
12705 test -n "$TRUE" && break
12707 test -n "$TRUE" || TRUE
="/bin/true"
12710 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
12711 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
12712 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
12713 echo $ECHO_N "(cached) $ECHO_C" >&6
12715 ac_check_lib_save_LIBS
=$LIBS
12717 cat >conftest.
$ac_ext <<_ACEOF
12718 #line $LINENO "configure"
12719 #include "confdefs.h"
12721 /* Override any gcc2 internal prototype to avoid an error. */
12725 /* We use char because int might match the return type of a gcc2
12726 builtin and then its argument prototype would still apply. */
12728 #ifdef F77_DUMMY_MAIN
12729 # ifdef __cplusplus
12732 int F77_DUMMY_MAIN() { return 1; }
12742 rm -f conftest.
$ac_objext conftest
$ac_exeext
12743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12744 (eval $ac_link) 2>&5
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); } &&
12748 { ac_try
='test -s conftest$ac_exeext'
12749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12750 (eval $ac_try) 2>&5
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); }; }; then
12754 ac_cv_lib_c_inet_aton
=yes
12756 echo "$as_me: failed program was:" >&5
12757 cat conftest.
$ac_ext >&5
12758 ac_cv_lib_c_inet_aton
=no
12760 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12761 LIBS
=$ac_check_lib_save_LIBS
12763 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
12764 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
12765 if test $ac_cv_lib_c_inet_aton = yes; then
12769 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
12770 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
12771 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
12772 echo $ECHO_N "(cached) $ECHO_C" >&6
12774 ac_check_lib_save_LIBS
=$LIBS
12775 LIBS
="-lresolv $LIBS"
12776 cat >conftest.
$ac_ext <<_ACEOF
12777 #line $LINENO "configure"
12778 #include "confdefs.h"
12780 /* Override any gcc2 internal prototype to avoid an error. */
12784 /* We use char because int might match the return type of a gcc2
12785 builtin and then its argument prototype would still apply. */
12787 #ifdef F77_DUMMY_MAIN
12788 # ifdef __cplusplus
12791 int F77_DUMMY_MAIN() { return 1; }
12801 rm -f conftest.
$ac_objext conftest
$ac_exeext
12802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12803 (eval $ac_link) 2>&5
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); } &&
12807 { ac_try
='test -s conftest$ac_exeext'
12808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12809 (eval $ac_try) 2>&5
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); }; }; then
12813 ac_cv_lib_resolv_inet_aton
=yes
12815 echo "$as_me: failed program was:" >&5
12816 cat conftest.
$ac_ext >&5
12817 ac_cv_lib_resolv_inet_aton
=no
12819 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12820 LIBS
=$ac_check_lib_save_LIBS
12822 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
12823 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
12824 if test $ac_cv_lib_resolv_inet_aton = yes; then
12825 cat >>confdefs.h
<<_ACEOF
12826 #define HAVE_LIBRESOLV 1
12829 LIBS
="-lresolv $LIBS"
12837 echo "$as_me:$LINENO: checking for hstrerror" >&5
12838 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
12839 cat >conftest.
$ac_ext <<_ACEOF
12840 #line $LINENO "configure"
12841 #include "confdefs.h"
12843 #include "confdefs.h"
12846 #ifdef F77_DUMMY_MAIN
12847 # ifdef __cplusplus
12850 int F77_DUMMY_MAIN() { return 1; }
12855 void* p = hstrerror; hstrerror(0)
12860 rm -f conftest.
$ac_objext conftest
$ac_exeext
12861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12862 (eval $ac_link) 2>&5
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); } &&
12866 { ac_try
='test -s conftest$ac_exeext'
12867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12868 (eval $ac_try) 2>&5
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); }; }; then
12873 cat >>confdefs.h
<<\_ACEOF
12874 #define HAVE_HSTRERROR 1
12877 echo "$as_me:$LINENO: result: yes" >&5
12878 echo "${ECHO_T}yes" >&6
12880 echo "$as_me: failed program was:" >&5
12881 cat conftest.
$ac_ext >&5
12882 echo "$as_me:$LINENO: result: no" >&5
12883 echo "${ECHO_T}no" >&6
12886 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12888 echo "$as_me:$LINENO: checking for inet_aton" >&5
12889 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
12890 cat >conftest.
$ac_ext <<_ACEOF
12891 #line $LINENO "configure"
12892 #include "confdefs.h"
12894 #include "confdefs.h"
12895 #include <sys/socket.h>
12896 #include <netinet/in.h>
12897 #include <arpa/inet.h>
12899 #ifdef F77_DUMMY_MAIN
12900 # ifdef __cplusplus
12903 int F77_DUMMY_MAIN() { return 1; }
12908 void* p = inet_aton;inet_aton(0,0)
12913 rm -f conftest.
$ac_objext conftest
$ac_exeext
12914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12915 (eval $ac_link) 2>&5
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); } &&
12919 { ac_try
='test -s conftest$ac_exeext'
12920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12921 (eval $ac_try) 2>&5
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); }; }; then
12926 cat >>confdefs.h
<<\_ACEOF
12927 #define HAVE_INET_ATON 1
12930 echo "$as_me:$LINENO: result: yes" >&5
12931 echo "${ECHO_T}yes" >&6
12933 echo "$as_me: failed program was:" >&5
12934 cat conftest.
$ac_ext >&5
12935 echo "$as_me:$LINENO: result: no" >&5
12936 echo "${ECHO_T}no" >&6
12939 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12941 echo "$as_me:$LINENO: checking for inet_pton" >&5
12942 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
12943 cat >conftest.
$ac_ext <<_ACEOF
12944 #line $LINENO "configure"
12945 #include "confdefs.h"
12947 #include "confdefs.h"
12948 #include <sys/types.h>
12949 #include <sys/socket.h>
12950 #include <netinet/in.h>
12951 #include <arpa/inet.h>
12953 #ifdef F77_DUMMY_MAIN
12954 # ifdef __cplusplus
12957 int F77_DUMMY_MAIN() { return 1; }
12962 void* p = inet_pton
12967 rm -f conftest.
$ac_objext
12968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12969 (eval $ac_compile) 2>&5
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); } &&
12973 { ac_try
='test -s conftest.$ac_objext'
12974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12975 (eval $ac_try) 2>&5
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); }; }; then
12980 cat >>confdefs.h
<<\_ACEOF
12981 #define HAVE_INET_PTON 1
12984 echo "$as_me:$LINENO: result: yes" >&5
12985 echo "${ECHO_T}yes" >&6
12987 echo "$as_me: failed program was:" >&5
12988 cat conftest.
$ac_ext >&5
12989 echo "$as_me:$LINENO: result: no" >&5
12990 echo "${ECHO_T}no" >&6
12993 rm -f conftest.
$ac_objext conftest.
$ac_ext
12995 echo "$as_me:$LINENO: checking for setgroups" >&5
12996 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
12997 cat >conftest.
$ac_ext <<_ACEOF
12998 #line $LINENO "configure"
12999 #include "confdefs.h"
13001 #include "confdefs.h"
13002 #include <unistd.h>
13004 #ifdef F77_DUMMY_MAIN
13005 # ifdef __cplusplus
13008 int F77_DUMMY_MAIN() { return 1; }
13013 void* p = setgroups
13018 rm -f conftest.
$ac_objext
13019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13020 (eval $ac_compile) 2>&5
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); } &&
13024 { ac_try
='test -s conftest.$ac_objext'
13025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13026 (eval $ac_try) 2>&5
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); }; }; then
13031 cat >>confdefs.h
<<\_ACEOF
13032 #define HAVE_SETGROUPS 1
13035 echo "$as_me:$LINENO: result: yes" >&5
13036 echo "${ECHO_T}yes" >&6
13038 echo "$as_me: failed program was:" >&5
13039 cat conftest.
$ac_ext >&5
13040 echo "$as_me:$LINENO: result: no" >&5
13041 echo "${ECHO_T}no" >&6
13044 rm -f conftest.
$ac_objext conftest.
$ac_ext
13046 # check for openpty and forkpty
13049 for ac_func
in openpty
13051 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13052 echo "$as_me:$LINENO: checking for $ac_func" >&5
13053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13054 if eval "test \"\${$as_ac_var+set}\" = set"; then
13055 echo $ECHO_N "(cached) $ECHO_C" >&6
13057 cat >conftest.
$ac_ext <<_ACEOF
13058 #line $LINENO "configure"
13059 #include "confdefs.h"
13060 /* System header to define __stub macros and hopefully few prototypes,
13061 which can conflict with char $ac_func (); below. */
13062 #include <assert.h>
13063 /* Override any gcc2 internal prototype to avoid an error. */
13067 /* We use char because int might match the return type of a gcc2
13068 builtin and then its argument prototype would still apply. */
13072 #ifdef F77_DUMMY_MAIN
13073 # ifdef __cplusplus
13076 int F77_DUMMY_MAIN() { return 1; }
13081 /* The GNU C library defines this for functions which it implements
13082 to always fail with ENOSYS. Some functions are actually named
13083 something starting with __ and the normal name is an alias. */
13084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13094 rm -f conftest.
$ac_objext conftest
$ac_exeext
13095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13096 (eval $ac_link) 2>&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); } &&
13100 { ac_try
='test -s conftest$ac_exeext'
13101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13102 (eval $ac_try) 2>&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); }; }; then
13106 eval "$as_ac_var=yes"
13108 echo "$as_me: failed program was:" >&5
13109 cat conftest.
$ac_ext >&5
13110 eval "$as_ac_var=no"
13112 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13115 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13116 if test `eval echo '${'$as_ac_var'}'` = yes; then
13117 cat >>confdefs.h
<<_ACEOF
13118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13122 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
13123 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
13124 if test "${ac_cv_lib_util_openpty+set}" = set; then
13125 echo $ECHO_N "(cached) $ECHO_C" >&6
13127 ac_check_lib_save_LIBS
=$LIBS
13128 LIBS
="-lutil $LIBS"
13129 cat >conftest.
$ac_ext <<_ACEOF
13130 #line $LINENO "configure"
13131 #include "confdefs.h"
13133 /* Override any gcc2 internal prototype to avoid an error. */
13137 /* We use char because int might match the return type of a gcc2
13138 builtin and then its argument prototype would still apply. */
13140 #ifdef F77_DUMMY_MAIN
13141 # ifdef __cplusplus
13144 int F77_DUMMY_MAIN() { return 1; }
13154 rm -f conftest.
$ac_objext conftest
$ac_exeext
13155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13156 (eval $ac_link) 2>&5
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); } &&
13160 { ac_try
='test -s conftest$ac_exeext'
13161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13162 (eval $ac_try) 2>&5
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); }; }; then
13166 ac_cv_lib_util_openpty
=yes
13168 echo "$as_me: failed program was:" >&5
13169 cat conftest.
$ac_ext >&5
13170 ac_cv_lib_util_openpty
=no
13172 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13173 LIBS
=$ac_check_lib_save_LIBS
13175 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
13176 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
13177 if test $ac_cv_lib_util_openpty = yes; then
13178 cat >>confdefs.h
<<\_ACEOF
13179 #define HAVE_OPENPTY 1
13181 LIBS
="$LIBS -lutil"
13188 for ac_func
in forkpty
13190 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13191 echo "$as_me:$LINENO: checking for $ac_func" >&5
13192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13193 if eval "test \"\${$as_ac_var+set}\" = set"; then
13194 echo $ECHO_N "(cached) $ECHO_C" >&6
13196 cat >conftest.
$ac_ext <<_ACEOF
13197 #line $LINENO "configure"
13198 #include "confdefs.h"
13199 /* System header to define __stub macros and hopefully few prototypes,
13200 which can conflict with char $ac_func (); below. */
13201 #include <assert.h>
13202 /* Override any gcc2 internal prototype to avoid an error. */
13206 /* We use char because int might match the return type of a gcc2
13207 builtin and then its argument prototype would still apply. */
13211 #ifdef F77_DUMMY_MAIN
13212 # ifdef __cplusplus
13215 int F77_DUMMY_MAIN() { return 1; }
13220 /* The GNU C library defines this for functions which it implements
13221 to always fail with ENOSYS. Some functions are actually named
13222 something starting with __ and the normal name is an alias. */
13223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13233 rm -f conftest.
$ac_objext conftest
$ac_exeext
13234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13235 (eval $ac_link) 2>&5
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); } &&
13239 { ac_try
='test -s conftest$ac_exeext'
13240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13241 (eval $ac_try) 2>&5
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); }; }; then
13245 eval "$as_ac_var=yes"
13247 echo "$as_me: failed program was:" >&5
13248 cat conftest.
$ac_ext >&5
13249 eval "$as_ac_var=no"
13251 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13254 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13255 if test `eval echo '${'$as_ac_var'}'` = yes; then
13256 cat >>confdefs.h
<<_ACEOF
13257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13261 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
13262 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
13263 if test "${ac_cv_lib_util_forkpty+set}" = set; then
13264 echo $ECHO_N "(cached) $ECHO_C" >&6
13266 ac_check_lib_save_LIBS
=$LIBS
13267 LIBS
="-lutil $LIBS"
13268 cat >conftest.
$ac_ext <<_ACEOF
13269 #line $LINENO "configure"
13270 #include "confdefs.h"
13272 /* Override any gcc2 internal prototype to avoid an error. */
13276 /* We use char because int might match the return type of a gcc2
13277 builtin and then its argument prototype would still apply. */
13279 #ifdef F77_DUMMY_MAIN
13280 # ifdef __cplusplus
13283 int F77_DUMMY_MAIN() { return 1; }
13293 rm -f conftest.
$ac_objext conftest
$ac_exeext
13294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13295 (eval $ac_link) 2>&5
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); } &&
13299 { ac_try
='test -s conftest$ac_exeext'
13300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13301 (eval $ac_try) 2>&5
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); }; }; then
13305 ac_cv_lib_util_forkpty
=yes
13307 echo "$as_me: failed program was:" >&5
13308 cat conftest.
$ac_ext >&5
13309 ac_cv_lib_util_forkpty
=no
13311 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13312 LIBS
=$ac_check_lib_save_LIBS
13314 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
13315 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
13316 if test $ac_cv_lib_util_forkpty = yes; then
13317 cat >>confdefs.h
<<\_ACEOF
13318 #define HAVE_FORKPTY 1
13320 LIBS
="$LIBS -lutil"
13327 # check for long file support functions
13334 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
13336 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13337 echo "$as_me:$LINENO: checking for $ac_func" >&5
13338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13339 if eval "test \"\${$as_ac_var+set}\" = set"; then
13340 echo $ECHO_N "(cached) $ECHO_C" >&6
13342 cat >conftest.
$ac_ext <<_ACEOF
13343 #line $LINENO "configure"
13344 #include "confdefs.h"
13345 /* System header to define __stub macros and hopefully few prototypes,
13346 which can conflict with char $ac_func (); below. */
13347 #include <assert.h>
13348 /* Override any gcc2 internal prototype to avoid an error. */
13352 /* We use char because int might match the return type of a gcc2
13353 builtin and then its argument prototype would still apply. */
13357 #ifdef F77_DUMMY_MAIN
13358 # ifdef __cplusplus
13361 int F77_DUMMY_MAIN() { return 1; }
13366 /* The GNU C library defines this for functions which it implements
13367 to always fail with ENOSYS. Some functions are actually named
13368 something starting with __ and the normal name is an alias. */
13369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13379 rm -f conftest.
$ac_objext conftest
$ac_exeext
13380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13381 (eval $ac_link) 2>&5
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); } &&
13385 { ac_try
='test -s conftest$ac_exeext'
13386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13387 (eval $ac_try) 2>&5
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; }; then
13391 eval "$as_ac_var=yes"
13393 echo "$as_me: failed program was:" >&5
13394 cat conftest.
$ac_ext >&5
13395 eval "$as_ac_var=no"
13397 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13400 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13401 if test `eval echo '${'$as_ac_var'}'` = yes; then
13402 cat >>confdefs.h
<<_ACEOF
13403 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13415 for ac_func
in dup2 getcwd strdup strerror memmove
13417 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13418 echo "$as_me:$LINENO: checking for $ac_func" >&5
13419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13420 if eval "test \"\${$as_ac_var+set}\" = set"; then
13421 echo $ECHO_N "(cached) $ECHO_C" >&6
13423 cat >conftest.
$ac_ext <<_ACEOF
13424 #line $LINENO "configure"
13425 #include "confdefs.h"
13426 /* System header to define __stub macros and hopefully few prototypes,
13427 which can conflict with char $ac_func (); below. */
13428 #include <assert.h>
13429 /* Override any gcc2 internal prototype to avoid an error. */
13433 /* We use char because int might match the return type of a gcc2
13434 builtin and then its argument prototype would still apply. */
13438 #ifdef F77_DUMMY_MAIN
13439 # ifdef __cplusplus
13442 int F77_DUMMY_MAIN() { return 1; }
13447 /* The GNU C library defines this for functions which it implements
13448 to always fail with ENOSYS. Some functions are actually named
13449 something starting with __ and the normal name is an alias. */
13450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13460 rm -f conftest.
$ac_objext conftest
$ac_exeext
13461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13462 (eval $ac_link) 2>&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); } &&
13466 { ac_try
='test -s conftest$ac_exeext'
13467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13468 (eval $ac_try) 2>&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); }; }; then
13472 eval "$as_ac_var=yes"
13474 echo "$as_me: failed program was:" >&5
13475 cat conftest.
$ac_ext >&5
13476 eval "$as_ac_var=no"
13478 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13481 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13482 if test `eval echo '${'$as_ac_var'}'` = yes; then
13483 cat >>confdefs.h
<<_ACEOF
13484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13488 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
13494 for ac_func
in getpgrp
13496 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13497 echo "$as_me:$LINENO: checking for $ac_func" >&5
13498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13499 if eval "test \"\${$as_ac_var+set}\" = set"; then
13500 echo $ECHO_N "(cached) $ECHO_C" >&6
13502 cat >conftest.
$ac_ext <<_ACEOF
13503 #line $LINENO "configure"
13504 #include "confdefs.h"
13505 /* System header to define __stub macros and hopefully few prototypes,
13506 which can conflict with char $ac_func (); below. */
13507 #include <assert.h>
13508 /* Override any gcc2 internal prototype to avoid an error. */
13512 /* We use char because int might match the return type of a gcc2
13513 builtin and then its argument prototype would still apply. */
13517 #ifdef F77_DUMMY_MAIN
13518 # ifdef __cplusplus
13521 int F77_DUMMY_MAIN() { return 1; }
13526 /* The GNU C library defines this for functions which it implements
13527 to always fail with ENOSYS. Some functions are actually named
13528 something starting with __ and the normal name is an alias. */
13529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13539 rm -f conftest.
$ac_objext conftest
$ac_exeext
13540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13541 (eval $ac_link) 2>&5
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); } &&
13545 { ac_try
='test -s conftest$ac_exeext'
13546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13547 (eval $ac_try) 2>&5
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); }; }; then
13551 eval "$as_ac_var=yes"
13553 echo "$as_me: failed program was:" >&5
13554 cat conftest.
$ac_ext >&5
13555 eval "$as_ac_var=no"
13557 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13560 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13561 if test `eval echo '${'$as_ac_var'}'` = yes; then
13562 cat >>confdefs.h
<<_ACEOF
13563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13565 cat >conftest.
$ac_ext <<_ACEOF
13566 #line $LINENO "configure"
13567 #include "confdefs.h"
13568 #include <unistd.h>
13569 #ifdef F77_DUMMY_MAIN
13570 # ifdef __cplusplus
13573 int F77_DUMMY_MAIN() { return 1; }
13583 rm -f conftest.
$ac_objext
13584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13585 (eval $ac_compile) 2>&5
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); } &&
13589 { ac_try
='test -s conftest.$ac_objext'
13590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13591 (eval $ac_try) 2>&5
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); }; }; then
13596 cat >>confdefs.h
<<\_ACEOF
13597 #define GETPGRP_HAVE_ARG 1
13602 echo "$as_me: failed program was:" >&5
13603 cat conftest.
$ac_ext >&5
13605 rm -f conftest.
$ac_objext conftest.
$ac_ext
13611 for ac_func
in setpgrp
13613 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13614 echo "$as_me:$LINENO: checking for $ac_func" >&5
13615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13616 if eval "test \"\${$as_ac_var+set}\" = set"; then
13617 echo $ECHO_N "(cached) $ECHO_C" >&6
13619 cat >conftest.
$ac_ext <<_ACEOF
13620 #line $LINENO "configure"
13621 #include "confdefs.h"
13622 /* System header to define __stub macros and hopefully few prototypes,
13623 which can conflict with char $ac_func (); below. */
13624 #include <assert.h>
13625 /* Override any gcc2 internal prototype to avoid an error. */
13629 /* We use char because int might match the return type of a gcc2
13630 builtin and then its argument prototype would still apply. */
13634 #ifdef F77_DUMMY_MAIN
13635 # ifdef __cplusplus
13638 int F77_DUMMY_MAIN() { return 1; }
13643 /* The GNU C library defines this for functions which it implements
13644 to always fail with ENOSYS. Some functions are actually named
13645 something starting with __ and the normal name is an alias. */
13646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13656 rm -f conftest.
$ac_objext conftest
$ac_exeext
13657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13658 (eval $ac_link) 2>&5
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); } &&
13662 { ac_try
='test -s conftest$ac_exeext'
13663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13664 (eval $ac_try) 2>&5
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); }; }; then
13668 eval "$as_ac_var=yes"
13670 echo "$as_me: failed program was:" >&5
13671 cat conftest.
$ac_ext >&5
13672 eval "$as_ac_var=no"
13674 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13677 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13678 if test `eval echo '${'$as_ac_var'}'` = yes; then
13679 cat >>confdefs.h
<<_ACEOF
13680 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13682 cat >conftest.
$ac_ext <<_ACEOF
13683 #line $LINENO "configure"
13684 #include "confdefs.h"
13685 #include <unistd.h>
13686 #ifdef F77_DUMMY_MAIN
13687 # ifdef __cplusplus
13690 int F77_DUMMY_MAIN() { return 1; }
13700 rm -f conftest.
$ac_objext
13701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13702 (eval $ac_compile) 2>&5
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); } &&
13706 { ac_try
='test -s conftest.$ac_objext'
13707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13708 (eval $ac_try) 2>&5
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); }; }; then
13713 cat >>confdefs.h
<<\_ACEOF
13714 #define SETPGRP_HAVE_ARG 1
13719 echo "$as_me: failed program was:" >&5
13720 cat conftest.
$ac_ext >&5
13722 rm -f conftest.
$ac_objext conftest.
$ac_ext
13728 for ac_func
in gettimeofday
13730 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13731 echo "$as_me:$LINENO: checking for $ac_func" >&5
13732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13733 if eval "test \"\${$as_ac_var+set}\" = set"; then
13734 echo $ECHO_N "(cached) $ECHO_C" >&6
13736 cat >conftest.
$ac_ext <<_ACEOF
13737 #line $LINENO "configure"
13738 #include "confdefs.h"
13739 /* System header to define __stub macros and hopefully few prototypes,
13740 which can conflict with char $ac_func (); below. */
13741 #include <assert.h>
13742 /* Override any gcc2 internal prototype to avoid an error. */
13746 /* We use char because int might match the return type of a gcc2
13747 builtin and then its argument prototype would still apply. */
13751 #ifdef F77_DUMMY_MAIN
13752 # ifdef __cplusplus
13755 int F77_DUMMY_MAIN() { return 1; }
13760 /* The GNU C library defines this for functions which it implements
13761 to always fail with ENOSYS. Some functions are actually named
13762 something starting with __ and the normal name is an alias. */
13763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13773 rm -f conftest.
$ac_objext conftest
$ac_exeext
13774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13775 (eval $ac_link) 2>&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); } &&
13779 { ac_try
='test -s conftest$ac_exeext'
13780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13781 (eval $ac_try) 2>&5
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); }; }; then
13785 eval "$as_ac_var=yes"
13787 echo "$as_me: failed program was:" >&5
13788 cat conftest.
$ac_ext >&5
13789 eval "$as_ac_var=no"
13791 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13794 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13795 if test `eval echo '${'$as_ac_var'}'` = yes; then
13796 cat >>confdefs.h
<<_ACEOF
13797 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13799 cat >conftest.
$ac_ext <<_ACEOF
13800 #line $LINENO "configure"
13801 #include "confdefs.h"
13802 #include <sys/time.h>
13803 #ifdef F77_DUMMY_MAIN
13804 # ifdef __cplusplus
13807 int F77_DUMMY_MAIN() { return 1; }
13812 gettimeofday((struct timeval*)0,(struct timezone*)0);
13817 rm -f conftest.
$ac_objext
13818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13819 (eval $ac_compile) 2>&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } &&
13823 { ac_try
='test -s conftest.$ac_objext'
13824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13825 (eval $ac_try) 2>&5
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); }; }; then
13831 echo "$as_me: failed program was:" >&5
13832 cat conftest.
$ac_ext >&5
13834 cat >>confdefs.h
<<\_ACEOF
13835 #define GETTIMEOFDAY_NO_TZ 1
13840 rm -f conftest.
$ac_objext conftest.
$ac_ext
13846 echo "$as_me:$LINENO: checking for major" >&5
13847 echo $ECHO_N "checking for major... $ECHO_C" >&6
13848 cat >conftest.
$ac_ext <<_ACEOF
13849 #line $LINENO "configure"
13850 #include "confdefs.h"
13852 #if defined(MAJOR_IN_MKDEV)
13853 #include <sys/mkdev.h>
13854 #elif defined(MAJOR_IN_SYSMACROS)
13855 #include <sys/sysmacros.h>
13857 #include <sys/types.h>
13860 #ifdef F77_DUMMY_MAIN
13861 # ifdef __cplusplus
13864 int F77_DUMMY_MAIN() { return 1; }
13870 makedev(major(0),minor(0));
13876 rm -f conftest.
$ac_objext conftest
$ac_exeext
13877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13878 (eval $ac_link) 2>&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); } &&
13882 { ac_try
='test -s conftest$ac_exeext'
13883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13884 (eval $ac_try) 2>&5
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); }; }; then
13890 cat >>confdefs.h
<<\_ACEOF
13891 #define HAVE_DEVICE_MACROS 1
13894 echo "$as_me:$LINENO: result: yes" >&5
13895 echo "${ECHO_T}yes" >&6
13898 echo "$as_me: failed program was:" >&5
13899 cat conftest.
$ac_ext >&5
13901 echo "$as_me:$LINENO: result: no" >&5
13902 echo "${ECHO_T}no" >&6
13905 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13907 # On OSF/1 V5.1, getaddrinfo is available, but a define
13908 # for [no]getaddrinfo in netdb.h.
13909 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
13910 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
13911 cat >conftest.
$ac_ext <<_ACEOF
13912 #line $LINENO "configure"
13913 #include "confdefs.h"
13915 #include <sys/types.h>
13916 #include <sys/socket.h>
13920 #ifdef F77_DUMMY_MAIN
13921 # ifdef __cplusplus
13924 int F77_DUMMY_MAIN() { return 1; }
13930 getaddrinfo(NULL, NULL, NULL, NULL);
13936 rm -f conftest.
$ac_objext conftest
$ac_exeext
13937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13938 (eval $ac_link) 2>&5
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); } &&
13942 { ac_try
='test -s conftest$ac_exeext'
13943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13944 (eval $ac_try) 2>&5
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; }; then
13949 echo "$as_me:$LINENO: result: yes" >&5
13950 echo "${ECHO_T}yes" >&6
13951 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
13952 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
13953 if test "$cross_compiling" = yes; then
13954 echo "$as_me:$LINENO: result: buggy" >&5
13955 echo "${ECHO_T}buggy" >&6
13956 buggygetaddrinfo
=yes
13958 cat >conftest.
$ac_ext <<_ACEOF
13959 #line $LINENO "configure"
13960 #include "confdefs.h"
13962 #include <sys/types.h>
13964 #include <string.h>
13965 #include <sys/socket.h>
13966 #include <netinet/in.h>
13970 int passive, gaierr, inet4 = 0, inet6 = 0;
13971 struct addrinfo hints, *ai, *aitop;
13972 char straddr[INET6_ADDRSTRLEN], strport[16];
13974 for (passive = 0; passive <= 1; passive++) {
13975 memset(&hints, 0, sizeof(hints));
13976 hints.ai_family = AF_UNSPEC;
13977 hints.ai_flags = passive ? AI_PASSIVE : 0;
13978 hints.ai_socktype = SOCK_STREAM;
13979 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
13980 (void)gai_strerror(gaierr);
13983 for (ai = aitop; ai; ai = ai->ai_next) {
13984 if (ai->ai_addr == NULL ||
13985 ai->ai_addrlen == 0 ||
13986 getnameinfo(ai->ai_addr, ai->ai_addrlen,
13987 straddr, sizeof(straddr), strport, sizeof(strport),
13988 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
13991 switch (ai->ai_family) {
13993 if (strcmp(strport, "54321") != 0) {
13997 if (strcmp(straddr, "0.0.0.0") != 0) {
14001 if (strcmp(straddr, "127.0.0.1") != 0) {
14008 if (strcmp(strport, "54321") != 0) {
14012 if (strcmp(straddr, "::") != 0) {
14016 if (strcmp(straddr, "::1") != 0) {
14026 /* another family support? */
14032 if (!(inet4 == 0 || inet4 == 2))
14034 if (!(inet6 == 0 || inet6 == 2))
14038 freeaddrinfo(aitop);
14043 freeaddrinfo(aitop);
14048 rm -f conftest
$ac_exeext
14049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14050 (eval $ac_link) 2>&5
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14055 (eval $ac_try) 2>&5
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); }; }; then
14059 echo "$as_me:$LINENO: result: good" >&5
14060 echo "${ECHO_T}good" >&6
14061 buggygetaddrinfo
=no
14063 echo "$as_me: program exited with status $ac_status" >&5
14064 echo "$as_me: failed program was:" >&5
14065 cat conftest.
$ac_ext >&5
14066 ( exit $ac_status )
14067 echo "$as_me:$LINENO: result: buggy" >&5
14068 echo "${ECHO_T}buggy" >&6
14069 buggygetaddrinfo
=yes
14071 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14074 echo "$as_me: failed program was:" >&5
14075 cat conftest.
$ac_ext >&5
14077 echo "$as_me:$LINENO: result: no" >&5
14078 echo "${ECHO_T}no" >&6
14079 buggygetaddrinfo
=yes
14082 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14084 if test "$buggygetaddrinfo" = "yes"; then
14085 if test "$ipv6" = "yes"; then
14086 echo 'Fatal: You must get working getaddrinfo() function.'
14087 echo ' or you can specify "--disable-ipv6"'.
14092 cat >>confdefs.h
<<\_ACEOF
14093 #define HAVE_GETADDRINFO 1
14098 for ac_func
in getnameinfo
14100 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14101 echo "$as_me:$LINENO: checking for $ac_func" >&5
14102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14103 if eval "test \"\${$as_ac_var+set}\" = set"; then
14104 echo $ECHO_N "(cached) $ECHO_C" >&6
14106 cat >conftest.
$ac_ext <<_ACEOF
14107 #line $LINENO "configure"
14108 #include "confdefs.h"
14109 /* System header to define __stub macros and hopefully few prototypes,
14110 which can conflict with char $ac_func (); below. */
14111 #include <assert.h>
14112 /* Override any gcc2 internal prototype to avoid an error. */
14116 /* We use char because int might match the return type of a gcc2
14117 builtin and then its argument prototype would still apply. */
14121 #ifdef F77_DUMMY_MAIN
14122 # ifdef __cplusplus
14125 int F77_DUMMY_MAIN() { return 1; }
14130 /* The GNU C library defines this for functions which it implements
14131 to always fail with ENOSYS. Some functions are actually named
14132 something starting with __ and the normal name is an alias. */
14133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14143 rm -f conftest.
$ac_objext conftest
$ac_exeext
14144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14145 (eval $ac_link) 2>&5
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); } &&
14149 { ac_try
='test -s conftest$ac_exeext'
14150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14151 (eval $ac_try) 2>&5
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); }; }; then
14155 eval "$as_ac_var=yes"
14157 echo "$as_me: failed program was:" >&5
14158 cat conftest.
$ac_ext >&5
14159 eval "$as_ac_var=no"
14161 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14164 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14165 if test `eval echo '${'$as_ac_var'}'` = yes; then
14166 cat >>confdefs.h
<<_ACEOF
14167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14174 # checks for structures
14175 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14176 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
14177 if test "${ac_cv_header_time+set}" = set; then
14178 echo $ECHO_N "(cached) $ECHO_C" >&6
14180 cat >conftest.
$ac_ext <<_ACEOF
14181 #line $LINENO "configure"
14182 #include "confdefs.h"
14183 #include <sys/types.h>
14184 #include <sys/time.h>
14187 #ifdef F77_DUMMY_MAIN
14188 # ifdef __cplusplus
14191 int F77_DUMMY_MAIN() { return 1; }
14196 if ((struct tm *) 0)
14202 rm -f conftest.
$ac_objext
14203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14204 (eval $ac_compile) 2>&5
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); } &&
14208 { ac_try
='test -s conftest.$ac_objext'
14209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14210 (eval $ac_try) 2>&5
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); }; }; then
14214 ac_cv_header_time
=yes
14216 echo "$as_me: failed program was:" >&5
14217 cat conftest.
$ac_ext >&5
14218 ac_cv_header_time
=no
14220 rm -f conftest.
$ac_objext conftest.
$ac_ext
14222 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14223 echo "${ECHO_T}$ac_cv_header_time" >&6
14224 if test $ac_cv_header_time = yes; then
14226 cat >>confdefs.h
<<\_ACEOF
14227 #define TIME_WITH_SYS_TIME 1
14232 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14233 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14234 if test "${ac_cv_struct_tm+set}" = set; then
14235 echo $ECHO_N "(cached) $ECHO_C" >&6
14237 cat >conftest.
$ac_ext <<_ACEOF
14238 #line $LINENO "configure"
14239 #include "confdefs.h"
14240 #include <sys/types.h>
14243 #ifdef F77_DUMMY_MAIN
14244 # ifdef __cplusplus
14247 int F77_DUMMY_MAIN() { return 1; }
14252 struct tm *tp; tp->tm_sec;
14257 rm -f conftest.
$ac_objext
14258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14259 (eval $ac_compile) 2>&5
14261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 (exit $ac_status); } &&
14263 { ac_try
='test -s conftest.$ac_objext'
14264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14265 (eval $ac_try) 2>&5
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); }; }; then
14269 ac_cv_struct_tm
=time.h
14271 echo "$as_me: failed program was:" >&5
14272 cat conftest.
$ac_ext >&5
14273 ac_cv_struct_tm
=sys
/time.h
14275 rm -f conftest.
$ac_objext conftest.
$ac_ext
14277 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14278 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14279 if test $ac_cv_struct_tm = sys
/time.h
; then
14281 cat >>confdefs.h
<<\_ACEOF
14282 #define TM_IN_SYS_TIME 1
14287 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14288 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
14289 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14290 echo $ECHO_N "(cached) $ECHO_C" >&6
14292 cat >conftest.
$ac_ext <<_ACEOF
14293 #line $LINENO "configure"
14294 #include "confdefs.h"
14295 #include <sys/types.h>
14296 #include <$ac_cv_struct_tm>
14299 #ifdef F77_DUMMY_MAIN
14300 # ifdef __cplusplus
14303 int F77_DUMMY_MAIN() { return 1; }
14308 static struct tm ac_aggr;
14309 if (ac_aggr.tm_zone)
14315 rm -f conftest.
$ac_objext
14316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14317 (eval $ac_compile) 2>&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); } &&
14321 { ac_try
='test -s conftest.$ac_objext'
14322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323 (eval $ac_try) 2>&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; }; then
14327 ac_cv_member_struct_tm_tm_zone
=yes
14329 echo "$as_me: failed program was:" >&5
14330 cat conftest.
$ac_ext >&5
14331 ac_cv_member_struct_tm_tm_zone
=no
14333 rm -f conftest.
$ac_objext conftest.
$ac_ext
14335 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
14336 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
14337 if test $ac_cv_member_struct_tm_tm_zone = yes; then
14339 cat >>confdefs.h
<<_ACEOF
14340 #define HAVE_STRUCT_TM_TM_ZONE 1
14346 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14348 cat >>confdefs.h
<<\_ACEOF
14349 #define HAVE_TM_ZONE 1
14353 echo "$as_me:$LINENO: checking for tzname" >&5
14354 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
14355 if test "${ac_cv_var_tzname+set}" = set; then
14356 echo $ECHO_N "(cached) $ECHO_C" >&6
14358 cat >conftest.
$ac_ext <<_ACEOF
14359 #line $LINENO "configure"
14360 #include "confdefs.h"
14362 #ifndef tzname /* For SGI. */
14363 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
14366 #ifdef F77_DUMMY_MAIN
14367 # ifdef __cplusplus
14370 int F77_DUMMY_MAIN() { return 1; }
14380 rm -f conftest.
$ac_objext conftest
$ac_exeext
14381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14382 (eval $ac_link) 2>&5
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); } &&
14386 { ac_try
='test -s conftest$ac_exeext'
14387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388 (eval $ac_try) 2>&5
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; }; then
14392 ac_cv_var_tzname
=yes
14394 echo "$as_me: failed program was:" >&5
14395 cat conftest.
$ac_ext >&5
14396 ac_cv_var_tzname
=no
14398 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14400 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
14401 echo "${ECHO_T}$ac_cv_var_tzname" >&6
14402 if test $ac_cv_var_tzname = yes; then
14404 cat >>confdefs.h
<<\_ACEOF
14405 #define HAVE_TZNAME 1
14411 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
14412 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
14413 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
14414 echo $ECHO_N "(cached) $ECHO_C" >&6
14416 cat >conftest.
$ac_ext <<_ACEOF
14417 #line $LINENO "configure"
14418 #include "confdefs.h"
14419 $ac_includes_default
14420 #ifdef F77_DUMMY_MAIN
14421 # ifdef __cplusplus
14424 int F77_DUMMY_MAIN() { return 1; }
14429 static struct stat ac_aggr;
14430 if (ac_aggr.st_rdev)
14436 rm -f conftest.
$ac_objext
14437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14438 (eval $ac_compile) 2>&5
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); } &&
14442 { ac_try
='test -s conftest.$ac_objext'
14443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444 (eval $ac_try) 2>&5
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; }; then
14448 ac_cv_member_struct_stat_st_rdev
=yes
14450 echo "$as_me: failed program was:" >&5
14451 cat conftest.
$ac_ext >&5
14452 ac_cv_member_struct_stat_st_rdev
=no
14454 rm -f conftest.
$ac_objext conftest.
$ac_ext
14456 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
14457 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
14458 if test $ac_cv_member_struct_stat_st_rdev = yes; then
14460 cat >>confdefs.h
<<_ACEOF
14461 #define HAVE_STRUCT_STAT_ST_RDEV 1
14467 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
14468 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
14469 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
14470 echo $ECHO_N "(cached) $ECHO_C" >&6
14472 cat >conftest.
$ac_ext <<_ACEOF
14473 #line $LINENO "configure"
14474 #include "confdefs.h"
14475 $ac_includes_default
14476 #ifdef F77_DUMMY_MAIN
14477 # ifdef __cplusplus
14480 int F77_DUMMY_MAIN() { return 1; }
14485 static struct stat ac_aggr;
14486 if (ac_aggr.st_blksize)
14492 rm -f conftest.
$ac_objext
14493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14494 (eval $ac_compile) 2>&5
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); } &&
14498 { ac_try
='test -s conftest.$ac_objext'
14499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14500 (eval $ac_try) 2>&5
14502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); }; }; then
14504 ac_cv_member_struct_stat_st_blksize
=yes
14506 echo "$as_me: failed program was:" >&5
14507 cat conftest.
$ac_ext >&5
14508 ac_cv_member_struct_stat_st_blksize
=no
14510 rm -f conftest.
$ac_objext conftest.
$ac_ext
14512 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
14513 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
14514 if test $ac_cv_member_struct_stat_st_blksize = yes; then
14516 cat >>confdefs.h
<<_ACEOF
14517 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
14523 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14524 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14525 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14526 echo $ECHO_N "(cached) $ECHO_C" >&6
14528 cat >conftest.
$ac_ext <<_ACEOF
14529 #line $LINENO "configure"
14530 #include "confdefs.h"
14531 $ac_includes_default
14532 #ifdef F77_DUMMY_MAIN
14533 # ifdef __cplusplus
14536 int F77_DUMMY_MAIN() { return 1; }
14541 static struct stat ac_aggr;
14542 if (ac_aggr.st_blocks)
14548 rm -f conftest.
$ac_objext
14549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14550 (eval $ac_compile) 2>&5
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); } &&
14554 { ac_try
='test -s conftest.$ac_objext'
14555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14556 (eval $ac_try) 2>&5
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); }; }; then
14560 ac_cv_member_struct_stat_st_blocks
=yes
14562 echo "$as_me: failed program was:" >&5
14563 cat conftest.
$ac_ext >&5
14564 ac_cv_member_struct_stat_st_blocks
=no
14566 rm -f conftest.
$ac_objext conftest.
$ac_ext
14568 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14569 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14570 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14572 cat >>confdefs.h
<<_ACEOF
14573 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14577 cat >>confdefs.h
<<\_ACEOF
14578 #define HAVE_ST_BLOCKS 1
14582 LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
14587 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
14588 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
14589 if test "${ac_cv_header_time_altzone+set}" = set; then
14590 echo $ECHO_N "(cached) $ECHO_C" >&6
14592 cat >conftest.
$ac_ext <<_ACEOF
14593 #line $LINENO "configure"
14594 #include "confdefs.h"
14596 #ifdef F77_DUMMY_MAIN
14597 # ifdef __cplusplus
14600 int F77_DUMMY_MAIN() { return 1; }
14610 rm -f conftest.
$ac_objext
14611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14612 (eval $ac_compile) 2>&5
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); } &&
14616 { ac_try
='test -s conftest.$ac_objext'
14617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14618 (eval $ac_try) 2>&5
14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); }; }; then
14622 ac_cv_header_time_altzone
=yes
14624 echo "$as_me: failed program was:" >&5
14625 cat conftest.
$ac_ext >&5
14626 ac_cv_header_time_altzone
=no
14628 rm -f conftest.
$ac_objext conftest.
$ac_ext
14631 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
14632 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
14633 if test $ac_cv_header_time_altzone = yes; then
14635 cat >>confdefs.h
<<\_ACEOF
14636 #define HAVE_ALTZONE 1
14642 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
14643 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
14644 cat >conftest.
$ac_ext <<_ACEOF
14645 #line $LINENO "configure"
14646 #include "confdefs.h"
14648 #include <sys/types.h>
14649 #include <sys/select.h>
14650 #include <sys/time.h>
14652 #ifdef F77_DUMMY_MAIN
14653 # ifdef __cplusplus
14656 int F77_DUMMY_MAIN() { return 1; }
14666 rm -f conftest.
$ac_objext
14667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14668 (eval $ac_compile) 2>&5
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); } &&
14672 { ac_try
='test -s conftest.$ac_objext'
14673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674 (eval $ac_try) 2>&5
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); }; }; then
14680 cat >>confdefs.h
<<\_ACEOF
14681 #define SYS_SELECT_WITH_SYS_TIME 1
14687 echo "$as_me: failed program was:" >&5
14688 cat conftest.
$ac_ext >&5
14690 rm -f conftest.
$ac_objext conftest.
$ac_ext
14691 echo "$as_me:$LINENO: result: $was_it_defined" >&5
14692 echo "${ECHO_T}$was_it_defined" >&6
14694 echo "$as_me:$LINENO: checking for addrinfo" >&5
14695 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
14696 if test "${ac_cv_struct_addrinfo+set}" = set; then
14697 echo $ECHO_N "(cached) $ECHO_C" >&6
14699 cat >conftest.
$ac_ext <<_ACEOF
14700 #line $LINENO "configure"
14701 #include "confdefs.h"
14703 # include <netdb.h>
14704 #ifdef F77_DUMMY_MAIN
14705 # ifdef __cplusplus
14708 int F77_DUMMY_MAIN() { return 1; }
14718 rm -f conftest.
$ac_objext
14719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14720 (eval $ac_compile) 2>&5
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); } &&
14724 { ac_try
='test -s conftest.$ac_objext'
14725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14726 (eval $ac_try) 2>&5
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); }; }; then
14730 ac_cv_struct_addrinfo
=yes
14732 echo "$as_me: failed program was:" >&5
14733 cat conftest.
$ac_ext >&5
14734 ac_cv_struct_addrinfo
=no
14736 rm -f conftest.
$ac_objext conftest.
$ac_ext
14739 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
14740 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
14741 if test $ac_cv_struct_addrinfo = yes; then
14743 cat >>confdefs.h
<<\_ACEOF
14744 #define HAVE_ADDRINFO 1
14749 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
14750 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
14751 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
14752 echo $ECHO_N "(cached) $ECHO_C" >&6
14754 cat >conftest.
$ac_ext <<_ACEOF
14755 #line $LINENO "configure"
14756 #include "confdefs.h"
14758 # include <sys/types.h>
14759 # include <sys/socket.h>
14760 #ifdef F77_DUMMY_MAIN
14761 # ifdef __cplusplus
14764 int F77_DUMMY_MAIN() { return 1; }
14769 struct sockaddr_storage s
14774 rm -f conftest.
$ac_objext
14775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14776 (eval $ac_compile) 2>&5
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); } &&
14780 { ac_try
='test -s conftest.$ac_objext'
14781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14782 (eval $ac_try) 2>&5
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); }; }; then
14786 ac_cv_struct_sockaddr_storage
=yes
14788 echo "$as_me: failed program was:" >&5
14789 cat conftest.
$ac_ext >&5
14790 ac_cv_struct_sockaddr_storage
=no
14792 rm -f conftest.
$ac_objext conftest.
$ac_ext
14795 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
14796 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
14797 if test $ac_cv_struct_sockaddr_storage = yes; then
14799 cat >>confdefs.h
<<\_ACEOF
14800 #define HAVE_SOCKADDR_STORAGE 1
14805 # checks for compiler characteristics
14808 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
14809 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
14810 if test "${ac_cv_c_char_unsigned+set}" = set; then
14811 echo $ECHO_N "(cached) $ECHO_C" >&6
14813 cat >conftest.
$ac_ext <<_ACEOF
14814 #line $LINENO "configure"
14815 #include "confdefs.h"
14816 $ac_includes_default
14817 #ifdef F77_DUMMY_MAIN
14818 # ifdef __cplusplus
14821 int F77_DUMMY_MAIN() { return 1; }
14826 static int test_array [1 - 2 * !(((char) -1) < 0)];
14833 rm -f conftest.
$ac_objext
14834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14835 (eval $ac_compile) 2>&5
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); } &&
14839 { ac_try
='test -s conftest.$ac_objext'
14840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14841 (eval $ac_try) 2>&5
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); }; }; then
14845 ac_cv_c_char_unsigned
=no
14847 echo "$as_me: failed program was:" >&5
14848 cat conftest.
$ac_ext >&5
14849 ac_cv_c_char_unsigned
=yes
14851 rm -f conftest.
$ac_objext conftest.
$ac_ext
14853 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
14854 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
14855 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
14856 cat >>confdefs.h
<<\_ACEOF
14857 #define __CHAR_UNSIGNED__ 1
14862 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
14863 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
14864 if test "${ac_cv_prog_cc_stdc+set}" = set; then
14865 echo $ECHO_N "(cached) $ECHO_C" >&6
14867 ac_cv_prog_cc_stdc
=no
14869 cat >conftest.
$ac_ext <<_ACEOF
14870 #line $LINENO "configure"
14871 #include "confdefs.h"
14872 #include <stdarg.h>
14874 #include <sys/types.h>
14875 #include <sys/stat.h>
14876 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
14877 struct buf { int x; };
14878 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14879 static char *e (p, i)
14885 static char *f (char * (*g) (char **, int), char **p, ...)
14890 s = g (p, va_arg (v,int));
14894 int test (int i, double x);
14895 struct s1 {int (*f) (int a);};
14896 struct s2 {int (*f) (double a);};
14897 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14900 #ifdef F77_DUMMY_MAIN
14901 # ifdef __cplusplus
14904 int F77_DUMMY_MAIN() { return 1; }
14909 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
14914 # Don't try gcc -ansi; that turns off useful extensions and
14915 # breaks some systems' header files.
14916 # AIX -qlanglvl=ansi
14917 # Ultrix and OSF/1 -std1
14918 # HP-UX 10.20 and later -Ae
14919 # HP-UX older versions -Aa -D_HPUX_SOURCE
14920 # SVR4 -Xc -D__EXTENSIONS__
14921 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14923 CC
="$ac_save_CC $ac_arg"
14924 rm -f conftest.
$ac_objext
14925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14926 (eval $ac_compile) 2>&5
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); } &&
14930 { ac_try
='test -s conftest.$ac_objext'
14931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14932 (eval $ac_try) 2>&5
14934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935 (exit $ac_status); }; }; then
14936 ac_cv_prog_cc_stdc
=$ac_arg
14939 echo "$as_me: failed program was:" >&5
14940 cat conftest.
$ac_ext >&5
14942 rm -f conftest.
$ac_objext
14944 rm -f conftest.
$ac_ext conftest.
$ac_objext
14949 case "x$ac_cv_prog_cc_stdc" in
14951 echo "$as_me:$LINENO: result: none needed" >&5
14952 echo "${ECHO_T}none needed" >&6 ;;
14954 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
14955 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
14956 CC
="$CC $ac_cv_prog_cc_stdc" ;;
14959 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14960 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14961 if test "${ac_cv_c_const+set}" = set; then
14962 echo $ECHO_N "(cached) $ECHO_C" >&6
14964 cat >conftest.
$ac_ext <<_ACEOF
14965 #line $LINENO "configure"
14966 #include "confdefs.h"
14968 #ifdef F77_DUMMY_MAIN
14969 # ifdef __cplusplus
14972 int F77_DUMMY_MAIN() { return 1; }
14977 /* FIXME: Include the comments suggested by Paul. */
14978 #ifndef __cplusplus
14979 /* Ultrix mips cc rejects this. */
14980 typedef int charset[2];
14982 /* SunOS 4.1.1 cc rejects this. */
14983 char const *const *ccp;
14985 /* NEC SVR4.0.2 mips cc rejects this. */
14986 struct point {int x, y;};
14987 static struct point const zero = {0,0};
14988 /* AIX XL C 1.02.0.0 rejects this.
14989 It does not let you subtract one const X* pointer from another in
14990 an arm of an if-expression whose if-part is not a constant
14992 const char *g = "string";
14993 ccp = &g + (g ? g-g : 0);
14994 /* HPUX 7.0 cc rejects these. */
14997 ccp = (char const *const *) p;
14998 { /* SCO 3.2v4 cc rejects this. */
15000 char const *s = 0 ? (char *) 0 : (char const *) 0;
15004 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15005 int x[] = {25, 17};
15006 const int *foo = &x[0];
15009 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15010 typedef const int *iptr;
15014 { /* AIX XL C 1.02.0.0 rejects this saying
15015 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15016 struct s { int j; const int *ap[3]; };
15017 struct s *b; b->j = 5;
15019 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15020 const int foo = 10;
15028 rm -f conftest.
$ac_objext
15029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15030 (eval $ac_compile) 2>&5
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); } &&
15034 { ac_try
='test -s conftest.$ac_objext'
15035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15036 (eval $ac_try) 2>&5
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); }; }; then
15042 echo "$as_me: failed program was:" >&5
15043 cat conftest.
$ac_ext >&5
15046 rm -f conftest.
$ac_objext conftest.
$ac_ext
15048 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15049 echo "${ECHO_T}$ac_cv_c_const" >&6
15050 if test $ac_cv_c_const = no
; then
15052 cat >>confdefs.h
<<\_ACEOF
15060 echo "$as_me:$LINENO: checking for working volatile" >&5
15061 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
15062 cat >conftest.
$ac_ext <<_ACEOF
15063 #line $LINENO "configure"
15064 #include "confdefs.h"
15066 #ifdef F77_DUMMY_MAIN
15067 # ifdef __cplusplus
15070 int F77_DUMMY_MAIN() { return 1; }
15075 volatile int x; x = 0;
15080 rm -f conftest.
$ac_objext
15081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15082 (eval $ac_compile) 2>&5
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); } &&
15086 { ac_try
='test -s conftest.$ac_objext'
15087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088 (eval $ac_try) 2>&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); }; }; then
15094 echo "$as_me: failed program was:" >&5
15095 cat conftest.
$ac_ext >&5
15097 cat >>confdefs.h
<<\_ACEOF
15103 rm -f conftest.
$ac_objext conftest.
$ac_ext
15104 echo "$as_me:$LINENO: result: $works" >&5
15105 echo "${ECHO_T}$works" >&6
15108 echo "$as_me:$LINENO: checking for working signed char" >&5
15109 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
15110 cat >conftest.
$ac_ext <<_ACEOF
15111 #line $LINENO "configure"
15112 #include "confdefs.h"
15114 #ifdef F77_DUMMY_MAIN
15115 # ifdef __cplusplus
15118 int F77_DUMMY_MAIN() { return 1; }
15128 rm -f conftest.
$ac_objext
15129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15130 (eval $ac_compile) 2>&5
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); } &&
15134 { ac_try
='test -s conftest.$ac_objext'
15135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15136 (eval $ac_try) 2>&5
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); }; }; then
15142 echo "$as_me: failed program was:" >&5
15143 cat conftest.
$ac_ext >&5
15145 cat >>confdefs.h
<<\_ACEOF
15151 rm -f conftest.
$ac_objext conftest.
$ac_ext
15152 echo "$as_me:$LINENO: result: $works" >&5
15153 echo "${ECHO_T}$works" >&6
15156 echo "$as_me:$LINENO: checking for prototypes" >&5
15157 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
15158 cat >conftest.
$ac_ext <<_ACEOF
15159 #line $LINENO "configure"
15160 #include "confdefs.h"
15161 int foo(int x) { return 0; }
15162 #ifdef F77_DUMMY_MAIN
15163 # ifdef __cplusplus
15166 int F77_DUMMY_MAIN() { return 1; }
15176 rm -f conftest.
$ac_objext
15177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15178 (eval $ac_compile) 2>&5
15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 (exit $ac_status); } &&
15182 { ac_try
='test -s conftest.$ac_objext'
15183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15184 (eval $ac_try) 2>&5
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); }; }; then
15190 cat >>confdefs.h
<<\_ACEOF
15191 #define HAVE_PROTOTYPES 1
15194 have_prototypes
=yes
15197 echo "$as_me: failed program was:" >&5
15198 cat conftest.
$ac_ext >&5
15200 rm -f conftest.
$ac_objext conftest.
$ac_ext
15201 echo "$as_me:$LINENO: result: $have_prototypes" >&5
15202 echo "${ECHO_T}$have_prototypes" >&6
15205 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
15206 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
15207 cat >conftest.
$ac_ext <<_ACEOF
15208 #line $LINENO "configure"
15209 #include "confdefs.h"
15211 #include <stdarg.h>
15212 int foo(int x, ...) {
15216 va_arg(va, char *);
15217 va_arg(va, double);
15221 #ifdef F77_DUMMY_MAIN
15222 # ifdef __cplusplus
15225 int F77_DUMMY_MAIN() { return 1; }
15230 return foo(10, "", 3.14);
15235 rm -f conftest.
$ac_objext
15236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15237 (eval $ac_compile) 2>&5
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); } &&
15241 { ac_try
='test -s conftest.$ac_objext'
15242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15243 (eval $ac_try) 2>&5
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); }; }; then
15249 cat >>confdefs.h
<<\_ACEOF
15250 #define HAVE_STDARG_PROTOTYPES 1
15256 echo "$as_me: failed program was:" >&5
15257 cat conftest.
$ac_ext >&5
15259 rm -f conftest.
$ac_objext conftest.
$ac_ext
15260 echo "$as_me:$LINENO: result: $works" >&5
15261 echo "${ECHO_T}$works" >&6
15263 if test "$have_prototypes" = yes; then
15265 echo "$as_me:$LINENO: checking for bad exec* prototypes" >&5
15266 echo $ECHO_N "checking for bad exec* prototypes... $ECHO_C" >&6
15267 cat >conftest.
$ac_ext <<_ACEOF
15268 #line $LINENO "configure"
15269 #include "confdefs.h"
15270 #include <unistd.h>
15271 #ifdef F77_DUMMY_MAIN
15272 # ifdef __cplusplus
15275 int F77_DUMMY_MAIN() { return 1; }
15280 char **t;execve("@",t,t);
15285 rm -f conftest.
$ac_objext
15286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15287 (eval $ac_compile) 2>&5
15289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290 (exit $ac_status); } &&
15291 { ac_try
='test -s conftest.$ac_objext'
15292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15293 (eval $ac_try) 2>&5
15295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296 (exit $ac_status); }; }; then
15299 echo "$as_me: failed program was:" >&5
15300 cat conftest.
$ac_ext >&5
15302 cat >>confdefs.h
<<\_ACEOF
15303 #define BAD_EXEC_PROTOTYPES 1
15309 rm -f conftest.
$ac_objext conftest.
$ac_ext
15310 echo "$as_me:$LINENO: result: $bad_prototypes" >&5
15311 echo "${ECHO_T}$bad_prototypes" >&6
15314 # check if sockaddr has sa_len member
15315 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
15316 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
15317 cat >conftest.
$ac_ext <<_ACEOF
15318 #line $LINENO "configure"
15319 #include "confdefs.h"
15320 #include <sys/types.h>
15321 #include <sys/socket.h>
15322 #ifdef F77_DUMMY_MAIN
15323 # ifdef __cplusplus
15326 int F77_DUMMY_MAIN() { return 1; }
15337 rm -f conftest.
$ac_objext
15338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15339 (eval $ac_compile) 2>&5
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); } &&
15343 { ac_try
='test -s conftest.$ac_objext'
15344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15345 (eval $ac_try) 2>&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); }; }; then
15349 echo "$as_me:$LINENO: result: yes" >&5
15350 echo "${ECHO_T}yes" >&6
15352 cat >>confdefs.h
<<\_ACEOF
15353 #define HAVE_SOCKADDR_SA_LEN 1
15357 echo "$as_me: failed program was:" >&5
15358 cat conftest.
$ac_ext >&5
15359 echo "$as_me:$LINENO: result: no" >&5
15360 echo "${ECHO_T}no" >&6
15362 rm -f conftest.
$ac_objext conftest.
$ac_ext
15364 va_list_is_array
=no
15365 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
15366 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
15367 cat >conftest.
$ac_ext <<_ACEOF
15368 #line $LINENO "configure"
15369 #include "confdefs.h"
15371 #ifdef HAVE_STDARG_PROTOTYPES
15372 #include <stdarg.h>
15374 #include <varargs.h>
15377 #ifdef F77_DUMMY_MAIN
15378 # ifdef __cplusplus
15381 int F77_DUMMY_MAIN() { return 1; }
15386 va_list list1, list2; list1 = list2;
15391 rm -f conftest.
$ac_objext
15392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15393 (eval $ac_compile) 2>&5
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); } &&
15397 { ac_try
='test -s conftest.$ac_objext'
15398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15399 (eval $ac_try) 2>&5
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); }; }; then
15405 echo "$as_me: failed program was:" >&5
15406 cat conftest.
$ac_ext >&5
15409 cat >>confdefs.h
<<\_ACEOF
15410 #define VA_LIST_IS_ARRAY 1
15413 va_list_is_array
=yes
15416 rm -f conftest.
$ac_objext conftest.
$ac_ext
15417 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
15418 echo "${ECHO_T}$va_list_is_array" >&6
15420 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
15424 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15425 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15426 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15427 echo $ECHO_N "(cached) $ECHO_C" >&6
15429 cat >conftest.
$ac_ext <<_ACEOF
15430 #line $LINENO "configure"
15431 #include "confdefs.h"
15432 /* System header to define __stub macros and hopefully few prototypes,
15433 which can conflict with char gethostbyname_r (); below. */
15434 #include <assert.h>
15435 /* Override any gcc2 internal prototype to avoid an error. */
15439 /* We use char because int might match the return type of a gcc2
15440 builtin and then its argument prototype would still apply. */
15441 char gethostbyname_r ();
15444 #ifdef F77_DUMMY_MAIN
15445 # ifdef __cplusplus
15448 int F77_DUMMY_MAIN() { return 1; }
15453 /* The GNU C library defines this for functions which it implements
15454 to always fail with ENOSYS. Some functions are actually named
15455 something starting with __ and the normal name is an alias. */
15456 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15459 f = gethostbyname_r;
15466 rm -f conftest.
$ac_objext conftest
$ac_exeext
15467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15468 (eval $ac_link) 2>&5
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); } &&
15472 { ac_try
='test -s conftest$ac_exeext'
15473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15474 (eval $ac_try) 2>&5
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); }; }; then
15478 ac_cv_func_gethostbyname_r
=yes
15480 echo "$as_me: failed program was:" >&5
15481 cat conftest.
$ac_ext >&5
15482 ac_cv_func_gethostbyname_r
=no
15484 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15486 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15487 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15488 if test $ac_cv_func_gethostbyname_r = yes; then
15490 cat >>confdefs.h
<<\_ACEOF
15491 #define HAVE_GETHOSTBYNAME_R 1
15494 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
15495 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
15497 CFLAGS
="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
15498 cat >conftest.
$ac_ext <<_ACEOF
15499 #line $LINENO "configure"
15500 #include "confdefs.h"
15502 # include <netdb.h>
15504 #ifdef F77_DUMMY_MAIN
15505 # ifdef __cplusplus
15508 int F77_DUMMY_MAIN() { return 1; }
15515 struct hostent *he, *res;
15520 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
15526 rm -f conftest.
$ac_objext
15527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15528 (eval $ac_compile) 2>&5
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); } &&
15532 { ac_try
='test -s conftest.$ac_objext'
15533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15534 (eval $ac_try) 2>&5
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); }; }; then
15539 cat >>confdefs.h
<<\_ACEOF
15540 #define HAVE_GETHOSTBYNAME_R 1
15544 cat >>confdefs.h
<<\_ACEOF
15545 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
15548 echo "$as_me:$LINENO: result: yes" >&5
15549 echo "${ECHO_T}yes" >&6
15552 echo "$as_me: failed program was:" >&5
15553 cat conftest.
$ac_ext >&5
15555 echo "$as_me:$LINENO: result: no" >&5
15556 echo "${ECHO_T}no" >&6
15557 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
15558 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
15559 cat >conftest.
$ac_ext <<_ACEOF
15560 #line $LINENO "configure"
15561 #include "confdefs.h"
15563 # include <netdb.h>
15565 #ifdef F77_DUMMY_MAIN
15566 # ifdef __cplusplus
15569 int F77_DUMMY_MAIN() { return 1; }
15576 struct hostent *he;
15581 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
15587 rm -f conftest.
$ac_objext
15588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15589 (eval $ac_compile) 2>&5
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); } &&
15593 { ac_try
='test -s conftest.$ac_objext'
15594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15595 (eval $ac_try) 2>&5
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); }; }; then
15600 cat >>confdefs.h
<<\_ACEOF
15601 #define HAVE_GETHOSTBYNAME_R 1
15605 cat >>confdefs.h
<<\_ACEOF
15606 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
15609 echo "$as_me:$LINENO: result: yes" >&5
15610 echo "${ECHO_T}yes" >&6
15613 echo "$as_me: failed program was:" >&5
15614 cat conftest.
$ac_ext >&5
15616 echo "$as_me:$LINENO: result: no" >&5
15617 echo "${ECHO_T}no" >&6
15618 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
15619 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
15620 cat >conftest.
$ac_ext <<_ACEOF
15621 #line $LINENO "configure"
15622 #include "confdefs.h"
15624 # include <netdb.h>
15626 #ifdef F77_DUMMY_MAIN
15627 # ifdef __cplusplus
15630 int F77_DUMMY_MAIN() { return 1; }
15637 struct hostent *he;
15638 struct hostent_data data;
15640 (void) gethostbyname_r(name, he, &data);
15646 rm -f conftest.
$ac_objext
15647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15648 (eval $ac_compile) 2>&5
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); } &&
15652 { ac_try
='test -s conftest.$ac_objext'
15653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15654 (eval $ac_try) 2>&5
15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); }; }; then
15659 cat >>confdefs.h
<<\_ACEOF
15660 #define HAVE_GETHOSTBYNAME_R 1
15664 cat >>confdefs.h
<<\_ACEOF
15665 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
15668 echo "$as_me:$LINENO: result: yes" >&5
15669 echo "${ECHO_T}yes" >&6
15672 echo "$as_me: failed program was:" >&5
15673 cat conftest.
$ac_ext >&5
15675 echo "$as_me:$LINENO: result: no" >&5
15676 echo "${ECHO_T}no" >&6
15679 rm -f conftest.
$ac_objext conftest.
$ac_ext
15682 rm -f conftest.
$ac_objext conftest.
$ac_ext
15685 rm -f conftest.
$ac_objext conftest.
$ac_ext
15691 for ac_func
in gethostbyname
15693 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15694 echo "$as_me:$LINENO: checking for $ac_func" >&5
15695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15696 if eval "test \"\${$as_ac_var+set}\" = set"; then
15697 echo $ECHO_N "(cached) $ECHO_C" >&6
15699 cat >conftest.
$ac_ext <<_ACEOF
15700 #line $LINENO "configure"
15701 #include "confdefs.h"
15702 /* System header to define __stub macros and hopefully few prototypes,
15703 which can conflict with char $ac_func (); below. */
15704 #include <assert.h>
15705 /* Override any gcc2 internal prototype to avoid an error. */
15709 /* We use char because int might match the return type of a gcc2
15710 builtin and then its argument prototype would still apply. */
15714 #ifdef F77_DUMMY_MAIN
15715 # ifdef __cplusplus
15718 int F77_DUMMY_MAIN() { return 1; }
15723 /* The GNU C library defines this for functions which it implements
15724 to always fail with ENOSYS. Some functions are actually named
15725 something starting with __ and the normal name is an alias. */
15726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15736 rm -f conftest.
$ac_objext conftest
$ac_exeext
15737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15738 (eval $ac_link) 2>&5
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); } &&
15742 { ac_try
='test -s conftest$ac_exeext'
15743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15744 (eval $ac_try) 2>&5
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); }; }; then
15748 eval "$as_ac_var=yes"
15750 echo "$as_me: failed program was:" >&5
15751 cat conftest.
$ac_ext >&5
15752 eval "$as_ac_var=no"
15754 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15757 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15758 if test `eval echo '${'$as_ac_var'}'` = yes; then
15759 cat >>confdefs.h
<<_ACEOF
15760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15775 # checks for system services
15778 # Linux requires this for correct f.p. operations
15779 echo "$as_me:$LINENO: checking for __fpu_control" >&5
15780 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
15781 if test "${ac_cv_func___fpu_control+set}" = set; then
15782 echo $ECHO_N "(cached) $ECHO_C" >&6
15784 cat >conftest.
$ac_ext <<_ACEOF
15785 #line $LINENO "configure"
15786 #include "confdefs.h"
15787 /* System header to define __stub macros and hopefully few prototypes,
15788 which can conflict with char __fpu_control (); below. */
15789 #include <assert.h>
15790 /* Override any gcc2 internal prototype to avoid an error. */
15794 /* We use char because int might match the return type of a gcc2
15795 builtin and then its argument prototype would still apply. */
15796 char __fpu_control ();
15799 #ifdef F77_DUMMY_MAIN
15800 # ifdef __cplusplus
15803 int F77_DUMMY_MAIN() { return 1; }
15808 /* The GNU C library defines this for functions which it implements
15809 to always fail with ENOSYS. Some functions are actually named
15810 something starting with __ and the normal name is an alias. */
15811 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
15821 rm -f conftest.
$ac_objext conftest
$ac_exeext
15822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15823 (eval $ac_link) 2>&5
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); } &&
15827 { ac_try
='test -s conftest$ac_exeext'
15828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15829 (eval $ac_try) 2>&5
15831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); }; }; then
15833 ac_cv_func___fpu_control
=yes
15835 echo "$as_me: failed program was:" >&5
15836 cat conftest.
$ac_ext >&5
15837 ac_cv_func___fpu_control
=no
15839 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15841 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
15842 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
15843 if test $ac_cv_func___fpu_control = yes; then
15847 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
15848 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
15849 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
15850 echo $ECHO_N "(cached) $ECHO_C" >&6
15852 ac_check_lib_save_LIBS
=$LIBS
15853 LIBS
="-lieee $LIBS"
15854 cat >conftest.
$ac_ext <<_ACEOF
15855 #line $LINENO "configure"
15856 #include "confdefs.h"
15858 /* Override any gcc2 internal prototype to avoid an error. */
15862 /* We use char because int might match the return type of a gcc2
15863 builtin and then its argument prototype would still apply. */
15864 char __fpu_control ();
15865 #ifdef F77_DUMMY_MAIN
15866 # ifdef __cplusplus
15869 int F77_DUMMY_MAIN() { return 1; }
15879 rm -f conftest.
$ac_objext conftest
$ac_exeext
15880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15881 (eval $ac_link) 2>&5
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); } &&
15885 { ac_try
='test -s conftest$ac_exeext'
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
15891 ac_cv_lib_ieee___fpu_control
=yes
15893 echo "$as_me: failed program was:" >&5
15894 cat conftest.
$ac_ext >&5
15895 ac_cv_lib_ieee___fpu_control
=no
15897 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15898 LIBS
=$ac_check_lib_save_LIBS
15900 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
15901 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
15902 if test $ac_cv_lib_ieee___fpu_control = yes; then
15903 cat >>confdefs.h
<<_ACEOF
15904 #define HAVE_LIBIEEE 1
15907 LIBS
="-lieee $LIBS"
15915 # Check for --with-fpectl
15916 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
15917 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
15919 # Check whether --with-fpectl or --without-fpectl was given.
15920 if test "${with_fpectl+set}" = set; then
15921 withval
="$with_fpectl"
15923 if test "$withval" != no
15926 cat >>confdefs.h
<<\_ACEOF
15927 #define WANT_SIGFPE_HANDLER 1
15930 echo "$as_me:$LINENO: result: yes" >&5
15931 echo "${ECHO_T}yes" >&6
15932 else echo "$as_me:$LINENO: result: no" >&5
15933 echo "${ECHO_T}no" >&6
15936 echo "$as_me:$LINENO: result: no" >&5
15937 echo "${ECHO_T}no" >&6
15940 # check for --with-libm=...
15942 case $ac_sys_system in
15947 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
15948 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
15950 # Check whether --with-libm or --without-libm was given.
15951 if test "${with_libm+set}" = set; then
15952 withval
="$with_libm"
15954 if test "$withval" = no
15956 echo "$as_me:$LINENO: result: force LIBM empty" >&5
15957 echo "${ECHO_T}force LIBM empty" >&6
15958 elif test "$withval" != yes
15960 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
15961 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
15962 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
15963 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
15964 { (exit 1); exit 1; }; }
15967 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
15968 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
15971 # check for --with-libc=...
15973 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
15974 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
15976 # Check whether --with-libc or --without-libc was given.
15977 if test "${with_libc+set}" = set; then
15978 withval
="$with_libc"
15980 if test "$withval" = no
15982 echo "$as_me:$LINENO: result: force LIBC empty" >&5
15983 echo "${ECHO_T}force LIBC empty" >&6
15984 elif test "$withval" != yes
15986 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
15987 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
15988 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
15989 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
15990 { (exit 1); exit 1; }; }
15993 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
15994 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
15997 # check for hypot() in math library
16001 for ac_func
in hypot
16003 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16004 echo "$as_me:$LINENO: checking for $ac_func" >&5
16005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16006 if eval "test \"\${$as_ac_var+set}\" = set"; then
16007 echo $ECHO_N "(cached) $ECHO_C" >&6
16009 cat >conftest.
$ac_ext <<_ACEOF
16010 #line $LINENO "configure"
16011 #include "confdefs.h"
16012 /* System header to define __stub macros and hopefully few prototypes,
16013 which can conflict with char $ac_func (); below. */
16014 #include <assert.h>
16015 /* Override any gcc2 internal prototype to avoid an error. */
16019 /* We use char because int might match the return type of a gcc2
16020 builtin and then its argument prototype would still apply. */
16024 #ifdef F77_DUMMY_MAIN
16025 # ifdef __cplusplus
16028 int F77_DUMMY_MAIN() { return 1; }
16033 /* The GNU C library defines this for functions which it implements
16034 to always fail with ENOSYS. Some functions are actually named
16035 something starting with __ and the normal name is an alias. */
16036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16046 rm -f conftest.
$ac_objext conftest
$ac_exeext
16047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16048 (eval $ac_link) 2>&5
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); } &&
16052 { ac_try
='test -s conftest$ac_exeext'
16053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16054 (eval $ac_try) 2>&5
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); }; }; then
16058 eval "$as_ac_var=yes"
16060 echo "$as_me: failed program was:" >&5
16061 cat conftest.
$ac_ext >&5
16062 eval "$as_ac_var=no"
16064 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16067 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16068 if test `eval echo '${'$as_ac_var'}'` = yes; then
16069 cat >>confdefs.h
<<_ACEOF
16070 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16074 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
16081 # check for wchar.h
16082 if test "${ac_cv_header_wchar_h+set}" = set; then
16083 echo "$as_me:$LINENO: checking for wchar.h" >&5
16084 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
16085 if test "${ac_cv_header_wchar_h+set}" = set; then
16086 echo $ECHO_N "(cached) $ECHO_C" >&6
16088 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
16089 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
16091 # Is the header compilable?
16092 echo "$as_me:$LINENO: checking wchar.h usability" >&5
16093 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
16094 cat >conftest.
$ac_ext <<_ACEOF
16095 #line $LINENO "configure"
16096 #include "confdefs.h"
16097 $ac_includes_default
16100 rm -f conftest.
$ac_objext
16101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16102 (eval $ac_compile) 2>&5
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); } &&
16106 { ac_try
='test -s conftest.$ac_objext'
16107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16108 (eval $ac_try) 2>&5
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); }; }; then
16112 ac_header_compiler
=yes
16114 echo "$as_me: failed program was:" >&5
16115 cat conftest.
$ac_ext >&5
16116 ac_header_compiler
=no
16118 rm -f conftest.
$ac_objext conftest.
$ac_ext
16119 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16120 echo "${ECHO_T}$ac_header_compiler" >&6
16122 # Is the header present?
16123 echo "$as_me:$LINENO: checking wchar.h presence" >&5
16124 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
16125 cat >conftest.
$ac_ext <<_ACEOF
16126 #line $LINENO "configure"
16127 #include "confdefs.h"
16130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16131 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16133 egrep -v '^ *\+' conftest.er1
>conftest.err
16135 cat conftest.err
>&5
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); } >/dev
/null
; then
16138 if test -s conftest.err
; then
16139 ac_cpp_err
=$ac_c_preproc_warn_flag
16146 if test -z "$ac_cpp_err"; then
16147 ac_header_preproc
=yes
16149 echo "$as_me: failed program was:" >&5
16150 cat conftest.
$ac_ext >&5
16151 ac_header_preproc
=no
16153 rm -f conftest.err conftest.
$ac_ext
16154 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16155 echo "${ECHO_T}$ac_header_preproc" >&6
16157 # So? What about this header?
16158 case $ac_header_compiler:$ac_header_preproc in
16160 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
16161 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16162 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
16163 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};;
16165 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
16166 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
16167 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
16168 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
16169 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
16170 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};;
16172 echo "$as_me:$LINENO: checking for wchar.h" >&5
16173 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
16174 if test "${ac_cv_header_wchar_h+set}" = set; then
16175 echo $ECHO_N "(cached) $ECHO_C" >&6
16177 ac_cv_header_wchar_h
=$ac_header_preproc
16179 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
16180 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
16183 if test $ac_cv_header_wchar_h = yes; then
16186 cat >>confdefs.h
<<\_ACEOF
16187 #define HAVE_WCHAR_H 1
16199 # determine wchar_t size
16200 if test "$wchar_h" = yes
16202 echo "$as_me:$LINENO: checking for wchar_t" >&5
16203 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
16204 if test "${ac_cv_type_wchar_t+set}" = set; then
16205 echo $ECHO_N "(cached) $ECHO_C" >&6
16207 cat >conftest.
$ac_ext <<_ACEOF
16208 #line $LINENO "configure"
16209 #include "confdefs.h"
16212 #ifdef F77_DUMMY_MAIN
16213 # ifdef __cplusplus
16216 int F77_DUMMY_MAIN() { return 1; }
16223 if (sizeof (wchar_t))
16229 rm -f conftest.
$ac_objext
16230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16231 (eval $ac_compile) 2>&5
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); } &&
16235 { ac_try
='test -s conftest.$ac_objext'
16236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16237 (eval $ac_try) 2>&5
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); }; }; then
16241 ac_cv_type_wchar_t
=yes
16243 echo "$as_me: failed program was:" >&5
16244 cat conftest.
$ac_ext >&5
16245 ac_cv_type_wchar_t
=no
16247 rm -f conftest.
$ac_objext conftest.
$ac_ext
16249 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
16250 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
16252 echo "$as_me:$LINENO: checking size of wchar_t" >&5
16253 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
16254 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
16255 echo $ECHO_N "(cached) $ECHO_C" >&6
16257 if test "$ac_cv_type_wchar_t" = yes; then
16258 # The cast to unsigned long works around a bug in the HP C Compiler
16259 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16260 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16261 # This bug is HP SR number 8606223364.
16262 if test "$cross_compiling" = yes; then
16263 # Depending upon the size, compute the lo and hi bounds.
16264 cat >conftest.
$ac_ext <<_ACEOF
16265 #line $LINENO "configure"
16266 #include "confdefs.h"
16269 #ifdef F77_DUMMY_MAIN
16270 # ifdef __cplusplus
16273 int F77_DUMMY_MAIN() { return 1; }
16278 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
16285 rm -f conftest.
$ac_objext
16286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16287 (eval $ac_compile) 2>&5
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); } &&
16291 { ac_try
='test -s conftest.$ac_objext'
16292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16293 (eval $ac_try) 2>&5
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); }; }; then
16299 cat >conftest.
$ac_ext <<_ACEOF
16300 #line $LINENO "configure"
16301 #include "confdefs.h"
16304 #ifdef F77_DUMMY_MAIN
16305 # ifdef __cplusplus
16308 int F77_DUMMY_MAIN() { return 1; }
16313 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
16320 rm -f conftest.
$ac_objext
16321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16322 (eval $ac_compile) 2>&5
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); } &&
16326 { ac_try
='test -s conftest.$ac_objext'
16327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16328 (eval $ac_try) 2>&5
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); }; }; then
16332 ac_hi
=$ac_mid; break
16334 echo "$as_me: failed program was:" >&5
16335 cat conftest.
$ac_ext >&5
16336 ac_lo
=`expr $ac_mid + 1`
16337 if test $ac_lo -le $ac_mid; then
16341 ac_mid
=`expr 2 '*' $ac_mid + 1`
16343 rm -f conftest.
$ac_objext conftest.
$ac_ext
16346 echo "$as_me: failed program was:" >&5
16347 cat conftest.
$ac_ext >&5
16348 cat >conftest.
$ac_ext <<_ACEOF
16349 #line $LINENO "configure"
16350 #include "confdefs.h"
16353 #ifdef F77_DUMMY_MAIN
16354 # ifdef __cplusplus
16357 int F77_DUMMY_MAIN() { return 1; }
16362 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
16369 rm -f conftest.
$ac_objext
16370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16371 (eval $ac_compile) 2>&5
16373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374 (exit $ac_status); } &&
16375 { ac_try
='test -s conftest.$ac_objext'
16376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16377 (eval $ac_try) 2>&5
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); }; }; then
16383 cat >conftest.
$ac_ext <<_ACEOF
16384 #line $LINENO "configure"
16385 #include "confdefs.h"
16388 #ifdef F77_DUMMY_MAIN
16389 # ifdef __cplusplus
16392 int F77_DUMMY_MAIN() { return 1; }
16397 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
16404 rm -f conftest.
$ac_objext
16405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16406 (eval $ac_compile) 2>&5
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); } &&
16410 { ac_try
='test -s conftest.$ac_objext'
16411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16412 (eval $ac_try) 2>&5
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); }; }; then
16416 ac_lo
=$ac_mid; break
16418 echo "$as_me: failed program was:" >&5
16419 cat conftest.
$ac_ext >&5
16420 ac_hi
=`expr '(' $ac_mid ')' - 1`
16421 if test $ac_mid -le $ac_hi; then
16425 ac_mid
=`expr 2 '*' $ac_mid`
16427 rm -f conftest.
$ac_objext conftest.
$ac_ext
16430 echo "$as_me: failed program was:" >&5
16431 cat conftest.
$ac_ext >&5
16434 rm -f conftest.
$ac_objext conftest.
$ac_ext
16436 rm -f conftest.
$ac_objext conftest.
$ac_ext
16437 # Binary search between lo and hi bounds.
16438 while test "x$ac_lo" != "x$ac_hi"; do
16439 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16440 cat >conftest.
$ac_ext <<_ACEOF
16441 #line $LINENO "configure"
16442 #include "confdefs.h"
16445 #ifdef F77_DUMMY_MAIN
16446 # ifdef __cplusplus
16449 int F77_DUMMY_MAIN() { return 1; }
16454 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
16461 rm -f conftest.
$ac_objext
16462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16463 (eval $ac_compile) 2>&5
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); } &&
16467 { ac_try
='test -s conftest.$ac_objext'
16468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16469 (eval $ac_try) 2>&5
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); }; }; then
16475 echo "$as_me: failed program was:" >&5
16476 cat conftest.
$ac_ext >&5
16477 ac_lo
=`expr '(' $ac_mid ')' + 1`
16479 rm -f conftest.
$ac_objext conftest.
$ac_ext
16482 ?
*) ac_cv_sizeof_wchar_t
=$ac_lo;;
16483 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5
16484 echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;}
16485 { (exit 1); exit 1; }; } ;;
16488 if test "$cross_compiling" = yes; then
16489 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16490 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16491 { (exit 1); exit 1; }; }
16493 cat >conftest.
$ac_ext <<_ACEOF
16494 #line $LINENO "configure"
16495 #include "confdefs.h"
16498 long longval () { return (long) (sizeof (wchar_t)); }
16499 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
16501 #include <stdlib.h>
16502 #ifdef F77_DUMMY_MAIN
16503 # ifdef __cplusplus
16506 int F77_DUMMY_MAIN() { return 1; }
16512 FILE *f = fopen ("conftest.val", "w");
16515 if (((long) (sizeof (wchar_t))) < 0)
16517 long i = longval ();
16518 if (i != ((long) (sizeof (wchar_t))))
16520 fprintf (f, "%ld\n", i);
16524 unsigned long i = ulongval ();
16525 if (i != ((long) (sizeof (wchar_t))))
16527 fprintf (f, "%lu\n", i);
16529 exit (ferror (f) || fclose (f) != 0);
16535 rm -f conftest
$ac_exeext
16536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16537 (eval $ac_link) 2>&5
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16542 (eval $ac_try) 2>&5
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); }; }; then
16546 ac_cv_sizeof_wchar_t
=`cat conftest.val`
16548 echo "$as_me: program exited with status $ac_status" >&5
16549 echo "$as_me: failed program was:" >&5
16550 cat conftest.
$ac_ext >&5
16551 ( exit $ac_status )
16552 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5
16553 echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;}
16554 { (exit 1); exit 1; }; }
16556 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16561 ac_cv_sizeof_wchar_t
=0
16564 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
16565 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
16566 cat >>confdefs.h
<<_ACEOF
16567 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
16573 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
16574 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
16575 # Check whether --enable-unicode or --disable-unicode was given.
16576 if test "${enable_unicode+set}" = set; then
16577 enableval
="$enable_unicode"
16583 if test $enable_unicode = yes
16585 # Without any arguments, Py_UNICODE defaults to two-byte mode
16586 enable_unicode
="ucs2"
16591 case "$enable_unicode" in
16592 ucs2
) unicode_size
="2"
16593 cat >>confdefs.h
<<\_ACEOF
16594 #define Py_UNICODE_SIZE 2
16598 ucs4
) unicode_size
="4"
16599 cat >>confdefs.h
<<\_ACEOF
16600 #define Py_UNICODE_SIZE 4
16610 if test "$enable_unicode" = "no"
16613 echo "$as_me:$LINENO: result: not used" >&5
16614 echo "${ECHO_T}not used" >&6
16616 UNICODE_OBJS
="Objects/unicodeobject.o Objects/unicodectype.o"
16618 cat >>confdefs.h
<<\_ACEOF
16619 #define Py_USING_UNICODE 1
16622 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t"
16624 PY_UNICODE_TYPE
="wchar_t"
16626 cat >>confdefs.h
<<\_ACEOF
16627 #define HAVE_USABLE_WCHAR_T 1
16630 cat >>confdefs.h
<<\_ACEOF
16631 #define PY_UNICODE_TYPE wchar_t
16634 elif test "$ac_cv_sizeof_short" = "$unicode_size"
16636 PY_UNICODE_TYPE
="unsigned short"
16637 cat >>confdefs.h
<<\_ACEOF
16638 #define PY_UNICODE_TYPE unsigned short
16641 elif test "$ac_cv_sizeof_long" = "$unicode_size"
16643 PY_UNICODE_TYPE
="unsigned long"
16644 cat >>confdefs.h
<<\_ACEOF
16645 #define PY_UNICODE_TYPE unsigned long
16649 PY_UNICODE_TYPE
="no type found"
16651 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
16652 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
16655 # check for endianness
16656 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
16657 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
16658 if test "${ac_cv_c_bigendian+set}" = set; then
16659 echo $ECHO_N "(cached) $ECHO_C" >&6
16661 # See if sys/param.h defines the BYTE_ORDER macro.
16662 cat >conftest.
$ac_ext <<_ACEOF
16663 #line $LINENO "configure"
16664 #include "confdefs.h"
16665 #include <sys/types.h>
16666 #include <sys/param.h>
16668 #ifdef F77_DUMMY_MAIN
16669 # ifdef __cplusplus
16672 int F77_DUMMY_MAIN() { return 1; }
16677 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16678 bogus endian macros
16685 rm -f conftest.
$ac_objext
16686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16687 (eval $ac_compile) 2>&5
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); } &&
16691 { ac_try
='test -s conftest.$ac_objext'
16692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16693 (eval $ac_try) 2>&5
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); }; }; then
16697 # It does; now see whether it defined to BIG_ENDIAN or not.
16698 cat >conftest.
$ac_ext <<_ACEOF
16699 #line $LINENO "configure"
16700 #include "confdefs.h"
16701 #include <sys/types.h>
16702 #include <sys/param.h>
16704 #ifdef F77_DUMMY_MAIN
16705 # ifdef __cplusplus
16708 int F77_DUMMY_MAIN() { return 1; }
16713 #if BYTE_ORDER != BIG_ENDIAN
16721 rm -f conftest.
$ac_objext
16722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16723 (eval $ac_compile) 2>&5
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); } &&
16727 { ac_try
='test -s conftest.$ac_objext'
16728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16729 (eval $ac_try) 2>&5
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); }; }; then
16733 ac_cv_c_bigendian
=yes
16735 echo "$as_me: failed program was:" >&5
16736 cat conftest.
$ac_ext >&5
16737 ac_cv_c_bigendian
=no
16739 rm -f conftest.
$ac_objext conftest.
$ac_ext
16741 echo "$as_me: failed program was:" >&5
16742 cat conftest.
$ac_ext >&5
16743 # It does not; compile a test program.
16744 if test "$cross_compiling" = yes; then
16745 # try to guess the endianess by grep'ing values into an object file
16746 ac_cv_c_bigendian
=unknown
16747 cat >conftest.
$ac_ext <<_ACEOF
16748 #line $LINENO "configure"
16749 #include "confdefs.h"
16750 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16751 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16752 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
16753 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16754 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16755 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
16756 #ifdef F77_DUMMY_MAIN
16757 # ifdef __cplusplus
16760 int F77_DUMMY_MAIN() { return 1; }
16765 _ascii (); _ebcdic ();
16770 rm -f conftest.
$ac_objext
16771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16772 (eval $ac_compile) 2>&5
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); } &&
16776 { ac_try
='test -s conftest.$ac_objext'
16777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16778 (eval $ac_try) 2>&5
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); }; }; then
16782 if fgrep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
16783 ac_cv_c_bigendian
=yes
16785 if fgrep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
16786 if test "$ac_cv_c_bigendian" = unknown
; then
16787 ac_cv_c_bigendian
=no
16789 # finding both strings is unlikely to happen, but who knows?
16790 ac_cv_c_bigendian
=unknown
16794 echo "$as_me: failed program was:" >&5
16795 cat conftest.
$ac_ext >&5
16797 rm -f conftest.
$ac_objext conftest.
$ac_ext
16799 cat >conftest.
$ac_ext <<_ACEOF
16800 #line $LINENO "configure"
16801 #include "confdefs.h"
16805 /* Are we little or big endian? From Harbison&Steele. */
16809 char c[sizeof (long)];
16812 exit (u.c[sizeof (long) - 1] == 1);
16815 rm -f conftest
$ac_exeext
16816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16817 (eval $ac_link) 2>&5
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16822 (eval $ac_try) 2>&5
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); }; }; then
16826 ac_cv_c_bigendian
=no
16828 echo "$as_me: program exited with status $ac_status" >&5
16829 echo "$as_me: failed program was:" >&5
16830 cat conftest.
$ac_ext >&5
16831 ( exit $ac_status )
16832 ac_cv_c_bigendian
=yes
16834 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16837 rm -f conftest.
$ac_objext conftest.
$ac_ext
16839 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
16840 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
16841 case $ac_cv_c_bigendian in
16844 cat >>confdefs.h
<<\_ACEOF
16845 #define WORDS_BIGENDIAN 1
16851 { { echo "$as_me:$LINENO: error: unknown endianess
16852 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
16853 echo "$as_me: error: unknown endianess
16854 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
16855 { (exit 1); exit 1; }; } ;;
16859 # Check whether right shifting a negative integer extends the sign bit
16860 # or fills with zeros (like the Cray J90, according to Tim Peters).
16861 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
16862 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
16863 if test "${ac_cv_rshift_extends_sign+set}" = set; then
16864 echo $ECHO_N "(cached) $ECHO_C" >&6
16867 if test "$cross_compiling" = yes; then
16868 ac_cv_rshift_extends_sign
=yes
16870 cat >conftest.
$ac_ext <<_ACEOF
16871 #line $LINENO "configure"
16872 #include "confdefs.h"
16876 exit(((-1)>>3 == -1) ? 0 : 1);
16880 rm -f conftest
$ac_exeext
16881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16882 (eval $ac_link) 2>&5
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16887 (eval $ac_try) 2>&5
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); }; }; then
16891 ac_cv_rshift_extends_sign
=yes
16893 echo "$as_me: program exited with status $ac_status" >&5
16894 echo "$as_me: failed program was:" >&5
16895 cat conftest.
$ac_ext >&5
16896 ( exit $ac_status )
16897 ac_cv_rshift_extends_sign
=no
16899 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16903 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
16904 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
16905 if test "$ac_cv_rshift_extends_sign" = no
16908 cat >>confdefs.h
<<\_ACEOF
16909 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
16914 # check for getc_unlocked and related locking functions
16915 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
16916 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
16917 if test "${ac_cv_have_getc_unlocked+set}" = set; then
16918 echo $ECHO_N "(cached) $ECHO_C" >&6
16921 cat >conftest.
$ac_ext <<_ACEOF
16922 #line $LINENO "configure"
16923 #include "confdefs.h"
16925 #ifdef F77_DUMMY_MAIN
16926 # ifdef __cplusplus
16929 int F77_DUMMY_MAIN() { return 1; }
16935 FILE *f = fopen("/dev/null", "r");
16944 rm -f conftest.
$ac_objext conftest
$ac_exeext
16945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16946 (eval $ac_link) 2>&5
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); } &&
16950 { ac_try
='test -s conftest$ac_exeext'
16951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16952 (eval $ac_try) 2>&5
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); }; }; then
16956 ac_cv_have_getc_unlocked
=yes
16958 echo "$as_me: failed program was:" >&5
16959 cat conftest.
$ac_ext >&5
16960 ac_cv_have_getc_unlocked
=no
16962 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16965 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
16966 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
16967 if test "$ac_cv_have_getc_unlocked" = yes
16970 cat >>confdefs.h
<<\_ACEOF
16971 #define HAVE_GETC_UNLOCKED 1
16976 # check for readline 2.2
16977 cat >conftest.
$ac_ext <<_ACEOF
16978 #line $LINENO "configure"
16979 #include "confdefs.h"
16980 #include <readline/readline.h>
16982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16983 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16985 egrep -v '^ *\+' conftest.er1
>conftest.err
16987 cat conftest.err
>&5
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); } >/dev
/null
; then
16990 if test -s conftest.err
; then
16991 ac_cpp_err
=$ac_c_preproc_warn_flag
16998 if test -z "$ac_cpp_err"; then
17001 echo "$as_me: failed program was:" >&5
17002 cat conftest.
$ac_ext >&5
17005 rm -f conftest.err conftest.
$ac_ext
17006 if test $have_readline = yes
17008 cat >conftest.
$ac_ext <<_ACEOF
17009 #line $LINENO "configure"
17010 #include "confdefs.h"
17011 #include <readline/readline.h>
17014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17015 egrep "extern int rl_completion_append_character;" >/dev
/null
2>&1; then
17017 cat >>confdefs.h
<<\_ACEOF
17018 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
17026 # check for readline 4.0
17027 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
17028 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
17029 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
17030 echo $ECHO_N "(cached) $ECHO_C" >&6
17032 ac_check_lib_save_LIBS
=$LIBS
17033 LIBS
="-lreadline -ltermcap $LIBS"
17034 cat >conftest.
$ac_ext <<_ACEOF
17035 #line $LINENO "configure"
17036 #include "confdefs.h"
17038 /* Override any gcc2 internal prototype to avoid an error. */
17042 /* We use char because int might match the return type of a gcc2
17043 builtin and then its argument prototype would still apply. */
17044 char rl_pre_input_hook ();
17045 #ifdef F77_DUMMY_MAIN
17046 # ifdef __cplusplus
17049 int F77_DUMMY_MAIN() { return 1; }
17054 rl_pre_input_hook ();
17059 rm -f conftest.
$ac_objext conftest
$ac_exeext
17060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17061 (eval $ac_link) 2>&5
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); } &&
17065 { ac_try
='test -s conftest$ac_exeext'
17066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17067 (eval $ac_try) 2>&5
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); }; }; then
17071 ac_cv_lib_readline_rl_pre_input_hook
=yes
17073 echo "$as_me: failed program was:" >&5
17074 cat conftest.
$ac_ext >&5
17075 ac_cv_lib_readline_rl_pre_input_hook
=no
17077 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17078 LIBS
=$ac_check_lib_save_LIBS
17080 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
17081 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
17082 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
17084 cat >>confdefs.h
<<\_ACEOF
17085 #define HAVE_RL_PRE_INPUT_HOOK 1
17091 # check for readline 4.2
17092 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
17093 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
17094 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
17095 echo $ECHO_N "(cached) $ECHO_C" >&6
17097 ac_check_lib_save_LIBS
=$LIBS
17098 LIBS
="-lreadline -ltermcap $LIBS"
17099 cat >conftest.
$ac_ext <<_ACEOF
17100 #line $LINENO "configure"
17101 #include "confdefs.h"
17103 /* Override any gcc2 internal prototype to avoid an error. */
17107 /* We use char because int might match the return type of a gcc2
17108 builtin and then its argument prototype would still apply. */
17109 char rl_completion_matches ();
17110 #ifdef F77_DUMMY_MAIN
17111 # ifdef __cplusplus
17114 int F77_DUMMY_MAIN() { return 1; }
17119 rl_completion_matches ();
17124 rm -f conftest.
$ac_objext conftest
$ac_exeext
17125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17126 (eval $ac_link) 2>&5
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); } &&
17130 { ac_try
='test -s conftest$ac_exeext'
17131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17132 (eval $ac_try) 2>&5
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); }; }; then
17136 ac_cv_lib_readline_rl_completion_matches
=yes
17138 echo "$as_me: failed program was:" >&5
17139 cat conftest.
$ac_ext >&5
17140 ac_cv_lib_readline_rl_completion_matches
=no
17142 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17143 LIBS
=$ac_check_lib_save_LIBS
17145 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
17146 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
17147 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
17149 cat >>confdefs.h
<<\_ACEOF
17150 #define HAVE_RL_COMPLETION_MATCHES 1
17156 echo "$as_me:$LINENO: checking for broken nice()" >&5
17157 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
17158 if test "${ac_cv_broken_nice+set}" = set; then
17159 echo $ECHO_N "(cached) $ECHO_C" >&6
17162 if test "$cross_compiling" = yes; then
17163 ac_cv_broken_nice
=no
17165 cat >conftest.
$ac_ext <<_ACEOF
17166 #line $LINENO "configure"
17167 #include "confdefs.h"
17171 int val1 = nice(1);
17172 if (val1 != -1 && val1 == nice(2))
17178 rm -f conftest
$ac_exeext
17179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17180 (eval $ac_link) 2>&5
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17185 (eval $ac_try) 2>&5
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); }; }; then
17189 ac_cv_broken_nice
=yes
17191 echo "$as_me: program exited with status $ac_status" >&5
17192 echo "$as_me: failed program was:" >&5
17193 cat conftest.
$ac_ext >&5
17194 ( exit $ac_status )
17195 ac_cv_broken_nice
=no
17197 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17201 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
17202 echo "${ECHO_T}$ac_cv_broken_nice" >&6
17203 if test "$ac_cv_broken_nice" = yes
17206 cat >>confdefs.h
<<\_ACEOF
17207 #define HAVE_BROKEN_NICE 1
17212 # tzset(3) exists and works like we expect it to
17213 echo "$as_me:$LINENO: checking for working tzset()" >&5
17214 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
17215 if test "${ac_cv_working_tzset+set}" = set; then
17216 echo $ECHO_N "(cached) $ECHO_C" >&6
17219 if test "$cross_compiling" = yes; then
17220 ac_cv_working_tzset
=no
17222 cat >conftest.
$ac_ext <<_ACEOF
17223 #line $LINENO "configure"
17224 #include "confdefs.h"
17226 #include <stdlib.h>
17233 now = time((time_t*)NULL);
17234 putenv("TZ=UTC+0");
17236 gmt_hour = localtime(&now)->tm_hour;
17237 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
17239 eastern_hour = localtime(&now)->tm_hour;
17240 if (eastern_hour == gmt_hour)
17246 rm -f conftest
$ac_exeext
17247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17248 (eval $ac_link) 2>&5
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17253 (eval $ac_try) 2>&5
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); }; }; then
17257 ac_cv_working_tzset
=yes
17259 echo "$as_me: program exited with status $ac_status" >&5
17260 echo "$as_me: failed program was:" >&5
17261 cat conftest.
$ac_ext >&5
17262 ( exit $ac_status )
17263 ac_cv_working_tzset
=no
17265 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17269 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
17270 echo "${ECHO_T}$ac_cv_working_tzset" >&6
17271 if test "$ac_cv_working_tzset" = yes
17274 cat >>confdefs.h
<<\_ACEOF
17275 #define HAVE_WORKING_TZSET 1
17280 # Look for subsecond timestamps in struct stat
17281 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
17282 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
17283 if test "${ac_cv_stat_tv_nsec+set}" = set; then
17284 echo $ECHO_N "(cached) $ECHO_C" >&6
17286 cat >conftest.
$ac_ext <<_ACEOF
17287 #line $LINENO "configure"
17288 #include "confdefs.h"
17289 #include <sys/stat.h>
17290 #ifdef F77_DUMMY_MAIN
17291 # ifdef __cplusplus
17294 int F77_DUMMY_MAIN() { return 1; }
17301 st.st_mtim.tv_nsec = 1;
17307 rm -f conftest.
$ac_objext
17308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17309 (eval $ac_compile) 2>&5
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); } &&
17313 { ac_try
='test -s conftest.$ac_objext'
17314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17315 (eval $ac_try) 2>&5
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); }; }; then
17319 ac_cv_stat_tv_nsec
=yes
17321 echo "$as_me: failed program was:" >&5
17322 cat conftest.
$ac_ext >&5
17323 ac_cv_stat_tv_nsec
=no
17325 rm -f conftest.
$ac_objext conftest.
$ac_ext
17328 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
17329 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
17330 if test "$ac_cv_stat_tv_nsec" = yes
17333 cat >>confdefs.h
<<\_ACEOF
17334 #define HAVE_STAT_TV_NSEC 1
17339 # On HP/UX 11.0, mvwdelch is a block with a return statement
17340 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
17341 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
17342 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
17343 echo $ECHO_N "(cached) $ECHO_C" >&6
17345 cat >conftest.
$ac_ext <<_ACEOF
17346 #line $LINENO "configure"
17347 #include "confdefs.h"
17348 #include <curses.h>
17349 #ifdef F77_DUMMY_MAIN
17350 # ifdef __cplusplus
17353 int F77_DUMMY_MAIN() { return 1; }
17360 rtn = mvwdelch(0,0,0);
17366 rm -f conftest.
$ac_objext
17367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17368 (eval $ac_compile) 2>&5
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); } &&
17372 { ac_try
='test -s conftest.$ac_objext'
17373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17374 (eval $ac_try) 2>&5
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); }; }; then
17378 ac_cv_mvwdelch_is_expression
=yes
17380 echo "$as_me: failed program was:" >&5
17381 cat conftest.
$ac_ext >&5
17382 ac_cv_mvwdelch_is_expression
=no
17384 rm -f conftest.
$ac_objext conftest.
$ac_ext
17387 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
17388 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
17390 if test "$ac_cv_mvwdelch_is_expression" = yes
17393 cat >>confdefs.h
<<\_ACEOF
17394 #define MVWDELCH_IS_EXPRESSION 1
17399 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
17400 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
17401 if test "${ac_cv_window_has_flags+set}" = set; then
17402 echo $ECHO_N "(cached) $ECHO_C" >&6
17404 cat >conftest.
$ac_ext <<_ACEOF
17405 #line $LINENO "configure"
17406 #include "confdefs.h"
17407 #include <curses.h>
17408 #ifdef F77_DUMMY_MAIN
17409 # ifdef __cplusplus
17412 int F77_DUMMY_MAIN() { return 1; }
17425 rm -f conftest.
$ac_objext
17426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17427 (eval $ac_compile) 2>&5
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); } &&
17431 { ac_try
='test -s conftest.$ac_objext'
17432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433 (eval $ac_try) 2>&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; }; then
17437 ac_cv_window_has_flags
=yes
17439 echo "$as_me: failed program was:" >&5
17440 cat conftest.
$ac_ext >&5
17441 ac_cv_window_has_flags
=no
17443 rm -f conftest.
$ac_objext conftest.
$ac_ext
17446 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
17447 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
17450 if test "$ac_cv_window_has_flags" = yes
17453 cat >>confdefs.h
<<\_ACEOF
17454 #define WINDOW_HAS_FLAGS 1
17459 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
17460 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
17462 if test -e /dev
/ptmx
17464 echo "$as_me:$LINENO: result: yes" >&5
17465 echo "${ECHO_T}yes" >&6
17467 cat >>confdefs.h
<<\_ACEOF
17468 #define HAVE_DEV_PTMX 1
17472 echo "$as_me:$LINENO: result: no" >&5
17473 echo "${ECHO_T}no" >&6
17476 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
17477 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
17479 if test -e /dev
/ptc
17481 echo "$as_me:$LINENO: result: yes" >&5
17482 echo "${ECHO_T}yes" >&6
17484 cat >>confdefs.h
<<\_ACEOF
17485 #define HAVE_DEV_PTC 1
17489 echo "$as_me:$LINENO: result: no" >&5
17490 echo "${ECHO_T}no" >&6
17493 echo "$as_me:$LINENO: checking for socklen_t" >&5
17494 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
17495 if test "${ac_cv_type_socklen_t+set}" = set; then
17496 echo $ECHO_N "(cached) $ECHO_C" >&6
17498 cat >conftest.
$ac_ext <<_ACEOF
17499 #line $LINENO "configure"
17500 #include "confdefs.h"
17502 #ifdef HAVE_SYS_TYPES_H
17503 #include <sys/types.h>
17505 #ifdef HAVE_SYS_SOCKET_H
17506 #include <sys/socket.h>
17510 #ifdef F77_DUMMY_MAIN
17511 # ifdef __cplusplus
17514 int F77_DUMMY_MAIN() { return 1; }
17519 if ((socklen_t *) 0)
17521 if (sizeof (socklen_t))
17527 rm -f conftest.
$ac_objext
17528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17529 (eval $ac_compile) 2>&5
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); } &&
17533 { ac_try
='test -s conftest.$ac_objext'
17534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535 (eval $ac_try) 2>&5
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }; }; then
17539 ac_cv_type_socklen_t
=yes
17541 echo "$as_me: failed program was:" >&5
17542 cat conftest.
$ac_ext >&5
17543 ac_cv_type_socklen_t
=no
17545 rm -f conftest.
$ac_objext conftest.
$ac_ext
17547 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
17548 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
17549 if test $ac_cv_type_socklen_t = yes; then
17553 cat >>confdefs.h
<<\_ACEOF
17554 #define socklen_t int
17562 for h
in `(cd $srcdir;echo Python/thread_*.h)`
17564 THREADHEADERS
="$THREADHEADERS \$(srcdir)/$h"
17568 SRCDIRS
="Parser Grammar Objects Python Modules Mac Mac/Python"
17569 echo "$as_me:$LINENO: checking for build directories" >&5
17570 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
17571 for dir
in $SRCDIRS; do
17572 if test ! -d $dir; then
17576 echo "$as_me:$LINENO: result: done" >&5
17577 echo "${ECHO_T}done" >&6
17579 # generate output files
17580 ac_config_files
="$ac_config_files Makefile.pre Modules/Setup.config"
17582 cat >confcache
<<\_ACEOF
17583 # This file is a shell script that caches the results of configure
17584 # tests run on this system so they can be shared between configure
17585 # scripts and configure runs, see configure's option --config-cache.
17586 # It is not useful on other systems. If it contains results you don't
17587 # want to keep, you may remove or edit it.
17589 # config.status only pays attention to the cache file if you give it
17590 # the --recheck option to rerun configure.
17592 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17593 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17594 # following values.
17598 # The following way of writing the cache mishandles newlines in values,
17599 # but we know of no workaround that is simple, portable, and efficient.
17600 # So, don't put newlines in cache variables' values.
17601 # Ultrix sh set writes to stderr and can't be redirected directly,
17602 # and sets the high bit in the cache file unless we assign to the vars.
17605 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17607 # `set' does not quote correctly, so add quotes (double-quote
17608 # substitution turns \\\\ into \\, and sed turns \\ into \).
17611 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17614 # `set' quotes correctly as required by POSIX, so do not add quotes.
17616 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17623 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17625 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17627 if cmp -s $cache_file confcache
; then :; else
17628 if test -w $cache_file; then
17629 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17630 cat confcache
>$cache_file
17632 echo "not updating unwritable cache $cache_file"
17637 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17638 # Let make expand exec_prefix.
17639 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17641 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17642 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17643 # trailing colons and then remove the whole line if VPATH becomes empty
17644 # (actually we leave an empty line to preserve line numbers).
17645 if test "x$srcdir" = x.
; then
17646 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
17647 s/:*\$(srcdir):*/:/;
17648 s/:*\${srcdir}:*/:/;
17650 s/^\([^=]*=[ ]*\):*/\1/;
17656 DEFS
=-DHAVE_CONFIG_H
17659 : ${CONFIG_STATUS=./config.status}
17660 ac_clean_files_save
=$ac_clean_files
17661 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17662 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17663 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17664 cat >$CONFIG_STATUS <<_ACEOF
17666 # Generated by $as_me.
17667 # Run this file to recreate the current configuration.
17668 # Compiler output produced by configure, useful for debugging
17669 # configure, is in config.log if it exists.
17672 SHELL=\${CONFIG_SHELL-$SHELL}
17675 cat >>$CONFIG_STATUS <<\_ACEOF
17677 ## --------------------- ##
17678 ## M4sh Initialization. ##
17679 ## --------------------- ##
17681 # Be Bourne compatible
17682 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17685 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
17690 # Support unset when possible.
17691 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
17697 (set +x
; test -n "`(LANG=C; export LANG) 2>&1`") &&
17698 { $as_unset LANG ||
test "${LANG+set}" != set; } ||
17699 { LANG
=C
; export LANG
; }
17700 (set +x
; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
17701 { $as_unset LC_ALL ||
test "${LC_ALL+set}" != set; } ||
17702 { LC_ALL
=C
; export LC_ALL
; }
17703 (set +x
; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
17704 { $as_unset LC_TIME ||
test "${LC_TIME+set}" != set; } ||
17705 { LC_TIME
=C
; export LC_TIME
; }
17706 (set +x
; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
17707 { $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set; } ||
17708 { LC_CTYPE
=C
; export LC_CTYPE
; }
17709 (set +x
; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
17710 { $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set; } ||
17711 { LANGUAGE
=C
; export LANGUAGE
; }
17712 (set +x
; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
17713 { $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set; } ||
17714 { LC_COLLATE
=C
; export LC_COLLATE
; }
17715 (set +x
; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
17716 { $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set; } ||
17717 { LC_NUMERIC
=C
; export LC_NUMERIC
; }
17718 (set +x
; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17719 { $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set; } ||
17720 { LC_MESSAGES
=C
; export LC_MESSAGES
; }
17723 # Name of the executable.
17724 as_me
=`(basename "$0") 2>/dev/null ||
17725 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17726 X"$0" : 'X\(//\)$' \| \
17727 X"$0" : 'X\(/\)$' \| \
17728 . : '\(.\)' 2>/dev/null ||
17730 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17731 /^X\/\(\/\/\)$/{ s//\1/; q; }
17732 /^X\/\(\/\).*/{ s//\1/; q; }
17735 # PATH needs CR, and LINENO needs CR and PATH.
17736 # Avoid depending upon Character Ranges.
17737 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17738 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17739 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17740 as_cr_digits
='0123456789'
17741 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17743 # The user is always right.
17744 if test "${PATH_SEPARATOR+set}" != set; then
17745 echo "#! /bin/sh" >conftest.sh
17746 echo "exit 0" >>conftest.sh
17747 chmod +x conftest.sh
17748 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
17757 as_lineno_1
=$LINENO
17758 as_lineno_2
=$LINENO
17759 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
17760 test "x$as_lineno_1" != "x$as_lineno_2" &&
17761 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
17762 # Find who we are. Look in the path if we contain no path at all
17765 *[\\/]* ) as_myself
=$0 ;;
17766 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17767 for as_dir
in $PATH
17770 test -z "$as_dir" && as_dir
=.
17771 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
17776 # We did not find ourselves, most probably we were run as `sh COMMAND'
17777 # in which case we are not to be found in the path.
17778 if test "x$as_myself" = x
; then
17781 if test ! -f "$as_myself"; then
17782 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17783 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17784 { (exit 1); exit 1; }; }
17786 case $CONFIG_SHELL in
17788 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17789 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
17792 test -z "$as_dir" && as_dir
=.
17793 for as_base
in sh bash ksh sh5
; do
17796 if ("$as_dir/$as_base" -c '
17797 as_lineno_1=$LINENO
17798 as_lineno_2=$LINENO
17799 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17800 test "x$as_lineno_1" != "x$as_lineno_2" &&
17801 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
17802 CONFIG_SHELL
=$as_dir/$as_base
17803 export CONFIG_SHELL
17804 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17812 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17813 # uniformly replaced by the line number. The first 'sed' inserts a
17814 # line-number line before each line; the second 'sed' does the real
17815 # work. The second script uses 'N' to pair each line-number line
17816 # with the numbered line, and appends trailing '-' during
17817 # substitution so that $LINENO is not a special case at line end.
17818 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17819 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17820 sed '=' <$as_myself |
17825 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17828 s,^['$as_cr_digits']*\n,,
17829 ' >$as_me.lineno
&&
17830 chmod +x
$as_me.lineno ||
17831 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17832 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17833 { (exit 1); exit 1; }; }
17835 # Don't try to exec as it changes $[0], causing all sort of problems
17836 # (the dirname of $[0] is not the place where we might find the
17837 # original and so on. Autoconf is especially sensible to this).
17839 # Exit status is that of the last command.
17844 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17845 *c
*,-n*) ECHO_N
= ECHO_C
='
17847 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
17848 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
17851 if expr a
: '\(a\)' >/dev
/null
2>&1; then
17857 rm -f conf$$ conf$$.exe conf$$.
file
17859 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17860 # We could just check for DJGPP; but this test a) works b) is more generic
17861 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17862 if test -f conf$$.exe
; then
17863 # Don't use ln at all; we don't have any links
17868 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17873 rm -f conf$$ conf$$.exe conf$$.
file
17875 as_executable_p
="test -f"
17877 # Sed expression to map a string onto a valid CPP name.
17878 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17880 # Sed expression to map a string onto a valid variable name.
17881 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17885 # We need space, tab and new line, in precisely that order.
17891 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
17895 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17896 # report actual input values of CONFIG_FILES etc. instead of their
17897 # values after options handling. Logging --version etc. is OK.
17901 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17902 ## Running $as_me. ##
17907 This file was extended by python $as_me 2.3, which was
17908 generated by GNU Autoconf 2.53. Invocation command line was
17910 CONFIG_FILES = $CONFIG_FILES
17911 CONFIG_HEADERS = $CONFIG_HEADERS
17912 CONFIG_LINKS = $CONFIG_LINKS
17913 CONFIG_COMMANDS = $CONFIG_COMMANDS
17917 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17921 # Files that config.status was made for.
17922 if test -n "$ac_config_files"; then
17923 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17926 if test -n "$ac_config_headers"; then
17927 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17930 if test -n "$ac_config_links"; then
17931 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17934 if test -n "$ac_config_commands"; then
17935 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17938 cat >>$CONFIG_STATUS <<\_ACEOF
17941 \`$as_me' instantiates files from templates according to the
17942 current configuration.
17944 Usage: $0 [OPTIONS] [FILE]...
17946 -h, --help print this help, then exit
17947 -V, --version print version number, then exit
17948 -d, --debug don't remove temporary files
17949 --recheck update $as_me by reconfiguring in the same conditions
17950 --file=FILE[:TEMPLATE]
17951 instantiate the configuration file FILE
17952 --header=FILE[:TEMPLATE]
17953 instantiate the configuration header FILE
17955 Configuration files:
17958 Configuration headers:
17961 Report bugs to <bug-autoconf@gnu.org>."
17964 cat >>$CONFIG_STATUS <<_ACEOF
17966 python config.status 2.3
17967 configured by $0, generated by GNU Autoconf 2.53,
17968 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17970 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17971 Free Software Foundation, Inc.
17972 This config.status script is free software; the Free Software Foundation
17973 gives unlimited permission to copy, distribute and modify it."
17978 cat >>$CONFIG_STATUS <<\_ACEOF
17979 # If no file are specified by the user, then we need to provide default
17980 # value. By we need to know if files were specified by the user.
17986 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
17987 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
17989 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
17993 *) # This is not an option, so the user has probably given explicit
17995 ac_need_defaults
=false
;;
17999 # Handling of the options.
18001 cat >>$CONFIG_STATUS <<_ACEOF
18002 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18003 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
18004 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
18006 cat >>$CONFIG_STATUS <<\_ACEOF
18007 --version |
--vers* |
-V )
18008 echo "$ac_cs_version"; exit 0 ;;
18010 # Conflict between --help and --header
18011 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18012 Try \`$0 --help' for more information." >&5
18013 echo "$as_me: error: ambiguous option: $1
18014 Try \`$0 --help' for more information." >&2;}
18015 { (exit 1); exit 1; }; };;
18016 --help |
--hel |
-h )
18017 echo "$ac_cs_usage"; exit 0 ;;
18018 --debug |
--d* |
-d )
18020 --file |
--fil |
--fi |
--f )
18022 CONFIG_FILES
="$CONFIG_FILES $1"
18023 ac_need_defaults
=false
;;
18024 --header |
--heade |
--head |
--hea )
18026 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
18027 ac_need_defaults
=false
;;
18029 # This is an error.
18030 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18031 Try \`$0 --help' for more information." >&5
18032 echo "$as_me: error: unrecognized option: $1
18033 Try \`$0 --help' for more information." >&2;}
18034 { (exit 1); exit 1; }; } ;;
18036 *) ac_config_targets
="$ac_config_targets $1" ;;
18048 cat >>$CONFIG_STATUS <<\_ACEOF
18049 for ac_config_target
in $ac_config_targets
18051 case "$ac_config_target" in
18052 # Handling of arguments.
18053 "Makefile.pre" ) CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
18054 "Modules/Setup.config" ) CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
18055 "pyconfig.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
18056 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18057 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18058 { (exit 1); exit 1; }; };;
18062 # If the user did not use the arguments to specify the items to instantiate,
18063 # then the envvar interface is used. Set only those that are not.
18064 # We use the long form for the default assignment because of an extremely
18065 # bizarre bug on SunOS 4.1.3.
18066 if $ac_need_defaults; then
18067 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18068 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18071 # Create a temporary directory, and hook for its removal unless debugging.
18074 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18075 trap '{ (exit 1); exit 1; }' 1 2 13 15
18078 # Create a (secure) tmp directory for tmp files.
18081 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18082 test -n "$tmp" && test -d "$tmp"
18085 tmp
=$TMPDIR/cs$$
-$RANDOM
18086 (umask 077 && mkdir
$tmp)
18089 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18090 { (exit 1); exit 1; }
18095 cat >>$CONFIG_STATUS <<_ACEOF
18098 # CONFIG_FILES section.
18101 # No need to generate the scripts if there are no CONFIG_FILES.
18102 # This happens for instance when ./config.status config.h
18103 if test -n "\$CONFIG_FILES"; then
18104 # Protect against being on the right side of a sed subst in config.status.
18105 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18106 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18107 s,@SHELL@,$SHELL,;t t
18108 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18109 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18110 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18111 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18112 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18113 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18114 s,@exec_prefix@,$exec_prefix,;t t
18115 s,@prefix@,$prefix,;t t
18116 s,@program_transform_name@,$program_transform_name,;t t
18117 s,@bindir@,$bindir,;t t
18118 s,@sbindir@,$sbindir,;t t
18119 s,@libexecdir@,$libexecdir,;t t
18120 s,@datadir@,$datadir,;t t
18121 s,@sysconfdir@,$sysconfdir,;t t
18122 s,@sharedstatedir@,$sharedstatedir,;t t
18123 s,@localstatedir@,$localstatedir,;t t
18124 s,@libdir@,$libdir,;t t
18125 s,@includedir@,$includedir,;t t
18126 s,@oldincludedir@,$oldincludedir,;t t
18127 s,@infodir@,$infodir,;t t
18128 s,@mandir@,$mandir,;t t
18129 s,@build_alias@,$build_alias,;t t
18130 s,@host_alias@,$host_alias,;t t
18131 s,@target_alias@,$target_alias,;t t
18132 s,@DEFS@,$DEFS,;t t
18133 s,@ECHO_C@,$ECHO_C,;t t
18134 s,@ECHO_N@,$ECHO_N,;t t
18135 s,@ECHO_T@,$ECHO_T,;t t
18136 s,@LIBS@,$LIBS,;t t
18137 s,@VERSION@,$VERSION,;t t
18138 s,@SOVERSION@,$SOVERSION,;t t
18139 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
18140 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
18141 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
18142 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
18143 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
18144 s,@MACHDEP@,$MACHDEP,;t t
18145 s,@SGI_ABI@,$SGI_ABI,;t t
18146 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
18147 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
18149 s,@MAINOBJ@,$MAINOBJ,;t t
18150 s,@EXEEXT@,$EXEEXT,;t t
18152 s,@CFLAGS@,$CFLAGS,;t t
18153 s,@LDFLAGS@,$LDFLAGS,;t t
18154 s,@CPPFLAGS@,$CPPFLAGS,;t t
18155 s,@ac_ct_CC@,$ac_ct_CC,;t t
18156 s,@OBJEXT@,$OBJEXT,;t t
18158 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
18159 s,@LIBRARY@,$LIBRARY,;t t
18160 s,@LDLIBRARY@,$LDLIBRARY,;t t
18161 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
18162 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
18163 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
18164 s,@INSTSONAME@,$INSTSONAME,;t t
18165 s,@RUNSHARED@,$RUNSHARED,;t t
18166 s,@LINKCC@,$LINKCC,;t t
18167 s,@RANLIB@,$RANLIB,;t t
18168 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18170 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18171 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18172 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18175 s,@BASECFLAGS@,$BASECFLAGS,;t t
18176 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
18178 s,@LDSHARED@,$LDSHARED,;t t
18179 s,@BLDSHARED@,$BLDSHARED,;t t
18180 s,@CCSHARED@,$CCSHARED,;t t
18181 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
18182 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
18183 s,@SHLIBS@,$SHLIBS,;t t
18184 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
18185 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
18186 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
18187 s,@LDLAST@,$LDLAST,;t t
18188 s,@THREADOBJ@,$THREADOBJ,;t t
18189 s,@DLINCLDIR@,$DLINCLDIR,;t t
18190 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
18191 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
18192 s,@TRUE@,$TRUE,;t t
18193 s,@LIBOBJS@,$LIBOBJS,;t t
18194 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
18195 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
18196 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
18197 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
18198 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
18199 s,@LIBM@,$LIBM,;t t
18200 s,@LIBC@,$LIBC,;t t
18201 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
18202 s,@THREADHEADERS@,$THREADHEADERS,;t t
18203 s,@SRCDIRS@,$SRCDIRS,;t t
18208 cat >>$CONFIG_STATUS <<\_ACEOF
18209 # Split the substitutions into bite-sized pieces for seds with
18210 # small command number limits, like on Digital OSF/1 and HP-UX.
18211 ac_max_sed_lines
=48
18212 ac_sed_frag
=1 # Number of current file.
18213 ac_beg
=1 # First line for current file.
18214 ac_end
=$ac_max_sed_lines # Line after last line for current file.
18217 while $ac_more_lines; do
18218 if test $ac_beg -gt 1; then
18219 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
18221 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
18223 if test ! -s $tmp/subs.frag
; then
18224 ac_more_lines
=false
18226 # The purpose of the label and of the branching condition is to
18227 # speed up the sed processing (if there are no `@' at all, there
18228 # is no need to browse any of the substitutions).
18229 # These are the two extra sed commands mentioned above.
18231 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
18232 if test -z "$ac_sed_cmds"; then
18233 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
18235 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18237 ac_sed_frag
=`expr $ac_sed_frag + 1`
18239 ac_end
=`expr $ac_end + $ac_max_sed_lines`
18242 if test -z "$ac_sed_cmds"; then
18245 fi # test -n "$CONFIG_FILES"
18248 cat >>$CONFIG_STATUS <<\_ACEOF
18249 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
18250 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18252 - |
*:- |
*:-:* ) # input from stdin
18254 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18255 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18256 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18257 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18258 * ) ac_file_in
=$ac_file.
in ;;
18261 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18262 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
18263 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18264 X"$ac_file" : 'X\(//\)[^/]' \| \
18265 X"$ac_file" : 'X\(//\)$' \| \
18266 X"$ac_file" : 'X\(/\)' \| \
18267 . : '\(.\)' 2>/dev/null ||
18269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18270 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18271 /^X\(\/\/\)$/{ s//\1/; q; }
18272 /^X\(\/\).*/{ s//\1/; q; }
18274 { case "$ac_dir" in
18275 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
18279 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18280 case $as_mkdir_dir in
18281 # Skip DOS drivespec
18282 ?
:) as_incr_dir
=$as_mkdir_dir ;;
18284 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
18285 test -d "$as_incr_dir" ||
18286 mkdir
"$as_incr_dir" ||
18287 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18288 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18289 { (exit 1); exit 1; }; }
18296 if test "$ac_dir" != .
; then
18297 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18298 # A "../" for each directory in $ac_dir_suffix.
18299 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18301 ac_dir_suffix
= ac_top_builddir
=
18305 .
) # No --srcdir option. We are building in place.
18307 if test -z "$ac_top_builddir"; then
18310 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
18312 [\\/]* | ?
:[\\/]* ) # Absolute path.
18313 ac_srcdir
=$srcdir$ac_dir_suffix;
18314 ac_top_srcdir
=$srcdir ;;
18315 *) # Relative path.
18316 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
18317 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
18319 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18321 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
18322 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18323 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18324 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18328 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18329 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
18332 if test x
"$ac_file" != x-
; then
18333 { echo "$as_me:$LINENO: creating $ac_file" >&5
18334 echo "$as_me: creating $ac_file" >&6;}
18337 # Let's still pretend it is `configure' which instantiates (i.e., don't
18338 # use $as_me), people would be surprised to read:
18339 # /* config.h. Generated by config.status. */
18340 if test x
"$ac_file" = x-
; then
18343 configure_input
="$ac_file. "
18345 configure_input
=$configure_input"Generated from `echo $ac_file_in |
18346 sed 's,.*/,,'` by configure."
18348 # First look for the input files in the build tree, otherwise in the
18350 ac_file_inputs
=`IFS=:
18351 for f in $ac_file_in; do
18353 -) echo $tmp/stdin ;;
18355 # Absolute (can't be DOS-style, as IFS=:)
18356 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18357 echo "$as_me: error: cannot find input file: $f" >&2;}
18358 { (exit 1); exit 1; }; }
18361 if test -f "$f"; then
18364 elif test -f "$srcdir/$f"; then
18369 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18370 echo "$as_me: error: cannot find input file: $f" >&2;}
18371 { (exit 1); exit 1; }; }
18374 done` ||
{ (exit 1); exit 1; }
18376 cat >>$CONFIG_STATUS <<_ACEOF
18380 cat >>$CONFIG_STATUS <<\_ACEOF
18382 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18383 s
,@configure_input@
,$configure_input,;t t
18384 s
,@srcdir@
,$ac_srcdir,;t t
18385 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
18386 s
,@top_srcdir@
,$ac_top_srcdir,;t t
18387 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
18388 s
,@builddir@
,$ac_builddir,;t t
18389 s
,@abs_builddir@
,$ac_abs_builddir,;t t
18390 s
,@top_builddir@
,$ac_top_builddir,;t t
18391 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
18392 s
,@INSTALL@
,$ac_INSTALL,;t t
18393 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18395 if test x"$ac_file" != x-; then
18396 mv $tmp/out $ac_file
18404 cat >>$CONFIG_STATUS <<\_ACEOF
18407 # CONFIG_HEADER section.
18410 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
18411 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18413 # ac_d sets the value in "#define NAME VALUE" lines.
18414 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18415 ac_dB
='[ ].*$,\1#\2'
18418 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18419 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18420 ac_uB
='$,\1#\2define\3'
18424 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
18425 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18427 - |
*:- |
*:-:* ) # input from stdin
18429 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18430 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18431 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18432 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18433 * ) ac_file_in
=$ac_file.
in ;;
18436 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
18437 echo "$as_me: creating $ac_file" >&6;}
18439 # First look for the input files in the build tree, otherwise in the
18441 ac_file_inputs
=`IFS=:
18442 for f in $ac_file_in; do
18444 -) echo $tmp/stdin ;;
18446 # Absolute (can't be DOS-style, as IFS=:)
18447 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18448 echo "$as_me: error: cannot find input file: $f" >&2;}
18449 { (exit 1); exit 1; }; }
18452 if test -f "$f"; then
18455 elif test -f "$srcdir/$f"; then
18460 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18461 echo "$as_me: error: cannot find input file: $f" >&2;}
18462 { (exit 1); exit 1; }; }
18465 done` ||
{ (exit 1); exit 1; }
18466 # Remove the trailing spaces.
18467 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18471 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18472 # `conftest.undefs', that substitutes the proper values into
18473 # config.h.in to produce config.h. The first handles `#define'
18474 # templates, and the second `#undef' templates.
18475 # And first: Protect against being on the right side of a sed subst in
18476 # config.status. Protect against being in an unquoted here document
18477 # in config.status.
18478 rm -f conftest.defines conftest.undefs
18479 # Using a here document instead of a string reduces the quoting nightmare.
18480 # Putting comments in sed scripts is not portable.
18482 # `end' is used to avoid that the second main sed command (meant for
18483 # 0-ary CPP macros) applies to n-ary macro definitions.
18484 # See the Autoconf documentation for `clear'.
18485 cat >confdef2sed.
sed <<\_ACEOF
18490 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18492 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18495 # If some macros were called several times there might be several times
18496 # the same #defines, which is useless. Nevertheless, we may not want to
18497 # sort them, since we want the *last* AC-DEFINE to be honored.
18498 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18499 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18500 rm -f confdef2sed.sed
18502 # This sed command replaces #undef with comments. This is necessary, for
18503 # example, in the case of _POSIX_SOURCE, which is predefined and required
18504 # on some systems where configure will not decide to define it.
18505 cat >>conftest.undefs <<\_ACEOF
18506 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18509 # Break up conftest.defines because some shells have a limit on the size
18510 # of here documents, and old seds have small limits too (100 cmds).
18511 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18512 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18513 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18514 echo ' :' >>$CONFIG_STATUS
18515 rm -f conftest.tail
18516 while grep . conftest.defines >/dev/null
18518 # Write a limited-size here document to $tmp/defines.sed.
18519 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18520 # Speed up: don't consider the non `#define' lines.
18521 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18522 # Work around the forget-to-reset-the-flag bug.
18523 echo 't clr' >>$CONFIG_STATUS
18524 echo ': clr' >>$CONFIG_STATUS
18525 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
18527 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18529 mv $tmp/out $tmp/in
18531 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
18532 rm -f conftest.defines
18533 mv conftest.
tail conftest.defines
18535 rm -f conftest.defines
18536 echo ' fi # egrep' >>$CONFIG_STATUS
18537 echo >>$CONFIG_STATUS
18539 # Break up conftest.undefs because some shells have a limit on the size
18540 # of here documents, and old seds have small limits too (100 cmds).
18541 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18542 rm -f conftest.
tail
18543 while grep . conftest.undefs
>/dev
/null
18545 # Write a limited-size here document to $tmp/undefs.sed.
18546 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18547 # Speed up: don't consider the non
`#undef'
18548 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18549 # Work around the forget-to-reset-the-flag bug.
18550 echo 't clr' >>$CONFIG_STATUS
18551 echo ': clr' >>$CONFIG_STATUS
18552 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18554 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18556 mv $tmp/out $tmp/in
18558 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18559 rm -f conftest.undefs
18560 mv conftest.tail conftest.undefs
18562 rm -f conftest.undefs
18564 cat >>$CONFIG_STATUS <<\_ACEOF
18565 # Let's still pretend it is `configure
' which instantiates (i.e., don't
18566 # use $as_me), people would be surprised to read:
18567 # /* config.h. Generated by config.status. */
18568 if test x
"$ac_file" = x-
; then
18569 echo "/* Generated by configure. */" >$tmp/config.h
18571 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18573 cat $tmp/in >>$tmp/config.h
18575 if test x
"$ac_file" != x-
; then
18576 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
18577 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18578 echo "$as_me: $ac_file is unchanged" >&6;}
18580 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
18581 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18582 X"$ac_file" : 'X\(//\)[^/]' \| \
18583 X"$ac_file" : 'X\(//\)$' \| \
18584 X"$ac_file" : 'X\(/\)' \| \
18585 . : '\(.\)' 2>/dev/null ||
18587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18588 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18589 /^X\(\/\/\)$/{ s//\1/; q; }
18590 /^X\(\/\).*/{ s//\1/; q; }
18592 { case "$ac_dir" in
18593 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
18597 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18598 case $as_mkdir_dir in
18599 # Skip DOS drivespec
18600 ?
:) as_incr_dir
=$as_mkdir_dir ;;
18602 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
18603 test -d "$as_incr_dir" ||
18604 mkdir
"$as_incr_dir" ||
18605 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18606 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18607 { (exit 1); exit 1; }; }
18613 mv $tmp/config.h
$ac_file
18617 rm -f $tmp/config.h
18622 cat >>$CONFIG_STATUS <<\_ACEOF
18624 { (exit 0); exit 0; }
18626 chmod +x
$CONFIG_STATUS
18627 ac_clean_files
=$ac_clean_files_save
18630 # configure is writing to config.log, and then calls config.status.
18631 # config.status does its own redirection, appending to config.log.
18632 # Unfortunately, on DOS this fails, as config.log is still kept open
18633 # by configure, so config.status won't be able to write to it; its
18634 # output is simply discarded. So we exec the FD to /dev/null,
18635 # effectively closing config.log, so it can be properly (re)opened and
18636 # appended to by config.status. When coming back to configure, we
18637 # need to make the FD available again.
18638 if test "$no_create" != yes; then
18641 $SHELL $CONFIG_STATUS || ac_cs_success
=false
18643 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18644 # would make configure fail if this is the last instruction.
18645 $ac_cs_success ||
{ (exit 1); exit 1; }
18649 echo "creating Setup"
18650 if test ! -f Modules
/Setup
18652 cp $srcdir/Modules
/Setup.dist Modules
/Setup
18655 echo "creating Setup.local"
18656 if test ! -f Modules
/Setup.
local
18658 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
18661 echo "creating Makefile"
18662 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
18663 -s Modules Modules
/Setup.config \
18664 Modules
/Setup.
local Modules
/Setup
18665 mv config.c Modules