This commit was manufactured by cvs2svn to create tag 'r23a1-fork'.
[python/dscho.git] / configure
blob86d9578918987a4de7b1e26371cf497f550bee7a
1 #! /bin/sh
2 # From configure.in Revision: 1.381 .
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
12 as_expr=expr
13 else
14 as_expr=false
18 ## --------------------- ##
19 ## M4sh Initialization. ##
20 ## --------------------- ##
22 # Be Bourne compatible
23 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24 emulate sh
25 NULLCMD=:
26 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27 set -o posix
30 # NLS nuisances.
31 # Support unset when possible.
32 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
33 as_unset=unset
34 else
35 as_unset=false
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 ||
70 echo X/"$0" |
71 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
72 /^X\/\(\/\/\)$/{ s//\1/; q; }
73 /^X\/\(\/\).*/{ s//\1/; q; }
74 s/.*/./; 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
88 chmod +x conftest.sh
89 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
90 PATH_SEPARATOR=';'
91 else
92 PATH_SEPARATOR=:
94 rm -f conftest.sh
98 as_lineno_1=$LINENO
99 as_lineno_2=$LINENO
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
104 # relative or not.
105 case $0 in
106 *[\\/]* ) as_myself=$0 ;;
107 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
108 for as_dir in $PATH
110 IFS=$as_save_IFS
111 test -z "$as_dir" && as_dir=.
112 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
113 done
116 esac
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
120 as_myself=$0
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
131 IFS=$as_save_IFS
132 test -z "$as_dir" && as_dir=.
133 for as_base in sh bash ksh sh5; do
134 case $as_dir in
136 if ("$as_dir/$as_base" -c '
137 as_lineno_1=$LINENO
138 as_lineno_2=$LINENO
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
143 export CONFIG_SHELL
144 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
145 fi;;
146 esac
147 done
148 done
150 esac
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 |
161 sed '
163 s,$,-,
164 : loop
165 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
166 t loop
167 s,-$,,
168 s,^['$as_cr_digits']*\n,,
169 ' >$as_me.lineno &&
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).
177 . ./$as_me.lineno
178 # Exit status is that of the last command.
179 exit
183 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
184 *c*,-n*) ECHO_N= ECHO_C='
185 ' ECHO_T=' ' ;;
186 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
187 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
188 esac
190 if expr a : '\(a\)' >/dev/null 2>&1; then
191 as_expr=expr
192 else
193 as_expr=false
196 rm -f conf$$ conf$$.exe conf$$.file
197 echo >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
203 as_ln_s='cp -p'
204 else
205 as_ln_s='ln -s'
207 elif ln conf$$.file conf$$ 2>/dev/null; then
208 as_ln_s=ln
209 else
210 as_ln_s='cp -p'
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"
223 # IFS
224 # We need space, tab and new line, in precisely that order.
225 as_nl='
227 IFS=" $as_nl"
229 # CDPATH.
230 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
233 # Name of the host.
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`
238 exec 6>&1
241 # Initializations.
243 ac_default_prefix=/usr/local
244 cross_compiling=no
245 subdirs=
246 MFLAGS=
247 MAKEFLAGS=
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'
260 PACKAGE_BUGREPORT=''
262 ac_unique_file="Include/object.h"
263 # Factoring default headers for most tests.
264 ac_includes_default="\
265 #include <stdio.h>
266 #if HAVE_SYS_TYPES_H
267 # include <sys/types.h>
268 #endif
269 #if HAVE_SYS_STAT_H
270 # include <sys/stat.h>
271 #endif
272 #if STDC_HEADERS
273 # include <stdlib.h>
274 # include <stddef.h>
275 #else
276 # if HAVE_STDLIB_H
277 # include <stdlib.h>
278 # endif
279 #endif
280 #if HAVE_STRING_H
281 # if !STDC_HEADERS && HAVE_MEMORY_H
282 # include <memory.h>
283 # endif
284 # include <string.h>
285 #endif
286 #if HAVE_STRINGS_H
287 # include <strings.h>
288 #endif
289 #if HAVE_INTTYPES_H
290 # include <inttypes.h>
291 #else
292 # if HAVE_STDINT_H
293 # include <stdint.h>
294 # endif
295 #endif
296 #if HAVE_UNISTD_H
297 # include <unistd.h>
298 #endif"
301 # Initialize some variables set by options.
302 ac_init_help=
303 ac_init_version=false
304 # The variables have the same names as the options, with
305 # dashes changed to underlines.
306 cache_file=/dev/null
307 exec_prefix=NONE
308 no_create=
309 no_recursion=
310 prefix=NONE
311 program_prefix=NONE
312 program_suffix=NONE
313 program_transform_name=s,x,x,
314 silent=
315 site=
316 srcdir=
317 verbose=
318 x_includes=NONE
319 x_libraries=NONE
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'
339 ac_prev=
340 for ac_option
342 # If the previous option needs an argument, assign it.
343 if test -n "$ac_prev"; then
344 eval "$ac_prev=\$ac_option"
345 ac_prev=
346 continue
349 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
351 # Accept the important Cygnus configure options, so we can diagnose typos.
353 case $ac_option in
355 -bindir | --bindir | --bindi | --bind | --bin | --bi)
356 ac_prev=bindir ;;
357 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
358 bindir=$ac_optarg ;;
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 ;;
372 --config-cache | -C)
373 cache_file=config.cache ;;
375 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
376 ac_prev=datadir ;;
377 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
378 | --da=*)
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'`
397 case $ac_option in
398 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
399 *) ac_optarg=yes ;;
400 esac
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.
414 with_gas=yes ;;
416 -help | --help | --hel | --he | -h)
417 ac_init_help=long ;;
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)
436 ac_prev=infodir ;;
437 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
438 infodir=$ac_optarg ;;
440 -libdir | --libdir | --libdi | --libd)
441 ac_prev=libdir ;;
442 -libdir=* | --libdir=* | --libdi=* | --libd=*)
443 libdir=$ac_optarg ;;
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)
462 ac_prev=mandir ;;
463 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
464 mandir=$ac_optarg ;;
466 -nfp | --nfp | --nf)
467 # Obsolete; use --without-fp.
468 with_fp=no ;;
470 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
471 | --no-cr | --no-c | -n)
472 no_create=yes ;;
474 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
475 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
476 no_recursion=yes ;;
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)
488 ac_prev=prefix ;;
489 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
490 prefix=$ac_optarg ;;
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)
525 silent=yes ;;
527 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
528 ac_prev=sbindir ;;
529 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
530 | --sbi=* | --sb=*)
531 sbindir=$ac_optarg ;;
533 -sharedstatedir | --sharedstatedir | --sharedstatedi \
534 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
535 | --sharedst | --shareds | --shared | --share | --shar \
536 | --sha | --sh)
537 ac_prev=sharedstatedir ;;
538 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
539 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
540 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
541 | --sha=* | --sh=*)
542 sharedstatedir=$ac_optarg ;;
544 -site | --site | --sit)
545 ac_prev=site ;;
546 -site=* | --site=* | --sit=*)
547 site=$ac_optarg ;;
549 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
550 ac_prev=srcdir ;;
551 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
552 srcdir=$ac_optarg ;;
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)
567 verbose=yes ;;
569 -version | --version | --versio | --versi | --vers | -V)
570 ac_init_version=: ;;
572 -with-* | --with-*)
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'`
579 case $ac_option in
580 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
581 *) ac_optarg=yes ;;
582 esac
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" ;;
594 --x)
595 # Obsolete; use --with-x.
596 with_x=yes ;;
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; }; }
617 *=*)
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'"
625 export $ac_envvar ;;
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}
635 esac
636 done
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`
648 case $ac_val in
649 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
650 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
651 { (exit 1); exit 1; }; };;
652 esac
653 done
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`
660 case $ac_val in
661 [\\/$]* | ?:[\\/]* ) ;;
662 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
663 { (exit 1); exit 1; }; };;
664 esac
665 done
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.
670 build=$build_alias
671 host=$host_alias
672 target=$target_alias
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
681 cross_compiling=yes
685 ac_tool_prefix=
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 ||
701 echo X"$0" |
702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
703 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
704 /^X\(\/\/\)$/{ s//\1/; q; }
705 /^X\(\/\).*/{ s//\1/; q; }
706 s/.*/./; q'`
707 srcdir=$ac_confdir
708 if test ! -r $srcdir/$ac_unique_file; then
709 srcdir=..
711 else
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; }; }
718 else
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}
737 ac_env_CC_value=$CC
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.
763 cat <<_ACEOF
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.
773 Configuration:
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 \`..']
784 _ACEOF
786 cat <<_ACEOF
787 Installation directories:
788 --prefix=PREFIX install architecture-independent files in PREFIX
789 [$ac_default_prefix]
790 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
791 [PREFIX]
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]
813 _ACEOF
815 cat <<\_ACEOF
816 _ACEOF
819 if test -n "$ac_init_help"; then
820 case $ac_init_help in
821 short | recursive ) echo "Configuration of python 2.3:";;
822 esac
823 cat <<\_ACEOF
825 Optional Features:
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)
837 Optional Packages:
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>
870 CPP C preprocessor
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.
875 _ACEOF
878 if test "$ac_init_help" = "recursive"; then
879 # If there are subdirs, report their specific --help.
880 ac_popdir=`pwd`
881 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
882 test -d $ac_dir || continue
883 ac_builddir=.
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'`
889 else
890 ac_dir_suffix= ac_top_builddir=
893 case $srcdir in
894 .) # No --srcdir option. We are building in place.
895 ac_srcdir=.
896 if test -z "$ac_top_builddir"; then
897 ac_top_srcdir=.
898 else
899 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
900 fi ;;
901 [\\/]* | ?:[\\/]* ) # Absolute path.
902 ac_srcdir=$srcdir$ac_dir_suffix;
903 ac_top_srcdir=$srcdir ;;
904 *) # Relative path.
905 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
906 ac_top_srcdir=$ac_top_builddir$srcdir ;;
907 esac
908 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
909 # absolute.
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`
915 cd $ac_dir
916 # Check for guested configure; otherwise get Cygnus style configure.
917 if test -f $ac_srcdir/configure.gnu; then
918 echo
919 $SHELL $ac_srcdir/configure.gnu --help=recursive
920 elif test -f $ac_srcdir/configure; then
921 echo
922 $SHELL $ac_srcdir/configure --help=recursive
923 elif test -f $ac_srcdir/configure.ac ||
924 test -f $ac_srcdir/configure.in; then
925 echo
926 $ac_configure --help
927 else
928 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
930 cd $ac_popdir
931 done
934 test -n "$ac_init_help" && exit 0
935 if $ac_init_version; then
936 cat <<\_ACEOF
937 python configure 2.3
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.
944 _ACEOF
945 exit 0
947 exec 5>config.log
948 cat >&5 <<_ACEOF
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
955 $ $0 $@
957 _ACEOF
959 cat <<_ASUNAME
960 ## --------- ##
961 ## Platform. ##
962 ## --------- ##
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`
981 _ASUNAME
983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
984 for as_dir in $PATH
986 IFS=$as_save_IFS
987 test -z "$as_dir" && as_dir=.
988 echo "PATH: $as_dir"
989 done
991 } >&5
993 cat >&5 <<_ACEOF
996 ## ----------- ##
997 ## Core tests. ##
998 ## ----------- ##
1000 _ACEOF
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.
1006 ac_configure_args=
1007 ac_sep=
1008 for ac_arg
1010 case $ac_arg in
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)
1015 continue ;;
1016 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1017 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1018 esac
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'"
1022 ac_sep=" " ;;
1023 esac
1024 # Get rid of the leading space.
1025 done
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.
1035 echo
1036 cat <<\_ASBOX
1037 ## ---------------- ##
1038 ## Cache variables. ##
1039 ## ---------------- ##
1040 _ASBOX
1041 echo
1042 # The following way of writing the cache mishandles newlines in values,
1044 (set) 2>&1 |
1045 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1046 *ac_space=\ *)
1047 sed -n \
1048 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1049 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1052 sed -n \
1053 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1055 esac;
1057 echo
1058 if test -s confdefs.h; then
1059 cat <<\_ASBOX
1060 ## ----------- ##
1061 ## confdefs.h. ##
1062 ## ----------- ##
1063 _ASBOX
1064 echo
1065 sed "/^$/d" confdefs.h
1066 echo
1068 test "$ac_signal" != 0 &&
1069 echo "$as_me: caught signal $ac_signal"
1070 echo "$as_me: exit $exit_status"
1071 } >&5
1072 rm -f core core.* *.core &&
1073 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1074 exit $exit_status
1076 for ac_signal in 1 2 13 15; do
1077 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1078 done
1079 ac_signal=0
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.
1084 echo >confdefs.h
1086 # Predefined preprocessor variables.
1088 cat >>confdefs.h <<_ACEOF
1089 #define PACKAGE_NAME "$PACKAGE_NAME"
1090 _ACEOF
1093 cat >>confdefs.h <<_ACEOF
1094 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1095 _ACEOF
1098 cat >>confdefs.h <<_ACEOF
1099 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1100 _ACEOF
1103 cat >>confdefs.h <<_ACEOF
1104 #define PACKAGE_STRING "$PACKAGE_STRING"
1105 _ACEOF
1108 cat >>confdefs.h <<_ACEOF
1109 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1110 _ACEOF
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"
1118 else
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
1127 . "$ac_site_file"
1129 done
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;}
1137 case $cache_file in
1138 [\\/]* | ?:[\\/]* ) . $cache_file;;
1139 *) . ./$cache_file;;
1140 esac
1142 else
1143 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1144 echo "$as_me: creating cache $cache_file" >&6;}
1145 >$cache_file
1148 # Check that the precious variables saved in the cache have kept the same
1149 # value.
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
1158 set,)
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=: ;;
1162 ,set)
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=: ;;
1166 ,);;
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=:
1176 fi;;
1177 esac
1178 # Pass precious variables to config.status.
1179 if test "$ac_new_set" = set; then
1180 case $ac_new_val in
1181 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1182 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1183 *) ac_arg=$ac_var=$ac_new_val ;;
1184 esac
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'" ;;
1188 esac
1190 done
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; }; }
1199 ac_ext=c
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.
1242 VERSION=2.3
1245 SOVERSION=1.0
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
1252 _ACEOF
1255 define_xopen_source=yes
1257 # Arguments passed to configure.
1259 CONFIG_ARGS="$ac_configure_args"
1261 # Check whether --enable-framework or --disable-framework was given.
1262 if test "${enable_framework+set}" = set; then
1263 enableval="$enable_framework"
1265 case $enableval in
1266 yes)
1267 enableval=/Library/Frameworks
1268 esac
1269 case $enableval in
1271 PYTHONFRAMEWORK=
1272 PYTHONFRAMEWORKDIR=no-framework
1273 PYTHONFRAMEWORKPREFIX=
1274 PYTHONFRAMEWORKINSTALLDIR=
1275 enable_framework=
1278 PYTHONFRAMEWORK=Python
1279 PYTHONFRAMEWORKDIR=Python.framework
1280 PYTHONFRAMEWORKPREFIX=$enableval
1281 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1282 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1283 esac
1285 else
1287 PYTHONFRAMEWORK=
1288 PYTHONFRAMEWORKDIR=no-framework
1289 PYTHONFRAMEWORKPREFIX=
1290 PYTHONFRAMEWORKINSTALLDIR=
1291 enable_framework=
1299 ##AC_ARG_WITH(dyld,
1300 ## AC_HELP_STRING(--with-dyld,
1301 ## Use (OpenStep|Rhapsody) dynamic linker))
1303 # Set name for machine-dependent library files
1305 echo "$as_me:$LINENO: checking MACHDEP" >&5
1306 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1307 if test -z "$MACHDEP"
1308 then
1309 ac_sys_system=`uname -s`
1310 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1311 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1312 ac_sys_release=`uname -v`
1313 else
1314 ac_sys_release=`uname -r`
1316 ac_md_system=`echo $ac_sys_system |
1317 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1318 ac_md_release=`echo $ac_sys_release |
1319 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
1320 MACHDEP="$ac_md_system$ac_md_release"
1322 case $MACHDEP in
1323 cygwin*) MACHDEP="cygwin";;
1324 darwin*) MACHDEP="darwin";;
1325 atheos*) MACHDEP="atheos";;
1326 '') MACHDEP="unknown";;
1327 esac
1330 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1331 # disable features if it is defined, without any means to access these
1332 # features as extensions. For these systems, we skip the definition of
1333 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1334 # some feature, make sure there is no alternative way to access this
1335 # feature. Also, when using wildcards, make sure you have verified the
1336 # need for not defining _XOPEN_SOURCE on all systems matching the
1337 # wildcard, and that the wildcard does not include future systems
1338 # (which may remove their limitations).
1339 case $ac_sys_system/$ac_sys_release in
1340 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
1341 # even though select is a POSIX function. Reported by J. Ribbens.
1342 OpenBSD/2.* | OpenBSD/3.[012])
1343 define_xopen_source=no;;
1344 esac
1346 if test $define_xopen_source = yes
1347 then
1349 cat >>confdefs.h <<\_ACEOF
1350 #define _XOPEN_SOURCE 600
1351 _ACEOF
1354 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1355 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1356 # several APIs are not declared. Since this is also needed in some
1357 # cases for HP-UX, we define it globally.
1360 cat >>confdefs.h <<\_ACEOF
1361 #define _XOPEN_SOURCE_EXTENDED 1
1362 _ACEOF
1365 cat >>confdefs.h <<\_ACEOF
1366 #define _POSIX_C_SOURCE 200112L
1367 _ACEOF
1373 # SGI compilers allow the specification of the both the ABI and the
1374 # ISA on the command line. Depending on the values of these switches,
1375 # different and often incompatable code will be generated.
1377 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1378 # thus supply support for various ABI/ISA combinations. The MACHDEP
1379 # variable is also adjusted.
1382 if test ! -z "$SGI_ABI"
1383 then
1384 CC="cc $SGI_ABI"
1385 LDFLAGS="$SGI_ABI $LDFLAGS"
1386 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1388 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1389 echo "${ECHO_T}$MACHDEP" >&6
1391 # And add extra plat-mac for darwin
1393 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1394 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1395 if test -z "$EXTRAPLATDIR"
1396 then
1397 case $MACHDEP in
1398 darwin) EXTRAPLATDIR="\$(PLATMACDIRS)";;
1399 *) EXTRAPLATDIR="";;
1400 esac
1402 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1403 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1405 # checks for alternative programs
1406 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1407 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1409 # Check whether --with-gcc or --without-gcc was given.
1410 if test "${with_gcc+set}" = set; then
1411 withval="$with_gcc"
1413 case $withval in
1414 no) CC=cc
1415 without_gcc=yes;;
1416 yes) CC=gcc
1417 without_gcc=no;;
1418 *) CC=$withval
1419 without_gcc=$withval;;
1420 esac
1421 else
1423 case $ac_sys_system in
1424 AIX*) CC=cc_r
1425 without_gcc=;;
1426 BeOS*)
1427 case $BE_HOST_CPU in
1428 ppc)
1429 CC=mwcc
1430 without_gcc=yes
1431 OPT="-O -export pragma"
1432 LDFLAGS="$LDFLAGS -nodup"
1434 x86)
1435 CC=gcc
1436 without_gcc=no
1437 OPT=-O
1440 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1441 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1442 { (exit 1); exit 1; }; }
1444 esac
1445 AR="\$(srcdir)/Modules/ar_beos"
1446 RANLIB=:
1448 Monterey*)
1449 RANLIB=:
1450 without_gcc=;;
1451 *) without_gcc=no;;
1452 esac
1454 echo "$as_me:$LINENO: result: $without_gcc" >&5
1455 echo "${ECHO_T}$without_gcc" >&6
1459 MAINOBJ=python.o
1460 echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5
1461 echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6
1463 # Check whether --with-cxx or --without-cxx was given.
1464 if test "${with_cxx+set}" = set; then
1465 withval="$with_cxx"
1467 check_cxx=no
1468 case $withval in
1469 no) CXX=
1470 with_cxx=no;;
1471 *) CXX=$withval
1472 MAINOBJ=ccpython.o
1473 with_cxx=$withval;;
1474 esac
1475 else
1477 with_cxx=no
1478 check_cxx=yes
1481 echo "$as_me:$LINENO: result: $with_cxx" >&5
1482 echo "${ECHO_T}$with_cxx" >&6
1484 if test "$with_cxx" = "yes"
1485 then
1486 { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5
1487 echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;}
1488 { (exit 1); exit 1; }; }
1494 if test "$check_cxx" = "yes"
1495 then
1496 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1498 # Extract the first word of "$ac_prog", so it can be a program name with args.
1499 set dummy $ac_prog; ac_word=$2
1500 echo "$as_me:$LINENO: checking for $ac_word" >&5
1501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1502 if test "${ac_cv_prog_CXX+set}" = set; then
1503 echo $ECHO_N "(cached) $ECHO_C" >&6
1504 else
1505 if test -n "$CXX"; then
1506 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1507 else
1508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1509 for as_dir in $PATH
1511 IFS=$as_save_IFS
1512 test -z "$as_dir" && as_dir=.
1513 for ac_exec_ext in '' $ac_executable_extensions; do
1514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1515 ac_cv_prog_CXX="$ac_prog"
1516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1517 break 2
1519 done
1520 done
1524 CXX=$ac_cv_prog_CXX
1525 if test -n "$CXX"; then
1526 echo "$as_me:$LINENO: result: $CXX" >&5
1527 echo "${ECHO_T}$CXX" >&6
1528 else
1529 echo "$as_me:$LINENO: result: no" >&5
1530 echo "${ECHO_T}no" >&6
1533 test -n "$CXX" && break
1534 done
1535 test -n "$CXX" || CXX="notfound"
1537 if test "$CXX" = "notfound"
1538 then
1539 CXX=
1540 else
1541 ac_ext=cc
1542 ac_cpp='$CXXCPP $CPPFLAGS'
1543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1546 cat >conftest.$ac_ext <<_ACEOF
1547 #line $LINENO "configure"
1548 #include "confdefs.h"
1550 #ifdef F77_DUMMY_MAIN
1551 # ifdef __cplusplus
1552 extern "C"
1553 # endif
1554 int F77_DUMMY_MAIN() { return 1; }
1555 #endif
1557 main ()
1561 return 0;
1563 _ACEOF
1564 ac_clean_files_save=$ac_clean_files
1565 ac_clean_files="$ac_clean_files a.out a.exe"
1566 # Try to create an executable without -o first, disregard a.out.
1567 # It will help us diagnose broken compilers, and finding out an intuition
1568 # of exeext.
1569 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1570 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1571 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1572 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1573 (eval $ac_link_default) 2>&5
1574 ac_status=$?
1575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1576 (exit $ac_status); }; then
1577 # Find the output, starting from the most likely. This scheme is
1578 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1579 # resort.
1581 # Be careful to initialize this variable, since it used to be cached.
1582 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1583 ac_cv_exeext=
1584 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1585 ls a.out conftest 2>/dev/null;
1586 ls a.* conftest.* 2>/dev/null`; do
1587 case $ac_file in
1588 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1589 a.out ) # We found the default executable, but exeext='' is most
1590 # certainly right.
1591 break;;
1592 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1593 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1594 export ac_cv_exeext
1595 break;;
1596 * ) break;;
1597 esac
1598 done
1599 else
1600 echo "$as_me: failed program was:" >&5
1601 cat conftest.$ac_ext >&5
1602 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5
1603 echo "$as_me: error: C++ compiler cannot create executables" >&2;}
1604 { (exit 77); exit 77; }; }
1607 ac_exeext=$ac_cv_exeext
1608 echo "$as_me:$LINENO: result: $ac_file" >&5
1609 echo "${ECHO_T}$ac_file" >&6
1611 # Check the compiler produces executables we can run. If not, either
1612 # the compiler is broken, or we cross compile.
1613 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1614 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1615 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1616 # If not cross compiling, check that we can run a simple program.
1617 if test "$cross_compiling" != yes; then
1618 if { ac_try='./$ac_file'
1619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1620 (eval $ac_try) 2>&5
1621 ac_status=$?
1622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1623 (exit $ac_status); }; }; then
1624 cross_compiling=no
1625 else
1626 if test "$cross_compiling" = maybe; then
1627 cross_compiling=yes
1628 else
1629 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1630 If you meant to cross compile, use \`--host'." >&5
1631 echo "$as_me: error: cannot run C++ compiled programs.
1632 If you meant to cross compile, use \`--host'." >&2;}
1633 { (exit 1); exit 1; }; }
1637 echo "$as_me:$LINENO: result: yes" >&5
1638 echo "${ECHO_T}yes" >&6
1640 rm -f a.out a.exe conftest$ac_cv_exeext
1641 ac_clean_files=$ac_clean_files_save
1642 # Check the compiler produces executables we can run. If not, either
1643 # the compiler is broken, or we cross compile.
1644 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1645 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1646 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1647 echo "${ECHO_T}$cross_compiling" >&6
1649 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1650 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1652 (eval $ac_link) 2>&5
1653 ac_status=$?
1654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1655 (exit $ac_status); }; then
1656 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1657 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1658 # work properly (i.e., refer to `conftest.exe'), while it won't with
1659 # `rm'.
1660 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1661 case $ac_file in
1662 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1663 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1664 export ac_cv_exeext
1665 break;;
1666 * ) break;;
1667 esac
1668 done
1669 else
1670 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1671 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1672 { (exit 1); exit 1; }; }
1675 rm -f conftest$ac_cv_exeext
1676 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1677 echo "${ECHO_T}$ac_cv_exeext" >&6
1679 rm -f conftest.$ac_ext
1680 EXEEXT=$ac_cv_exeext
1681 ac_exeext=$EXEEXT
1683 ac_ext=c
1684 ac_cpp='$CPP $CPPFLAGS'
1685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1694 # If the user switches compilers, we can't believe the cache
1695 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1696 then
1697 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1698 (it is also a good idea to do 'make clean' before compiling)" >&5
1699 echo "$as_me: error: cached CC is different -- throw away $cache_file
1700 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1701 { (exit 1); exit 1; }; }
1704 ac_ext=c
1705 ac_cpp='$CPP $CPPFLAGS'
1706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1709 if test -n "$ac_tool_prefix"; then
1710 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1711 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1712 echo "$as_me:$LINENO: checking for $ac_word" >&5
1713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1714 if test "${ac_cv_prog_CC+set}" = set; then
1715 echo $ECHO_N "(cached) $ECHO_C" >&6
1716 else
1717 if test -n "$CC"; then
1718 ac_cv_prog_CC="$CC" # Let the user override the test.
1719 else
1720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1721 for as_dir in $PATH
1723 IFS=$as_save_IFS
1724 test -z "$as_dir" && as_dir=.
1725 for ac_exec_ext in '' $ac_executable_extensions; do
1726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1727 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1729 break 2
1731 done
1732 done
1736 CC=$ac_cv_prog_CC
1737 if test -n "$CC"; then
1738 echo "$as_me:$LINENO: result: $CC" >&5
1739 echo "${ECHO_T}$CC" >&6
1740 else
1741 echo "$as_me:$LINENO: result: no" >&5
1742 echo "${ECHO_T}no" >&6
1746 if test -z "$ac_cv_prog_CC"; then
1747 ac_ct_CC=$CC
1748 # Extract the first word of "gcc", so it can be a program name with args.
1749 set dummy gcc; ac_word=$2
1750 echo "$as_me:$LINENO: checking for $ac_word" >&5
1751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1752 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1753 echo $ECHO_N "(cached) $ECHO_C" >&6
1754 else
1755 if test -n "$ac_ct_CC"; then
1756 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1757 else
1758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1759 for as_dir in $PATH
1761 IFS=$as_save_IFS
1762 test -z "$as_dir" && as_dir=.
1763 for ac_exec_ext in '' $ac_executable_extensions; do
1764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1765 ac_cv_prog_ac_ct_CC="gcc"
1766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1767 break 2
1769 done
1770 done
1774 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1775 if test -n "$ac_ct_CC"; then
1776 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1777 echo "${ECHO_T}$ac_ct_CC" >&6
1778 else
1779 echo "$as_me:$LINENO: result: no" >&5
1780 echo "${ECHO_T}no" >&6
1783 CC=$ac_ct_CC
1784 else
1785 CC="$ac_cv_prog_CC"
1788 if test -z "$CC"; then
1789 if test -n "$ac_tool_prefix"; then
1790 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1791 set dummy ${ac_tool_prefix}cc; ac_word=$2
1792 echo "$as_me:$LINENO: checking for $ac_word" >&5
1793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1794 if test "${ac_cv_prog_CC+set}" = set; then
1795 echo $ECHO_N "(cached) $ECHO_C" >&6
1796 else
1797 if test -n "$CC"; then
1798 ac_cv_prog_CC="$CC" # Let the user override the test.
1799 else
1800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1801 for as_dir in $PATH
1803 IFS=$as_save_IFS
1804 test -z "$as_dir" && as_dir=.
1805 for ac_exec_ext in '' $ac_executable_extensions; do
1806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1807 ac_cv_prog_CC="${ac_tool_prefix}cc"
1808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1809 break 2
1811 done
1812 done
1816 CC=$ac_cv_prog_CC
1817 if test -n "$CC"; then
1818 echo "$as_me:$LINENO: result: $CC" >&5
1819 echo "${ECHO_T}$CC" >&6
1820 else
1821 echo "$as_me:$LINENO: result: no" >&5
1822 echo "${ECHO_T}no" >&6
1826 if test -z "$ac_cv_prog_CC"; then
1827 ac_ct_CC=$CC
1828 # Extract the first word of "cc", so it can be a program name with args.
1829 set dummy cc; ac_word=$2
1830 echo "$as_me:$LINENO: checking for $ac_word" >&5
1831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1832 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1833 echo $ECHO_N "(cached) $ECHO_C" >&6
1834 else
1835 if test -n "$ac_ct_CC"; then
1836 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1837 else
1838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839 for as_dir in $PATH
1841 IFS=$as_save_IFS
1842 test -z "$as_dir" && as_dir=.
1843 for ac_exec_ext in '' $ac_executable_extensions; do
1844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1845 ac_cv_prog_ac_ct_CC="cc"
1846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847 break 2
1849 done
1850 done
1854 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1855 if test -n "$ac_ct_CC"; then
1856 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1857 echo "${ECHO_T}$ac_ct_CC" >&6
1858 else
1859 echo "$as_me:$LINENO: result: no" >&5
1860 echo "${ECHO_T}no" >&6
1863 CC=$ac_ct_CC
1864 else
1865 CC="$ac_cv_prog_CC"
1869 if test -z "$CC"; then
1870 # Extract the first word of "cc", so it can be a program name with args.
1871 set dummy cc; ac_word=$2
1872 echo "$as_me:$LINENO: checking for $ac_word" >&5
1873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1874 if test "${ac_cv_prog_CC+set}" = set; then
1875 echo $ECHO_N "(cached) $ECHO_C" >&6
1876 else
1877 if test -n "$CC"; then
1878 ac_cv_prog_CC="$CC" # Let the user override the test.
1879 else
1880 ac_prog_rejected=no
1881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882 for as_dir in $PATH
1884 IFS=$as_save_IFS
1885 test -z "$as_dir" && as_dir=.
1886 for ac_exec_ext in '' $ac_executable_extensions; do
1887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1888 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1889 ac_prog_rejected=yes
1890 continue
1892 ac_cv_prog_CC="cc"
1893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1894 break 2
1896 done
1897 done
1899 if test $ac_prog_rejected = yes; then
1900 # We found a bogon in the path, so make sure we never use it.
1901 set dummy $ac_cv_prog_CC
1902 shift
1903 if test $# != 0; then
1904 # We chose a different compiler from the bogus one.
1905 # However, it has the same basename, so the bogon will be chosen
1906 # first if we set CC to just the basename; use the full file name.
1907 shift
1908 set dummy "$as_dir/$ac_word" ${1+"$@"}
1909 shift
1910 ac_cv_prog_CC="$@"
1915 CC=$ac_cv_prog_CC
1916 if test -n "$CC"; then
1917 echo "$as_me:$LINENO: result: $CC" >&5
1918 echo "${ECHO_T}$CC" >&6
1919 else
1920 echo "$as_me:$LINENO: result: no" >&5
1921 echo "${ECHO_T}no" >&6
1925 if test -z "$CC"; then
1926 if test -n "$ac_tool_prefix"; then
1927 for ac_prog in cl
1929 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1930 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1931 echo "$as_me:$LINENO: checking for $ac_word" >&5
1932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1933 if test "${ac_cv_prog_CC+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
1935 else
1936 if test -n "$CC"; then
1937 ac_cv_prog_CC="$CC" # Let the user override the test.
1938 else
1939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1940 for as_dir in $PATH
1942 IFS=$as_save_IFS
1943 test -z "$as_dir" && as_dir=.
1944 for ac_exec_ext in '' $ac_executable_extensions; do
1945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1946 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1948 break 2
1950 done
1951 done
1955 CC=$ac_cv_prog_CC
1956 if test -n "$CC"; then
1957 echo "$as_me:$LINENO: result: $CC" >&5
1958 echo "${ECHO_T}$CC" >&6
1959 else
1960 echo "$as_me:$LINENO: result: no" >&5
1961 echo "${ECHO_T}no" >&6
1964 test -n "$CC" && break
1965 done
1967 if test -z "$CC"; then
1968 ac_ct_CC=$CC
1969 for ac_prog in cl
1971 # Extract the first word of "$ac_prog", so it can be a program name with args.
1972 set dummy $ac_prog; ac_word=$2
1973 echo "$as_me:$LINENO: checking for $ac_word" >&5
1974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1975 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1977 else
1978 if test -n "$ac_ct_CC"; then
1979 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1980 else
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 for as_dir in $PATH
1984 IFS=$as_save_IFS
1985 test -z "$as_dir" && as_dir=.
1986 for ac_exec_ext in '' $ac_executable_extensions; do
1987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1988 ac_cv_prog_ac_ct_CC="$ac_prog"
1989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990 break 2
1992 done
1993 done
1997 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1998 if test -n "$ac_ct_CC"; then
1999 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2000 echo "${ECHO_T}$ac_ct_CC" >&6
2001 else
2002 echo "$as_me:$LINENO: result: no" >&5
2003 echo "${ECHO_T}no" >&6
2006 test -n "$ac_ct_CC" && break
2007 done
2009 CC=$ac_ct_CC
2015 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2016 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2017 { (exit 1); exit 1; }; }
2019 # Provide some information about the compiler.
2020 echo "$as_me:$LINENO:" \
2021 "checking for C compiler version" >&5
2022 ac_compiler=`set X $ac_compile; echo $2`
2023 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2024 (eval $ac_compiler --version </dev/null >&5) 2>&5
2025 ac_status=$?
2026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027 (exit $ac_status); }
2028 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2029 (eval $ac_compiler -v </dev/null >&5) 2>&5
2030 ac_status=$?
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); }
2033 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2034 (eval $ac_compiler -V </dev/null >&5) 2>&5
2035 ac_status=$?
2036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037 (exit $ac_status); }
2039 cat >conftest.$ac_ext <<_ACEOF
2040 #line $LINENO "configure"
2041 #include "confdefs.h"
2043 #ifdef F77_DUMMY_MAIN
2044 # ifdef __cplusplus
2045 extern "C"
2046 # endif
2047 int F77_DUMMY_MAIN() { return 1; }
2048 #endif
2050 main ()
2054 return 0;
2056 _ACEOF
2057 ac_clean_files_save=$ac_clean_files
2058 ac_clean_files="$ac_clean_files a.out a.exe"
2059 # Try to create an executable without -o first, disregard a.out.
2060 # It will help us diagnose broken compilers, and finding out an intuition
2061 # of exeext.
2062 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2063 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2064 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2065 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2066 (eval $ac_link_default) 2>&5
2067 ac_status=$?
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); }; then
2070 # Find the output, starting from the most likely. This scheme is
2071 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2072 # resort.
2074 # Be careful to initialize this variable, since it used to be cached.
2075 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2076 ac_cv_exeext=
2077 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2078 ls a.out conftest 2>/dev/null;
2079 ls a.* conftest.* 2>/dev/null`; do
2080 case $ac_file in
2081 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2082 a.out ) # We found the default executable, but exeext='' is most
2083 # certainly right.
2084 break;;
2085 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2086 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2087 export ac_cv_exeext
2088 break;;
2089 * ) break;;
2090 esac
2091 done
2092 else
2093 echo "$as_me: failed program was:" >&5
2094 cat conftest.$ac_ext >&5
2095 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2096 echo "$as_me: error: C compiler cannot create executables" >&2;}
2097 { (exit 77); exit 77; }; }
2100 ac_exeext=$ac_cv_exeext
2101 echo "$as_me:$LINENO: result: $ac_file" >&5
2102 echo "${ECHO_T}$ac_file" >&6
2104 # Check the compiler produces executables we can run. If not, either
2105 # the compiler is broken, or we cross compile.
2106 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2107 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2108 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2109 # If not cross compiling, check that we can run a simple program.
2110 if test "$cross_compiling" != yes; then
2111 if { ac_try='./$ac_file'
2112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2113 (eval $ac_try) 2>&5
2114 ac_status=$?
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }; }; then
2117 cross_compiling=no
2118 else
2119 if test "$cross_compiling" = maybe; then
2120 cross_compiling=yes
2121 else
2122 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2123 If you meant to cross compile, use \`--host'." >&5
2124 echo "$as_me: error: cannot run C compiled programs.
2125 If you meant to cross compile, use \`--host'." >&2;}
2126 { (exit 1); exit 1; }; }
2130 echo "$as_me:$LINENO: result: yes" >&5
2131 echo "${ECHO_T}yes" >&6
2133 rm -f a.out a.exe conftest$ac_cv_exeext
2134 ac_clean_files=$ac_clean_files_save
2135 # Check the compiler produces executables we can run. If not, either
2136 # the compiler is broken, or we cross compile.
2137 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2138 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2139 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2140 echo "${ECHO_T}$cross_compiling" >&6
2142 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2143 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2145 (eval $ac_link) 2>&5
2146 ac_status=$?
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }; then
2149 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2150 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2151 # work properly (i.e., refer to `conftest.exe'), while it won't with
2152 # `rm'.
2153 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2154 case $ac_file in
2155 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2156 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2157 export ac_cv_exeext
2158 break;;
2159 * ) break;;
2160 esac
2161 done
2162 else
2163 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2164 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2165 { (exit 1); exit 1; }; }
2168 rm -f conftest$ac_cv_exeext
2169 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2170 echo "${ECHO_T}$ac_cv_exeext" >&6
2172 rm -f conftest.$ac_ext
2173 EXEEXT=$ac_cv_exeext
2174 ac_exeext=$EXEEXT
2175 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2176 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2177 if test "${ac_cv_objext+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 else
2180 cat >conftest.$ac_ext <<_ACEOF
2181 #line $LINENO "configure"
2182 #include "confdefs.h"
2184 #ifdef F77_DUMMY_MAIN
2185 # ifdef __cplusplus
2186 extern "C"
2187 # endif
2188 int F77_DUMMY_MAIN() { return 1; }
2189 #endif
2191 main ()
2195 return 0;
2197 _ACEOF
2198 rm -f conftest.o conftest.obj
2199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200 (eval $ac_compile) 2>&5
2201 ac_status=$?
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; then
2204 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2205 case $ac_file in
2206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2207 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2208 break;;
2209 esac
2210 done
2211 else
2212 echo "$as_me: failed program was:" >&5
2213 cat conftest.$ac_ext >&5
2214 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2215 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2216 { (exit 1); exit 1; }; }
2219 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2221 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2222 echo "${ECHO_T}$ac_cv_objext" >&6
2223 OBJEXT=$ac_cv_objext
2224 ac_objext=$OBJEXT
2225 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2226 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2227 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 else
2230 cat >conftest.$ac_ext <<_ACEOF
2231 #line $LINENO "configure"
2232 #include "confdefs.h"
2234 #ifdef F77_DUMMY_MAIN
2235 # ifdef __cplusplus
2236 extern "C"
2237 # endif
2238 int F77_DUMMY_MAIN() { return 1; }
2239 #endif
2241 main ()
2243 #ifndef __GNUC__
2244 choke me
2245 #endif
2248 return 0;
2250 _ACEOF
2251 rm -f conftest.$ac_objext
2252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253 (eval $ac_compile) 2>&5
2254 ac_status=$?
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); } &&
2257 { ac_try='test -s conftest.$ac_objext'
2258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259 (eval $ac_try) 2>&5
2260 ac_status=$?
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; }; then
2263 ac_compiler_gnu=yes
2264 else
2265 echo "$as_me: failed program was:" >&5
2266 cat conftest.$ac_ext >&5
2267 ac_compiler_gnu=no
2269 rm -f conftest.$ac_objext conftest.$ac_ext
2270 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2273 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2274 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2275 GCC=`test $ac_compiler_gnu = yes && echo yes`
2276 ac_test_CFLAGS=${CFLAGS+set}
2277 ac_save_CFLAGS=$CFLAGS
2278 CFLAGS="-g"
2279 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2280 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2281 if test "${ac_cv_prog_cc_g+set}" = set; then
2282 echo $ECHO_N "(cached) $ECHO_C" >&6
2283 else
2284 cat >conftest.$ac_ext <<_ACEOF
2285 #line $LINENO "configure"
2286 #include "confdefs.h"
2288 #ifdef F77_DUMMY_MAIN
2289 # ifdef __cplusplus
2290 extern "C"
2291 # endif
2292 int F77_DUMMY_MAIN() { return 1; }
2293 #endif
2295 main ()
2299 return 0;
2301 _ACEOF
2302 rm -f conftest.$ac_objext
2303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2304 (eval $ac_compile) 2>&5
2305 ac_status=$?
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); } &&
2308 { ac_try='test -s conftest.$ac_objext'
2309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310 (eval $ac_try) 2>&5
2311 ac_status=$?
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }; }; then
2314 ac_cv_prog_cc_g=yes
2315 else
2316 echo "$as_me: failed program was:" >&5
2317 cat conftest.$ac_ext >&5
2318 ac_cv_prog_cc_g=no
2320 rm -f conftest.$ac_objext conftest.$ac_ext
2322 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2323 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2324 if test "$ac_test_CFLAGS" = set; then
2325 CFLAGS=$ac_save_CFLAGS
2326 elif test $ac_cv_prog_cc_g = yes; then
2327 if test "$GCC" = yes; then
2328 CFLAGS="-g -O2"
2329 else
2330 CFLAGS="-g"
2332 else
2333 if test "$GCC" = yes; then
2334 CFLAGS="-O2"
2335 else
2336 CFLAGS=
2339 # Some people use a C++ compiler to compile C. Since we use `exit',
2340 # in C++ we need to declare it. In case someone uses the same compiler
2341 # for both compiling C and C++ we need to have the C++ compiler decide
2342 # the declaration of exit, since it's the most demanding environment.
2343 cat >conftest.$ac_ext <<_ACEOF
2344 #ifndef __cplusplus
2345 choke me
2346 #endif
2347 _ACEOF
2348 rm -f conftest.$ac_objext
2349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2350 (eval $ac_compile) 2>&5
2351 ac_status=$?
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); } &&
2354 { ac_try='test -s conftest.$ac_objext'
2355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356 (eval $ac_try) 2>&5
2357 ac_status=$?
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }; }; then
2360 for ac_declaration in \
2362 '#include <stdlib.h>' \
2363 'extern "C" void std::exit (int) throw (); using std::exit;' \
2364 'extern "C" void std::exit (int); using std::exit;' \
2365 'extern "C" void exit (int) throw ();' \
2366 'extern "C" void exit (int);' \
2367 'void exit (int);'
2369 cat >conftest.$ac_ext <<_ACEOF
2370 #line $LINENO "configure"
2371 #include "confdefs.h"
2372 #include <stdlib.h>
2373 $ac_declaration
2374 #ifdef F77_DUMMY_MAIN
2375 # ifdef __cplusplus
2376 extern "C"
2377 # endif
2378 int F77_DUMMY_MAIN() { return 1; }
2379 #endif
2381 main ()
2383 exit (42);
2385 return 0;
2387 _ACEOF
2388 rm -f conftest.$ac_objext
2389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2390 (eval $ac_compile) 2>&5
2391 ac_status=$?
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); } &&
2394 { ac_try='test -s conftest.$ac_objext'
2395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 (eval $ac_try) 2>&5
2397 ac_status=$?
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; }; then
2401 else
2402 echo "$as_me: failed program was:" >&5
2403 cat conftest.$ac_ext >&5
2404 continue
2406 rm -f conftest.$ac_objext conftest.$ac_ext
2407 cat >conftest.$ac_ext <<_ACEOF
2408 #line $LINENO "configure"
2409 #include "confdefs.h"
2410 $ac_declaration
2411 #ifdef F77_DUMMY_MAIN
2412 # ifdef __cplusplus
2413 extern "C"
2414 # endif
2415 int F77_DUMMY_MAIN() { return 1; }
2416 #endif
2418 main ()
2420 exit (42);
2422 return 0;
2424 _ACEOF
2425 rm -f conftest.$ac_objext
2426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2427 (eval $ac_compile) 2>&5
2428 ac_status=$?
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); } &&
2431 { ac_try='test -s conftest.$ac_objext'
2432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 (eval $ac_try) 2>&5
2434 ac_status=$?
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }; }; then
2437 break
2438 else
2439 echo "$as_me: failed program was:" >&5
2440 cat conftest.$ac_ext >&5
2442 rm -f conftest.$ac_objext conftest.$ac_ext
2443 done
2444 rm -f conftest*
2445 if test -n "$ac_declaration"; then
2446 echo '#ifdef __cplusplus' >>confdefs.h
2447 echo $ac_declaration >>confdefs.h
2448 echo '#endif' >>confdefs.h
2451 else
2452 echo "$as_me: failed program was:" >&5
2453 cat conftest.$ac_ext >&5
2455 rm -f conftest.$ac_objext conftest.$ac_ext
2456 ac_ext=c
2457 ac_cpp='$CPP $CPPFLAGS'
2458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2463 # checks for UNIX variants that set C preprocessor variables
2465 ac_ext=c
2466 ac_cpp='$CPP $CPPFLAGS'
2467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2470 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2471 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2472 # On Suns, sometimes $CPP names a directory.
2473 if test -n "$CPP" && test -d "$CPP"; then
2474 CPP=
2476 if test -z "$CPP"; then
2477 if test "${ac_cv_prog_CPP+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2479 else
2480 # Double quotes because CPP needs to be expanded
2481 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2483 ac_preproc_ok=false
2484 for ac_c_preproc_warn_flag in '' yes
2486 # Use a header file that comes with gcc, so configuring glibc
2487 # with a fresh cross-compiler works.
2488 # On the NeXT, cc -E runs the code through the compiler's parser,
2489 # not just through cpp. "Syntax error" is here to catch this case.
2490 cat >conftest.$ac_ext <<_ACEOF
2491 #line $LINENO "configure"
2492 #include "confdefs.h"
2493 #include <assert.h>
2494 Syntax error
2495 _ACEOF
2496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2498 ac_status=$?
2499 egrep -v '^ *\+' conftest.er1 >conftest.err
2500 rm -f conftest.er1
2501 cat conftest.err >&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); } >/dev/null; then
2504 if test -s conftest.err; then
2505 ac_cpp_err=$ac_c_preproc_warn_flag
2506 else
2507 ac_cpp_err=
2509 else
2510 ac_cpp_err=yes
2512 if test -z "$ac_cpp_err"; then
2514 else
2515 echo "$as_me: failed program was:" >&5
2516 cat conftest.$ac_ext >&5
2517 # Broken: fails on valid input.
2518 continue
2520 rm -f conftest.err conftest.$ac_ext
2522 # OK, works on sane cases. Now check whether non-existent headers
2523 # can be detected and how.
2524 cat >conftest.$ac_ext <<_ACEOF
2525 #line $LINENO "configure"
2526 #include "confdefs.h"
2527 #include <ac_nonexistent.h>
2528 _ACEOF
2529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2531 ac_status=$?
2532 egrep -v '^ *\+' conftest.er1 >conftest.err
2533 rm -f conftest.er1
2534 cat conftest.err >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); } >/dev/null; then
2537 if test -s conftest.err; then
2538 ac_cpp_err=$ac_c_preproc_warn_flag
2539 else
2540 ac_cpp_err=
2542 else
2543 ac_cpp_err=yes
2545 if test -z "$ac_cpp_err"; then
2546 # Broken: success on invalid input.
2547 continue
2548 else
2549 echo "$as_me: failed program was:" >&5
2550 cat conftest.$ac_ext >&5
2551 # Passes both tests.
2552 ac_preproc_ok=:
2553 break
2555 rm -f conftest.err conftest.$ac_ext
2557 done
2558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2559 rm -f conftest.err conftest.$ac_ext
2560 if $ac_preproc_ok; then
2561 break
2564 done
2565 ac_cv_prog_CPP=$CPP
2568 CPP=$ac_cv_prog_CPP
2569 else
2570 ac_cv_prog_CPP=$CPP
2572 echo "$as_me:$LINENO: result: $CPP" >&5
2573 echo "${ECHO_T}$CPP" >&6
2574 ac_preproc_ok=false
2575 for ac_c_preproc_warn_flag in '' yes
2577 # Use a header file that comes with gcc, so configuring glibc
2578 # with a fresh cross-compiler works.
2579 # On the NeXT, cc -E runs the code through the compiler's parser,
2580 # not just through cpp. "Syntax error" is here to catch this case.
2581 cat >conftest.$ac_ext <<_ACEOF
2582 #line $LINENO "configure"
2583 #include "confdefs.h"
2584 #include <assert.h>
2585 Syntax error
2586 _ACEOF
2587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2589 ac_status=$?
2590 egrep -v '^ *\+' conftest.er1 >conftest.err
2591 rm -f conftest.er1
2592 cat conftest.err >&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); } >/dev/null; then
2595 if test -s conftest.err; then
2596 ac_cpp_err=$ac_c_preproc_warn_flag
2597 else
2598 ac_cpp_err=
2600 else
2601 ac_cpp_err=yes
2603 if test -z "$ac_cpp_err"; then
2605 else
2606 echo "$as_me: failed program was:" >&5
2607 cat conftest.$ac_ext >&5
2608 # Broken: fails on valid input.
2609 continue
2611 rm -f conftest.err conftest.$ac_ext
2613 # OK, works on sane cases. Now check whether non-existent headers
2614 # can be detected and how.
2615 cat >conftest.$ac_ext <<_ACEOF
2616 #line $LINENO "configure"
2617 #include "confdefs.h"
2618 #include <ac_nonexistent.h>
2619 _ACEOF
2620 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2622 ac_status=$?
2623 egrep -v '^ *\+' conftest.er1 >conftest.err
2624 rm -f conftest.er1
2625 cat conftest.err >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); } >/dev/null; then
2628 if test -s conftest.err; then
2629 ac_cpp_err=$ac_c_preproc_warn_flag
2630 else
2631 ac_cpp_err=
2633 else
2634 ac_cpp_err=yes
2636 if test -z "$ac_cpp_err"; then
2637 # Broken: success on invalid input.
2638 continue
2639 else
2640 echo "$as_me: failed program was:" >&5
2641 cat conftest.$ac_ext >&5
2642 # Passes both tests.
2643 ac_preproc_ok=:
2644 break
2646 rm -f conftest.err conftest.$ac_ext
2648 done
2649 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2650 rm -f conftest.err conftest.$ac_ext
2651 if $ac_preproc_ok; then
2653 else
2654 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2655 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2656 { (exit 1); exit 1; }; }
2659 ac_ext=c
2660 ac_cpp='$CPP $CPPFLAGS'
2661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2667 echo "$as_me:$LINENO: checking for AIX" >&5
2668 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2669 cat >conftest.$ac_ext <<_ACEOF
2670 #line $LINENO "configure"
2671 #include "confdefs.h"
2672 #ifdef _AIX
2674 #endif
2676 _ACEOF
2677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2678 egrep "yes" >/dev/null 2>&1; then
2679 echo "$as_me:$LINENO: result: yes" >&5
2680 echo "${ECHO_T}yes" >&6
2681 cat >>confdefs.h <<\_ACEOF
2682 #define _ALL_SOURCE 1
2683 _ACEOF
2685 else
2686 echo "$as_me:$LINENO: result: no" >&5
2687 echo "${ECHO_T}no" >&6
2689 rm -f conftest*
2692 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2693 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2694 if test "${ac_cv_header_stdc+set}" = set; then
2695 echo $ECHO_N "(cached) $ECHO_C" >&6
2696 else
2697 cat >conftest.$ac_ext <<_ACEOF
2698 #line $LINENO "configure"
2699 #include "confdefs.h"
2700 #include <stdlib.h>
2701 #include <stdarg.h>
2702 #include <string.h>
2703 #include <float.h>
2705 _ACEOF
2706 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2707 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2708 ac_status=$?
2709 egrep -v '^ *\+' conftest.er1 >conftest.err
2710 rm -f conftest.er1
2711 cat conftest.err >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } >/dev/null; then
2714 if test -s conftest.err; then
2715 ac_cpp_err=$ac_c_preproc_warn_flag
2716 else
2717 ac_cpp_err=
2719 else
2720 ac_cpp_err=yes
2722 if test -z "$ac_cpp_err"; then
2723 ac_cv_header_stdc=yes
2724 else
2725 echo "$as_me: failed program was:" >&5
2726 cat conftest.$ac_ext >&5
2727 ac_cv_header_stdc=no
2729 rm -f conftest.err conftest.$ac_ext
2731 if test $ac_cv_header_stdc = yes; then
2732 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2733 cat >conftest.$ac_ext <<_ACEOF
2734 #line $LINENO "configure"
2735 #include "confdefs.h"
2736 #include <string.h>
2738 _ACEOF
2739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2740 egrep "memchr" >/dev/null 2>&1; then
2742 else
2743 ac_cv_header_stdc=no
2745 rm -f conftest*
2749 if test $ac_cv_header_stdc = yes; then
2750 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2751 cat >conftest.$ac_ext <<_ACEOF
2752 #line $LINENO "configure"
2753 #include "confdefs.h"
2754 #include <stdlib.h>
2756 _ACEOF
2757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2758 egrep "free" >/dev/null 2>&1; then
2760 else
2761 ac_cv_header_stdc=no
2763 rm -f conftest*
2767 if test $ac_cv_header_stdc = yes; then
2768 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2769 if test "$cross_compiling" = yes; then
2771 else
2772 cat >conftest.$ac_ext <<_ACEOF
2773 #line $LINENO "configure"
2774 #include "confdefs.h"
2775 #include <ctype.h>
2776 #if ((' ' & 0x0FF) == 0x020)
2777 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2778 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2779 #else
2780 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2781 || ('j' <= (c) && (c) <= 'r') \
2782 || ('s' <= (c) && (c) <= 'z'))
2783 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2784 #endif
2786 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2788 main ()
2790 int i;
2791 for (i = 0; i < 256; i++)
2792 if (XOR (islower (i), ISLOWER (i))
2793 || toupper (i) != TOUPPER (i))
2794 exit(2);
2795 exit (0);
2797 _ACEOF
2798 rm -f conftest$ac_exeext
2799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2800 (eval $ac_link) 2>&5
2801 ac_status=$?
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805 (eval $ac_try) 2>&5
2806 ac_status=$?
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; }; then
2810 else
2811 echo "$as_me: program exited with status $ac_status" >&5
2812 echo "$as_me: failed program was:" >&5
2813 cat conftest.$ac_ext >&5
2814 ( exit $ac_status )
2815 ac_cv_header_stdc=no
2817 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2821 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2822 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2823 if test $ac_cv_header_stdc = yes; then
2825 cat >>confdefs.h <<\_ACEOF
2826 #define STDC_HEADERS 1
2827 _ACEOF
2831 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2841 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2842 inttypes.h stdint.h unistd.h
2844 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2845 echo "$as_me:$LINENO: checking for $ac_header" >&5
2846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2848 echo $ECHO_N "(cached) $ECHO_C" >&6
2849 else
2850 cat >conftest.$ac_ext <<_ACEOF
2851 #line $LINENO "configure"
2852 #include "confdefs.h"
2853 $ac_includes_default
2855 #include <$ac_header>
2856 _ACEOF
2857 rm -f conftest.$ac_objext
2858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2859 (eval $ac_compile) 2>&5
2860 ac_status=$?
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); } &&
2863 { ac_try='test -s conftest.$ac_objext'
2864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865 (eval $ac_try) 2>&5
2866 ac_status=$?
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; }; then
2869 eval "$as_ac_Header=yes"
2870 else
2871 echo "$as_me: failed program was:" >&5
2872 cat conftest.$ac_ext >&5
2873 eval "$as_ac_Header=no"
2875 rm -f conftest.$ac_objext conftest.$ac_ext
2877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2878 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2880 cat >>confdefs.h <<_ACEOF
2881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2882 _ACEOF
2886 done
2889 if test "${ac_cv_header_minix_config_h+set}" = set; then
2890 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2891 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2892 if test "${ac_cv_header_minix_config_h+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2895 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2896 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2897 else
2898 # Is the header compilable?
2899 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
2900 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
2901 cat >conftest.$ac_ext <<_ACEOF
2902 #line $LINENO "configure"
2903 #include "confdefs.h"
2904 $ac_includes_default
2905 #include <minix/config.h>
2906 _ACEOF
2907 rm -f conftest.$ac_objext
2908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2909 (eval $ac_compile) 2>&5
2910 ac_status=$?
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); } &&
2913 { ac_try='test -s conftest.$ac_objext'
2914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915 (eval $ac_try) 2>&5
2916 ac_status=$?
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; }; then
2919 ac_header_compiler=yes
2920 else
2921 echo "$as_me: failed program was:" >&5
2922 cat conftest.$ac_ext >&5
2923 ac_header_compiler=no
2925 rm -f conftest.$ac_objext conftest.$ac_ext
2926 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2927 echo "${ECHO_T}$ac_header_compiler" >&6
2929 # Is the header present?
2930 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
2931 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
2932 cat >conftest.$ac_ext <<_ACEOF
2933 #line $LINENO "configure"
2934 #include "confdefs.h"
2935 #include <minix/config.h>
2936 _ACEOF
2937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2939 ac_status=$?
2940 egrep -v '^ *\+' conftest.er1 >conftest.err
2941 rm -f conftest.er1
2942 cat conftest.err >&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); } >/dev/null; then
2945 if test -s conftest.err; then
2946 ac_cpp_err=$ac_c_preproc_warn_flag
2947 else
2948 ac_cpp_err=
2950 else
2951 ac_cpp_err=yes
2953 if test -z "$ac_cpp_err"; then
2954 ac_header_preproc=yes
2955 else
2956 echo "$as_me: failed program was:" >&5
2957 cat conftest.$ac_ext >&5
2958 ac_header_preproc=no
2960 rm -f conftest.err conftest.$ac_ext
2961 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2962 echo "${ECHO_T}$ac_header_preproc" >&6
2964 # So? What about this header?
2965 case $ac_header_compiler:$ac_header_preproc in
2966 yes:no )
2967 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
2968 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2969 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2970 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2971 no:yes )
2972 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
2973 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
2974 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
2975 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
2976 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2977 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2978 esac
2979 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2980 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2981 if test "${ac_cv_header_minix_config_h+set}" = set; then
2982 echo $ECHO_N "(cached) $ECHO_C" >&6
2983 else
2984 ac_cv_header_minix_config_h=$ac_header_preproc
2986 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2987 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2990 if test $ac_cv_header_minix_config_h = yes; then
2991 MINIX=yes
2992 else
2993 MINIX=
2997 if test "$MINIX" = yes; then
2999 cat >>confdefs.h <<\_ACEOF
3000 #define _POSIX_SOURCE 1
3001 _ACEOF
3004 cat >>confdefs.h <<\_ACEOF
3005 #define _POSIX_1_SOURCE 2
3006 _ACEOF
3009 cat >>confdefs.h <<\_ACEOF
3010 #define _MINIX 1
3011 _ACEOF
3016 # Check for unsupported systems
3017 case $ac_sys_system/$ac_sys_release in
3018 SunOS/4*|DYNIX/*|dgux*/*|IRIX/4*|Linux*/1*)
3019 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3020 echo See README for details.
3021 exit 1;;
3022 esac
3024 if test "$MINIX" = yes; then
3025 echo This system \(MINIX\) is no longer supported.
3026 echo Read README for details.
3027 exit 1
3031 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3032 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3034 # Check whether --with-suffix or --without-suffix was given.
3035 if test "${with_suffix+set}" = set; then
3036 withval="$with_suffix"
3038 case $withval in
3039 no) EXEEXT=;;
3040 yes) EXEEXT=.exe;;
3041 *) EXEEXT=$withval;;
3042 esac
3044 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3045 echo "${ECHO_T}$EXEEXT" >&6
3047 # Test whether we're running on a non-case-sensitive system, in which
3048 # case we give a warning if no ext is given
3050 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3051 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3052 if test ! -d CaseSensitiveTestDir; then
3053 mkdir CaseSensitiveTestDir
3056 if test -d casesensitivetestdir
3057 then
3058 echo "$as_me:$LINENO: result: yes" >&5
3059 echo "${ECHO_T}yes" >&6
3060 BUILDEXEEXT=.exe
3061 else
3062 echo "$as_me:$LINENO: result: no" >&5
3063 echo "${ECHO_T}no" >&6
3064 BUILDEXEEXT=$EXEEXT
3066 rmdir CaseSensitiveTestDir
3068 case $MACHDEP in
3069 bsdos*)
3070 case $CC in
3071 gcc) CC="$CC -D_HAVE_BSDI";;
3072 esac;;
3073 esac
3075 case $ac_sys_system in
3076 hp*|HP*)
3077 case $CC in
3078 cc|*/cc) CC="$CC -Ae";;
3079 esac;;
3080 Monterey*)
3081 case $CC in
3082 cc) CC="$CC -Wl,-Bexport";;
3083 esac;;
3084 SunOS*)
3085 # Some functions have a prototype only with that define, e.g. confstr
3087 cat >>confdefs.h <<\_ACEOF
3088 #define __EXTENSIONS__ 1
3089 _ACEOF
3092 esac
3096 echo "$as_me:$LINENO: checking LIBRARY" >&5
3097 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3098 if test -z "$LIBRARY"
3099 then
3100 LIBRARY='libpython$(VERSION).a'
3102 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3103 echo "${ECHO_T}$LIBRARY" >&6
3105 # LDLIBRARY is the name of the library to link against (as opposed to the
3106 # name of the library into which to insert object files). BLDLIBRARY is also
3107 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3108 # is blank as the main program is not linked directly against LDLIBRARY.
3109 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3110 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3111 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3112 # DLLLIBRARY is the shared (i.e., DLL) library.
3114 # RUNSHARED is used to run shared python without installed libraries
3116 # INSTSONAME is the name of the shared library that will be use to install
3117 # on the system - some systems like version suffix, others don't
3124 LDLIBRARY="$LIBRARY"
3125 BLDLIBRARY='$(LDLIBRARY)'
3126 INSTSONAME='$(LDLIBRARY)'
3127 DLLLIBRARY=''
3128 LDLIBRARYDIR=''
3129 RUNSHARED=''
3131 # LINKCC is the command that links the python executable -- default is $(CC).
3132 # If CXX is set, and if it is needed to link a main function that was
3133 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3134 # python might then depend on the C++ runtime
3135 # This is altered for AIX in order to build the export list before
3136 # linking.
3138 echo "$as_me:$LINENO: checking LINKCC" >&5
3139 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3140 if test -z "$LINKCC"
3141 then
3142 if test -z "$CXX"; then
3143 LINKCC="\$(PURIFY) \$(CC)"
3144 else
3145 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
3146 $CXX -c conftest.$ac_ext 2>&5
3147 if $CC -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
3148 && test -s conftest$ac_exeext && ./conftest$ac_exeext
3149 then
3150 LINKCC="\$(PURIFY) \$(CC)"
3151 else
3152 LINKCC="\$(PURIFY) \$(CXX)"
3154 rm -fr conftest*
3156 case $ac_sys_system in
3157 AIX*)
3158 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp \"\" \$(LIBRARY); $LINKCC";;
3159 dgux*)
3160 LINKCC="LD_RUN_PATH=$libdir $LINKCC";;
3161 Monterey64*)
3162 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3163 esac
3165 echo "$as_me:$LINENO: result: $LINKCC" >&5
3166 echo "${ECHO_T}$LINKCC" >&6
3168 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3169 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3170 # Check whether --enable-shared or --disable-shared was given.
3171 if test "${enable_shared+set}" = set; then
3172 enableval="$enable_shared"
3176 if test -z "$enable_shared"
3177 then
3178 case $ac_sys_system in
3179 CYGWIN* | atheos*)
3180 enable_shared="yes";;
3182 enable_shared="no";;
3183 esac
3185 echo "$as_me:$LINENO: result: $enable_shared" >&5
3186 echo "${ECHO_T}$enable_shared" >&6
3189 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3190 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3192 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3193 # library that we build, but we do not want to link against it (we
3194 # will find it with a -framework option). For this reason there is an
3195 # extra variable BLDLIBRARY against which Python and the extension
3196 # modules are linked, BLDLIBRARY. This is normally the same as
3197 # LDLIBRARY, but empty for MacOSX framework builds.
3198 if test "$enable_framework"
3199 then
3200 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3201 LDLIBRARYDIR='$(PYTHONFRAMEWORKDIR)'
3202 BLDLIBRARY=''
3203 else
3204 BLDLIBRARY='$(LDLIBRARY)'
3207 # Other platforms follow
3208 if test $enable_shared = "yes"; then
3210 cat >>confdefs.h <<\_ACEOF
3211 #define Py_ENABLE_SHARED 1
3212 _ACEOF
3214 case $ac_sys_system in
3215 BeOS*)
3216 LDLIBRARY='libpython$(VERSION).so'
3218 CYGWIN*)
3219 LDLIBRARY='libpython$(VERSION).dll.a'
3220 DLLLIBRARY='libpython$(VERSION).dll'
3222 SunOS*)
3223 LDLIBRARY='libpython$(VERSION).so'
3224 BLDLIBRARY='-Wl,-rpath,$(LIBDIR) -L. -lpython$(VERSION)'
3225 RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH
3227 Linux*|GNU*)
3228 LDLIBRARY='libpython$(VERSION).so'
3229 BLDLIBRARY='-L. -lpython$(VERSION)'
3230 RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH
3231 INSTSONAME="$LDLIBRARY".$SOVERSION
3233 hp*|HP*)
3234 LDLIBRARY='libpython$(VERSION).sl'
3235 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3236 RUNSHARED=SHLIB_PATH=`pwd`:$SHLIB_PATH
3238 OSF*)
3239 LDLIBRARY='libpython$(VERSION).so'
3240 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3241 RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH
3243 atheos*)
3244 LDLIBRARY='libpython$(VERSION).so'
3245 BLDLIBRARY='-L. -lpython$(VERSION)'
3246 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3248 esac
3249 # DG/UX requires some fancy ld contortions to produce a .so from an .a
3250 case $MACHDEP in
3251 dguxR4)
3252 LDLIBRARY='libpython$(VERSION).so'
3253 OPT="$OPT -pic"
3255 esac
3258 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3259 echo "${ECHO_T}$LDLIBRARY" >&6
3261 if test -n "$ac_tool_prefix"; then
3262 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3263 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3264 echo "$as_me:$LINENO: checking for $ac_word" >&5
3265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3266 if test "${ac_cv_prog_RANLIB+set}" = set; then
3267 echo $ECHO_N "(cached) $ECHO_C" >&6
3268 else
3269 if test -n "$RANLIB"; then
3270 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3271 else
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 for as_dir in $PATH
3275 IFS=$as_save_IFS
3276 test -z "$as_dir" && as_dir=.
3277 for ac_exec_ext in '' $ac_executable_extensions; do
3278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3279 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3281 break 2
3283 done
3284 done
3288 RANLIB=$ac_cv_prog_RANLIB
3289 if test -n "$RANLIB"; then
3290 echo "$as_me:$LINENO: result: $RANLIB" >&5
3291 echo "${ECHO_T}$RANLIB" >&6
3292 else
3293 echo "$as_me:$LINENO: result: no" >&5
3294 echo "${ECHO_T}no" >&6
3298 if test -z "$ac_cv_prog_RANLIB"; then
3299 ac_ct_RANLIB=$RANLIB
3300 # Extract the first word of "ranlib", so it can be a program name with args.
3301 set dummy ranlib; ac_word=$2
3302 echo "$as_me:$LINENO: checking for $ac_word" >&5
3303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3304 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 else
3307 if test -n "$ac_ct_RANLIB"; then
3308 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3309 else
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH
3313 IFS=$as_save_IFS
3314 test -z "$as_dir" && as_dir=.
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317 ac_cv_prog_ac_ct_RANLIB="ranlib"
3318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3319 break 2
3321 done
3322 done
3324 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3327 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3328 if test -n "$ac_ct_RANLIB"; then
3329 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3330 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3331 else
3332 echo "$as_me:$LINENO: result: no" >&5
3333 echo "${ECHO_T}no" >&6
3336 RANLIB=$ac_ct_RANLIB
3337 else
3338 RANLIB="$ac_cv_prog_RANLIB"
3342 for ac_prog in ar aal
3344 # Extract the first word of "$ac_prog", so it can be a program name with args.
3345 set dummy $ac_prog; 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_AR+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3350 else
3351 if test -n "$AR"; then
3352 ac_cv_prog_AR="$AR" # Let the user override the test.
3353 else
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355 for as_dir in $PATH
3357 IFS=$as_save_IFS
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_AR="$ac_prog"
3362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3363 break 2
3365 done
3366 done
3370 AR=$ac_cv_prog_AR
3371 if test -n "$AR"; then
3372 echo "$as_me:$LINENO: result: $AR" >&5
3373 echo "${ECHO_T}$AR" >&6
3374 else
3375 echo "$as_me:$LINENO: result: no" >&5
3376 echo "${ECHO_T}no" >&6
3379 test -n "$AR" && break
3380 done
3381 test -n "$AR" || AR="ar"
3384 case $MACHDEP in
3385 bsdos*|hp*|HP*)
3386 # install -d does not work on BSDI or HP-UX
3387 if test -z "$INSTALL"
3388 then
3389 INSTALL="${srcdir}/install-sh -c"
3391 esac
3392 ac_aux_dir=
3393 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3394 if test -f $ac_dir/install-sh; then
3395 ac_aux_dir=$ac_dir
3396 ac_install_sh="$ac_aux_dir/install-sh -c"
3397 break
3398 elif test -f $ac_dir/install.sh; then
3399 ac_aux_dir=$ac_dir
3400 ac_install_sh="$ac_aux_dir/install.sh -c"
3401 break
3402 elif test -f $ac_dir/shtool; then
3403 ac_aux_dir=$ac_dir
3404 ac_install_sh="$ac_aux_dir/shtool install -c"
3405 break
3407 done
3408 if test -z "$ac_aux_dir"; then
3409 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3410 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3411 { (exit 1); exit 1; }; }
3413 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3414 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3415 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3417 # Find a good install program. We prefer a C program (faster),
3418 # so one script is as good as another. But avoid the broken or
3419 # incompatible versions:
3420 # SysV /etc/install, /usr/sbin/install
3421 # SunOS /usr/etc/install
3422 # IRIX /sbin/install
3423 # AIX /bin/install
3424 # AmigaOS /C/install, which installs bootblocks on floppy discs
3425 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3426 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3427 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3428 # ./install, which can be erroneously created by make from ./install.sh.
3429 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3430 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3431 if test -z "$INSTALL"; then
3432 if test "${ac_cv_path_install+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3434 else
3435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436 for as_dir in $PATH
3438 IFS=$as_save_IFS
3439 test -z "$as_dir" && as_dir=.
3440 # Account for people who put trailing slashes in PATH elements.
3441 case $as_dir/ in
3442 ./ | .// | /cC/* | \
3443 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3444 /usr/ucb/* ) ;;
3446 # OSF1 and SCO ODT 3.0 have their own names for install.
3447 # Don't use installbsd from OSF since it installs stuff as root
3448 # by default.
3449 for ac_prog in ginstall scoinst install; do
3450 for ac_exec_ext in '' $ac_executable_extensions; do
3451 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3452 if test $ac_prog = install &&
3453 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3454 # AIX install. It has an incompatible calling convention.
3456 elif test $ac_prog = install &&
3457 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3458 # program-specific install script used by HP pwplus--don't use.
3460 else
3461 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3462 break 3
3465 done
3466 done
3468 esac
3469 done
3473 if test "${ac_cv_path_install+set}" = set; then
3474 INSTALL=$ac_cv_path_install
3475 else
3476 # As a last resort, use the slow shell script. We don't cache a
3477 # path for INSTALL within a source directory, because that will
3478 # break other packages using the cache if that directory is
3479 # removed, or if the path is relative.
3480 INSTALL=$ac_install_sh
3483 echo "$as_me:$LINENO: result: $INSTALL" >&5
3484 echo "${ECHO_T}$INSTALL" >&6
3486 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3487 # It thinks the first close brace ends the variable substitution.
3488 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3490 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3492 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3495 # Not every filesystem supports hard links
3497 if test -z "$LN" ; then
3498 case $ac_sys_system in
3499 BeOS*) LN="ln -s";;
3500 CYGWIN*) LN="ln -s";;
3501 atheos*) LN="ln -s";;
3502 *) LN=ln;;
3503 esac
3506 # Check for --with-pydebug
3507 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3508 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3510 # Check whether --with-pydebug or --without-pydebug was given.
3511 if test "${with_pydebug+set}" = set; then
3512 withval="$with_pydebug"
3514 if test "$withval" != no
3515 then
3517 cat >>confdefs.h <<\_ACEOF
3518 #define Py_DEBUG 1
3519 _ACEOF
3521 echo "$as_me:$LINENO: result: yes" >&5
3522 echo "${ECHO_T}yes" >&6;
3523 Py_DEBUG='true'
3524 else echo "$as_me:$LINENO: result: no" >&5
3525 echo "${ECHO_T}no" >&6; Py_DEBUG='false'
3527 else
3528 echo "$as_me:$LINENO: result: no" >&5
3529 echo "${ECHO_T}no" >&6
3532 # Optimizer/debugger flags
3534 if test -z "$OPT"
3535 then
3536 case $GCC in
3537 yes)
3538 case $ac_cv_prog_cc_g in
3539 yes)
3540 if test "$Py_DEBUG" = 'true' ; then
3541 # Optimization messes up debuggers, so turn it off for
3542 # debug builds.
3543 OPT="-g -Wall -Wstrict-prototypes"
3544 else
3545 OPT="-g -O3 -Wall -Wstrict-prototypes"
3546 fi;;
3548 OPT="-O3 -Wall -Wstrict-prototypes";;
3549 esac
3550 case $ac_sys_system in
3551 SCO_SV*) OPT="$OPT -m486 -DSCO5";;
3552 esac
3555 case $ac_sys_system in
3556 OpenUNIX*|UnixWare*)
3557 OPT="-O -K pentium,host,inline,loop_unroll,alloca ";;
3558 SCO_SV*)
3559 CFLAGS="$CFLAGS -belf"
3560 OPT="-belf -O -Ki486 -DSCO5";;
3562 OPT="-O";;
3563 esac
3564 esac
3565 case $ac_sys_system in
3566 Darwin*)
3567 OPT="$OPT -Wno-long-double -no-cpp-precomp";;
3568 esac
3571 if test "$Py_DEBUG" = 'true'; then
3573 else
3574 OPT="-DNDEBUG $OPT"
3577 # The current (beta) Monterey compiler dies with optimizations
3578 case $ac_sys_system in
3579 Monterey*) OPT="";;
3580 esac
3582 if test "$ac_arch_flags"
3583 then
3584 OPT="$OPT $ac_arch_flags"
3587 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3588 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3589 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
3591 else
3592 ac_save_cc="$CC"
3593 CC="$CC -OPT:Olimit=0"
3594 if test "$cross_compiling" = yes; then
3595 ac_cv_opt_olimit_ok=no
3596 else
3597 cat >conftest.$ac_ext <<_ACEOF
3598 #line $LINENO "configure"
3599 #include "confdefs.h"
3600 int main() { return 0; }
3601 _ACEOF
3602 rm -f conftest$ac_exeext
3603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3604 (eval $ac_link) 2>&5
3605 ac_status=$?
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 (eval $ac_try) 2>&5
3610 ac_status=$?
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; }; then
3613 ac_cv_opt_olimit_ok=yes
3614 else
3615 echo "$as_me: program exited with status $ac_status" >&5
3616 echo "$as_me: failed program was:" >&5
3617 cat conftest.$ac_ext >&5
3618 ( exit $ac_status )
3619 ac_cv_opt_olimit_ok=no
3621 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3623 CC="$ac_save_cc"
3626 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3627 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3628 if test $ac_cv_opt_olimit_ok = yes; then
3629 case $ac_sys_system in
3630 Darwin*) OPT="$OPT" ;;
3631 *) OPT="$OPT -OPT:Olimit=0";;
3632 esac
3633 else
3634 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3635 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3636 if test "${ac_cv_olimit_ok+set}" = set; then
3637 echo $ECHO_N "(cached) $ECHO_C" >&6
3638 else
3639 ac_save_cc="$CC"
3640 CC="$CC -Olimit 1500"
3641 if test "$cross_compiling" = yes; then
3642 ac_cv_olimit_ok=no
3643 else
3644 cat >conftest.$ac_ext <<_ACEOF
3645 #line $LINENO "configure"
3646 #include "confdefs.h"
3647 int main() { return 0; }
3648 _ACEOF
3649 rm -f conftest$ac_exeext
3650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3651 (eval $ac_link) 2>&5
3652 ac_status=$?
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3656 (eval $ac_try) 2>&5
3657 ac_status=$?
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); }; }; then
3660 ac_cv_olimit_ok=yes
3661 else
3662 echo "$as_me: program exited with status $ac_status" >&5
3663 echo "$as_me: failed program was:" >&5
3664 cat conftest.$ac_ext >&5
3665 ( exit $ac_status )
3666 ac_cv_olimit_ok=no
3668 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3670 CC="$ac_save_cc"
3673 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
3674 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
3675 if test $ac_cv_olimit_ok = yes; then
3676 OPT="$OPT -Olimit 1500"
3680 # On some compilers, pthreads are available without further options
3681 # (e.g. MacOS X). On some of these systems, the compiler will not
3682 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
3683 # So we have to see first whether pthreads are available without
3684 # options before we can check whether -Kpthread improves anything.
3685 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
3686 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
3687 if test "${ac_cv_pthread_is_default+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3689 else
3690 if test "$cross_compiling" = yes; then
3691 ac_cv_pthread_is_default=no
3692 else
3693 cat >conftest.$ac_ext <<_ACEOF
3694 #line $LINENO "configure"
3695 #include "confdefs.h"
3697 #include <pthread.h>
3699 void* routine(void* p){return NULL;}
3701 int main(){
3702 pthread_t p;
3703 if(pthread_create(&p,NULL,routine,NULL)!=0)
3704 return 1;
3705 (void)pthread_detach(p);
3706 return 0;
3709 _ACEOF
3710 rm -f conftest$ac_exeext
3711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3712 (eval $ac_link) 2>&5
3713 ac_status=$?
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717 (eval $ac_try) 2>&5
3718 ac_status=$?
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); }; }; then
3721 ac_cv_pthread_is_default=yes
3722 else
3723 echo "$as_me: program exited with status $ac_status" >&5
3724 echo "$as_me: failed program was:" >&5
3725 cat conftest.$ac_ext >&5
3726 ( exit $ac_status )
3727 ac_cv_pthread_is_default=no
3729 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3734 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
3735 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
3738 if test $ac_cv_pthread_is_default = yes
3739 then
3740 ac_cv_kpthread=no
3741 else
3742 # -Kpthread, if available, provides the right #defines
3743 # and linker options to make pthread_create available
3744 # Some compilers won't report that they do not support -Kpthread,
3745 # so we need to run a program to see whether it really made the
3746 # function available.
3747 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
3748 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
3749 if test "${ac_cv_kpthread+set}" = set; then
3750 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 else
3752 ac_save_cc="$CC"
3753 CC="$CC -Kpthread"
3754 if test "$cross_compiling" = yes; then
3755 ac_cv_kpthread=no
3756 else
3757 cat >conftest.$ac_ext <<_ACEOF
3758 #line $LINENO "configure"
3759 #include "confdefs.h"
3761 #include <pthread.h>
3763 void* routine(void* p){return NULL;}
3765 int main(){
3766 pthread_t p;
3767 if(pthread_create(&p,NULL,routine,NULL)!=0)
3768 return 1;
3769 (void)pthread_detach(p);
3770 return 0;
3773 _ACEOF
3774 rm -f conftest$ac_exeext
3775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3776 (eval $ac_link) 2>&5
3777 ac_status=$?
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781 (eval $ac_try) 2>&5
3782 ac_status=$?
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); }; }; then
3785 ac_cv_kpthread=yes
3786 else
3787 echo "$as_me: program exited with status $ac_status" >&5
3788 echo "$as_me: failed program was:" >&5
3789 cat conftest.$ac_ext >&5
3790 ( exit $ac_status )
3791 ac_cv_kpthread=no
3793 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3795 CC="$ac_save_cc"
3798 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
3799 echo "${ECHO_T}$ac_cv_kpthread" >&6
3803 # checks for header files
3804 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3805 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3806 if test "${ac_cv_header_stdc+set}" = set; then
3807 echo $ECHO_N "(cached) $ECHO_C" >&6
3808 else
3809 cat >conftest.$ac_ext <<_ACEOF
3810 #line $LINENO "configure"
3811 #include "confdefs.h"
3812 #include <stdlib.h>
3813 #include <stdarg.h>
3814 #include <string.h>
3815 #include <float.h>
3817 _ACEOF
3818 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3819 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3820 ac_status=$?
3821 egrep -v '^ *\+' conftest.er1 >conftest.err
3822 rm -f conftest.er1
3823 cat conftest.err >&5
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); } >/dev/null; then
3826 if test -s conftest.err; then
3827 ac_cpp_err=$ac_c_preproc_warn_flag
3828 else
3829 ac_cpp_err=
3831 else
3832 ac_cpp_err=yes
3834 if test -z "$ac_cpp_err"; then
3835 ac_cv_header_stdc=yes
3836 else
3837 echo "$as_me: failed program was:" >&5
3838 cat conftest.$ac_ext >&5
3839 ac_cv_header_stdc=no
3841 rm -f conftest.err conftest.$ac_ext
3843 if test $ac_cv_header_stdc = yes; then
3844 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3845 cat >conftest.$ac_ext <<_ACEOF
3846 #line $LINENO "configure"
3847 #include "confdefs.h"
3848 #include <string.h>
3850 _ACEOF
3851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3852 egrep "memchr" >/dev/null 2>&1; then
3854 else
3855 ac_cv_header_stdc=no
3857 rm -f conftest*
3861 if test $ac_cv_header_stdc = yes; then
3862 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3863 cat >conftest.$ac_ext <<_ACEOF
3864 #line $LINENO "configure"
3865 #include "confdefs.h"
3866 #include <stdlib.h>
3868 _ACEOF
3869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3870 egrep "free" >/dev/null 2>&1; then
3872 else
3873 ac_cv_header_stdc=no
3875 rm -f conftest*
3879 if test $ac_cv_header_stdc = yes; then
3880 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3881 if test "$cross_compiling" = yes; then
3883 else
3884 cat >conftest.$ac_ext <<_ACEOF
3885 #line $LINENO "configure"
3886 #include "confdefs.h"
3887 #include <ctype.h>
3888 #if ((' ' & 0x0FF) == 0x020)
3889 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3890 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3891 #else
3892 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3893 || ('j' <= (c) && (c) <= 'r') \
3894 || ('s' <= (c) && (c) <= 'z'))
3895 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3896 #endif
3898 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3900 main ()
3902 int i;
3903 for (i = 0; i < 256; i++)
3904 if (XOR (islower (i), ISLOWER (i))
3905 || toupper (i) != TOUPPER (i))
3906 exit(2);
3907 exit (0);
3909 _ACEOF
3910 rm -f conftest$ac_exeext
3911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3912 (eval $ac_link) 2>&5
3913 ac_status=$?
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917 (eval $ac_try) 2>&5
3918 ac_status=$?
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); }; }; then
3922 else
3923 echo "$as_me: program exited with status $ac_status" >&5
3924 echo "$as_me: failed program was:" >&5
3925 cat conftest.$ac_ext >&5
3926 ( exit $ac_status )
3927 ac_cv_header_stdc=no
3929 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3933 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3934 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3935 if test $ac_cv_header_stdc = yes; then
3937 cat >>confdefs.h <<\_ACEOF
3938 #define STDC_HEADERS 1
3939 _ACEOF
3980 for ac_header in dlfcn.h fcntl.h grp.h limits.h langinfo.h \
3981 libintl.h locale.h ncurses.h poll.h pthread.h \
3982 signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h termios.h \
3983 sys/audioio.h sys/file.h sys/lock.h sys/mkdev.h sys/modem.h \
3984 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \
3985 sys/un.h sys/utsname.h sys/wait.h pty.h term.h libutil.h \
3986 sys/resource.h netpacket/packet.h
3988 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3990 echo "$as_me:$LINENO: checking for $ac_header" >&5
3991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3993 echo $ECHO_N "(cached) $ECHO_C" >&6
3995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3996 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3997 else
3998 # Is the header compilable?
3999 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4000 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4001 cat >conftest.$ac_ext <<_ACEOF
4002 #line $LINENO "configure"
4003 #include "confdefs.h"
4004 $ac_includes_default
4005 #include <$ac_header>
4006 _ACEOF
4007 rm -f conftest.$ac_objext
4008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4009 (eval $ac_compile) 2>&5
4010 ac_status=$?
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } &&
4013 { ac_try='test -s conftest.$ac_objext'
4014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015 (eval $ac_try) 2>&5
4016 ac_status=$?
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; }; then
4019 ac_header_compiler=yes
4020 else
4021 echo "$as_me: failed program was:" >&5
4022 cat conftest.$ac_ext >&5
4023 ac_header_compiler=no
4025 rm -f conftest.$ac_objext conftest.$ac_ext
4026 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4027 echo "${ECHO_T}$ac_header_compiler" >&6
4029 # Is the header present?
4030 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4031 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4032 cat >conftest.$ac_ext <<_ACEOF
4033 #line $LINENO "configure"
4034 #include "confdefs.h"
4035 #include <$ac_header>
4036 _ACEOF
4037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4039 ac_status=$?
4040 egrep -v '^ *\+' conftest.er1 >conftest.err
4041 rm -f conftest.er1
4042 cat conftest.err >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } >/dev/null; then
4045 if test -s conftest.err; then
4046 ac_cpp_err=$ac_c_preproc_warn_flag
4047 else
4048 ac_cpp_err=
4050 else
4051 ac_cpp_err=yes
4053 if test -z "$ac_cpp_err"; then
4054 ac_header_preproc=yes
4055 else
4056 echo "$as_me: failed program was:" >&5
4057 cat conftest.$ac_ext >&5
4058 ac_header_preproc=no
4060 rm -f conftest.err conftest.$ac_ext
4061 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4062 echo "${ECHO_T}$ac_header_preproc" >&6
4064 # So? What about this header?
4065 case $ac_header_compiler:$ac_header_preproc in
4066 yes:no )
4067 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4068 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4070 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4071 no:yes )
4072 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4073 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4074 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4075 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4078 esac
4079 echo "$as_me:$LINENO: checking for $ac_header" >&5
4080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4083 else
4084 eval "$as_ac_Header=$ac_header_preproc"
4086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4091 cat >>confdefs.h <<_ACEOF
4092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4093 _ACEOF
4097 done
4104 ac_header_dirent=no
4105 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4106 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4107 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4108 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4110 echo $ECHO_N "(cached) $ECHO_C" >&6
4111 else
4112 cat >conftest.$ac_ext <<_ACEOF
4113 #line $LINENO "configure"
4114 #include "confdefs.h"
4115 #include <sys/types.h>
4116 #include <$ac_hdr>
4118 #ifdef F77_DUMMY_MAIN
4119 # ifdef __cplusplus
4120 extern "C"
4121 # endif
4122 int F77_DUMMY_MAIN() { return 1; }
4123 #endif
4125 main ()
4127 if ((DIR *) 0)
4128 return 0;
4130 return 0;
4132 _ACEOF
4133 rm -f conftest.$ac_objext
4134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4135 (eval $ac_compile) 2>&5
4136 ac_status=$?
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); } &&
4139 { ac_try='test -s conftest.$ac_objext'
4140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4141 (eval $ac_try) 2>&5
4142 ac_status=$?
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; }; then
4145 eval "$as_ac_Header=yes"
4146 else
4147 echo "$as_me: failed program was:" >&5
4148 cat conftest.$ac_ext >&5
4149 eval "$as_ac_Header=no"
4151 rm -f conftest.$ac_objext conftest.$ac_ext
4153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4156 cat >>confdefs.h <<_ACEOF
4157 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4158 _ACEOF
4160 ac_header_dirent=$ac_hdr; break
4163 done
4164 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4165 if test $ac_header_dirent = dirent.h; then
4166 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4167 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4168 if test "${ac_cv_search_opendir+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 else
4171 ac_func_search_save_LIBS=$LIBS
4172 ac_cv_search_opendir=no
4173 cat >conftest.$ac_ext <<_ACEOF
4174 #line $LINENO "configure"
4175 #include "confdefs.h"
4177 /* Override any gcc2 internal prototype to avoid an error. */
4178 #ifdef __cplusplus
4179 extern "C"
4180 #endif
4181 /* We use char because int might match the return type of a gcc2
4182 builtin and then its argument prototype would still apply. */
4183 char opendir ();
4184 #ifdef F77_DUMMY_MAIN
4185 # ifdef __cplusplus
4186 extern "C"
4187 # endif
4188 int F77_DUMMY_MAIN() { return 1; }
4189 #endif
4191 main ()
4193 opendir ();
4195 return 0;
4197 _ACEOF
4198 rm -f conftest.$ac_objext conftest$ac_exeext
4199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4200 (eval $ac_link) 2>&5
4201 ac_status=$?
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } &&
4204 { ac_try='test -s conftest$ac_exeext'
4205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206 (eval $ac_try) 2>&5
4207 ac_status=$?
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; }; then
4210 ac_cv_search_opendir="none required"
4211 else
4212 echo "$as_me: failed program was:" >&5
4213 cat conftest.$ac_ext >&5
4215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4216 if test "$ac_cv_search_opendir" = no; then
4217 for ac_lib in dir; do
4218 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4219 cat >conftest.$ac_ext <<_ACEOF
4220 #line $LINENO "configure"
4221 #include "confdefs.h"
4223 /* Override any gcc2 internal prototype to avoid an error. */
4224 #ifdef __cplusplus
4225 extern "C"
4226 #endif
4227 /* We use char because int might match the return type of a gcc2
4228 builtin and then its argument prototype would still apply. */
4229 char opendir ();
4230 #ifdef F77_DUMMY_MAIN
4231 # ifdef __cplusplus
4232 extern "C"
4233 # endif
4234 int F77_DUMMY_MAIN() { return 1; }
4235 #endif
4237 main ()
4239 opendir ();
4241 return 0;
4243 _ACEOF
4244 rm -f conftest.$ac_objext conftest$ac_exeext
4245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4246 (eval $ac_link) 2>&5
4247 ac_status=$?
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } &&
4250 { ac_try='test -s conftest$ac_exeext'
4251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4252 (eval $ac_try) 2>&5
4253 ac_status=$?
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); }; }; then
4256 ac_cv_search_opendir="-l$ac_lib"
4257 break
4258 else
4259 echo "$as_me: failed program was:" >&5
4260 cat conftest.$ac_ext >&5
4262 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4263 done
4265 LIBS=$ac_func_search_save_LIBS
4267 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4268 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4269 if test "$ac_cv_search_opendir" != no; then
4270 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4274 else
4275 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4276 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4277 if test "${ac_cv_search_opendir+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4279 else
4280 ac_func_search_save_LIBS=$LIBS
4281 ac_cv_search_opendir=no
4282 cat >conftest.$ac_ext <<_ACEOF
4283 #line $LINENO "configure"
4284 #include "confdefs.h"
4286 /* Override any gcc2 internal prototype to avoid an error. */
4287 #ifdef __cplusplus
4288 extern "C"
4289 #endif
4290 /* We use char because int might match the return type of a gcc2
4291 builtin and then its argument prototype would still apply. */
4292 char opendir ();
4293 #ifdef F77_DUMMY_MAIN
4294 # ifdef __cplusplus
4295 extern "C"
4296 # endif
4297 int F77_DUMMY_MAIN() { return 1; }
4298 #endif
4300 main ()
4302 opendir ();
4304 return 0;
4306 _ACEOF
4307 rm -f conftest.$ac_objext conftest$ac_exeext
4308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4309 (eval $ac_link) 2>&5
4310 ac_status=$?
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); } &&
4313 { ac_try='test -s conftest$ac_exeext'
4314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315 (eval $ac_try) 2>&5
4316 ac_status=$?
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; }; then
4319 ac_cv_search_opendir="none required"
4320 else
4321 echo "$as_me: failed program was:" >&5
4322 cat conftest.$ac_ext >&5
4324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4325 if test "$ac_cv_search_opendir" = no; then
4326 for ac_lib in x; do
4327 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4328 cat >conftest.$ac_ext <<_ACEOF
4329 #line $LINENO "configure"
4330 #include "confdefs.h"
4332 /* Override any gcc2 internal prototype to avoid an error. */
4333 #ifdef __cplusplus
4334 extern "C"
4335 #endif
4336 /* We use char because int might match the return type of a gcc2
4337 builtin and then its argument prototype would still apply. */
4338 char opendir ();
4339 #ifdef F77_DUMMY_MAIN
4340 # ifdef __cplusplus
4341 extern "C"
4342 # endif
4343 int F77_DUMMY_MAIN() { return 1; }
4344 #endif
4346 main ()
4348 opendir ();
4350 return 0;
4352 _ACEOF
4353 rm -f conftest.$ac_objext conftest$ac_exeext
4354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4355 (eval $ac_link) 2>&5
4356 ac_status=$?
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); } &&
4359 { ac_try='test -s conftest$ac_exeext'
4360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361 (eval $ac_try) 2>&5
4362 ac_status=$?
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; }; then
4365 ac_cv_search_opendir="-l$ac_lib"
4366 break
4367 else
4368 echo "$as_me: failed program was:" >&5
4369 cat conftest.$ac_ext >&5
4371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4372 done
4374 LIBS=$ac_func_search_save_LIBS
4376 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4377 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4378 if test "$ac_cv_search_opendir" != no; then
4379 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4385 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
4386 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
4387 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4389 else
4390 cat >conftest.$ac_ext <<_ACEOF
4391 #line $LINENO "configure"
4392 #include "confdefs.h"
4393 #include <sys/types.h>
4394 #ifdef F77_DUMMY_MAIN
4395 # ifdef __cplusplus
4396 extern "C"
4397 # endif
4398 int F77_DUMMY_MAIN() { return 1; }
4399 #endif
4401 main ()
4403 return makedev(0, 0);
4405 return 0;
4407 _ACEOF
4408 rm -f conftest.$ac_objext conftest$ac_exeext
4409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4410 (eval $ac_link) 2>&5
4411 ac_status=$?
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); } &&
4414 { ac_try='test -s conftest$ac_exeext'
4415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4416 (eval $ac_try) 2>&5
4417 ac_status=$?
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); }; }; then
4420 ac_cv_header_sys_types_h_makedev=yes
4421 else
4422 echo "$as_me: failed program was:" >&5
4423 cat conftest.$ac_ext >&5
4424 ac_cv_header_sys_types_h_makedev=no
4426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4429 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
4430 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
4432 if test $ac_cv_header_sys_types_h_makedev = no; then
4433 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4434 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4435 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
4436 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4440 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
4441 else
4442 # Is the header compilable?
4443 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
4444 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
4445 cat >conftest.$ac_ext <<_ACEOF
4446 #line $LINENO "configure"
4447 #include "confdefs.h"
4448 $ac_includes_default
4449 #include <sys/mkdev.h>
4450 _ACEOF
4451 rm -f conftest.$ac_objext
4452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4453 (eval $ac_compile) 2>&5
4454 ac_status=$?
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); } &&
4457 { ac_try='test -s conftest.$ac_objext'
4458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459 (eval $ac_try) 2>&5
4460 ac_status=$?
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); }; }; then
4463 ac_header_compiler=yes
4464 else
4465 echo "$as_me: failed program was:" >&5
4466 cat conftest.$ac_ext >&5
4467 ac_header_compiler=no
4469 rm -f conftest.$ac_objext conftest.$ac_ext
4470 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4471 echo "${ECHO_T}$ac_header_compiler" >&6
4473 # Is the header present?
4474 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
4475 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
4476 cat >conftest.$ac_ext <<_ACEOF
4477 #line $LINENO "configure"
4478 #include "confdefs.h"
4479 #include <sys/mkdev.h>
4480 _ACEOF
4481 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4483 ac_status=$?
4484 egrep -v '^ *\+' conftest.er1 >conftest.err
4485 rm -f conftest.er1
4486 cat conftest.err >&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); } >/dev/null; then
4489 if test -s conftest.err; then
4490 ac_cpp_err=$ac_c_preproc_warn_flag
4491 else
4492 ac_cpp_err=
4494 else
4495 ac_cpp_err=yes
4497 if test -z "$ac_cpp_err"; then
4498 ac_header_preproc=yes
4499 else
4500 echo "$as_me: failed program was:" >&5
4501 cat conftest.$ac_ext >&5
4502 ac_header_preproc=no
4504 rm -f conftest.err conftest.$ac_ext
4505 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4506 echo "${ECHO_T}$ac_header_preproc" >&6
4508 # So? What about this header?
4509 case $ac_header_compiler:$ac_header_preproc in
4510 yes:no )
4511 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
4512 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4513 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
4514 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};;
4515 no:yes )
4516 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
4517 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
4518 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
4519 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
4520 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
4521 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};;
4522 esac
4523 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4524 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
4525 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4527 else
4528 ac_cv_header_sys_mkdev_h=$ac_header_preproc
4530 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4531 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
4534 if test $ac_cv_header_sys_mkdev_h = yes; then
4536 cat >>confdefs.h <<\_ACEOF
4537 #define MAJOR_IN_MKDEV 1
4538 _ACEOF
4544 if test $ac_cv_header_sys_mkdev_h = no; then
4545 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4546 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4547 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
4548 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4551 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4552 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
4553 else
4554 # Is the header compilable?
4555 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
4556 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
4557 cat >conftest.$ac_ext <<_ACEOF
4558 #line $LINENO "configure"
4559 #include "confdefs.h"
4560 $ac_includes_default
4561 #include <sys/sysmacros.h>
4562 _ACEOF
4563 rm -f conftest.$ac_objext
4564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4565 (eval $ac_compile) 2>&5
4566 ac_status=$?
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } &&
4569 { ac_try='test -s conftest.$ac_objext'
4570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4571 (eval $ac_try) 2>&5
4572 ac_status=$?
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }; }; then
4575 ac_header_compiler=yes
4576 else
4577 echo "$as_me: failed program was:" >&5
4578 cat conftest.$ac_ext >&5
4579 ac_header_compiler=no
4581 rm -f conftest.$ac_objext conftest.$ac_ext
4582 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4583 echo "${ECHO_T}$ac_header_compiler" >&6
4585 # Is the header present?
4586 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
4587 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
4588 cat >conftest.$ac_ext <<_ACEOF
4589 #line $LINENO "configure"
4590 #include "confdefs.h"
4591 #include <sys/sysmacros.h>
4592 _ACEOF
4593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4594 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4595 ac_status=$?
4596 egrep -v '^ *\+' conftest.er1 >conftest.err
4597 rm -f conftest.er1
4598 cat conftest.err >&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); } >/dev/null; then
4601 if test -s conftest.err; then
4602 ac_cpp_err=$ac_c_preproc_warn_flag
4603 else
4604 ac_cpp_err=
4606 else
4607 ac_cpp_err=yes
4609 if test -z "$ac_cpp_err"; then
4610 ac_header_preproc=yes
4611 else
4612 echo "$as_me: failed program was:" >&5
4613 cat conftest.$ac_ext >&5
4614 ac_header_preproc=no
4616 rm -f conftest.err conftest.$ac_ext
4617 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4618 echo "${ECHO_T}$ac_header_preproc" >&6
4620 # So? What about this header?
4621 case $ac_header_compiler:$ac_header_preproc in
4622 yes:no )
4623 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
4624 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4625 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
4626 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};;
4627 no:yes )
4628 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
4629 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
4630 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
4631 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
4632 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
4633 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};;
4634 esac
4635 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4636 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
4637 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 else
4640 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
4642 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4643 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
4646 if test $ac_cv_header_sys_sysmacros_h = yes; then
4648 cat >>confdefs.h <<\_ACEOF
4649 #define MAJOR_IN_SYSMACROS 1
4650 _ACEOF
4659 # checks for typedefs
4660 was_it_defined=no
4661 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
4662 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
4663 cat >conftest.$ac_ext <<_ACEOF
4664 #line $LINENO "configure"
4665 #include "confdefs.h"
4666 #include <time.h>
4668 _ACEOF
4669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4670 egrep "clock_t" >/dev/null 2>&1; then
4671 was_it_defined=yes
4672 else
4675 cat >>confdefs.h <<\_ACEOF
4676 #define clock_t long
4677 _ACEOF
4681 rm -f conftest*
4683 echo "$as_me:$LINENO: result: $was_it_defined" >&5
4684 echo "${ECHO_T}$was_it_defined" >&6
4686 # Check whether using makedev requires defining _OSF_SOURCE
4687 echo "$as_me:$LINENO: checking for makedev" >&5
4688 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
4689 cat >conftest.$ac_ext <<_ACEOF
4690 #line $LINENO "configure"
4691 #include "confdefs.h"
4692 #include <sys/types.h>
4693 #ifdef F77_DUMMY_MAIN
4694 # ifdef __cplusplus
4695 extern "C"
4696 # endif
4697 int F77_DUMMY_MAIN() { return 1; }
4698 #endif
4700 main ()
4702 makedev(0, 0)
4704 return 0;
4706 _ACEOF
4707 rm -f conftest.$ac_objext conftest$ac_exeext
4708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4709 (eval $ac_link) 2>&5
4710 ac_status=$?
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); } &&
4713 { ac_try='test -s conftest$ac_exeext'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 (eval $ac_try) 2>&5
4716 ac_status=$?
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; }; then
4719 ac_cv_has_makedev=yes
4720 else
4721 echo "$as_me: failed program was:" >&5
4722 cat conftest.$ac_ext >&5
4723 ac_cv_has_makedev=no
4725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4726 if test "$ac_cv_has_makedev" = "no"; then
4727 # we didn't link, try if _OSF_SOURCE will allow us to link
4728 cat >conftest.$ac_ext <<_ACEOF
4729 #line $LINENO "configure"
4730 #include "confdefs.h"
4732 #define _OSF_SOURCE 1
4733 #include <sys/types.h>
4735 #ifdef F77_DUMMY_MAIN
4736 # ifdef __cplusplus
4737 extern "C"
4738 # endif
4739 int F77_DUMMY_MAIN() { return 1; }
4740 #endif
4742 main ()
4744 makedev(0, 0)
4746 return 0;
4748 _ACEOF
4749 rm -f conftest.$ac_objext conftest$ac_exeext
4750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4751 (eval $ac_link) 2>&5
4752 ac_status=$?
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); } &&
4755 { ac_try='test -s conftest$ac_exeext'
4756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4757 (eval $ac_try) 2>&5
4758 ac_status=$?
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); }; }; then
4761 ac_cv_has_makedev=yes
4762 else
4763 echo "$as_me: failed program was:" >&5
4764 cat conftest.$ac_ext >&5
4765 ac_cv_has_makedev=no
4767 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4768 if test "$ac_cv_has_makedev" = "yes"; then
4770 cat >>confdefs.h <<\_ACEOF
4771 #define _OSF_SOURCE 1
4772 _ACEOF
4776 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
4777 echo "${ECHO_T}$ac_cv_has_makedev" >&6
4778 if test "$ac_cv_has_makedev" = "yes"; then
4780 cat >>confdefs.h <<\_ACEOF
4781 #define HAVE_MAKEDEV 1
4782 _ACEOF
4786 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
4787 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
4788 # defined, but the compiler does not support pragma redefine_extname,
4789 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
4790 # structures (such as rlimit64) without declaring them. As a
4791 # work-around, disable LFS on such configurations
4793 use_lfs=yes
4794 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
4795 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
4796 cat >conftest.$ac_ext <<_ACEOF
4797 #line $LINENO "configure"
4798 #include "confdefs.h"
4800 #define _LARGEFILE_SOURCE 1
4801 #define _FILE_OFFSET_BITS 64
4802 #include <sys/resource.h>
4804 #ifdef F77_DUMMY_MAIN
4805 # ifdef __cplusplus
4806 extern "C"
4807 # endif
4808 int F77_DUMMY_MAIN() { return 1; }
4809 #endif
4811 main ()
4813 struct rlimit foo;
4815 return 0;
4817 _ACEOF
4818 rm -f conftest.$ac_objext
4819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4820 (eval $ac_compile) 2>&5
4821 ac_status=$?
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); } &&
4824 { ac_try='test -s conftest.$ac_objext'
4825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826 (eval $ac_try) 2>&5
4827 ac_status=$?
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); }; }; then
4830 sol_lfs_bug=no
4831 else
4832 echo "$as_me: failed program was:" >&5
4833 cat conftest.$ac_ext >&5
4834 sol_lfs_bug=yes
4836 rm -f conftest.$ac_objext conftest.$ac_ext
4837 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
4838 echo "${ECHO_T}$sol_lfs_bug" >&6
4839 if test "$sol_lfs_bug" = "yes"; then
4840 use_lfs=no
4843 if test "$use_lfs" = "yes"; then
4844 # Two defines needed to enable largefile support on various platforms
4845 # These may affect some typedefs
4847 cat >>confdefs.h <<\_ACEOF
4848 #define _LARGEFILE_SOURCE 1
4849 _ACEOF
4852 cat >>confdefs.h <<\_ACEOF
4853 #define _FILE_OFFSET_BITS 64
4854 _ACEOF
4858 # Add some code to confdefs.h so that the test for off_t works on SCO
4859 cat >> confdefs.h <<\EOF
4860 #if defined(SCO_DS)
4861 #undef _OFF_T
4862 #endif
4865 # Type availability checks
4866 echo "$as_me:$LINENO: checking for mode_t" >&5
4867 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
4868 if test "${ac_cv_type_mode_t+set}" = set; then
4869 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 else
4871 cat >conftest.$ac_ext <<_ACEOF
4872 #line $LINENO "configure"
4873 #include "confdefs.h"
4874 $ac_includes_default
4875 #ifdef F77_DUMMY_MAIN
4876 # ifdef __cplusplus
4877 extern "C"
4878 # endif
4879 int F77_DUMMY_MAIN() { return 1; }
4880 #endif
4882 main ()
4884 if ((mode_t *) 0)
4885 return 0;
4886 if (sizeof (mode_t))
4887 return 0;
4889 return 0;
4891 _ACEOF
4892 rm -f conftest.$ac_objext
4893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4894 (eval $ac_compile) 2>&5
4895 ac_status=$?
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); } &&
4898 { ac_try='test -s conftest.$ac_objext'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 (eval $ac_try) 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; }; then
4904 ac_cv_type_mode_t=yes
4905 else
4906 echo "$as_me: failed program was:" >&5
4907 cat conftest.$ac_ext >&5
4908 ac_cv_type_mode_t=no
4910 rm -f conftest.$ac_objext conftest.$ac_ext
4912 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
4913 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
4914 if test $ac_cv_type_mode_t = yes; then
4916 else
4918 cat >>confdefs.h <<_ACEOF
4919 #define mode_t int
4920 _ACEOF
4924 echo "$as_me:$LINENO: checking for off_t" >&5
4925 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4926 if test "${ac_cv_type_off_t+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4928 else
4929 cat >conftest.$ac_ext <<_ACEOF
4930 #line $LINENO "configure"
4931 #include "confdefs.h"
4932 $ac_includes_default
4933 #ifdef F77_DUMMY_MAIN
4934 # ifdef __cplusplus
4935 extern "C"
4936 # endif
4937 int F77_DUMMY_MAIN() { return 1; }
4938 #endif
4940 main ()
4942 if ((off_t *) 0)
4943 return 0;
4944 if (sizeof (off_t))
4945 return 0;
4947 return 0;
4949 _ACEOF
4950 rm -f conftest.$ac_objext
4951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4952 (eval $ac_compile) 2>&5
4953 ac_status=$?
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); } &&
4956 { ac_try='test -s conftest.$ac_objext'
4957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4958 (eval $ac_try) 2>&5
4959 ac_status=$?
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); }; }; then
4962 ac_cv_type_off_t=yes
4963 else
4964 echo "$as_me: failed program was:" >&5
4965 cat conftest.$ac_ext >&5
4966 ac_cv_type_off_t=no
4968 rm -f conftest.$ac_objext conftest.$ac_ext
4970 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4971 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4972 if test $ac_cv_type_off_t = yes; then
4974 else
4976 cat >>confdefs.h <<_ACEOF
4977 #define off_t long
4978 _ACEOF
4982 echo "$as_me:$LINENO: checking for pid_t" >&5
4983 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4984 if test "${ac_cv_type_pid_t+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4986 else
4987 cat >conftest.$ac_ext <<_ACEOF
4988 #line $LINENO "configure"
4989 #include "confdefs.h"
4990 $ac_includes_default
4991 #ifdef F77_DUMMY_MAIN
4992 # ifdef __cplusplus
4993 extern "C"
4994 # endif
4995 int F77_DUMMY_MAIN() { return 1; }
4996 #endif
4998 main ()
5000 if ((pid_t *) 0)
5001 return 0;
5002 if (sizeof (pid_t))
5003 return 0;
5005 return 0;
5007 _ACEOF
5008 rm -f conftest.$ac_objext
5009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5010 (eval $ac_compile) 2>&5
5011 ac_status=$?
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); } &&
5014 { ac_try='test -s conftest.$ac_objext'
5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 (eval $ac_try) 2>&5
5017 ac_status=$?
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; }; then
5020 ac_cv_type_pid_t=yes
5021 else
5022 echo "$as_me: failed program was:" >&5
5023 cat conftest.$ac_ext >&5
5024 ac_cv_type_pid_t=no
5026 rm -f conftest.$ac_objext conftest.$ac_ext
5028 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5029 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
5030 if test $ac_cv_type_pid_t = yes; then
5032 else
5034 cat >>confdefs.h <<_ACEOF
5035 #define pid_t int
5036 _ACEOF
5040 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5041 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5042 if test "${ac_cv_type_signal+set}" = set; then
5043 echo $ECHO_N "(cached) $ECHO_C" >&6
5044 else
5045 cat >conftest.$ac_ext <<_ACEOF
5046 #line $LINENO "configure"
5047 #include "confdefs.h"
5048 #include <sys/types.h>
5049 #include <signal.h>
5050 #ifdef signal
5051 # undef signal
5052 #endif
5053 #ifdef __cplusplus
5054 extern "C" void (*signal (int, void (*)(int)))(int);
5055 #else
5056 void (*signal ()) ();
5057 #endif
5059 #ifdef F77_DUMMY_MAIN
5060 # ifdef __cplusplus
5061 extern "C"
5062 # endif
5063 int F77_DUMMY_MAIN() { return 1; }
5064 #endif
5066 main ()
5068 int i;
5070 return 0;
5072 _ACEOF
5073 rm -f conftest.$ac_objext
5074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5075 (eval $ac_compile) 2>&5
5076 ac_status=$?
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); } &&
5079 { ac_try='test -s conftest.$ac_objext'
5080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081 (eval $ac_try) 2>&5
5082 ac_status=$?
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); }; }; then
5085 ac_cv_type_signal=void
5086 else
5087 echo "$as_me: failed program was:" >&5
5088 cat conftest.$ac_ext >&5
5089 ac_cv_type_signal=int
5091 rm -f conftest.$ac_objext conftest.$ac_ext
5093 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5094 echo "${ECHO_T}$ac_cv_type_signal" >&6
5096 cat >>confdefs.h <<_ACEOF
5097 #define RETSIGTYPE $ac_cv_type_signal
5098 _ACEOF
5101 echo "$as_me:$LINENO: checking for size_t" >&5
5102 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5103 if test "${ac_cv_type_size_t+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5105 else
5106 cat >conftest.$ac_ext <<_ACEOF
5107 #line $LINENO "configure"
5108 #include "confdefs.h"
5109 $ac_includes_default
5110 #ifdef F77_DUMMY_MAIN
5111 # ifdef __cplusplus
5112 extern "C"
5113 # endif
5114 int F77_DUMMY_MAIN() { return 1; }
5115 #endif
5117 main ()
5119 if ((size_t *) 0)
5120 return 0;
5121 if (sizeof (size_t))
5122 return 0;
5124 return 0;
5126 _ACEOF
5127 rm -f conftest.$ac_objext
5128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5129 (eval $ac_compile) 2>&5
5130 ac_status=$?
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } &&
5133 { ac_try='test -s conftest.$ac_objext'
5134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135 (eval $ac_try) 2>&5
5136 ac_status=$?
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); }; }; then
5139 ac_cv_type_size_t=yes
5140 else
5141 echo "$as_me: failed program was:" >&5
5142 cat conftest.$ac_ext >&5
5143 ac_cv_type_size_t=no
5145 rm -f conftest.$ac_objext conftest.$ac_ext
5147 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5148 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5149 if test $ac_cv_type_size_t = yes; then
5151 else
5153 cat >>confdefs.h <<_ACEOF
5154 #define size_t unsigned
5155 _ACEOF
5159 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5160 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
5161 if test "${ac_cv_type_uid_t+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5163 else
5164 cat >conftest.$ac_ext <<_ACEOF
5165 #line $LINENO "configure"
5166 #include "confdefs.h"
5167 #include <sys/types.h>
5169 _ACEOF
5170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5171 egrep "uid_t" >/dev/null 2>&1; then
5172 ac_cv_type_uid_t=yes
5173 else
5174 ac_cv_type_uid_t=no
5176 rm -f conftest*
5179 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5180 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5181 if test $ac_cv_type_uid_t = no; then
5183 cat >>confdefs.h <<\_ACEOF
5184 #define uid_t int
5185 _ACEOF
5188 cat >>confdefs.h <<\_ACEOF
5189 #define gid_t int
5190 _ACEOF
5195 # Sizes of various common basic types
5196 echo "$as_me:$LINENO: checking for int" >&5
5197 echo $ECHO_N "checking for int... $ECHO_C" >&6
5198 if test "${ac_cv_type_int+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 else
5201 cat >conftest.$ac_ext <<_ACEOF
5202 #line $LINENO "configure"
5203 #include "confdefs.h"
5204 $ac_includes_default
5205 #ifdef F77_DUMMY_MAIN
5206 # ifdef __cplusplus
5207 extern "C"
5208 # endif
5209 int F77_DUMMY_MAIN() { return 1; }
5210 #endif
5212 main ()
5214 if ((int *) 0)
5215 return 0;
5216 if (sizeof (int))
5217 return 0;
5219 return 0;
5221 _ACEOF
5222 rm -f conftest.$ac_objext
5223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5224 (eval $ac_compile) 2>&5
5225 ac_status=$?
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); } &&
5228 { ac_try='test -s conftest.$ac_objext'
5229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230 (eval $ac_try) 2>&5
5231 ac_status=$?
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); }; }; then
5234 ac_cv_type_int=yes
5235 else
5236 echo "$as_me: failed program was:" >&5
5237 cat conftest.$ac_ext >&5
5238 ac_cv_type_int=no
5240 rm -f conftest.$ac_objext conftest.$ac_ext
5242 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5243 echo "${ECHO_T}$ac_cv_type_int" >&6
5245 echo "$as_me:$LINENO: checking size of int" >&5
5246 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5247 if test "${ac_cv_sizeof_int+set}" = set; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5249 else
5250 if test "$ac_cv_type_int" = yes; then
5251 # The cast to unsigned long works around a bug in the HP C Compiler
5252 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5253 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5254 # This bug is HP SR number 8606223364.
5255 if test "$cross_compiling" = yes; then
5256 # Depending upon the size, compute the lo and hi bounds.
5257 cat >conftest.$ac_ext <<_ACEOF
5258 #line $LINENO "configure"
5259 #include "confdefs.h"
5260 $ac_includes_default
5261 #ifdef F77_DUMMY_MAIN
5262 # ifdef __cplusplus
5263 extern "C"
5264 # endif
5265 int F77_DUMMY_MAIN() { return 1; }
5266 #endif
5268 main ()
5270 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5271 test_array [0] = 0
5274 return 0;
5276 _ACEOF
5277 rm -f conftest.$ac_objext
5278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5279 (eval $ac_compile) 2>&5
5280 ac_status=$?
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); } &&
5283 { ac_try='test -s conftest.$ac_objext'
5284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285 (eval $ac_try) 2>&5
5286 ac_status=$?
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); }; }; then
5289 ac_lo=0 ac_mid=0
5290 while :; do
5291 cat >conftest.$ac_ext <<_ACEOF
5292 #line $LINENO "configure"
5293 #include "confdefs.h"
5294 $ac_includes_default
5295 #ifdef F77_DUMMY_MAIN
5296 # ifdef __cplusplus
5297 extern "C"
5298 # endif
5299 int F77_DUMMY_MAIN() { return 1; }
5300 #endif
5302 main ()
5304 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5305 test_array [0] = 0
5308 return 0;
5310 _ACEOF
5311 rm -f conftest.$ac_objext
5312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5313 (eval $ac_compile) 2>&5
5314 ac_status=$?
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try='test -s conftest.$ac_objext'
5318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319 (eval $ac_try) 2>&5
5320 ac_status=$?
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; }; then
5323 ac_hi=$ac_mid; break
5324 else
5325 echo "$as_me: failed program was:" >&5
5326 cat conftest.$ac_ext >&5
5327 ac_lo=`expr $ac_mid + 1`
5328 if test $ac_lo -le $ac_mid; then
5329 ac_lo= ac_hi=
5330 break
5332 ac_mid=`expr 2 '*' $ac_mid + 1`
5334 rm -f conftest.$ac_objext conftest.$ac_ext
5335 done
5336 else
5337 echo "$as_me: failed program was:" >&5
5338 cat conftest.$ac_ext >&5
5339 cat >conftest.$ac_ext <<_ACEOF
5340 #line $LINENO "configure"
5341 #include "confdefs.h"
5342 $ac_includes_default
5343 #ifdef F77_DUMMY_MAIN
5344 # ifdef __cplusplus
5345 extern "C"
5346 # endif
5347 int F77_DUMMY_MAIN() { return 1; }
5348 #endif
5350 main ()
5352 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5353 test_array [0] = 0
5356 return 0;
5358 _ACEOF
5359 rm -f conftest.$ac_objext
5360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5361 (eval $ac_compile) 2>&5
5362 ac_status=$?
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } &&
5365 { ac_try='test -s conftest.$ac_objext'
5366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367 (eval $ac_try) 2>&5
5368 ac_status=$?
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }; }; then
5371 ac_hi=-1 ac_mid=-1
5372 while :; do
5373 cat >conftest.$ac_ext <<_ACEOF
5374 #line $LINENO "configure"
5375 #include "confdefs.h"
5376 $ac_includes_default
5377 #ifdef F77_DUMMY_MAIN
5378 # ifdef __cplusplus
5379 extern "C"
5380 # endif
5381 int F77_DUMMY_MAIN() { return 1; }
5382 #endif
5384 main ()
5386 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5387 test_array [0] = 0
5390 return 0;
5392 _ACEOF
5393 rm -f conftest.$ac_objext
5394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5395 (eval $ac_compile) 2>&5
5396 ac_status=$?
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); } &&
5399 { ac_try='test -s conftest.$ac_objext'
5400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5401 (eval $ac_try) 2>&5
5402 ac_status=$?
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); }; }; then
5405 ac_lo=$ac_mid; break
5406 else
5407 echo "$as_me: failed program was:" >&5
5408 cat conftest.$ac_ext >&5
5409 ac_hi=`expr '(' $ac_mid ')' - 1`
5410 if test $ac_mid -le $ac_hi; then
5411 ac_lo= ac_hi=
5412 break
5414 ac_mid=`expr 2 '*' $ac_mid`
5416 rm -f conftest.$ac_objext conftest.$ac_ext
5417 done
5418 else
5419 echo "$as_me: failed program was:" >&5
5420 cat conftest.$ac_ext >&5
5421 ac_lo= ac_hi=
5423 rm -f conftest.$ac_objext conftest.$ac_ext
5425 rm -f conftest.$ac_objext conftest.$ac_ext
5426 # Binary search between lo and hi bounds.
5427 while test "x$ac_lo" != "x$ac_hi"; do
5428 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5429 cat >conftest.$ac_ext <<_ACEOF
5430 #line $LINENO "configure"
5431 #include "confdefs.h"
5432 $ac_includes_default
5433 #ifdef F77_DUMMY_MAIN
5434 # ifdef __cplusplus
5435 extern "C"
5436 # endif
5437 int F77_DUMMY_MAIN() { return 1; }
5438 #endif
5440 main ()
5442 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5443 test_array [0] = 0
5446 return 0;
5448 _ACEOF
5449 rm -f conftest.$ac_objext
5450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5451 (eval $ac_compile) 2>&5
5452 ac_status=$?
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); } &&
5455 { ac_try='test -s conftest.$ac_objext'
5456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5457 (eval $ac_try) 2>&5
5458 ac_status=$?
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); }; }; then
5461 ac_hi=$ac_mid
5462 else
5463 echo "$as_me: failed program was:" >&5
5464 cat conftest.$ac_ext >&5
5465 ac_lo=`expr '(' $ac_mid ')' + 1`
5467 rm -f conftest.$ac_objext conftest.$ac_ext
5468 done
5469 case $ac_lo in
5470 ?*) ac_cv_sizeof_int=$ac_lo;;
5471 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
5472 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
5473 { (exit 1); exit 1; }; } ;;
5474 esac
5475 else
5476 if test "$cross_compiling" = yes; then
5477 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5478 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5479 { (exit 1); exit 1; }; }
5480 else
5481 cat >conftest.$ac_ext <<_ACEOF
5482 #line $LINENO "configure"
5483 #include "confdefs.h"
5484 $ac_includes_default
5485 long longval () { return (long) (sizeof (int)); }
5486 unsigned long ulongval () { return (long) (sizeof (int)); }
5487 #include <stdio.h>
5488 #include <stdlib.h>
5489 #ifdef F77_DUMMY_MAIN
5490 # ifdef __cplusplus
5491 extern "C"
5492 # endif
5493 int F77_DUMMY_MAIN() { return 1; }
5494 #endif
5496 main ()
5499 FILE *f = fopen ("conftest.val", "w");
5500 if (! f)
5501 exit (1);
5502 if (((long) (sizeof (int))) < 0)
5504 long i = longval ();
5505 if (i != ((long) (sizeof (int))))
5506 exit (1);
5507 fprintf (f, "%ld\n", i);
5509 else
5511 unsigned long i = ulongval ();
5512 if (i != ((long) (sizeof (int))))
5513 exit (1);
5514 fprintf (f, "%lu\n", i);
5516 exit (ferror (f) || fclose (f) != 0);
5519 return 0;
5521 _ACEOF
5522 rm -f conftest$ac_exeext
5523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5524 (eval $ac_link) 2>&5
5525 ac_status=$?
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5529 (eval $ac_try) 2>&5
5530 ac_status=$?
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); }; }; then
5533 ac_cv_sizeof_int=`cat conftest.val`
5534 else
5535 echo "$as_me: program exited with status $ac_status" >&5
5536 echo "$as_me: failed program was:" >&5
5537 cat conftest.$ac_ext >&5
5538 ( exit $ac_status )
5539 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
5540 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
5541 { (exit 1); exit 1; }; }
5543 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5546 rm -f conftest.val
5547 else
5548 ac_cv_sizeof_int=0
5551 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5552 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5553 cat >>confdefs.h <<_ACEOF
5554 #define SIZEOF_INT $ac_cv_sizeof_int
5555 _ACEOF
5558 echo "$as_me:$LINENO: checking for long" >&5
5559 echo $ECHO_N "checking for long... $ECHO_C" >&6
5560 if test "${ac_cv_type_long+set}" = set; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5562 else
5563 cat >conftest.$ac_ext <<_ACEOF
5564 #line $LINENO "configure"
5565 #include "confdefs.h"
5566 $ac_includes_default
5567 #ifdef F77_DUMMY_MAIN
5568 # ifdef __cplusplus
5569 extern "C"
5570 # endif
5571 int F77_DUMMY_MAIN() { return 1; }
5572 #endif
5574 main ()
5576 if ((long *) 0)
5577 return 0;
5578 if (sizeof (long))
5579 return 0;
5581 return 0;
5583 _ACEOF
5584 rm -f conftest.$ac_objext
5585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5586 (eval $ac_compile) 2>&5
5587 ac_status=$?
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); } &&
5590 { ac_try='test -s conftest.$ac_objext'
5591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5592 (eval $ac_try) 2>&5
5593 ac_status=$?
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; }; then
5596 ac_cv_type_long=yes
5597 else
5598 echo "$as_me: failed program was:" >&5
5599 cat conftest.$ac_ext >&5
5600 ac_cv_type_long=no
5602 rm -f conftest.$ac_objext conftest.$ac_ext
5604 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5605 echo "${ECHO_T}$ac_cv_type_long" >&6
5607 echo "$as_me:$LINENO: checking size of long" >&5
5608 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5609 if test "${ac_cv_sizeof_long+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5611 else
5612 if test "$ac_cv_type_long" = yes; then
5613 # The cast to unsigned long works around a bug in the HP C Compiler
5614 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5615 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5616 # This bug is HP SR number 8606223364.
5617 if test "$cross_compiling" = yes; then
5618 # Depending upon the size, compute the lo and hi bounds.
5619 cat >conftest.$ac_ext <<_ACEOF
5620 #line $LINENO "configure"
5621 #include "confdefs.h"
5622 $ac_includes_default
5623 #ifdef F77_DUMMY_MAIN
5624 # ifdef __cplusplus
5625 extern "C"
5626 # endif
5627 int F77_DUMMY_MAIN() { return 1; }
5628 #endif
5630 main ()
5632 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5633 test_array [0] = 0
5636 return 0;
5638 _ACEOF
5639 rm -f conftest.$ac_objext
5640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5641 (eval $ac_compile) 2>&5
5642 ac_status=$?
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); } &&
5645 { ac_try='test -s conftest.$ac_objext'
5646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5647 (eval $ac_try) 2>&5
5648 ac_status=$?
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); }; }; then
5651 ac_lo=0 ac_mid=0
5652 while :; do
5653 cat >conftest.$ac_ext <<_ACEOF
5654 #line $LINENO "configure"
5655 #include "confdefs.h"
5656 $ac_includes_default
5657 #ifdef F77_DUMMY_MAIN
5658 # ifdef __cplusplus
5659 extern "C"
5660 # endif
5661 int F77_DUMMY_MAIN() { return 1; }
5662 #endif
5664 main ()
5666 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5667 test_array [0] = 0
5670 return 0;
5672 _ACEOF
5673 rm -f conftest.$ac_objext
5674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5675 (eval $ac_compile) 2>&5
5676 ac_status=$?
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } &&
5679 { ac_try='test -s conftest.$ac_objext'
5680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5681 (eval $ac_try) 2>&5
5682 ac_status=$?
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }; }; then
5685 ac_hi=$ac_mid; break
5686 else
5687 echo "$as_me: failed program was:" >&5
5688 cat conftest.$ac_ext >&5
5689 ac_lo=`expr $ac_mid + 1`
5690 if test $ac_lo -le $ac_mid; then
5691 ac_lo= ac_hi=
5692 break
5694 ac_mid=`expr 2 '*' $ac_mid + 1`
5696 rm -f conftest.$ac_objext conftest.$ac_ext
5697 done
5698 else
5699 echo "$as_me: failed program was:" >&5
5700 cat conftest.$ac_ext >&5
5701 cat >conftest.$ac_ext <<_ACEOF
5702 #line $LINENO "configure"
5703 #include "confdefs.h"
5704 $ac_includes_default
5705 #ifdef F77_DUMMY_MAIN
5706 # ifdef __cplusplus
5707 extern "C"
5708 # endif
5709 int F77_DUMMY_MAIN() { return 1; }
5710 #endif
5712 main ()
5714 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5715 test_array [0] = 0
5718 return 0;
5720 _ACEOF
5721 rm -f conftest.$ac_objext
5722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5723 (eval $ac_compile) 2>&5
5724 ac_status=$?
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); } &&
5727 { ac_try='test -s conftest.$ac_objext'
5728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729 (eval $ac_try) 2>&5
5730 ac_status=$?
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; }; then
5733 ac_hi=-1 ac_mid=-1
5734 while :; do
5735 cat >conftest.$ac_ext <<_ACEOF
5736 #line $LINENO "configure"
5737 #include "confdefs.h"
5738 $ac_includes_default
5739 #ifdef F77_DUMMY_MAIN
5740 # ifdef __cplusplus
5741 extern "C"
5742 # endif
5743 int F77_DUMMY_MAIN() { return 1; }
5744 #endif
5746 main ()
5748 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5749 test_array [0] = 0
5752 return 0;
5754 _ACEOF
5755 rm -f conftest.$ac_objext
5756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5757 (eval $ac_compile) 2>&5
5758 ac_status=$?
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); } &&
5761 { ac_try='test -s conftest.$ac_objext'
5762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763 (eval $ac_try) 2>&5
5764 ac_status=$?
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); }; }; then
5767 ac_lo=$ac_mid; break
5768 else
5769 echo "$as_me: failed program was:" >&5
5770 cat conftest.$ac_ext >&5
5771 ac_hi=`expr '(' $ac_mid ')' - 1`
5772 if test $ac_mid -le $ac_hi; then
5773 ac_lo= ac_hi=
5774 break
5776 ac_mid=`expr 2 '*' $ac_mid`
5778 rm -f conftest.$ac_objext conftest.$ac_ext
5779 done
5780 else
5781 echo "$as_me: failed program was:" >&5
5782 cat conftest.$ac_ext >&5
5783 ac_lo= ac_hi=
5785 rm -f conftest.$ac_objext conftest.$ac_ext
5787 rm -f conftest.$ac_objext conftest.$ac_ext
5788 # Binary search between lo and hi bounds.
5789 while test "x$ac_lo" != "x$ac_hi"; do
5790 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5791 cat >conftest.$ac_ext <<_ACEOF
5792 #line $LINENO "configure"
5793 #include "confdefs.h"
5794 $ac_includes_default
5795 #ifdef F77_DUMMY_MAIN
5796 # ifdef __cplusplus
5797 extern "C"
5798 # endif
5799 int F77_DUMMY_MAIN() { return 1; }
5800 #endif
5802 main ()
5804 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5805 test_array [0] = 0
5808 return 0;
5810 _ACEOF
5811 rm -f conftest.$ac_objext
5812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5813 (eval $ac_compile) 2>&5
5814 ac_status=$?
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } &&
5817 { ac_try='test -s conftest.$ac_objext'
5818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5819 (eval $ac_try) 2>&5
5820 ac_status=$?
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); }; }; then
5823 ac_hi=$ac_mid
5824 else
5825 echo "$as_me: failed program was:" >&5
5826 cat conftest.$ac_ext >&5
5827 ac_lo=`expr '(' $ac_mid ')' + 1`
5829 rm -f conftest.$ac_objext conftest.$ac_ext
5830 done
5831 case $ac_lo in
5832 ?*) ac_cv_sizeof_long=$ac_lo;;
5833 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
5834 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
5835 { (exit 1); exit 1; }; } ;;
5836 esac
5837 else
5838 if test "$cross_compiling" = yes; then
5839 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5840 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5841 { (exit 1); exit 1; }; }
5842 else
5843 cat >conftest.$ac_ext <<_ACEOF
5844 #line $LINENO "configure"
5845 #include "confdefs.h"
5846 $ac_includes_default
5847 long longval () { return (long) (sizeof (long)); }
5848 unsigned long ulongval () { return (long) (sizeof (long)); }
5849 #include <stdio.h>
5850 #include <stdlib.h>
5851 #ifdef F77_DUMMY_MAIN
5852 # ifdef __cplusplus
5853 extern "C"
5854 # endif
5855 int F77_DUMMY_MAIN() { return 1; }
5856 #endif
5858 main ()
5861 FILE *f = fopen ("conftest.val", "w");
5862 if (! f)
5863 exit (1);
5864 if (((long) (sizeof (long))) < 0)
5866 long i = longval ();
5867 if (i != ((long) (sizeof (long))))
5868 exit (1);
5869 fprintf (f, "%ld\n", i);
5871 else
5873 unsigned long i = ulongval ();
5874 if (i != ((long) (sizeof (long))))
5875 exit (1);
5876 fprintf (f, "%lu\n", i);
5878 exit (ferror (f) || fclose (f) != 0);
5881 return 0;
5883 _ACEOF
5884 rm -f conftest$ac_exeext
5885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5886 (eval $ac_link) 2>&5
5887 ac_status=$?
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5891 (eval $ac_try) 2>&5
5892 ac_status=$?
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; }; then
5895 ac_cv_sizeof_long=`cat conftest.val`
5896 else
5897 echo "$as_me: program exited with status $ac_status" >&5
5898 echo "$as_me: failed program was:" >&5
5899 cat conftest.$ac_ext >&5
5900 ( exit $ac_status )
5901 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
5902 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
5903 { (exit 1); exit 1; }; }
5905 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5908 rm -f conftest.val
5909 else
5910 ac_cv_sizeof_long=0
5913 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5914 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5915 cat >>confdefs.h <<_ACEOF
5916 #define SIZEOF_LONG $ac_cv_sizeof_long
5917 _ACEOF
5920 echo "$as_me:$LINENO: checking for void *" >&5
5921 echo $ECHO_N "checking for void *... $ECHO_C" >&6
5922 if test "${ac_cv_type_void_p+set}" = set; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
5924 else
5925 cat >conftest.$ac_ext <<_ACEOF
5926 #line $LINENO "configure"
5927 #include "confdefs.h"
5928 $ac_includes_default
5929 #ifdef F77_DUMMY_MAIN
5930 # ifdef __cplusplus
5931 extern "C"
5932 # endif
5933 int F77_DUMMY_MAIN() { return 1; }
5934 #endif
5936 main ()
5938 if ((void * *) 0)
5939 return 0;
5940 if (sizeof (void *))
5941 return 0;
5943 return 0;
5945 _ACEOF
5946 rm -f conftest.$ac_objext
5947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5948 (eval $ac_compile) 2>&5
5949 ac_status=$?
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); } &&
5952 { ac_try='test -s conftest.$ac_objext'
5953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5954 (eval $ac_try) 2>&5
5955 ac_status=$?
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); }; }; then
5958 ac_cv_type_void_p=yes
5959 else
5960 echo "$as_me: failed program was:" >&5
5961 cat conftest.$ac_ext >&5
5962 ac_cv_type_void_p=no
5964 rm -f conftest.$ac_objext conftest.$ac_ext
5966 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
5967 echo "${ECHO_T}$ac_cv_type_void_p" >&6
5969 echo "$as_me:$LINENO: checking size of void *" >&5
5970 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
5971 if test "${ac_cv_sizeof_void_p+set}" = set; then
5972 echo $ECHO_N "(cached) $ECHO_C" >&6
5973 else
5974 if test "$ac_cv_type_void_p" = yes; then
5975 # The cast to unsigned long works around a bug in the HP C Compiler
5976 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5977 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5978 # This bug is HP SR number 8606223364.
5979 if test "$cross_compiling" = yes; then
5980 # Depending upon the size, compute the lo and hi bounds.
5981 cat >conftest.$ac_ext <<_ACEOF
5982 #line $LINENO "configure"
5983 #include "confdefs.h"
5984 $ac_includes_default
5985 #ifdef F77_DUMMY_MAIN
5986 # ifdef __cplusplus
5987 extern "C"
5988 # endif
5989 int F77_DUMMY_MAIN() { return 1; }
5990 #endif
5992 main ()
5994 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
5995 test_array [0] = 0
5998 return 0;
6000 _ACEOF
6001 rm -f conftest.$ac_objext
6002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6003 (eval $ac_compile) 2>&5
6004 ac_status=$?
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } &&
6007 { ac_try='test -s conftest.$ac_objext'
6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009 (eval $ac_try) 2>&5
6010 ac_status=$?
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; }; then
6013 ac_lo=0 ac_mid=0
6014 while :; do
6015 cat >conftest.$ac_ext <<_ACEOF
6016 #line $LINENO "configure"
6017 #include "confdefs.h"
6018 $ac_includes_default
6019 #ifdef F77_DUMMY_MAIN
6020 # ifdef __cplusplus
6021 extern "C"
6022 # endif
6023 int F77_DUMMY_MAIN() { return 1; }
6024 #endif
6026 main ()
6028 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6029 test_array [0] = 0
6032 return 0;
6034 _ACEOF
6035 rm -f conftest.$ac_objext
6036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6037 (eval $ac_compile) 2>&5
6038 ac_status=$?
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); } &&
6041 { ac_try='test -s conftest.$ac_objext'
6042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6043 (eval $ac_try) 2>&5
6044 ac_status=$?
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); }; }; then
6047 ac_hi=$ac_mid; break
6048 else
6049 echo "$as_me: failed program was:" >&5
6050 cat conftest.$ac_ext >&5
6051 ac_lo=`expr $ac_mid + 1`
6052 if test $ac_lo -le $ac_mid; then
6053 ac_lo= ac_hi=
6054 break
6056 ac_mid=`expr 2 '*' $ac_mid + 1`
6058 rm -f conftest.$ac_objext conftest.$ac_ext
6059 done
6060 else
6061 echo "$as_me: failed program was:" >&5
6062 cat conftest.$ac_ext >&5
6063 cat >conftest.$ac_ext <<_ACEOF
6064 #line $LINENO "configure"
6065 #include "confdefs.h"
6066 $ac_includes_default
6067 #ifdef F77_DUMMY_MAIN
6068 # ifdef __cplusplus
6069 extern "C"
6070 # endif
6071 int F77_DUMMY_MAIN() { return 1; }
6072 #endif
6074 main ()
6076 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
6077 test_array [0] = 0
6080 return 0;
6082 _ACEOF
6083 rm -f conftest.$ac_objext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6085 (eval $ac_compile) 2>&5
6086 ac_status=$?
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); } &&
6089 { ac_try='test -s conftest.$ac_objext'
6090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091 (eval $ac_try) 2>&5
6092 ac_status=$?
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; }; then
6095 ac_hi=-1 ac_mid=-1
6096 while :; do
6097 cat >conftest.$ac_ext <<_ACEOF
6098 #line $LINENO "configure"
6099 #include "confdefs.h"
6100 $ac_includes_default
6101 #ifdef F77_DUMMY_MAIN
6102 # ifdef __cplusplus
6103 extern "C"
6104 # endif
6105 int F77_DUMMY_MAIN() { return 1; }
6106 #endif
6108 main ()
6110 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
6111 test_array [0] = 0
6114 return 0;
6116 _ACEOF
6117 rm -f conftest.$ac_objext
6118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6119 (eval $ac_compile) 2>&5
6120 ac_status=$?
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } &&
6123 { ac_try='test -s conftest.$ac_objext'
6124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6125 (eval $ac_try) 2>&5
6126 ac_status=$?
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; }; then
6129 ac_lo=$ac_mid; break
6130 else
6131 echo "$as_me: failed program was:" >&5
6132 cat conftest.$ac_ext >&5
6133 ac_hi=`expr '(' $ac_mid ')' - 1`
6134 if test $ac_mid -le $ac_hi; then
6135 ac_lo= ac_hi=
6136 break
6138 ac_mid=`expr 2 '*' $ac_mid`
6140 rm -f conftest.$ac_objext conftest.$ac_ext
6141 done
6142 else
6143 echo "$as_me: failed program was:" >&5
6144 cat conftest.$ac_ext >&5
6145 ac_lo= ac_hi=
6147 rm -f conftest.$ac_objext conftest.$ac_ext
6149 rm -f conftest.$ac_objext conftest.$ac_ext
6150 # Binary search between lo and hi bounds.
6151 while test "x$ac_lo" != "x$ac_hi"; do
6152 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6153 cat >conftest.$ac_ext <<_ACEOF
6154 #line $LINENO "configure"
6155 #include "confdefs.h"
6156 $ac_includes_default
6157 #ifdef F77_DUMMY_MAIN
6158 # ifdef __cplusplus
6159 extern "C"
6160 # endif
6161 int F77_DUMMY_MAIN() { return 1; }
6162 #endif
6164 main ()
6166 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6167 test_array [0] = 0
6170 return 0;
6172 _ACEOF
6173 rm -f conftest.$ac_objext
6174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6175 (eval $ac_compile) 2>&5
6176 ac_status=$?
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); } &&
6179 { ac_try='test -s conftest.$ac_objext'
6180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181 (eval $ac_try) 2>&5
6182 ac_status=$?
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }; }; then
6185 ac_hi=$ac_mid
6186 else
6187 echo "$as_me: failed program was:" >&5
6188 cat conftest.$ac_ext >&5
6189 ac_lo=`expr '(' $ac_mid ')' + 1`
6191 rm -f conftest.$ac_objext conftest.$ac_ext
6192 done
6193 case $ac_lo in
6194 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6195 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5
6196 echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;}
6197 { (exit 1); exit 1; }; } ;;
6198 esac
6199 else
6200 if test "$cross_compiling" = yes; then
6201 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6202 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6203 { (exit 1); exit 1; }; }
6204 else
6205 cat >conftest.$ac_ext <<_ACEOF
6206 #line $LINENO "configure"
6207 #include "confdefs.h"
6208 $ac_includes_default
6209 long longval () { return (long) (sizeof (void *)); }
6210 unsigned long ulongval () { return (long) (sizeof (void *)); }
6211 #include <stdio.h>
6212 #include <stdlib.h>
6213 #ifdef F77_DUMMY_MAIN
6214 # ifdef __cplusplus
6215 extern "C"
6216 # endif
6217 int F77_DUMMY_MAIN() { return 1; }
6218 #endif
6220 main ()
6223 FILE *f = fopen ("conftest.val", "w");
6224 if (! f)
6225 exit (1);
6226 if (((long) (sizeof (void *))) < 0)
6228 long i = longval ();
6229 if (i != ((long) (sizeof (void *))))
6230 exit (1);
6231 fprintf (f, "%ld\n", i);
6233 else
6235 unsigned long i = ulongval ();
6236 if (i != ((long) (sizeof (void *))))
6237 exit (1);
6238 fprintf (f, "%lu\n", i);
6240 exit (ferror (f) || fclose (f) != 0);
6243 return 0;
6245 _ACEOF
6246 rm -f conftest$ac_exeext
6247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6248 (eval $ac_link) 2>&5
6249 ac_status=$?
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253 (eval $ac_try) 2>&5
6254 ac_status=$?
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }; }; then
6257 ac_cv_sizeof_void_p=`cat conftest.val`
6258 else
6259 echo "$as_me: program exited with status $ac_status" >&5
6260 echo "$as_me: failed program was:" >&5
6261 cat conftest.$ac_ext >&5
6262 ( exit $ac_status )
6263 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5
6264 echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;}
6265 { (exit 1); exit 1; }; }
6267 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6270 rm -f conftest.val
6271 else
6272 ac_cv_sizeof_void_p=0
6275 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6276 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
6277 cat >>confdefs.h <<_ACEOF
6278 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6279 _ACEOF
6282 echo "$as_me:$LINENO: checking for char" >&5
6283 echo $ECHO_N "checking for char... $ECHO_C" >&6
6284 if test "${ac_cv_type_char+set}" = set; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6286 else
6287 cat >conftest.$ac_ext <<_ACEOF
6288 #line $LINENO "configure"
6289 #include "confdefs.h"
6290 $ac_includes_default
6291 #ifdef F77_DUMMY_MAIN
6292 # ifdef __cplusplus
6293 extern "C"
6294 # endif
6295 int F77_DUMMY_MAIN() { return 1; }
6296 #endif
6298 main ()
6300 if ((char *) 0)
6301 return 0;
6302 if (sizeof (char))
6303 return 0;
6305 return 0;
6307 _ACEOF
6308 rm -f conftest.$ac_objext
6309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6310 (eval $ac_compile) 2>&5
6311 ac_status=$?
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); } &&
6314 { ac_try='test -s conftest.$ac_objext'
6315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316 (eval $ac_try) 2>&5
6317 ac_status=$?
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); }; }; then
6320 ac_cv_type_char=yes
6321 else
6322 echo "$as_me: failed program was:" >&5
6323 cat conftest.$ac_ext >&5
6324 ac_cv_type_char=no
6326 rm -f conftest.$ac_objext conftest.$ac_ext
6328 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
6329 echo "${ECHO_T}$ac_cv_type_char" >&6
6331 echo "$as_me:$LINENO: checking size of char" >&5
6332 echo $ECHO_N "checking size of char... $ECHO_C" >&6
6333 if test "${ac_cv_sizeof_char+set}" = set; then
6334 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 else
6336 if test "$ac_cv_type_char" = yes; then
6337 # The cast to unsigned long works around a bug in the HP C Compiler
6338 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6339 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6340 # This bug is HP SR number 8606223364.
6341 if test "$cross_compiling" = yes; then
6342 # Depending upon the size, compute the lo and hi bounds.
6343 cat >conftest.$ac_ext <<_ACEOF
6344 #line $LINENO "configure"
6345 #include "confdefs.h"
6346 $ac_includes_default
6347 #ifdef F77_DUMMY_MAIN
6348 # ifdef __cplusplus
6349 extern "C"
6350 # endif
6351 int F77_DUMMY_MAIN() { return 1; }
6352 #endif
6354 main ()
6356 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
6357 test_array [0] = 0
6360 return 0;
6362 _ACEOF
6363 rm -f conftest.$ac_objext
6364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6365 (eval $ac_compile) 2>&5
6366 ac_status=$?
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); } &&
6369 { ac_try='test -s conftest.$ac_objext'
6370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371 (eval $ac_try) 2>&5
6372 ac_status=$?
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); }; }; then
6375 ac_lo=0 ac_mid=0
6376 while :; do
6377 cat >conftest.$ac_ext <<_ACEOF
6378 #line $LINENO "configure"
6379 #include "confdefs.h"
6380 $ac_includes_default
6381 #ifdef F77_DUMMY_MAIN
6382 # ifdef __cplusplus
6383 extern "C"
6384 # endif
6385 int F77_DUMMY_MAIN() { return 1; }
6386 #endif
6388 main ()
6390 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
6391 test_array [0] = 0
6394 return 0;
6396 _ACEOF
6397 rm -f conftest.$ac_objext
6398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6399 (eval $ac_compile) 2>&5
6400 ac_status=$?
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); } &&
6403 { ac_try='test -s conftest.$ac_objext'
6404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6405 (eval $ac_try) 2>&5
6406 ac_status=$?
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); }; }; then
6409 ac_hi=$ac_mid; break
6410 else
6411 echo "$as_me: failed program was:" >&5
6412 cat conftest.$ac_ext >&5
6413 ac_lo=`expr $ac_mid + 1`
6414 if test $ac_lo -le $ac_mid; then
6415 ac_lo= ac_hi=
6416 break
6418 ac_mid=`expr 2 '*' $ac_mid + 1`
6420 rm -f conftest.$ac_objext conftest.$ac_ext
6421 done
6422 else
6423 echo "$as_me: failed program was:" >&5
6424 cat conftest.$ac_ext >&5
6425 cat >conftest.$ac_ext <<_ACEOF
6426 #line $LINENO "configure"
6427 #include "confdefs.h"
6428 $ac_includes_default
6429 #ifdef F77_DUMMY_MAIN
6430 # ifdef __cplusplus
6431 extern "C"
6432 # endif
6433 int F77_DUMMY_MAIN() { return 1; }
6434 #endif
6436 main ()
6438 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
6439 test_array [0] = 0
6442 return 0;
6444 _ACEOF
6445 rm -f conftest.$ac_objext
6446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6447 (eval $ac_compile) 2>&5
6448 ac_status=$?
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); } &&
6451 { ac_try='test -s conftest.$ac_objext'
6452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453 (eval $ac_try) 2>&5
6454 ac_status=$?
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); }; }; then
6457 ac_hi=-1 ac_mid=-1
6458 while :; do
6459 cat >conftest.$ac_ext <<_ACEOF
6460 #line $LINENO "configure"
6461 #include "confdefs.h"
6462 $ac_includes_default
6463 #ifdef F77_DUMMY_MAIN
6464 # ifdef __cplusplus
6465 extern "C"
6466 # endif
6467 int F77_DUMMY_MAIN() { return 1; }
6468 #endif
6470 main ()
6472 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
6473 test_array [0] = 0
6476 return 0;
6478 _ACEOF
6479 rm -f conftest.$ac_objext
6480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6481 (eval $ac_compile) 2>&5
6482 ac_status=$?
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); } &&
6485 { ac_try='test -s conftest.$ac_objext'
6486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6487 (eval $ac_try) 2>&5
6488 ac_status=$?
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); }; }; then
6491 ac_lo=$ac_mid; break
6492 else
6493 echo "$as_me: failed program was:" >&5
6494 cat conftest.$ac_ext >&5
6495 ac_hi=`expr '(' $ac_mid ')' - 1`
6496 if test $ac_mid -le $ac_hi; then
6497 ac_lo= ac_hi=
6498 break
6500 ac_mid=`expr 2 '*' $ac_mid`
6502 rm -f conftest.$ac_objext conftest.$ac_ext
6503 done
6504 else
6505 echo "$as_me: failed program was:" >&5
6506 cat conftest.$ac_ext >&5
6507 ac_lo= ac_hi=
6509 rm -f conftest.$ac_objext conftest.$ac_ext
6511 rm -f conftest.$ac_objext conftest.$ac_ext
6512 # Binary search between lo and hi bounds.
6513 while test "x$ac_lo" != "x$ac_hi"; do
6514 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6515 cat >conftest.$ac_ext <<_ACEOF
6516 #line $LINENO "configure"
6517 #include "confdefs.h"
6518 $ac_includes_default
6519 #ifdef F77_DUMMY_MAIN
6520 # ifdef __cplusplus
6521 extern "C"
6522 # endif
6523 int F77_DUMMY_MAIN() { return 1; }
6524 #endif
6526 main ()
6528 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
6529 test_array [0] = 0
6532 return 0;
6534 _ACEOF
6535 rm -f conftest.$ac_objext
6536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6537 (eval $ac_compile) 2>&5
6538 ac_status=$?
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); } &&
6541 { ac_try='test -s conftest.$ac_objext'
6542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6543 (eval $ac_try) 2>&5
6544 ac_status=$?
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); }; }; then
6547 ac_hi=$ac_mid
6548 else
6549 echo "$as_me: failed program was:" >&5
6550 cat conftest.$ac_ext >&5
6551 ac_lo=`expr '(' $ac_mid ')' + 1`
6553 rm -f conftest.$ac_objext conftest.$ac_ext
6554 done
6555 case $ac_lo in
6556 ?*) ac_cv_sizeof_char=$ac_lo;;
6557 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
6558 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
6559 { (exit 1); exit 1; }; } ;;
6560 esac
6561 else
6562 if test "$cross_compiling" = yes; then
6563 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6564 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6565 { (exit 1); exit 1; }; }
6566 else
6567 cat >conftest.$ac_ext <<_ACEOF
6568 #line $LINENO "configure"
6569 #include "confdefs.h"
6570 $ac_includes_default
6571 long longval () { return (long) (sizeof (char)); }
6572 unsigned long ulongval () { return (long) (sizeof (char)); }
6573 #include <stdio.h>
6574 #include <stdlib.h>
6575 #ifdef F77_DUMMY_MAIN
6576 # ifdef __cplusplus
6577 extern "C"
6578 # endif
6579 int F77_DUMMY_MAIN() { return 1; }
6580 #endif
6582 main ()
6585 FILE *f = fopen ("conftest.val", "w");
6586 if (! f)
6587 exit (1);
6588 if (((long) (sizeof (char))) < 0)
6590 long i = longval ();
6591 if (i != ((long) (sizeof (char))))
6592 exit (1);
6593 fprintf (f, "%ld\n", i);
6595 else
6597 unsigned long i = ulongval ();
6598 if (i != ((long) (sizeof (char))))
6599 exit (1);
6600 fprintf (f, "%lu\n", i);
6602 exit (ferror (f) || fclose (f) != 0);
6605 return 0;
6607 _ACEOF
6608 rm -f conftest$ac_exeext
6609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6610 (eval $ac_link) 2>&5
6611 ac_status=$?
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6615 (eval $ac_try) 2>&5
6616 ac_status=$?
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); }; }; then
6619 ac_cv_sizeof_char=`cat conftest.val`
6620 else
6621 echo "$as_me: program exited with status $ac_status" >&5
6622 echo "$as_me: failed program was:" >&5
6623 cat conftest.$ac_ext >&5
6624 ( exit $ac_status )
6625 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
6626 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
6627 { (exit 1); exit 1; }; }
6629 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6632 rm -f conftest.val
6633 else
6634 ac_cv_sizeof_char=0
6637 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
6638 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
6639 cat >>confdefs.h <<_ACEOF
6640 #define SIZEOF_CHAR $ac_cv_sizeof_char
6641 _ACEOF
6644 echo "$as_me:$LINENO: checking for short" >&5
6645 echo $ECHO_N "checking for short... $ECHO_C" >&6
6646 if test "${ac_cv_type_short+set}" = set; then
6647 echo $ECHO_N "(cached) $ECHO_C" >&6
6648 else
6649 cat >conftest.$ac_ext <<_ACEOF
6650 #line $LINENO "configure"
6651 #include "confdefs.h"
6652 $ac_includes_default
6653 #ifdef F77_DUMMY_MAIN
6654 # ifdef __cplusplus
6655 extern "C"
6656 # endif
6657 int F77_DUMMY_MAIN() { return 1; }
6658 #endif
6660 main ()
6662 if ((short *) 0)
6663 return 0;
6664 if (sizeof (short))
6665 return 0;
6667 return 0;
6669 _ACEOF
6670 rm -f conftest.$ac_objext
6671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6672 (eval $ac_compile) 2>&5
6673 ac_status=$?
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } &&
6676 { ac_try='test -s conftest.$ac_objext'
6677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6678 (eval $ac_try) 2>&5
6679 ac_status=$?
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); }; }; then
6682 ac_cv_type_short=yes
6683 else
6684 echo "$as_me: failed program was:" >&5
6685 cat conftest.$ac_ext >&5
6686 ac_cv_type_short=no
6688 rm -f conftest.$ac_objext conftest.$ac_ext
6690 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
6691 echo "${ECHO_T}$ac_cv_type_short" >&6
6693 echo "$as_me:$LINENO: checking size of short" >&5
6694 echo $ECHO_N "checking size of short... $ECHO_C" >&6
6695 if test "${ac_cv_sizeof_short+set}" = set; then
6696 echo $ECHO_N "(cached) $ECHO_C" >&6
6697 else
6698 if test "$ac_cv_type_short" = yes; then
6699 # The cast to unsigned long works around a bug in the HP C Compiler
6700 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6701 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6702 # This bug is HP SR number 8606223364.
6703 if test "$cross_compiling" = yes; then
6704 # Depending upon the size, compute the lo and hi bounds.
6705 cat >conftest.$ac_ext <<_ACEOF
6706 #line $LINENO "configure"
6707 #include "confdefs.h"
6708 $ac_includes_default
6709 #ifdef F77_DUMMY_MAIN
6710 # ifdef __cplusplus
6711 extern "C"
6712 # endif
6713 int F77_DUMMY_MAIN() { return 1; }
6714 #endif
6716 main ()
6718 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
6719 test_array [0] = 0
6722 return 0;
6724 _ACEOF
6725 rm -f conftest.$ac_objext
6726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6727 (eval $ac_compile) 2>&5
6728 ac_status=$?
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); } &&
6731 { ac_try='test -s conftest.$ac_objext'
6732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6733 (eval $ac_try) 2>&5
6734 ac_status=$?
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); }; }; then
6737 ac_lo=0 ac_mid=0
6738 while :; do
6739 cat >conftest.$ac_ext <<_ACEOF
6740 #line $LINENO "configure"
6741 #include "confdefs.h"
6742 $ac_includes_default
6743 #ifdef F77_DUMMY_MAIN
6744 # ifdef __cplusplus
6745 extern "C"
6746 # endif
6747 int F77_DUMMY_MAIN() { return 1; }
6748 #endif
6750 main ()
6752 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6753 test_array [0] = 0
6756 return 0;
6758 _ACEOF
6759 rm -f conftest.$ac_objext
6760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6761 (eval $ac_compile) 2>&5
6762 ac_status=$?
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } &&
6765 { ac_try='test -s conftest.$ac_objext'
6766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767 (eval $ac_try) 2>&5
6768 ac_status=$?
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); }; }; then
6771 ac_hi=$ac_mid; break
6772 else
6773 echo "$as_me: failed program was:" >&5
6774 cat conftest.$ac_ext >&5
6775 ac_lo=`expr $ac_mid + 1`
6776 if test $ac_lo -le $ac_mid; then
6777 ac_lo= ac_hi=
6778 break
6780 ac_mid=`expr 2 '*' $ac_mid + 1`
6782 rm -f conftest.$ac_objext conftest.$ac_ext
6783 done
6784 else
6785 echo "$as_me: failed program was:" >&5
6786 cat conftest.$ac_ext >&5
6787 cat >conftest.$ac_ext <<_ACEOF
6788 #line $LINENO "configure"
6789 #include "confdefs.h"
6790 $ac_includes_default
6791 #ifdef F77_DUMMY_MAIN
6792 # ifdef __cplusplus
6793 extern "C"
6794 # endif
6795 int F77_DUMMY_MAIN() { return 1; }
6796 #endif
6798 main ()
6800 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
6801 test_array [0] = 0
6804 return 0;
6806 _ACEOF
6807 rm -f conftest.$ac_objext
6808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6809 (eval $ac_compile) 2>&5
6810 ac_status=$?
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); } &&
6813 { ac_try='test -s conftest.$ac_objext'
6814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6815 (eval $ac_try) 2>&5
6816 ac_status=$?
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); }; }; then
6819 ac_hi=-1 ac_mid=-1
6820 while :; do
6821 cat >conftest.$ac_ext <<_ACEOF
6822 #line $LINENO "configure"
6823 #include "confdefs.h"
6824 $ac_includes_default
6825 #ifdef F77_DUMMY_MAIN
6826 # ifdef __cplusplus
6827 extern "C"
6828 # endif
6829 int F77_DUMMY_MAIN() { return 1; }
6830 #endif
6832 main ()
6834 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
6835 test_array [0] = 0
6838 return 0;
6840 _ACEOF
6841 rm -f conftest.$ac_objext
6842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6843 (eval $ac_compile) 2>&5
6844 ac_status=$?
6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); } &&
6847 { ac_try='test -s conftest.$ac_objext'
6848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6849 (eval $ac_try) 2>&5
6850 ac_status=$?
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); }; }; then
6853 ac_lo=$ac_mid; break
6854 else
6855 echo "$as_me: failed program was:" >&5
6856 cat conftest.$ac_ext >&5
6857 ac_hi=`expr '(' $ac_mid ')' - 1`
6858 if test $ac_mid -le $ac_hi; then
6859 ac_lo= ac_hi=
6860 break
6862 ac_mid=`expr 2 '*' $ac_mid`
6864 rm -f conftest.$ac_objext conftest.$ac_ext
6865 done
6866 else
6867 echo "$as_me: failed program was:" >&5
6868 cat conftest.$ac_ext >&5
6869 ac_lo= ac_hi=
6871 rm -f conftest.$ac_objext conftest.$ac_ext
6873 rm -f conftest.$ac_objext conftest.$ac_ext
6874 # Binary search between lo and hi bounds.
6875 while test "x$ac_lo" != "x$ac_hi"; do
6876 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6877 cat >conftest.$ac_ext <<_ACEOF
6878 #line $LINENO "configure"
6879 #include "confdefs.h"
6880 $ac_includes_default
6881 #ifdef F77_DUMMY_MAIN
6882 # ifdef __cplusplus
6883 extern "C"
6884 # endif
6885 int F77_DUMMY_MAIN() { return 1; }
6886 #endif
6888 main ()
6890 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6891 test_array [0] = 0
6894 return 0;
6896 _ACEOF
6897 rm -f conftest.$ac_objext
6898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6899 (eval $ac_compile) 2>&5
6900 ac_status=$?
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } &&
6903 { ac_try='test -s conftest.$ac_objext'
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905 (eval $ac_try) 2>&5
6906 ac_status=$?
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; }; then
6909 ac_hi=$ac_mid
6910 else
6911 echo "$as_me: failed program was:" >&5
6912 cat conftest.$ac_ext >&5
6913 ac_lo=`expr '(' $ac_mid ')' + 1`
6915 rm -f conftest.$ac_objext conftest.$ac_ext
6916 done
6917 case $ac_lo in
6918 ?*) ac_cv_sizeof_short=$ac_lo;;
6919 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
6920 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
6921 { (exit 1); exit 1; }; } ;;
6922 esac
6923 else
6924 if test "$cross_compiling" = yes; then
6925 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6926 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6927 { (exit 1); exit 1; }; }
6928 else
6929 cat >conftest.$ac_ext <<_ACEOF
6930 #line $LINENO "configure"
6931 #include "confdefs.h"
6932 $ac_includes_default
6933 long longval () { return (long) (sizeof (short)); }
6934 unsigned long ulongval () { return (long) (sizeof (short)); }
6935 #include <stdio.h>
6936 #include <stdlib.h>
6937 #ifdef F77_DUMMY_MAIN
6938 # ifdef __cplusplus
6939 extern "C"
6940 # endif
6941 int F77_DUMMY_MAIN() { return 1; }
6942 #endif
6944 main ()
6947 FILE *f = fopen ("conftest.val", "w");
6948 if (! f)
6949 exit (1);
6950 if (((long) (sizeof (short))) < 0)
6952 long i = longval ();
6953 if (i != ((long) (sizeof (short))))
6954 exit (1);
6955 fprintf (f, "%ld\n", i);
6957 else
6959 unsigned long i = ulongval ();
6960 if (i != ((long) (sizeof (short))))
6961 exit (1);
6962 fprintf (f, "%lu\n", i);
6964 exit (ferror (f) || fclose (f) != 0);
6967 return 0;
6969 _ACEOF
6970 rm -f conftest$ac_exeext
6971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6972 (eval $ac_link) 2>&5
6973 ac_status=$?
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6977 (eval $ac_try) 2>&5
6978 ac_status=$?
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); }; }; then
6981 ac_cv_sizeof_short=`cat conftest.val`
6982 else
6983 echo "$as_me: program exited with status $ac_status" >&5
6984 echo "$as_me: failed program was:" >&5
6985 cat conftest.$ac_ext >&5
6986 ( exit $ac_status )
6987 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
6988 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
6989 { (exit 1); exit 1; }; }
6991 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6994 rm -f conftest.val
6995 else
6996 ac_cv_sizeof_short=0
6999 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7000 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7001 cat >>confdefs.h <<_ACEOF
7002 #define SIZEOF_SHORT $ac_cv_sizeof_short
7003 _ACEOF
7006 echo "$as_me:$LINENO: checking for float" >&5
7007 echo $ECHO_N "checking for float... $ECHO_C" >&6
7008 if test "${ac_cv_type_float+set}" = set; then
7009 echo $ECHO_N "(cached) $ECHO_C" >&6
7010 else
7011 cat >conftest.$ac_ext <<_ACEOF
7012 #line $LINENO "configure"
7013 #include "confdefs.h"
7014 $ac_includes_default
7015 #ifdef F77_DUMMY_MAIN
7016 # ifdef __cplusplus
7017 extern "C"
7018 # endif
7019 int F77_DUMMY_MAIN() { return 1; }
7020 #endif
7022 main ()
7024 if ((float *) 0)
7025 return 0;
7026 if (sizeof (float))
7027 return 0;
7029 return 0;
7031 _ACEOF
7032 rm -f conftest.$ac_objext
7033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7034 (eval $ac_compile) 2>&5
7035 ac_status=$?
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); } &&
7038 { ac_try='test -s conftest.$ac_objext'
7039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7040 (eval $ac_try) 2>&5
7041 ac_status=$?
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); }; }; then
7044 ac_cv_type_float=yes
7045 else
7046 echo "$as_me: failed program was:" >&5
7047 cat conftest.$ac_ext >&5
7048 ac_cv_type_float=no
7050 rm -f conftest.$ac_objext conftest.$ac_ext
7052 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
7053 echo "${ECHO_T}$ac_cv_type_float" >&6
7055 echo "$as_me:$LINENO: checking size of float" >&5
7056 echo $ECHO_N "checking size of float... $ECHO_C" >&6
7057 if test "${ac_cv_sizeof_float+set}" = set; then
7058 echo $ECHO_N "(cached) $ECHO_C" >&6
7059 else
7060 if test "$ac_cv_type_float" = yes; then
7061 # The cast to unsigned long works around a bug in the HP C Compiler
7062 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7063 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7064 # This bug is HP SR number 8606223364.
7065 if test "$cross_compiling" = yes; then
7066 # Depending upon the size, compute the lo and hi bounds.
7067 cat >conftest.$ac_ext <<_ACEOF
7068 #line $LINENO "configure"
7069 #include "confdefs.h"
7070 $ac_includes_default
7071 #ifdef F77_DUMMY_MAIN
7072 # ifdef __cplusplus
7073 extern "C"
7074 # endif
7075 int F77_DUMMY_MAIN() { return 1; }
7076 #endif
7078 main ()
7080 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
7081 test_array [0] = 0
7084 return 0;
7086 _ACEOF
7087 rm -f conftest.$ac_objext
7088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7089 (eval $ac_compile) 2>&5
7090 ac_status=$?
7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092 (exit $ac_status); } &&
7093 { ac_try='test -s conftest.$ac_objext'
7094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7095 (eval $ac_try) 2>&5
7096 ac_status=$?
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); }; }; then
7099 ac_lo=0 ac_mid=0
7100 while :; do
7101 cat >conftest.$ac_ext <<_ACEOF
7102 #line $LINENO "configure"
7103 #include "confdefs.h"
7104 $ac_includes_default
7105 #ifdef F77_DUMMY_MAIN
7106 # ifdef __cplusplus
7107 extern "C"
7108 # endif
7109 int F77_DUMMY_MAIN() { return 1; }
7110 #endif
7112 main ()
7114 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
7115 test_array [0] = 0
7118 return 0;
7120 _ACEOF
7121 rm -f conftest.$ac_objext
7122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7123 (eval $ac_compile) 2>&5
7124 ac_status=$?
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); } &&
7127 { ac_try='test -s conftest.$ac_objext'
7128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7129 (eval $ac_try) 2>&5
7130 ac_status=$?
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); }; }; then
7133 ac_hi=$ac_mid; break
7134 else
7135 echo "$as_me: failed program was:" >&5
7136 cat conftest.$ac_ext >&5
7137 ac_lo=`expr $ac_mid + 1`
7138 if test $ac_lo -le $ac_mid; then
7139 ac_lo= ac_hi=
7140 break
7142 ac_mid=`expr 2 '*' $ac_mid + 1`
7144 rm -f conftest.$ac_objext conftest.$ac_ext
7145 done
7146 else
7147 echo "$as_me: failed program was:" >&5
7148 cat conftest.$ac_ext >&5
7149 cat >conftest.$ac_ext <<_ACEOF
7150 #line $LINENO "configure"
7151 #include "confdefs.h"
7152 $ac_includes_default
7153 #ifdef F77_DUMMY_MAIN
7154 # ifdef __cplusplus
7155 extern "C"
7156 # endif
7157 int F77_DUMMY_MAIN() { return 1; }
7158 #endif
7160 main ()
7162 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
7163 test_array [0] = 0
7166 return 0;
7168 _ACEOF
7169 rm -f conftest.$ac_objext
7170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7171 (eval $ac_compile) 2>&5
7172 ac_status=$?
7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); } &&
7175 { ac_try='test -s conftest.$ac_objext'
7176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7177 (eval $ac_try) 2>&5
7178 ac_status=$?
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); }; }; then
7181 ac_hi=-1 ac_mid=-1
7182 while :; do
7183 cat >conftest.$ac_ext <<_ACEOF
7184 #line $LINENO "configure"
7185 #include "confdefs.h"
7186 $ac_includes_default
7187 #ifdef F77_DUMMY_MAIN
7188 # ifdef __cplusplus
7189 extern "C"
7190 # endif
7191 int F77_DUMMY_MAIN() { return 1; }
7192 #endif
7194 main ()
7196 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
7197 test_array [0] = 0
7200 return 0;
7202 _ACEOF
7203 rm -f conftest.$ac_objext
7204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7205 (eval $ac_compile) 2>&5
7206 ac_status=$?
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); } &&
7209 { ac_try='test -s conftest.$ac_objext'
7210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7211 (eval $ac_try) 2>&5
7212 ac_status=$?
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); }; }; then
7215 ac_lo=$ac_mid; break
7216 else
7217 echo "$as_me: failed program was:" >&5
7218 cat conftest.$ac_ext >&5
7219 ac_hi=`expr '(' $ac_mid ')' - 1`
7220 if test $ac_mid -le $ac_hi; then
7221 ac_lo= ac_hi=
7222 break
7224 ac_mid=`expr 2 '*' $ac_mid`
7226 rm -f conftest.$ac_objext conftest.$ac_ext
7227 done
7228 else
7229 echo "$as_me: failed program was:" >&5
7230 cat conftest.$ac_ext >&5
7231 ac_lo= ac_hi=
7233 rm -f conftest.$ac_objext conftest.$ac_ext
7235 rm -f conftest.$ac_objext conftest.$ac_ext
7236 # Binary search between lo and hi bounds.
7237 while test "x$ac_lo" != "x$ac_hi"; do
7238 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7239 cat >conftest.$ac_ext <<_ACEOF
7240 #line $LINENO "configure"
7241 #include "confdefs.h"
7242 $ac_includes_default
7243 #ifdef F77_DUMMY_MAIN
7244 # ifdef __cplusplus
7245 extern "C"
7246 # endif
7247 int F77_DUMMY_MAIN() { return 1; }
7248 #endif
7250 main ()
7252 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
7253 test_array [0] = 0
7256 return 0;
7258 _ACEOF
7259 rm -f conftest.$ac_objext
7260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7261 (eval $ac_compile) 2>&5
7262 ac_status=$?
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); } &&
7265 { ac_try='test -s conftest.$ac_objext'
7266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7267 (eval $ac_try) 2>&5
7268 ac_status=$?
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); }; }; then
7271 ac_hi=$ac_mid
7272 else
7273 echo "$as_me: failed program was:" >&5
7274 cat conftest.$ac_ext >&5
7275 ac_lo=`expr '(' $ac_mid ')' + 1`
7277 rm -f conftest.$ac_objext conftest.$ac_ext
7278 done
7279 case $ac_lo in
7280 ?*) ac_cv_sizeof_float=$ac_lo;;
7281 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5
7282 echo "$as_me: error: cannot compute sizeof (float), 77" >&2;}
7283 { (exit 1); exit 1; }; } ;;
7284 esac
7285 else
7286 if test "$cross_compiling" = yes; then
7287 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7288 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7289 { (exit 1); exit 1; }; }
7290 else
7291 cat >conftest.$ac_ext <<_ACEOF
7292 #line $LINENO "configure"
7293 #include "confdefs.h"
7294 $ac_includes_default
7295 long longval () { return (long) (sizeof (float)); }
7296 unsigned long ulongval () { return (long) (sizeof (float)); }
7297 #include <stdio.h>
7298 #include <stdlib.h>
7299 #ifdef F77_DUMMY_MAIN
7300 # ifdef __cplusplus
7301 extern "C"
7302 # endif
7303 int F77_DUMMY_MAIN() { return 1; }
7304 #endif
7306 main ()
7309 FILE *f = fopen ("conftest.val", "w");
7310 if (! f)
7311 exit (1);
7312 if (((long) (sizeof (float))) < 0)
7314 long i = longval ();
7315 if (i != ((long) (sizeof (float))))
7316 exit (1);
7317 fprintf (f, "%ld\n", i);
7319 else
7321 unsigned long i = ulongval ();
7322 if (i != ((long) (sizeof (float))))
7323 exit (1);
7324 fprintf (f, "%lu\n", i);
7326 exit (ferror (f) || fclose (f) != 0);
7329 return 0;
7331 _ACEOF
7332 rm -f conftest$ac_exeext
7333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7334 (eval $ac_link) 2>&5
7335 ac_status=$?
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7339 (eval $ac_try) 2>&5
7340 ac_status=$?
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); }; }; then
7343 ac_cv_sizeof_float=`cat conftest.val`
7344 else
7345 echo "$as_me: program exited with status $ac_status" >&5
7346 echo "$as_me: failed program was:" >&5
7347 cat conftest.$ac_ext >&5
7348 ( exit $ac_status )
7349 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5
7350 echo "$as_me: error: cannot compute sizeof (float), 77" >&2;}
7351 { (exit 1); exit 1; }; }
7353 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7356 rm -f conftest.val
7357 else
7358 ac_cv_sizeof_float=0
7361 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
7362 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
7363 cat >>confdefs.h <<_ACEOF
7364 #define SIZEOF_FLOAT $ac_cv_sizeof_float
7365 _ACEOF
7368 echo "$as_me:$LINENO: checking for double" >&5
7369 echo $ECHO_N "checking for double... $ECHO_C" >&6
7370 if test "${ac_cv_type_double+set}" = set; then
7371 echo $ECHO_N "(cached) $ECHO_C" >&6
7372 else
7373 cat >conftest.$ac_ext <<_ACEOF
7374 #line $LINENO "configure"
7375 #include "confdefs.h"
7376 $ac_includes_default
7377 #ifdef F77_DUMMY_MAIN
7378 # ifdef __cplusplus
7379 extern "C"
7380 # endif
7381 int F77_DUMMY_MAIN() { return 1; }
7382 #endif
7384 main ()
7386 if ((double *) 0)
7387 return 0;
7388 if (sizeof (double))
7389 return 0;
7391 return 0;
7393 _ACEOF
7394 rm -f conftest.$ac_objext
7395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7396 (eval $ac_compile) 2>&5
7397 ac_status=$?
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); } &&
7400 { ac_try='test -s conftest.$ac_objext'
7401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7402 (eval $ac_try) 2>&5
7403 ac_status=$?
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); }; }; then
7406 ac_cv_type_double=yes
7407 else
7408 echo "$as_me: failed program was:" >&5
7409 cat conftest.$ac_ext >&5
7410 ac_cv_type_double=no
7412 rm -f conftest.$ac_objext conftest.$ac_ext
7414 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
7415 echo "${ECHO_T}$ac_cv_type_double" >&6
7417 echo "$as_me:$LINENO: checking size of double" >&5
7418 echo $ECHO_N "checking size of double... $ECHO_C" >&6
7419 if test "${ac_cv_sizeof_double+set}" = set; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7421 else
7422 if test "$ac_cv_type_double" = yes; then
7423 # The cast to unsigned long works around a bug in the HP C Compiler
7424 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7425 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7426 # This bug is HP SR number 8606223364.
7427 if test "$cross_compiling" = yes; then
7428 # Depending upon the size, compute the lo and hi bounds.
7429 cat >conftest.$ac_ext <<_ACEOF
7430 #line $LINENO "configure"
7431 #include "confdefs.h"
7432 $ac_includes_default
7433 #ifdef F77_DUMMY_MAIN
7434 # ifdef __cplusplus
7435 extern "C"
7436 # endif
7437 int F77_DUMMY_MAIN() { return 1; }
7438 #endif
7440 main ()
7442 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
7443 test_array [0] = 0
7446 return 0;
7448 _ACEOF
7449 rm -f conftest.$ac_objext
7450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7451 (eval $ac_compile) 2>&5
7452 ac_status=$?
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); } &&
7455 { ac_try='test -s conftest.$ac_objext'
7456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7457 (eval $ac_try) 2>&5
7458 ac_status=$?
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); }; }; then
7461 ac_lo=0 ac_mid=0
7462 while :; do
7463 cat >conftest.$ac_ext <<_ACEOF
7464 #line $LINENO "configure"
7465 #include "confdefs.h"
7466 $ac_includes_default
7467 #ifdef F77_DUMMY_MAIN
7468 # ifdef __cplusplus
7469 extern "C"
7470 # endif
7471 int F77_DUMMY_MAIN() { return 1; }
7472 #endif
7474 main ()
7476 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
7477 test_array [0] = 0
7480 return 0;
7482 _ACEOF
7483 rm -f conftest.$ac_objext
7484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7485 (eval $ac_compile) 2>&5
7486 ac_status=$?
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); } &&
7489 { ac_try='test -s conftest.$ac_objext'
7490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7491 (eval $ac_try) 2>&5
7492 ac_status=$?
7493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494 (exit $ac_status); }; }; then
7495 ac_hi=$ac_mid; break
7496 else
7497 echo "$as_me: failed program was:" >&5
7498 cat conftest.$ac_ext >&5
7499 ac_lo=`expr $ac_mid + 1`
7500 if test $ac_lo -le $ac_mid; then
7501 ac_lo= ac_hi=
7502 break
7504 ac_mid=`expr 2 '*' $ac_mid + 1`
7506 rm -f conftest.$ac_objext conftest.$ac_ext
7507 done
7508 else
7509 echo "$as_me: failed program was:" >&5
7510 cat conftest.$ac_ext >&5
7511 cat >conftest.$ac_ext <<_ACEOF
7512 #line $LINENO "configure"
7513 #include "confdefs.h"
7514 $ac_includes_default
7515 #ifdef F77_DUMMY_MAIN
7516 # ifdef __cplusplus
7517 extern "C"
7518 # endif
7519 int F77_DUMMY_MAIN() { return 1; }
7520 #endif
7522 main ()
7524 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
7525 test_array [0] = 0
7528 return 0;
7530 _ACEOF
7531 rm -f conftest.$ac_objext
7532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7533 (eval $ac_compile) 2>&5
7534 ac_status=$?
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); } &&
7537 { ac_try='test -s conftest.$ac_objext'
7538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7539 (eval $ac_try) 2>&5
7540 ac_status=$?
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }; }; then
7543 ac_hi=-1 ac_mid=-1
7544 while :; do
7545 cat >conftest.$ac_ext <<_ACEOF
7546 #line $LINENO "configure"
7547 #include "confdefs.h"
7548 $ac_includes_default
7549 #ifdef F77_DUMMY_MAIN
7550 # ifdef __cplusplus
7551 extern "C"
7552 # endif
7553 int F77_DUMMY_MAIN() { return 1; }
7554 #endif
7556 main ()
7558 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
7559 test_array [0] = 0
7562 return 0;
7564 _ACEOF
7565 rm -f conftest.$ac_objext
7566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7567 (eval $ac_compile) 2>&5
7568 ac_status=$?
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); } &&
7571 { ac_try='test -s conftest.$ac_objext'
7572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7573 (eval $ac_try) 2>&5
7574 ac_status=$?
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); }; }; then
7577 ac_lo=$ac_mid; break
7578 else
7579 echo "$as_me: failed program was:" >&5
7580 cat conftest.$ac_ext >&5
7581 ac_hi=`expr '(' $ac_mid ')' - 1`
7582 if test $ac_mid -le $ac_hi; then
7583 ac_lo= ac_hi=
7584 break
7586 ac_mid=`expr 2 '*' $ac_mid`
7588 rm -f conftest.$ac_objext conftest.$ac_ext
7589 done
7590 else
7591 echo "$as_me: failed program was:" >&5
7592 cat conftest.$ac_ext >&5
7593 ac_lo= ac_hi=
7595 rm -f conftest.$ac_objext conftest.$ac_ext
7597 rm -f conftest.$ac_objext conftest.$ac_ext
7598 # Binary search between lo and hi bounds.
7599 while test "x$ac_lo" != "x$ac_hi"; do
7600 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7601 cat >conftest.$ac_ext <<_ACEOF
7602 #line $LINENO "configure"
7603 #include "confdefs.h"
7604 $ac_includes_default
7605 #ifdef F77_DUMMY_MAIN
7606 # ifdef __cplusplus
7607 extern "C"
7608 # endif
7609 int F77_DUMMY_MAIN() { return 1; }
7610 #endif
7612 main ()
7614 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
7615 test_array [0] = 0
7618 return 0;
7620 _ACEOF
7621 rm -f conftest.$ac_objext
7622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7623 (eval $ac_compile) 2>&5
7624 ac_status=$?
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); } &&
7627 { ac_try='test -s conftest.$ac_objext'
7628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629 (eval $ac_try) 2>&5
7630 ac_status=$?
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); }; }; then
7633 ac_hi=$ac_mid
7634 else
7635 echo "$as_me: failed program was:" >&5
7636 cat conftest.$ac_ext >&5
7637 ac_lo=`expr '(' $ac_mid ')' + 1`
7639 rm -f conftest.$ac_objext conftest.$ac_ext
7640 done
7641 case $ac_lo in
7642 ?*) ac_cv_sizeof_double=$ac_lo;;
7643 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5
7644 echo "$as_me: error: cannot compute sizeof (double), 77" >&2;}
7645 { (exit 1); exit 1; }; } ;;
7646 esac
7647 else
7648 if test "$cross_compiling" = yes; then
7649 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7650 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7651 { (exit 1); exit 1; }; }
7652 else
7653 cat >conftest.$ac_ext <<_ACEOF
7654 #line $LINENO "configure"
7655 #include "confdefs.h"
7656 $ac_includes_default
7657 long longval () { return (long) (sizeof (double)); }
7658 unsigned long ulongval () { return (long) (sizeof (double)); }
7659 #include <stdio.h>
7660 #include <stdlib.h>
7661 #ifdef F77_DUMMY_MAIN
7662 # ifdef __cplusplus
7663 extern "C"
7664 # endif
7665 int F77_DUMMY_MAIN() { return 1; }
7666 #endif
7668 main ()
7671 FILE *f = fopen ("conftest.val", "w");
7672 if (! f)
7673 exit (1);
7674 if (((long) (sizeof (double))) < 0)
7676 long i = longval ();
7677 if (i != ((long) (sizeof (double))))
7678 exit (1);
7679 fprintf (f, "%ld\n", i);
7681 else
7683 unsigned long i = ulongval ();
7684 if (i != ((long) (sizeof (double))))
7685 exit (1);
7686 fprintf (f, "%lu\n", i);
7688 exit (ferror (f) || fclose (f) != 0);
7691 return 0;
7693 _ACEOF
7694 rm -f conftest$ac_exeext
7695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7696 (eval $ac_link) 2>&5
7697 ac_status=$?
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701 (eval $ac_try) 2>&5
7702 ac_status=$?
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); }; }; then
7705 ac_cv_sizeof_double=`cat conftest.val`
7706 else
7707 echo "$as_me: program exited with status $ac_status" >&5
7708 echo "$as_me: failed program was:" >&5
7709 cat conftest.$ac_ext >&5
7710 ( exit $ac_status )
7711 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5
7712 echo "$as_me: error: cannot compute sizeof (double), 77" >&2;}
7713 { (exit 1); exit 1; }; }
7715 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7718 rm -f conftest.val
7719 else
7720 ac_cv_sizeof_double=0
7723 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
7724 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
7725 cat >>confdefs.h <<_ACEOF
7726 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
7727 _ACEOF
7730 echo "$as_me:$LINENO: checking for fpos_t" >&5
7731 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
7732 if test "${ac_cv_type_fpos_t+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
7734 else
7735 cat >conftest.$ac_ext <<_ACEOF
7736 #line $LINENO "configure"
7737 #include "confdefs.h"
7738 $ac_includes_default
7739 #ifdef F77_DUMMY_MAIN
7740 # ifdef __cplusplus
7741 extern "C"
7742 # endif
7743 int F77_DUMMY_MAIN() { return 1; }
7744 #endif
7746 main ()
7748 if ((fpos_t *) 0)
7749 return 0;
7750 if (sizeof (fpos_t))
7751 return 0;
7753 return 0;
7755 _ACEOF
7756 rm -f conftest.$ac_objext
7757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7758 (eval $ac_compile) 2>&5
7759 ac_status=$?
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } &&
7762 { ac_try='test -s conftest.$ac_objext'
7763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7764 (eval $ac_try) 2>&5
7765 ac_status=$?
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); }; }; then
7768 ac_cv_type_fpos_t=yes
7769 else
7770 echo "$as_me: failed program was:" >&5
7771 cat conftest.$ac_ext >&5
7772 ac_cv_type_fpos_t=no
7774 rm -f conftest.$ac_objext conftest.$ac_ext
7776 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
7777 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
7779 echo "$as_me:$LINENO: checking size of fpos_t" >&5
7780 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
7781 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 else
7784 if test "$ac_cv_type_fpos_t" = yes; then
7785 # The cast to unsigned long works around a bug in the HP C Compiler
7786 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7787 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7788 # This bug is HP SR number 8606223364.
7789 if test "$cross_compiling" = yes; then
7790 # Depending upon the size, compute the lo and hi bounds.
7791 cat >conftest.$ac_ext <<_ACEOF
7792 #line $LINENO "configure"
7793 #include "confdefs.h"
7794 $ac_includes_default
7795 #ifdef F77_DUMMY_MAIN
7796 # ifdef __cplusplus
7797 extern "C"
7798 # endif
7799 int F77_DUMMY_MAIN() { return 1; }
7800 #endif
7802 main ()
7804 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
7805 test_array [0] = 0
7808 return 0;
7810 _ACEOF
7811 rm -f conftest.$ac_objext
7812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7813 (eval $ac_compile) 2>&5
7814 ac_status=$?
7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); } &&
7817 { ac_try='test -s conftest.$ac_objext'
7818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7819 (eval $ac_try) 2>&5
7820 ac_status=$?
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); }; }; then
7823 ac_lo=0 ac_mid=0
7824 while :; do
7825 cat >conftest.$ac_ext <<_ACEOF
7826 #line $LINENO "configure"
7827 #include "confdefs.h"
7828 $ac_includes_default
7829 #ifdef F77_DUMMY_MAIN
7830 # ifdef __cplusplus
7831 extern "C"
7832 # endif
7833 int F77_DUMMY_MAIN() { return 1; }
7834 #endif
7836 main ()
7838 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
7839 test_array [0] = 0
7842 return 0;
7844 _ACEOF
7845 rm -f conftest.$ac_objext
7846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7847 (eval $ac_compile) 2>&5
7848 ac_status=$?
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); } &&
7851 { ac_try='test -s conftest.$ac_objext'
7852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7853 (eval $ac_try) 2>&5
7854 ac_status=$?
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); }; }; then
7857 ac_hi=$ac_mid; break
7858 else
7859 echo "$as_me: failed program was:" >&5
7860 cat conftest.$ac_ext >&5
7861 ac_lo=`expr $ac_mid + 1`
7862 if test $ac_lo -le $ac_mid; then
7863 ac_lo= ac_hi=
7864 break
7866 ac_mid=`expr 2 '*' $ac_mid + 1`
7868 rm -f conftest.$ac_objext conftest.$ac_ext
7869 done
7870 else
7871 echo "$as_me: failed program was:" >&5
7872 cat conftest.$ac_ext >&5
7873 cat >conftest.$ac_ext <<_ACEOF
7874 #line $LINENO "configure"
7875 #include "confdefs.h"
7876 $ac_includes_default
7877 #ifdef F77_DUMMY_MAIN
7878 # ifdef __cplusplus
7879 extern "C"
7880 # endif
7881 int F77_DUMMY_MAIN() { return 1; }
7882 #endif
7884 main ()
7886 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
7887 test_array [0] = 0
7890 return 0;
7892 _ACEOF
7893 rm -f conftest.$ac_objext
7894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7895 (eval $ac_compile) 2>&5
7896 ac_status=$?
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); } &&
7899 { ac_try='test -s conftest.$ac_objext'
7900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901 (eval $ac_try) 2>&5
7902 ac_status=$?
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; }; then
7905 ac_hi=-1 ac_mid=-1
7906 while :; do
7907 cat >conftest.$ac_ext <<_ACEOF
7908 #line $LINENO "configure"
7909 #include "confdefs.h"
7910 $ac_includes_default
7911 #ifdef F77_DUMMY_MAIN
7912 # ifdef __cplusplus
7913 extern "C"
7914 # endif
7915 int F77_DUMMY_MAIN() { return 1; }
7916 #endif
7918 main ()
7920 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
7921 test_array [0] = 0
7924 return 0;
7926 _ACEOF
7927 rm -f conftest.$ac_objext
7928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7929 (eval $ac_compile) 2>&5
7930 ac_status=$?
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } &&
7933 { ac_try='test -s conftest.$ac_objext'
7934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7935 (eval $ac_try) 2>&5
7936 ac_status=$?
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); }; }; then
7939 ac_lo=$ac_mid; break
7940 else
7941 echo "$as_me: failed program was:" >&5
7942 cat conftest.$ac_ext >&5
7943 ac_hi=`expr '(' $ac_mid ')' - 1`
7944 if test $ac_mid -le $ac_hi; then
7945 ac_lo= ac_hi=
7946 break
7948 ac_mid=`expr 2 '*' $ac_mid`
7950 rm -f conftest.$ac_objext conftest.$ac_ext
7951 done
7952 else
7953 echo "$as_me: failed program was:" >&5
7954 cat conftest.$ac_ext >&5
7955 ac_lo= ac_hi=
7957 rm -f conftest.$ac_objext conftest.$ac_ext
7959 rm -f conftest.$ac_objext conftest.$ac_ext
7960 # Binary search between lo and hi bounds.
7961 while test "x$ac_lo" != "x$ac_hi"; do
7962 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7963 cat >conftest.$ac_ext <<_ACEOF
7964 #line $LINENO "configure"
7965 #include "confdefs.h"
7966 $ac_includes_default
7967 #ifdef F77_DUMMY_MAIN
7968 # ifdef __cplusplus
7969 extern "C"
7970 # endif
7971 int F77_DUMMY_MAIN() { return 1; }
7972 #endif
7974 main ()
7976 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
7977 test_array [0] = 0
7980 return 0;
7982 _ACEOF
7983 rm -f conftest.$ac_objext
7984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7985 (eval $ac_compile) 2>&5
7986 ac_status=$?
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); } &&
7989 { ac_try='test -s conftest.$ac_objext'
7990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7991 (eval $ac_try) 2>&5
7992 ac_status=$?
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); }; }; then
7995 ac_hi=$ac_mid
7996 else
7997 echo "$as_me: failed program was:" >&5
7998 cat conftest.$ac_ext >&5
7999 ac_lo=`expr '(' $ac_mid ')' + 1`
8001 rm -f conftest.$ac_objext conftest.$ac_ext
8002 done
8003 case $ac_lo in
8004 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
8005 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5
8006 echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;}
8007 { (exit 1); exit 1; }; } ;;
8008 esac
8009 else
8010 if test "$cross_compiling" = yes; then
8011 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8012 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8013 { (exit 1); exit 1; }; }
8014 else
8015 cat >conftest.$ac_ext <<_ACEOF
8016 #line $LINENO "configure"
8017 #include "confdefs.h"
8018 $ac_includes_default
8019 long longval () { return (long) (sizeof (fpos_t)); }
8020 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
8021 #include <stdio.h>
8022 #include <stdlib.h>
8023 #ifdef F77_DUMMY_MAIN
8024 # ifdef __cplusplus
8025 extern "C"
8026 # endif
8027 int F77_DUMMY_MAIN() { return 1; }
8028 #endif
8030 main ()
8033 FILE *f = fopen ("conftest.val", "w");
8034 if (! f)
8035 exit (1);
8036 if (((long) (sizeof (fpos_t))) < 0)
8038 long i = longval ();
8039 if (i != ((long) (sizeof (fpos_t))))
8040 exit (1);
8041 fprintf (f, "%ld\n", i);
8043 else
8045 unsigned long i = ulongval ();
8046 if (i != ((long) (sizeof (fpos_t))))
8047 exit (1);
8048 fprintf (f, "%lu\n", i);
8050 exit (ferror (f) || fclose (f) != 0);
8053 return 0;
8055 _ACEOF
8056 rm -f conftest$ac_exeext
8057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8058 (eval $ac_link) 2>&5
8059 ac_status=$?
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8063 (eval $ac_try) 2>&5
8064 ac_status=$?
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); }; }; then
8067 ac_cv_sizeof_fpos_t=`cat conftest.val`
8068 else
8069 echo "$as_me: program exited with status $ac_status" >&5
8070 echo "$as_me: failed program was:" >&5
8071 cat conftest.$ac_ext >&5
8072 ( exit $ac_status )
8073 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5
8074 echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;}
8075 { (exit 1); exit 1; }; }
8077 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8080 rm -f conftest.val
8081 else
8082 ac_cv_sizeof_fpos_t=0
8085 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
8086 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
8087 cat >>confdefs.h <<_ACEOF
8088 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
8089 _ACEOF
8093 echo "$as_me:$LINENO: checking for long long support" >&5
8094 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
8095 have_long_long=no
8096 cat >conftest.$ac_ext <<_ACEOF
8097 #line $LINENO "configure"
8098 #include "confdefs.h"
8100 #ifdef F77_DUMMY_MAIN
8101 # ifdef __cplusplus
8102 extern "C"
8103 # endif
8104 int F77_DUMMY_MAIN() { return 1; }
8105 #endif
8107 main ()
8109 long long x; x = (long long)0;
8111 return 0;
8113 _ACEOF
8114 rm -f conftest.$ac_objext
8115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8116 (eval $ac_compile) 2>&5
8117 ac_status=$?
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } &&
8120 { ac_try='test -s conftest.$ac_objext'
8121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8122 (eval $ac_try) 2>&5
8123 ac_status=$?
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); }; }; then
8128 cat >>confdefs.h <<\_ACEOF
8129 #define HAVE_LONG_LONG 1
8130 _ACEOF
8132 have_long_long=yes
8134 else
8135 echo "$as_me: failed program was:" >&5
8136 cat conftest.$ac_ext >&5
8138 rm -f conftest.$ac_objext conftest.$ac_ext
8139 echo "$as_me:$LINENO: result: $have_long_long" >&5
8140 echo "${ECHO_T}$have_long_long" >&6
8141 if test "$have_long_long" = yes ; then
8142 echo "$as_me:$LINENO: checking for long long" >&5
8143 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8144 if test "${ac_cv_type_long_long+set}" = set; then
8145 echo $ECHO_N "(cached) $ECHO_C" >&6
8146 else
8147 cat >conftest.$ac_ext <<_ACEOF
8148 #line $LINENO "configure"
8149 #include "confdefs.h"
8150 $ac_includes_default
8151 #ifdef F77_DUMMY_MAIN
8152 # ifdef __cplusplus
8153 extern "C"
8154 # endif
8155 int F77_DUMMY_MAIN() { return 1; }
8156 #endif
8158 main ()
8160 if ((long long *) 0)
8161 return 0;
8162 if (sizeof (long long))
8163 return 0;
8165 return 0;
8167 _ACEOF
8168 rm -f conftest.$ac_objext
8169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8170 (eval $ac_compile) 2>&5
8171 ac_status=$?
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); } &&
8174 { ac_try='test -s conftest.$ac_objext'
8175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8176 (eval $ac_try) 2>&5
8177 ac_status=$?
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); }; }; then
8180 ac_cv_type_long_long=yes
8181 else
8182 echo "$as_me: failed program was:" >&5
8183 cat conftest.$ac_ext >&5
8184 ac_cv_type_long_long=no
8186 rm -f conftest.$ac_objext conftest.$ac_ext
8188 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8189 echo "${ECHO_T}$ac_cv_type_long_long" >&6
8191 echo "$as_me:$LINENO: checking size of long long" >&5
8192 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8193 if test "${ac_cv_sizeof_long_long+set}" = set; then
8194 echo $ECHO_N "(cached) $ECHO_C" >&6
8195 else
8196 if test "$ac_cv_type_long_long" = yes; then
8197 # The cast to unsigned long works around a bug in the HP C Compiler
8198 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8199 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8200 # This bug is HP SR number 8606223364.
8201 if test "$cross_compiling" = yes; then
8202 # Depending upon the size, compute the lo and hi bounds.
8203 cat >conftest.$ac_ext <<_ACEOF
8204 #line $LINENO "configure"
8205 #include "confdefs.h"
8206 $ac_includes_default
8207 #ifdef F77_DUMMY_MAIN
8208 # ifdef __cplusplus
8209 extern "C"
8210 # endif
8211 int F77_DUMMY_MAIN() { return 1; }
8212 #endif
8214 main ()
8216 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
8217 test_array [0] = 0
8220 return 0;
8222 _ACEOF
8223 rm -f conftest.$ac_objext
8224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8225 (eval $ac_compile) 2>&5
8226 ac_status=$?
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); } &&
8229 { ac_try='test -s conftest.$ac_objext'
8230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8231 (eval $ac_try) 2>&5
8232 ac_status=$?
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); }; }; then
8235 ac_lo=0 ac_mid=0
8236 while :; do
8237 cat >conftest.$ac_ext <<_ACEOF
8238 #line $LINENO "configure"
8239 #include "confdefs.h"
8240 $ac_includes_default
8241 #ifdef F77_DUMMY_MAIN
8242 # ifdef __cplusplus
8243 extern "C"
8244 # endif
8245 int F77_DUMMY_MAIN() { return 1; }
8246 #endif
8248 main ()
8250 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8251 test_array [0] = 0
8254 return 0;
8256 _ACEOF
8257 rm -f conftest.$ac_objext
8258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8259 (eval $ac_compile) 2>&5
8260 ac_status=$?
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); } &&
8263 { ac_try='test -s conftest.$ac_objext'
8264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8265 (eval $ac_try) 2>&5
8266 ac_status=$?
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); }; }; then
8269 ac_hi=$ac_mid; break
8270 else
8271 echo "$as_me: failed program was:" >&5
8272 cat conftest.$ac_ext >&5
8273 ac_lo=`expr $ac_mid + 1`
8274 if test $ac_lo -le $ac_mid; then
8275 ac_lo= ac_hi=
8276 break
8278 ac_mid=`expr 2 '*' $ac_mid + 1`
8280 rm -f conftest.$ac_objext conftest.$ac_ext
8281 done
8282 else
8283 echo "$as_me: failed program was:" >&5
8284 cat conftest.$ac_ext >&5
8285 cat >conftest.$ac_ext <<_ACEOF
8286 #line $LINENO "configure"
8287 #include "confdefs.h"
8288 $ac_includes_default
8289 #ifdef F77_DUMMY_MAIN
8290 # ifdef __cplusplus
8291 extern "C"
8292 # endif
8293 int F77_DUMMY_MAIN() { return 1; }
8294 #endif
8296 main ()
8298 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
8299 test_array [0] = 0
8302 return 0;
8304 _ACEOF
8305 rm -f conftest.$ac_objext
8306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8307 (eval $ac_compile) 2>&5
8308 ac_status=$?
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); } &&
8311 { ac_try='test -s conftest.$ac_objext'
8312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8313 (eval $ac_try) 2>&5
8314 ac_status=$?
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); }; }; then
8317 ac_hi=-1 ac_mid=-1
8318 while :; do
8319 cat >conftest.$ac_ext <<_ACEOF
8320 #line $LINENO "configure"
8321 #include "confdefs.h"
8322 $ac_includes_default
8323 #ifdef F77_DUMMY_MAIN
8324 # ifdef __cplusplus
8325 extern "C"
8326 # endif
8327 int F77_DUMMY_MAIN() { return 1; }
8328 #endif
8330 main ()
8332 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
8333 test_array [0] = 0
8336 return 0;
8338 _ACEOF
8339 rm -f conftest.$ac_objext
8340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8341 (eval $ac_compile) 2>&5
8342 ac_status=$?
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); } &&
8345 { ac_try='test -s conftest.$ac_objext'
8346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8347 (eval $ac_try) 2>&5
8348 ac_status=$?
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); }; }; then
8351 ac_lo=$ac_mid; break
8352 else
8353 echo "$as_me: failed program was:" >&5
8354 cat conftest.$ac_ext >&5
8355 ac_hi=`expr '(' $ac_mid ')' - 1`
8356 if test $ac_mid -le $ac_hi; then
8357 ac_lo= ac_hi=
8358 break
8360 ac_mid=`expr 2 '*' $ac_mid`
8362 rm -f conftest.$ac_objext conftest.$ac_ext
8363 done
8364 else
8365 echo "$as_me: failed program was:" >&5
8366 cat conftest.$ac_ext >&5
8367 ac_lo= ac_hi=
8369 rm -f conftest.$ac_objext conftest.$ac_ext
8371 rm -f conftest.$ac_objext conftest.$ac_ext
8372 # Binary search between lo and hi bounds.
8373 while test "x$ac_lo" != "x$ac_hi"; do
8374 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8375 cat >conftest.$ac_ext <<_ACEOF
8376 #line $LINENO "configure"
8377 #include "confdefs.h"
8378 $ac_includes_default
8379 #ifdef F77_DUMMY_MAIN
8380 # ifdef __cplusplus
8381 extern "C"
8382 # endif
8383 int F77_DUMMY_MAIN() { return 1; }
8384 #endif
8386 main ()
8388 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8389 test_array [0] = 0
8392 return 0;
8394 _ACEOF
8395 rm -f conftest.$ac_objext
8396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8397 (eval $ac_compile) 2>&5
8398 ac_status=$?
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); } &&
8401 { ac_try='test -s conftest.$ac_objext'
8402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403 (eval $ac_try) 2>&5
8404 ac_status=$?
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; }; then
8407 ac_hi=$ac_mid
8408 else
8409 echo "$as_me: failed program was:" >&5
8410 cat conftest.$ac_ext >&5
8411 ac_lo=`expr '(' $ac_mid ')' + 1`
8413 rm -f conftest.$ac_objext conftest.$ac_ext
8414 done
8415 case $ac_lo in
8416 ?*) ac_cv_sizeof_long_long=$ac_lo;;
8417 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
8418 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
8419 { (exit 1); exit 1; }; } ;;
8420 esac
8421 else
8422 if test "$cross_compiling" = yes; then
8423 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8424 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8425 { (exit 1); exit 1; }; }
8426 else
8427 cat >conftest.$ac_ext <<_ACEOF
8428 #line $LINENO "configure"
8429 #include "confdefs.h"
8430 $ac_includes_default
8431 long longval () { return (long) (sizeof (long long)); }
8432 unsigned long ulongval () { return (long) (sizeof (long long)); }
8433 #include <stdio.h>
8434 #include <stdlib.h>
8435 #ifdef F77_DUMMY_MAIN
8436 # ifdef __cplusplus
8437 extern "C"
8438 # endif
8439 int F77_DUMMY_MAIN() { return 1; }
8440 #endif
8442 main ()
8445 FILE *f = fopen ("conftest.val", "w");
8446 if (! f)
8447 exit (1);
8448 if (((long) (sizeof (long long))) < 0)
8450 long i = longval ();
8451 if (i != ((long) (sizeof (long long))))
8452 exit (1);
8453 fprintf (f, "%ld\n", i);
8455 else
8457 unsigned long i = ulongval ();
8458 if (i != ((long) (sizeof (long long))))
8459 exit (1);
8460 fprintf (f, "%lu\n", i);
8462 exit (ferror (f) || fclose (f) != 0);
8465 return 0;
8467 _ACEOF
8468 rm -f conftest$ac_exeext
8469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8470 (eval $ac_link) 2>&5
8471 ac_status=$?
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8475 (eval $ac_try) 2>&5
8476 ac_status=$?
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); }; }; then
8479 ac_cv_sizeof_long_long=`cat conftest.val`
8480 else
8481 echo "$as_me: program exited with status $ac_status" >&5
8482 echo "$as_me: failed program was:" >&5
8483 cat conftest.$ac_ext >&5
8484 ( exit $ac_status )
8485 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
8486 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
8487 { (exit 1); exit 1; }; }
8489 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8492 rm -f conftest.val
8493 else
8494 ac_cv_sizeof_long_long=0
8497 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8498 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8499 cat >>confdefs.h <<_ACEOF
8500 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8501 _ACEOF
8506 echo "$as_me:$LINENO: checking for uintptr_t support" >&5
8507 echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6
8508 have_uintptr_t=no
8509 cat >conftest.$ac_ext <<_ACEOF
8510 #line $LINENO "configure"
8511 #include "confdefs.h"
8513 #ifdef F77_DUMMY_MAIN
8514 # ifdef __cplusplus
8515 extern "C"
8516 # endif
8517 int F77_DUMMY_MAIN() { return 1; }
8518 #endif
8520 main ()
8522 uintptr_t x; x = (uintptr_t)0;
8524 return 0;
8526 _ACEOF
8527 rm -f conftest.$ac_objext
8528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8529 (eval $ac_compile) 2>&5
8530 ac_status=$?
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); } &&
8533 { ac_try='test -s conftest.$ac_objext'
8534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535 (eval $ac_try) 2>&5
8536 ac_status=$?
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); }; }; then
8541 cat >>confdefs.h <<\_ACEOF
8542 #define HAVE_UINTPTR_T 1
8543 _ACEOF
8545 have_uintptr_t=yes
8547 else
8548 echo "$as_me: failed program was:" >&5
8549 cat conftest.$ac_ext >&5
8551 rm -f conftest.$ac_objext conftest.$ac_ext
8552 echo "$as_me:$LINENO: result: $have_uintptr_t" >&5
8553 echo "${ECHO_T}$have_uintptr_t" >&6
8554 if test "$have_uintptr_t" = yes ; then
8555 echo "$as_me:$LINENO: checking for uintptr_t" >&5
8556 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
8557 if test "${ac_cv_type_uintptr_t+set}" = set; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
8559 else
8560 cat >conftest.$ac_ext <<_ACEOF
8561 #line $LINENO "configure"
8562 #include "confdefs.h"
8563 $ac_includes_default
8564 #ifdef F77_DUMMY_MAIN
8565 # ifdef __cplusplus
8566 extern "C"
8567 # endif
8568 int F77_DUMMY_MAIN() { return 1; }
8569 #endif
8571 main ()
8573 if ((uintptr_t *) 0)
8574 return 0;
8575 if (sizeof (uintptr_t))
8576 return 0;
8578 return 0;
8580 _ACEOF
8581 rm -f conftest.$ac_objext
8582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8583 (eval $ac_compile) 2>&5
8584 ac_status=$?
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); } &&
8587 { ac_try='test -s conftest.$ac_objext'
8588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8589 (eval $ac_try) 2>&5
8590 ac_status=$?
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; }; then
8593 ac_cv_type_uintptr_t=yes
8594 else
8595 echo "$as_me: failed program was:" >&5
8596 cat conftest.$ac_ext >&5
8597 ac_cv_type_uintptr_t=no
8599 rm -f conftest.$ac_objext conftest.$ac_ext
8601 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
8602 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
8604 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
8605 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
8606 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
8607 echo $ECHO_N "(cached) $ECHO_C" >&6
8608 else
8609 if test "$ac_cv_type_uintptr_t" = yes; then
8610 # The cast to unsigned long works around a bug in the HP C Compiler
8611 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8612 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8613 # This bug is HP SR number 8606223364.
8614 if test "$cross_compiling" = yes; then
8615 # Depending upon the size, compute the lo and hi bounds.
8616 cat >conftest.$ac_ext <<_ACEOF
8617 #line $LINENO "configure"
8618 #include "confdefs.h"
8619 $ac_includes_default
8620 #ifdef F77_DUMMY_MAIN
8621 # ifdef __cplusplus
8622 extern "C"
8623 # endif
8624 int F77_DUMMY_MAIN() { return 1; }
8625 #endif
8627 main ()
8629 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
8630 test_array [0] = 0
8633 return 0;
8635 _ACEOF
8636 rm -f conftest.$ac_objext
8637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8638 (eval $ac_compile) 2>&5
8639 ac_status=$?
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); } &&
8642 { ac_try='test -s conftest.$ac_objext'
8643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8644 (eval $ac_try) 2>&5
8645 ac_status=$?
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); }; }; then
8648 ac_lo=0 ac_mid=0
8649 while :; do
8650 cat >conftest.$ac_ext <<_ACEOF
8651 #line $LINENO "configure"
8652 #include "confdefs.h"
8653 $ac_includes_default
8654 #ifdef F77_DUMMY_MAIN
8655 # ifdef __cplusplus
8656 extern "C"
8657 # endif
8658 int F77_DUMMY_MAIN() { return 1; }
8659 #endif
8661 main ()
8663 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
8664 test_array [0] = 0
8667 return 0;
8669 _ACEOF
8670 rm -f conftest.$ac_objext
8671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8672 (eval $ac_compile) 2>&5
8673 ac_status=$?
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); } &&
8676 { ac_try='test -s conftest.$ac_objext'
8677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8678 (eval $ac_try) 2>&5
8679 ac_status=$?
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); }; }; then
8682 ac_hi=$ac_mid; break
8683 else
8684 echo "$as_me: failed program was:" >&5
8685 cat conftest.$ac_ext >&5
8686 ac_lo=`expr $ac_mid + 1`
8687 if test $ac_lo -le $ac_mid; then
8688 ac_lo= ac_hi=
8689 break
8691 ac_mid=`expr 2 '*' $ac_mid + 1`
8693 rm -f conftest.$ac_objext conftest.$ac_ext
8694 done
8695 else
8696 echo "$as_me: failed program was:" >&5
8697 cat conftest.$ac_ext >&5
8698 cat >conftest.$ac_ext <<_ACEOF
8699 #line $LINENO "configure"
8700 #include "confdefs.h"
8701 $ac_includes_default
8702 #ifdef F77_DUMMY_MAIN
8703 # ifdef __cplusplus
8704 extern "C"
8705 # endif
8706 int F77_DUMMY_MAIN() { return 1; }
8707 #endif
8709 main ()
8711 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
8712 test_array [0] = 0
8715 return 0;
8717 _ACEOF
8718 rm -f conftest.$ac_objext
8719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8720 (eval $ac_compile) 2>&5
8721 ac_status=$?
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); } &&
8724 { ac_try='test -s conftest.$ac_objext'
8725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726 (eval $ac_try) 2>&5
8727 ac_status=$?
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); }; }; then
8730 ac_hi=-1 ac_mid=-1
8731 while :; do
8732 cat >conftest.$ac_ext <<_ACEOF
8733 #line $LINENO "configure"
8734 #include "confdefs.h"
8735 $ac_includes_default
8736 #ifdef F77_DUMMY_MAIN
8737 # ifdef __cplusplus
8738 extern "C"
8739 # endif
8740 int F77_DUMMY_MAIN() { return 1; }
8741 #endif
8743 main ()
8745 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
8746 test_array [0] = 0
8749 return 0;
8751 _ACEOF
8752 rm -f conftest.$ac_objext
8753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8754 (eval $ac_compile) 2>&5
8755 ac_status=$?
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); } &&
8758 { ac_try='test -s conftest.$ac_objext'
8759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760 (eval $ac_try) 2>&5
8761 ac_status=$?
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); }; }; then
8764 ac_lo=$ac_mid; break
8765 else
8766 echo "$as_me: failed program was:" >&5
8767 cat conftest.$ac_ext >&5
8768 ac_hi=`expr '(' $ac_mid ')' - 1`
8769 if test $ac_mid -le $ac_hi; then
8770 ac_lo= ac_hi=
8771 break
8773 ac_mid=`expr 2 '*' $ac_mid`
8775 rm -f conftest.$ac_objext conftest.$ac_ext
8776 done
8777 else
8778 echo "$as_me: failed program was:" >&5
8779 cat conftest.$ac_ext >&5
8780 ac_lo= ac_hi=
8782 rm -f conftest.$ac_objext conftest.$ac_ext
8784 rm -f conftest.$ac_objext conftest.$ac_ext
8785 # Binary search between lo and hi bounds.
8786 while test "x$ac_lo" != "x$ac_hi"; do
8787 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8788 cat >conftest.$ac_ext <<_ACEOF
8789 #line $LINENO "configure"
8790 #include "confdefs.h"
8791 $ac_includes_default
8792 #ifdef F77_DUMMY_MAIN
8793 # ifdef __cplusplus
8794 extern "C"
8795 # endif
8796 int F77_DUMMY_MAIN() { return 1; }
8797 #endif
8799 main ()
8801 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
8802 test_array [0] = 0
8805 return 0;
8807 _ACEOF
8808 rm -f conftest.$ac_objext
8809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8810 (eval $ac_compile) 2>&5
8811 ac_status=$?
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); } &&
8814 { ac_try='test -s conftest.$ac_objext'
8815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8816 (eval $ac_try) 2>&5
8817 ac_status=$?
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); }; }; then
8820 ac_hi=$ac_mid
8821 else
8822 echo "$as_me: failed program was:" >&5
8823 cat conftest.$ac_ext >&5
8824 ac_lo=`expr '(' $ac_mid ')' + 1`
8826 rm -f conftest.$ac_objext conftest.$ac_ext
8827 done
8828 case $ac_lo in
8829 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
8830 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5
8831 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;}
8832 { (exit 1); exit 1; }; } ;;
8833 esac
8834 else
8835 if test "$cross_compiling" = yes; then
8836 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8837 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8838 { (exit 1); exit 1; }; }
8839 else
8840 cat >conftest.$ac_ext <<_ACEOF
8841 #line $LINENO "configure"
8842 #include "confdefs.h"
8843 $ac_includes_default
8844 long longval () { return (long) (sizeof (uintptr_t)); }
8845 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
8846 #include <stdio.h>
8847 #include <stdlib.h>
8848 #ifdef F77_DUMMY_MAIN
8849 # ifdef __cplusplus
8850 extern "C"
8851 # endif
8852 int F77_DUMMY_MAIN() { return 1; }
8853 #endif
8855 main ()
8858 FILE *f = fopen ("conftest.val", "w");
8859 if (! f)
8860 exit (1);
8861 if (((long) (sizeof (uintptr_t))) < 0)
8863 long i = longval ();
8864 if (i != ((long) (sizeof (uintptr_t))))
8865 exit (1);
8866 fprintf (f, "%ld\n", i);
8868 else
8870 unsigned long i = ulongval ();
8871 if (i != ((long) (sizeof (uintptr_t))))
8872 exit (1);
8873 fprintf (f, "%lu\n", i);
8875 exit (ferror (f) || fclose (f) != 0);
8878 return 0;
8880 _ACEOF
8881 rm -f conftest$ac_exeext
8882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8883 (eval $ac_link) 2>&5
8884 ac_status=$?
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8888 (eval $ac_try) 2>&5
8889 ac_status=$?
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); }; }; then
8892 ac_cv_sizeof_uintptr_t=`cat conftest.val`
8893 else
8894 echo "$as_me: program exited with status $ac_status" >&5
8895 echo "$as_me: failed program was:" >&5
8896 cat conftest.$ac_ext >&5
8897 ( exit $ac_status )
8898 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5
8899 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;}
8900 { (exit 1); exit 1; }; }
8902 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8905 rm -f conftest.val
8906 else
8907 ac_cv_sizeof_uintptr_t=0
8910 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
8911 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
8912 cat >>confdefs.h <<_ACEOF
8913 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
8914 _ACEOF
8919 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
8920 echo "$as_me:$LINENO: checking size of off_t" >&5
8921 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
8922 if test "${ac_cv_sizeof_off_t+set}" = set; then
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8924 else
8925 if test "$cross_compiling" = yes; then
8926 ac_cv_sizeof_off_t=4
8927 else
8928 cat >conftest.$ac_ext <<_ACEOF
8929 #line $LINENO "configure"
8930 #include "confdefs.h"
8931 #include <stdio.h>
8932 #include <sys/types.h>
8933 main()
8935 FILE *f=fopen("conftestval", "w");
8936 if (!f) exit(1);
8937 fprintf(f, "%d\n", sizeof(off_t));
8938 exit(0);
8940 _ACEOF
8941 rm -f conftest$ac_exeext
8942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8943 (eval $ac_link) 2>&5
8944 ac_status=$?
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8948 (eval $ac_try) 2>&5
8949 ac_status=$?
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; }; then
8952 ac_cv_sizeof_off_t=`cat conftestval`
8953 else
8954 echo "$as_me: program exited with status $ac_status" >&5
8955 echo "$as_me: failed program was:" >&5
8956 cat conftest.$ac_ext >&5
8957 ( exit $ac_status )
8958 ac_cv_sizeof_off_t=0
8960 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8965 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
8966 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
8968 cat >>confdefs.h <<_ACEOF
8969 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
8970 _ACEOF
8973 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
8974 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
8975 if test "$have_long_long" = yes -a \
8976 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
8977 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
8979 cat >>confdefs.h <<\_ACEOF
8980 #define HAVE_LARGEFILE_SUPPORT 1
8981 _ACEOF
8983 echo "$as_me:$LINENO: result: yes" >&5
8984 echo "${ECHO_T}yes" >&6
8985 else
8986 echo "$as_me:$LINENO: result: no" >&5
8987 echo "${ECHO_T}no" >&6
8990 # AC_CHECK_SIZEOF() doesn't include <time.h>.
8991 echo "$as_me:$LINENO: checking size of time_t" >&5
8992 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
8993 if test "${ac_cv_sizeof_time_t+set}" = set; then
8994 echo $ECHO_N "(cached) $ECHO_C" >&6
8995 else
8996 if test "$cross_compiling" = yes; then
8997 ac_cv_sizeof_time_t=4
8998 else
8999 cat >conftest.$ac_ext <<_ACEOF
9000 #line $LINENO "configure"
9001 #include "confdefs.h"
9002 #include <stdio.h>
9003 #include <time.h>
9004 main()
9006 FILE *f=fopen("conftestval", "w");
9007 if (!f) exit(1);
9008 fprintf(f, "%d\n", sizeof(time_t));
9009 exit(0);
9011 _ACEOF
9012 rm -f conftest$ac_exeext
9013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9014 (eval $ac_link) 2>&5
9015 ac_status=$?
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9019 (eval $ac_try) 2>&5
9020 ac_status=$?
9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 (exit $ac_status); }; }; then
9023 ac_cv_sizeof_time_t=`cat conftestval`
9024 else
9025 echo "$as_me: program exited with status $ac_status" >&5
9026 echo "$as_me: failed program was:" >&5
9027 cat conftest.$ac_ext >&5
9028 ( exit $ac_status )
9029 ac_cv_sizeof_time_t=0
9031 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9036 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
9037 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
9039 cat >>confdefs.h <<_ACEOF
9040 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
9041 _ACEOF
9045 # if have pthread_t then define SIZEOF_PTHREAD_T
9046 ac_save_cc="$CC"
9047 if test "$ac_cv_kpthread" = "yes"
9048 then CC="$CC -Kpthread"
9050 echo "$as_me:$LINENO: checking for pthread_t" >&5
9051 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
9052 have_pthread_t=no
9053 cat >conftest.$ac_ext <<_ACEOF
9054 #line $LINENO "configure"
9055 #include "confdefs.h"
9056 #include <pthread.h>
9057 #ifdef F77_DUMMY_MAIN
9058 # ifdef __cplusplus
9059 extern "C"
9060 # endif
9061 int F77_DUMMY_MAIN() { return 1; }
9062 #endif
9064 main ()
9066 pthread_t x; x = *(pthread_t*)0;
9068 return 0;
9070 _ACEOF
9071 rm -f conftest.$ac_objext
9072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9073 (eval $ac_compile) 2>&5
9074 ac_status=$?
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); } &&
9077 { ac_try='test -s conftest.$ac_objext'
9078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9079 (eval $ac_try) 2>&5
9080 ac_status=$?
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 (exit $ac_status); }; }; then
9083 have_pthread_t=yes
9084 else
9085 echo "$as_me: failed program was:" >&5
9086 cat conftest.$ac_ext >&5
9088 rm -f conftest.$ac_objext conftest.$ac_ext
9089 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
9090 echo "${ECHO_T}$have_pthread_t" >&6
9091 if test "$have_pthread_t" = yes ; then
9092 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
9093 echo "$as_me:$LINENO: checking size of pthread_t" >&5
9094 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
9095 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
9097 else
9098 if test "$cross_compiling" = yes; then
9099 ac_cv_sizeof_pthread_t=4
9100 else
9101 cat >conftest.$ac_ext <<_ACEOF
9102 #line $LINENO "configure"
9103 #include "confdefs.h"
9104 #include <stdio.h>
9105 #include <pthread.h>
9106 main()
9108 FILE *f=fopen("conftestval", "w");
9109 if (!f) exit(1);
9110 fprintf(f, "%d\n", sizeof(pthread_t));
9111 exit(0);
9113 _ACEOF
9114 rm -f conftest$ac_exeext
9115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9116 (eval $ac_link) 2>&5
9117 ac_status=$?
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9121 (eval $ac_try) 2>&5
9122 ac_status=$?
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); }; }; then
9125 ac_cv_sizeof_pthread_t=`cat conftestval`
9126 else
9127 echo "$as_me: program exited with status $ac_status" >&5
9128 echo "$as_me: failed program was:" >&5
9129 cat conftest.$ac_ext >&5
9130 ( exit $ac_status )
9131 ac_cv_sizeof_pthread_t=0
9133 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9138 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
9139 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
9141 cat >>confdefs.h <<_ACEOF
9142 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
9143 _ACEOF
9146 CC="$ac_save_cc"
9148 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
9149 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
9150 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
9151 if test "${enable_toolbox_glue+set}" = set; then
9152 enableval="$enable_toolbox_glue"
9156 if test -z "$enable_toolbox_glue"
9157 then
9158 case $ac_sys_system/$ac_sys_release in
9159 Darwin/*)
9160 enable_toolbox_glue="yes";;
9162 enable_toolbox_glue="no";;
9163 esac
9165 case "$enable_toolbox_glue" in
9166 yes)
9167 extra_frameworks="-framework CoreServices -framework Foundation"
9168 extra_machdep_objs="Python/mactoolboxglue.o"
9169 extra_undefs="-u __dummy -u _PyMac_Error"
9171 cat >>confdefs.h <<\_ACEOF
9172 #define USE_TOOLBOX_OBJECT_GLUE 1
9173 _ACEOF
9177 extra_frameworks=""
9178 extra_machdep_objs=""
9179 extra_undefs=""
9181 esac
9182 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
9183 echo "${ECHO_T}$enable_toolbox_glue" >&6
9186 case $ac_sys_system/$ac_sys_release in
9187 Darwin/1.3*)
9188 LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc"
9189 LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks"
9190 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python'
9191 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
9192 Darwin/*)
9193 LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc"
9194 LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks"
9195 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python'
9196 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
9197 esac
9199 echo "$as_me:$LINENO: checking for --enable-framework" >&5
9200 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
9201 if test "$enable_framework"
9202 then
9203 OPT="$OPT -fno-common -dynamic"
9204 # -F. is needed to allow linking to the framework while
9205 # in the build location.
9206 LDFLAGS="$LDFLAGS -Wl,-F."
9208 cat >>confdefs.h <<\_ACEOF
9209 #define WITH_NEXT_FRAMEWORK 1
9210 _ACEOF
9212 echo "$as_me:$LINENO: result: yes" >&5
9213 echo "${ECHO_T}yes" >&6
9214 else
9215 echo "$as_me:$LINENO: result: no" >&5
9216 echo "${ECHO_T}no" >&6
9219 echo "$as_me:$LINENO: checking for dyld" >&5
9220 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
9221 case $ac_sys_system/$ac_sys_release in
9222 Darwin/*)
9224 cat >>confdefs.h <<\_ACEOF
9225 #define WITH_DYLD 1
9226 _ACEOF
9228 echo "$as_me:$LINENO: result: always on for Darwin" >&5
9229 echo "${ECHO_T}always on for Darwin" >&6
9232 echo "$as_me:$LINENO: result: no" >&5
9233 echo "${ECHO_T}no" >&6
9235 esac
9237 # Set info about shared libraries.
9243 # SO is the extension of shared libraries `(including the dot!)
9244 # -- usually .so, .sl on HP-UX, .dll on Cygwin
9245 echo "$as_me:$LINENO: checking SO" >&5
9246 echo $ECHO_N "checking SO... $ECHO_C" >&6
9247 if test -z "$SO"
9248 then
9249 case $ac_sys_system in
9250 hp*|HP*) SO=.sl;;
9251 CYGWIN*) SO=.dll;;
9252 *) SO=.so;;
9253 esac
9255 echo "$as_me:$LINENO: result: $SO" >&5
9256 echo "${ECHO_T}$SO" >&6
9257 # LDSHARED is the ld *command* used to create shared library
9258 # -- "ld" on SunOS 4.x.x, "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
9259 # (Shared libraries in this instance are shared modules to be loaded into
9260 # Python, as opposed to building Python itself as a shared library.)
9261 echo "$as_me:$LINENO: checking LDSHARED" >&5
9262 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
9263 if test -z "$LDSHARED"
9264 then
9265 case $ac_sys_system/$ac_sys_release in
9266 AIX*)
9267 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
9268 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
9270 BeOS*)
9271 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
9272 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
9274 IRIX/5*) LDSHARED="ld -shared";;
9275 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
9276 SunOS/4*) LDSHARED="ld";;
9277 SunOS/5*)
9278 if test "$GCC" = "yes"
9279 then LDSHARED='$(CC) -shared'
9280 else LDSHARED='$(CC) -G';
9281 fi ;;
9282 hp*|HP*) LDSHARED="ld -b";;
9283 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
9284 DYNIX/ptx*) LDSHARED="ld -G";;
9285 Darwin/1.3*)
9286 LDSHARED='$(CC) $(LDFLAGS) -bundle'
9287 if test "$enable_framework" ; then
9288 # Link against the framework. All externals should be defined.
9289 LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)'
9290 else
9291 # No framework. Ignore undefined symbols, assuming they come from Python
9292 LDSHARED="$LDSHARED -undefined suppress"
9293 fi ;;
9294 Darwin/*)
9295 LDSHARED='$(CC) $(LDFLAGS) -bundle'
9296 if test "$enable_framework" ; then
9297 # Link against the framework. All externals should be defined.
9298 LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)'
9299 else
9300 # No framework, use the Python app as bundle-loader
9301 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
9302 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/$(PYTHON)'
9303 fi ;;
9304 Linux*|GNU*) LDSHARED='$(CC) -shared';;
9305 dgux*) LDSHARED="ld -G";;
9306 BSD/OS*/4*) LDSHARED="gcc -shared";;
9307 OpenBSD*|FreeBSD*)
9308 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
9309 then
9310 LDSHARED="cc -shared ${LDFLAGS}"
9311 else
9312 LDSHARED="ld -Bshareable ${LDFLAGS}"
9313 fi;;
9314 NetBSD*) LDSHARED="cc -shared ${LDFLAGS}";;
9315 OpenUNIX*|UnixWare*)
9316 if test "$GCC" = "yes"
9317 then LDSHARED='$(CC) -shared'
9318 else LDSHARED='$(CC) -G'
9319 fi;;
9320 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
9321 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
9322 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
9323 atheos*) LDSHARED="gcc -shared";;
9324 *) LDSHARED="ld";;
9325 esac
9327 echo "$as_me:$LINENO: result: $LDSHARED" >&5
9328 echo "${ECHO_T}$LDSHARED" >&6
9329 BLDSHARED=${BLDSHARED-$LDSHARED}
9330 # CCSHARED are the C *flags* used to create objects to go into a shared
9331 # library (module) -- this is only needed for a few systems
9332 echo "$as_me:$LINENO: checking CCSHARED" >&5
9333 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
9334 if test -z "$CCSHARED"
9335 then
9336 case $ac_sys_system/$ac_sys_release in
9337 SunOS*) if test "$GCC" = yes;
9338 then CCSHARED="-fPIC";
9339 fi;;
9340 hp*|HP*) if test "$GCC" = yes;
9341 then CCSHARED="-fPIC";
9342 else CCSHARED="+z";
9343 fi;;
9344 Linux*|GNU*) CCSHARED="-fPIC";;
9345 BSD/OS*/4*) CCSHARED="-fpic";;
9346 FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";;
9347 OpenUNIX*|UnixWare*)
9348 if test "$GCC" = "yes"
9349 then CCSHARED="-fPIC"
9350 else CCSHARED="-KPIC"
9351 fi;;
9352 SCO_SV*)
9353 if test "$GCC" = "yes"
9354 then CCSHARED="-fPIC"
9355 else CCSHARED="-Kpic -belf"
9356 fi;;
9357 Monterey*) CCSHARED="-G";;
9358 IRIX*/6*) case $CC in
9359 *gcc*) CCSHARED="-shared";;
9360 *) CCSHARED="";;
9361 esac;;
9362 atheos*) CCSHARED="-fPIC";;
9363 esac
9365 echo "$as_me:$LINENO: result: $CCSHARED" >&5
9366 echo "${ECHO_T}$CCSHARED" >&6
9367 # LINKFORSHARED are the flags passed to the $(CC) command that links
9368 # the python executable -- this is only needed for a few systems
9369 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
9370 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
9371 if test -z "$LINKFORSHARED"
9372 then
9373 case $ac_sys_system/$ac_sys_release in
9374 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
9375 hp*|HP*)
9376 LINKFORSHARED="-Wl,-E -Wl,+s";;
9377 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
9378 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
9379 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
9380 # -u libsys_s pulls in all symbols in libsys
9381 Darwin/*)
9382 # -u __dummy makes the linker aware of the objc runtime
9383 # in System.framework; otherwise, __objcInit (referenced in
9384 # crt1.o) gets erroneously defined as common, which breaks dynamic
9385 # loading of any modules which reference it in System.framework.
9386 # -u _PyMac_Error is needed to pull in the mac toolbox glue, which is
9387 # not used by the core itself but which needs to be in the core so
9388 # that dynamically loaded extension modules have access to it.
9389 LINKFORSHARED="$extra_undefs -framework System"
9390 if test "$enable_framework"
9391 then
9392 LINKFORSHARED="$LINKFORSHARED -framework Python"
9394 LINKFORSHARED="$LINKFORSHARED $extra_frameworks";;
9395 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
9396 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
9397 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
9398 FreeBSD*|NetBSD*|OpenBSD*)
9399 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
9400 then
9401 LINKFORSHARED="-Wl,--export-dynamic"
9402 fi;;
9403 SunOS/5*) case $CC in
9404 *gcc*)
9405 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
9406 then
9407 LINKFORSHARED="-Xlinker --export-dynamic"
9408 fi;;
9409 esac;;
9410 esac
9412 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
9413 echo "${ECHO_T}$LINKFORSHARED" >&6
9416 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
9417 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
9418 if test ! "$LIBRARY" = "$LDLIBRARY"
9419 then
9420 case $ac_sys_system in
9421 CYGWIN*)
9422 # Cygwin needs CCSHARED when building extension DLLs
9423 # but not when building the interpreter DLL.
9424 CFLAGSFORSHARED='';;
9426 CFLAGSFORSHARED='$(CCSHARED)'
9427 esac
9429 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
9430 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
9432 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
9433 # library (with --enable-shared).
9434 # For platforms on which shared libraries are not allowed to have unresolved
9435 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
9436 # if it is not required, since it creates a dependency of the shared library
9437 # to LIBS. This, in turn, means that applications linking the shared libpython
9438 # don't need to link LIBS explicitly. The default should be only changed
9439 # on systems where this approach causes problems.
9441 echo "$as_me:$LINENO: checking SHLIBS" >&5
9442 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
9443 case "$ac_sys_system" in
9445 SHLIBS='$(LIBS)';;
9446 esac
9447 echo "$as_me:$LINENO: result: $SHLIBS" >&5
9448 echo "${ECHO_T}$SHLIBS" >&6
9451 # checks for libraries
9453 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9454 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9455 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9456 echo $ECHO_N "(cached) $ECHO_C" >&6
9457 else
9458 ac_check_lib_save_LIBS=$LIBS
9459 LIBS="-ldl $LIBS"
9460 cat >conftest.$ac_ext <<_ACEOF
9461 #line $LINENO "configure"
9462 #include "confdefs.h"
9464 /* Override any gcc2 internal prototype to avoid an error. */
9465 #ifdef __cplusplus
9466 extern "C"
9467 #endif
9468 /* We use char because int might match the return type of a gcc2
9469 builtin and then its argument prototype would still apply. */
9470 char dlopen ();
9471 #ifdef F77_DUMMY_MAIN
9472 # ifdef __cplusplus
9473 extern "C"
9474 # endif
9475 int F77_DUMMY_MAIN() { return 1; }
9476 #endif
9478 main ()
9480 dlopen ();
9482 return 0;
9484 _ACEOF
9485 rm -f conftest.$ac_objext conftest$ac_exeext
9486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9487 (eval $ac_link) 2>&5
9488 ac_status=$?
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); } &&
9491 { ac_try='test -s conftest$ac_exeext'
9492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9493 (eval $ac_try) 2>&5
9494 ac_status=$?
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); }; }; then
9497 ac_cv_lib_dl_dlopen=yes
9498 else
9499 echo "$as_me: failed program was:" >&5
9500 cat conftest.$ac_ext >&5
9501 ac_cv_lib_dl_dlopen=no
9503 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9504 LIBS=$ac_check_lib_save_LIBS
9506 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9507 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9508 if test $ac_cv_lib_dl_dlopen = yes; then
9509 cat >>confdefs.h <<_ACEOF
9510 #define HAVE_LIBDL 1
9511 _ACEOF
9513 LIBS="-ldl $LIBS"
9516 # Dynamic linking for SunOS/Solaris and SYSV
9518 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9519 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9520 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9521 echo $ECHO_N "(cached) $ECHO_C" >&6
9522 else
9523 ac_check_lib_save_LIBS=$LIBS
9524 LIBS="-ldld $LIBS"
9525 cat >conftest.$ac_ext <<_ACEOF
9526 #line $LINENO "configure"
9527 #include "confdefs.h"
9529 /* Override any gcc2 internal prototype to avoid an error. */
9530 #ifdef __cplusplus
9531 extern "C"
9532 #endif
9533 /* We use char because int might match the return type of a gcc2
9534 builtin and then its argument prototype would still apply. */
9535 char shl_load ();
9536 #ifdef F77_DUMMY_MAIN
9537 # ifdef __cplusplus
9538 extern "C"
9539 # endif
9540 int F77_DUMMY_MAIN() { return 1; }
9541 #endif
9543 main ()
9545 shl_load ();
9547 return 0;
9549 _ACEOF
9550 rm -f conftest.$ac_objext conftest$ac_exeext
9551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9552 (eval $ac_link) 2>&5
9553 ac_status=$?
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); } &&
9556 { ac_try='test -s conftest$ac_exeext'
9557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558 (eval $ac_try) 2>&5
9559 ac_status=$?
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); }; }; then
9562 ac_cv_lib_dld_shl_load=yes
9563 else
9564 echo "$as_me: failed program was:" >&5
9565 cat conftest.$ac_ext >&5
9566 ac_cv_lib_dld_shl_load=no
9568 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9569 LIBS=$ac_check_lib_save_LIBS
9571 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9572 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9573 if test $ac_cv_lib_dld_shl_load = yes; then
9574 cat >>confdefs.h <<_ACEOF
9575 #define HAVE_LIBDLD 1
9576 _ACEOF
9578 LIBS="-ldld $LIBS"
9581 # Dynamic linking for HP-UX
9582 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
9583 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
9584 if test "${ac_cv_search_sem_init+set}" = set; then
9585 echo $ECHO_N "(cached) $ECHO_C" >&6
9586 else
9587 ac_func_search_save_LIBS=$LIBS
9588 ac_cv_search_sem_init=no
9589 cat >conftest.$ac_ext <<_ACEOF
9590 #line $LINENO "configure"
9591 #include "confdefs.h"
9593 /* Override any gcc2 internal prototype to avoid an error. */
9594 #ifdef __cplusplus
9595 extern "C"
9596 #endif
9597 /* We use char because int might match the return type of a gcc2
9598 builtin and then its argument prototype would still apply. */
9599 char sem_init ();
9600 #ifdef F77_DUMMY_MAIN
9601 # ifdef __cplusplus
9602 extern "C"
9603 # endif
9604 int F77_DUMMY_MAIN() { return 1; }
9605 #endif
9607 main ()
9609 sem_init ();
9611 return 0;
9613 _ACEOF
9614 rm -f conftest.$ac_objext conftest$ac_exeext
9615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9616 (eval $ac_link) 2>&5
9617 ac_status=$?
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); } &&
9620 { ac_try='test -s conftest$ac_exeext'
9621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9622 (eval $ac_try) 2>&5
9623 ac_status=$?
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; }; then
9626 ac_cv_search_sem_init="none required"
9627 else
9628 echo "$as_me: failed program was:" >&5
9629 cat conftest.$ac_ext >&5
9631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9632 if test "$ac_cv_search_sem_init" = no; then
9633 for ac_lib in rt posix4; do
9634 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9635 cat >conftest.$ac_ext <<_ACEOF
9636 #line $LINENO "configure"
9637 #include "confdefs.h"
9639 /* Override any gcc2 internal prototype to avoid an error. */
9640 #ifdef __cplusplus
9641 extern "C"
9642 #endif
9643 /* We use char because int might match the return type of a gcc2
9644 builtin and then its argument prototype would still apply. */
9645 char sem_init ();
9646 #ifdef F77_DUMMY_MAIN
9647 # ifdef __cplusplus
9648 extern "C"
9649 # endif
9650 int F77_DUMMY_MAIN() { return 1; }
9651 #endif
9653 main ()
9655 sem_init ();
9657 return 0;
9659 _ACEOF
9660 rm -f conftest.$ac_objext conftest$ac_exeext
9661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9662 (eval $ac_link) 2>&5
9663 ac_status=$?
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); } &&
9666 { ac_try='test -s conftest$ac_exeext'
9667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9668 (eval $ac_try) 2>&5
9669 ac_status=$?
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); }; }; then
9672 ac_cv_search_sem_init="-l$ac_lib"
9673 break
9674 else
9675 echo "$as_me: failed program was:" >&5
9676 cat conftest.$ac_ext >&5
9678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9679 done
9681 LIBS=$ac_func_search_save_LIBS
9683 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
9684 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
9685 if test "$ac_cv_search_sem_init" != no; then
9686 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
9689 # 'Real Time' functions on Solaris,
9690 # posix4 on Solaris 2.6
9692 # checks for system dependent C++ extensions support
9693 case "$ac_sys_system" in
9694 AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
9695 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
9696 cat >conftest.$ac_ext <<_ACEOF
9697 #line $LINENO "configure"
9698 #include "confdefs.h"
9699 #include "/usr/lpp/xlC/include/load.h"
9700 #ifdef F77_DUMMY_MAIN
9701 # ifdef __cplusplus
9702 extern "C"
9703 # endif
9704 int F77_DUMMY_MAIN() { return 1; }
9705 #endif
9707 main ()
9709 loadAndInit("", 0, "")
9711 return 0;
9713 _ACEOF
9714 rm -f conftest.$ac_objext conftest$ac_exeext
9715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9716 (eval $ac_link) 2>&5
9717 ac_status=$?
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); } &&
9720 { ac_try='test -s conftest$ac_exeext'
9721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722 (eval $ac_try) 2>&5
9723 ac_status=$?
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; }; then
9727 cat >>confdefs.h <<\_ACEOF
9728 #define AIX_GENUINE_CPLUSPLUS 1
9729 _ACEOF
9731 echo "$as_me:$LINENO: result: yes" >&5
9732 echo "${ECHO_T}yes" >&6
9733 else
9734 echo "$as_me: failed program was:" >&5
9735 cat conftest.$ac_ext >&5
9736 echo "$as_me:$LINENO: result: no" >&5
9737 echo "${ECHO_T}no" >&6
9739 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext;;
9740 *) ;;
9741 esac
9743 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
9744 # However on SGI IRIX 4, these exist but are broken.
9745 # BeOS' sockets are stashed in libnet.
9746 case "$ac_sys_system" in
9747 IRIX*) ;;
9749 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
9750 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
9751 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
9752 echo $ECHO_N "(cached) $ECHO_C" >&6
9753 else
9754 ac_check_lib_save_LIBS=$LIBS
9755 LIBS="-lnsl $LIBS"
9756 cat >conftest.$ac_ext <<_ACEOF
9757 #line $LINENO "configure"
9758 #include "confdefs.h"
9760 /* Override any gcc2 internal prototype to avoid an error. */
9761 #ifdef __cplusplus
9762 extern "C"
9763 #endif
9764 /* We use char because int might match the return type of a gcc2
9765 builtin and then its argument prototype would still apply. */
9766 char t_open ();
9767 #ifdef F77_DUMMY_MAIN
9768 # ifdef __cplusplus
9769 extern "C"
9770 # endif
9771 int F77_DUMMY_MAIN() { return 1; }
9772 #endif
9774 main ()
9776 t_open ();
9778 return 0;
9780 _ACEOF
9781 rm -f conftest.$ac_objext conftest$ac_exeext
9782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9783 (eval $ac_link) 2>&5
9784 ac_status=$?
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); } &&
9787 { ac_try='test -s conftest$ac_exeext'
9788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9789 (eval $ac_try) 2>&5
9790 ac_status=$?
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); }; }; then
9793 ac_cv_lib_nsl_t_open=yes
9794 else
9795 echo "$as_me: failed program was:" >&5
9796 cat conftest.$ac_ext >&5
9797 ac_cv_lib_nsl_t_open=no
9799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9800 LIBS=$ac_check_lib_save_LIBS
9802 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
9803 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
9804 if test $ac_cv_lib_nsl_t_open = yes; then
9805 LIBS="-lnsl $LIBS"
9807 # SVR4
9808 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
9809 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
9810 if test "${ac_cv_lib_socket_socket+set}" = set; then
9811 echo $ECHO_N "(cached) $ECHO_C" >&6
9812 else
9813 ac_check_lib_save_LIBS=$LIBS
9814 LIBS="-lsocket $LIBS $LIBS"
9815 cat >conftest.$ac_ext <<_ACEOF
9816 #line $LINENO "configure"
9817 #include "confdefs.h"
9819 /* Override any gcc2 internal prototype to avoid an error. */
9820 #ifdef __cplusplus
9821 extern "C"
9822 #endif
9823 /* We use char because int might match the return type of a gcc2
9824 builtin and then its argument prototype would still apply. */
9825 char socket ();
9826 #ifdef F77_DUMMY_MAIN
9827 # ifdef __cplusplus
9828 extern "C"
9829 # endif
9830 int F77_DUMMY_MAIN() { return 1; }
9831 #endif
9833 main ()
9835 socket ();
9837 return 0;
9839 _ACEOF
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
9843 ac_status=$?
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
9848 (eval $ac_try) 2>&5
9849 ac_status=$?
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; }; then
9852 ac_cv_lib_socket_socket=yes
9853 else
9854 echo "$as_me: failed program was:" >&5
9855 cat conftest.$ac_ext >&5
9856 ac_cv_lib_socket_socket=no
9858 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9859 LIBS=$ac_check_lib_save_LIBS
9861 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
9862 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
9863 if test $ac_cv_lib_socket_socket = yes; then
9864 LIBS="-lsocket $LIBS"
9866 # SVR4 sockets
9868 esac
9869 case "$ac_sys_system" in
9870 BeOS*)
9871 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
9872 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
9873 if test "${ac_cv_lib_net_socket+set}" = set; then
9874 echo $ECHO_N "(cached) $ECHO_C" >&6
9875 else
9876 ac_check_lib_save_LIBS=$LIBS
9877 LIBS="-lnet $LIBS $LIBS"
9878 cat >conftest.$ac_ext <<_ACEOF
9879 #line $LINENO "configure"
9880 #include "confdefs.h"
9882 /* Override any gcc2 internal prototype to avoid an error. */
9883 #ifdef __cplusplus
9884 extern "C"
9885 #endif
9886 /* We use char because int might match the return type of a gcc2
9887 builtin and then its argument prototype would still apply. */
9888 char socket ();
9889 #ifdef F77_DUMMY_MAIN
9890 # ifdef __cplusplus
9891 extern "C"
9892 # endif
9893 int F77_DUMMY_MAIN() { return 1; }
9894 #endif
9896 main ()
9898 socket ();
9900 return 0;
9902 _ACEOF
9903 rm -f conftest.$ac_objext conftest$ac_exeext
9904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9905 (eval $ac_link) 2>&5
9906 ac_status=$?
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); } &&
9909 { ac_try='test -s conftest$ac_exeext'
9910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9911 (eval $ac_try) 2>&5
9912 ac_status=$?
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); }; }; then
9915 ac_cv_lib_net_socket=yes
9916 else
9917 echo "$as_me: failed program was:" >&5
9918 cat conftest.$ac_ext >&5
9919 ac_cv_lib_net_socket=no
9921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9922 LIBS=$ac_check_lib_save_LIBS
9924 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
9925 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
9926 if test $ac_cv_lib_net_socket = yes; then
9927 LIBS="-lnet $LIBS"
9929 # BeOS
9931 esac
9933 echo "$as_me:$LINENO: checking for --with-libs" >&5
9934 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
9936 # Check whether --with-libs or --without-libs was given.
9937 if test "${with_libs+set}" = set; then
9938 withval="$with_libs"
9940 echo "$as_me:$LINENO: result: $withval" >&5
9941 echo "${ECHO_T}$withval" >&6
9942 LIBS="$withval $LIBS"
9944 else
9945 echo "$as_me:$LINENO: result: no" >&5
9946 echo "${ECHO_T}no" >&6
9949 # Determine if signalmodule should be used.
9952 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
9953 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
9955 # Check whether --with-signal-module or --without-signal-module was given.
9956 if test "${with_signal_module+set}" = set; then
9957 withval="$with_signal_module"
9961 if test -z "$with_signal_module"
9962 then with_signal_module="yes"
9964 echo "$as_me:$LINENO: result: $with_signal_module" >&5
9965 echo "${ECHO_T}$with_signal_module" >&6
9967 if test "${with_signal_module}" = "yes"; then
9968 USE_SIGNAL_MODULE=""
9969 SIGNAL_OBJS=""
9970 else
9971 USE_SIGNAL_MODULE="#"
9972 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
9975 # This is used to generate Setup.config
9977 USE_THREAD_MODULE=""
9979 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
9980 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
9983 # Check whether --with-dec-threads or --without-dec-threads was given.
9984 if test "${with_dec_threads+set}" = set; then
9985 withval="$with_dec_threads"
9987 echo "$as_me:$LINENO: result: $withval" >&5
9988 echo "${ECHO_T}$withval" >&6
9989 LDLAST=-threads
9990 if test "${with_thread+set}" != set; then
9991 with_thread="$withval";
9993 else
9994 echo "$as_me:$LINENO: result: no" >&5
9995 echo "${ECHO_T}no" >&6
9998 # Templates for things AC_DEFINEd more than once.
9999 # For a single AC_DEFINE, no template is needed.
10007 echo "$as_me:$LINENO: checking for --with-threads" >&5
10008 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
10010 # Check whether --with-threads or --without-threads was given.
10011 if test "${with_threads+set}" = set; then
10012 withval="$with_threads"
10016 # --with-thread is deprecated, but check for it anyway
10018 # Check whether --with-thread or --without-thread was given.
10019 if test "${with_thread+set}" = set; then
10020 withval="$with_thread"
10021 with_threads=$with_thread
10024 if test -z "$with_threads"
10025 then with_threads="yes"
10027 echo "$as_me:$LINENO: result: $with_threads" >&5
10028 echo "${ECHO_T}$with_threads" >&6
10031 if test "$with_threads" = "no"
10032 then
10033 USE_THREAD_MODULE="#"
10034 elif test "$ac_cv_pthread_is_default" = yes
10035 then
10036 cat >>confdefs.h <<\_ACEOF
10037 #define WITH_THREAD 1
10038 _ACEOF
10040 # Defining _REENTRANT on system with POSIX threads should not hurt.
10041 cat >>confdefs.h <<\_ACEOF
10042 #define _REENTRANT 1
10043 _ACEOF
10045 posix_threads=yes
10046 THREADOBJ="Python/thread.o"
10047 elif test "$ac_cv_kpthread" = "yes"
10048 then
10049 CC="$CC -Kpthread"
10050 cat >>confdefs.h <<\_ACEOF
10051 #define WITH_THREAD 1
10052 _ACEOF
10054 posix_threads=yes
10055 THREADOBJ="Python/thread.o"
10056 else
10057 if test ! -z "$with_threads" -a -d "$with_threads"
10058 then LDFLAGS="$LDFLAGS -L$with_threads"
10060 if test ! -z "$withval" -a -d "$withval"
10061 then LDFLAGS="$LDFLAGS -L$withval"
10064 # According to the POSIX spec, a pthreads implementation must
10065 # define _POSIX_THREADS in unistd.h. Some apparently don't (which ones?)
10066 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
10067 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
10068 cat >conftest.$ac_ext <<_ACEOF
10069 #line $LINENO "configure"
10070 #include "confdefs.h"
10071 #include <unistd.h>
10072 #ifdef _POSIX_THREADS
10074 #endif
10076 _ACEOF
10077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10078 egrep "yes" >/dev/null 2>&1; then
10079 unistd_defines_pthreads=yes
10080 else
10081 unistd_defines_pthreads=no
10083 rm -f conftest*
10085 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
10086 echo "${ECHO_T}$unistd_defines_pthreads" >&6
10088 cat >>confdefs.h <<\_ACEOF
10089 #define _REENTRANT 1
10090 _ACEOF
10092 if test "${ac_cv_header_cthreads_h+set}" = set; then
10093 echo "$as_me:$LINENO: checking for cthreads.h" >&5
10094 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
10095 if test "${ac_cv_header_cthreads_h+set}" = set; then
10096 echo $ECHO_N "(cached) $ECHO_C" >&6
10098 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
10099 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
10100 else
10101 # Is the header compilable?
10102 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
10103 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
10104 cat >conftest.$ac_ext <<_ACEOF
10105 #line $LINENO "configure"
10106 #include "confdefs.h"
10107 $ac_includes_default
10108 #include <cthreads.h>
10109 _ACEOF
10110 rm -f conftest.$ac_objext
10111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10112 (eval $ac_compile) 2>&5
10113 ac_status=$?
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); } &&
10116 { ac_try='test -s conftest.$ac_objext'
10117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10118 (eval $ac_try) 2>&5
10119 ac_status=$?
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); }; }; then
10122 ac_header_compiler=yes
10123 else
10124 echo "$as_me: failed program was:" >&5
10125 cat conftest.$ac_ext >&5
10126 ac_header_compiler=no
10128 rm -f conftest.$ac_objext conftest.$ac_ext
10129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10130 echo "${ECHO_T}$ac_header_compiler" >&6
10132 # Is the header present?
10133 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
10134 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
10135 cat >conftest.$ac_ext <<_ACEOF
10136 #line $LINENO "configure"
10137 #include "confdefs.h"
10138 #include <cthreads.h>
10139 _ACEOF
10140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10142 ac_status=$?
10143 egrep -v '^ *\+' conftest.er1 >conftest.err
10144 rm -f conftest.er1
10145 cat conftest.err >&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); } >/dev/null; then
10148 if test -s conftest.err; then
10149 ac_cpp_err=$ac_c_preproc_warn_flag
10150 else
10151 ac_cpp_err=
10153 else
10154 ac_cpp_err=yes
10156 if test -z "$ac_cpp_err"; then
10157 ac_header_preproc=yes
10158 else
10159 echo "$as_me: failed program was:" >&5
10160 cat conftest.$ac_ext >&5
10161 ac_header_preproc=no
10163 rm -f conftest.err conftest.$ac_ext
10164 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10165 echo "${ECHO_T}$ac_header_preproc" >&6
10167 # So? What about this header?
10168 case $ac_header_compiler:$ac_header_preproc in
10169 yes:no )
10170 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
10171 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10172 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
10173 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};;
10174 no:yes )
10175 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
10176 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
10177 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
10178 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
10179 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
10180 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};;
10181 esac
10182 echo "$as_me:$LINENO: checking for cthreads.h" >&5
10183 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
10184 if test "${ac_cv_header_cthreads_h+set}" = set; then
10185 echo $ECHO_N "(cached) $ECHO_C" >&6
10186 else
10187 ac_cv_header_cthreads_h=$ac_header_preproc
10189 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
10190 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
10193 if test $ac_cv_header_cthreads_h = yes; then
10194 cat >>confdefs.h <<\_ACEOF
10195 #define WITH_THREAD 1
10196 _ACEOF
10198 cat >>confdefs.h <<\_ACEOF
10199 #define C_THREADS 1
10200 _ACEOF
10203 cat >>confdefs.h <<\_ACEOF
10204 #define HURD_C_THREADS 1
10205 _ACEOF
10207 LIBS="$LIBS -lthreads"
10208 THREADOBJ="Python/thread.o"
10209 else
10211 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
10212 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
10213 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
10214 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
10215 echo $ECHO_N "(cached) $ECHO_C" >&6
10217 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
10218 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
10219 else
10220 # Is the header compilable?
10221 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
10222 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
10223 cat >conftest.$ac_ext <<_ACEOF
10224 #line $LINENO "configure"
10225 #include "confdefs.h"
10226 $ac_includes_default
10227 #include <mach/cthreads.h>
10228 _ACEOF
10229 rm -f conftest.$ac_objext
10230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10231 (eval $ac_compile) 2>&5
10232 ac_status=$?
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } &&
10235 { ac_try='test -s conftest.$ac_objext'
10236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10237 (eval $ac_try) 2>&5
10238 ac_status=$?
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); }; }; then
10241 ac_header_compiler=yes
10242 else
10243 echo "$as_me: failed program was:" >&5
10244 cat conftest.$ac_ext >&5
10245 ac_header_compiler=no
10247 rm -f conftest.$ac_objext conftest.$ac_ext
10248 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10249 echo "${ECHO_T}$ac_header_compiler" >&6
10251 # Is the header present?
10252 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
10253 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
10254 cat >conftest.$ac_ext <<_ACEOF
10255 #line $LINENO "configure"
10256 #include "confdefs.h"
10257 #include <mach/cthreads.h>
10258 _ACEOF
10259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10261 ac_status=$?
10262 egrep -v '^ *\+' conftest.er1 >conftest.err
10263 rm -f conftest.er1
10264 cat conftest.err >&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); } >/dev/null; then
10267 if test -s conftest.err; then
10268 ac_cpp_err=$ac_c_preproc_warn_flag
10269 else
10270 ac_cpp_err=
10272 else
10273 ac_cpp_err=yes
10275 if test -z "$ac_cpp_err"; then
10276 ac_header_preproc=yes
10277 else
10278 echo "$as_me: failed program was:" >&5
10279 cat conftest.$ac_ext >&5
10280 ac_header_preproc=no
10282 rm -f conftest.err conftest.$ac_ext
10283 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10284 echo "${ECHO_T}$ac_header_preproc" >&6
10286 # So? What about this header?
10287 case $ac_header_compiler:$ac_header_preproc in
10288 yes:no )
10289 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
10290 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10291 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
10292 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};;
10293 no:yes )
10294 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
10295 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
10296 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
10297 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
10298 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
10299 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};;
10300 esac
10301 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
10302 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
10303 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10305 else
10306 ac_cv_header_mach_cthreads_h=$ac_header_preproc
10308 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
10309 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
10312 if test $ac_cv_header_mach_cthreads_h = yes; then
10313 cat >>confdefs.h <<\_ACEOF
10314 #define WITH_THREAD 1
10315 _ACEOF
10317 cat >>confdefs.h <<\_ACEOF
10318 #define C_THREADS 1
10319 _ACEOF
10322 cat >>confdefs.h <<\_ACEOF
10323 #define MACH_C_THREADS 1
10324 _ACEOF
10326 THREADOBJ="Python/thread.o"
10327 else
10329 echo "$as_me:$LINENO: checking for --with-pth" >&5
10330 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
10332 # Check whether --with-pth or --without-pth was given.
10333 if test "${with_pth+set}" = set; then
10334 withval="$with_pth"
10335 echo "$as_me:$LINENO: result: $withval" >&5
10336 echo "${ECHO_T}$withval" >&6
10337 cat >>confdefs.h <<\_ACEOF
10338 #define WITH_THREAD 1
10339 _ACEOF
10342 cat >>confdefs.h <<\_ACEOF
10343 #define HAVE_PTH 1
10344 _ACEOF
10346 LIBS="-lpth $LIBS"
10347 THREADOBJ="Python/thread.o"
10348 else
10349 echo "$as_me:$LINENO: result: no" >&5
10350 echo "${ECHO_T}no" >&6
10352 # Just looking for pthread_create in libpthread is not enough:
10353 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
10354 # So we really have to include pthread.h, and then link.
10355 _libs=$LIBS
10356 LIBS="$LIBS -lpthread"
10357 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
10358 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
10359 cat >conftest.$ac_ext <<_ACEOF
10360 #line $LINENO "configure"
10361 #include "confdefs.h"
10362 #include <pthread.h>
10364 void * start_routine (void *arg) { exit (0); }
10365 #ifdef F77_DUMMY_MAIN
10366 # ifdef __cplusplus
10367 extern "C"
10368 # endif
10369 int F77_DUMMY_MAIN() { return 1; }
10370 #endif
10372 main ()
10375 pthread_create (NULL, NULL, start_routine, NULL)
10377 return 0;
10379 _ACEOF
10380 rm -f conftest.$ac_objext conftest$ac_exeext
10381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10382 (eval $ac_link) 2>&5
10383 ac_status=$?
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); } &&
10386 { ac_try='test -s conftest$ac_exeext'
10387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10388 (eval $ac_try) 2>&5
10389 ac_status=$?
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); }; }; then
10393 echo "$as_me:$LINENO: result: yes" >&5
10394 echo "${ECHO_T}yes" >&6
10395 cat >>confdefs.h <<\_ACEOF
10396 #define WITH_THREAD 1
10397 _ACEOF
10399 posix_threads=yes
10400 THREADOBJ="Python/thread.o"
10401 else
10402 echo "$as_me: failed program was:" >&5
10403 cat conftest.$ac_ext >&5
10405 LIBS=$_libs
10406 echo "$as_me:$LINENO: checking for pthread_detach" >&5
10407 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
10408 if test "${ac_cv_func_pthread_detach+set}" = set; then
10409 echo $ECHO_N "(cached) $ECHO_C" >&6
10410 else
10411 cat >conftest.$ac_ext <<_ACEOF
10412 #line $LINENO "configure"
10413 #include "confdefs.h"
10414 /* System header to define __stub macros and hopefully few prototypes,
10415 which can conflict with char pthread_detach (); below. */
10416 #include <assert.h>
10417 /* Override any gcc2 internal prototype to avoid an error. */
10418 #ifdef __cplusplus
10419 extern "C"
10420 #endif
10421 /* We use char because int might match the return type of a gcc2
10422 builtin and then its argument prototype would still apply. */
10423 char pthread_detach ();
10424 char (*f) ();
10426 #ifdef F77_DUMMY_MAIN
10427 # ifdef __cplusplus
10428 extern "C"
10429 # endif
10430 int F77_DUMMY_MAIN() { return 1; }
10431 #endif
10433 main ()
10435 /* The GNU C library defines this for functions which it implements
10436 to always fail with ENOSYS. Some functions are actually named
10437 something starting with __ and the normal name is an alias. */
10438 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
10439 choke me
10440 #else
10441 f = pthread_detach;
10442 #endif
10445 return 0;
10447 _ACEOF
10448 rm -f conftest.$ac_objext conftest$ac_exeext
10449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10450 (eval $ac_link) 2>&5
10451 ac_status=$?
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); } &&
10454 { ac_try='test -s conftest$ac_exeext'
10455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10456 (eval $ac_try) 2>&5
10457 ac_status=$?
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); }; }; then
10460 ac_cv_func_pthread_detach=yes
10461 else
10462 echo "$as_me: failed program was:" >&5
10463 cat conftest.$ac_ext >&5
10464 ac_cv_func_pthread_detach=no
10466 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10468 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
10469 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
10470 if test $ac_cv_func_pthread_detach = yes; then
10471 cat >>confdefs.h <<\_ACEOF
10472 #define WITH_THREAD 1
10473 _ACEOF
10475 posix_threads=yes
10476 THREADOBJ="Python/thread.o"
10477 else
10479 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
10480 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
10481 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
10482 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
10483 echo $ECHO_N "(cached) $ECHO_C" >&6
10485 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
10486 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
10487 else
10488 # Is the header compilable?
10489 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
10490 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
10491 cat >conftest.$ac_ext <<_ACEOF
10492 #line $LINENO "configure"
10493 #include "confdefs.h"
10494 $ac_includes_default
10495 #include <atheos/threads.h>
10496 _ACEOF
10497 rm -f conftest.$ac_objext
10498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10499 (eval $ac_compile) 2>&5
10500 ac_status=$?
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); } &&
10503 { ac_try='test -s conftest.$ac_objext'
10504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10505 (eval $ac_try) 2>&5
10506 ac_status=$?
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); }; }; then
10509 ac_header_compiler=yes
10510 else
10511 echo "$as_me: failed program was:" >&5
10512 cat conftest.$ac_ext >&5
10513 ac_header_compiler=no
10515 rm -f conftest.$ac_objext conftest.$ac_ext
10516 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10517 echo "${ECHO_T}$ac_header_compiler" >&6
10519 # Is the header present?
10520 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
10521 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
10522 cat >conftest.$ac_ext <<_ACEOF
10523 #line $LINENO "configure"
10524 #include "confdefs.h"
10525 #include <atheos/threads.h>
10526 _ACEOF
10527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10529 ac_status=$?
10530 egrep -v '^ *\+' conftest.er1 >conftest.err
10531 rm -f conftest.er1
10532 cat conftest.err >&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); } >/dev/null; then
10535 if test -s conftest.err; then
10536 ac_cpp_err=$ac_c_preproc_warn_flag
10537 else
10538 ac_cpp_err=
10540 else
10541 ac_cpp_err=yes
10543 if test -z "$ac_cpp_err"; then
10544 ac_header_preproc=yes
10545 else
10546 echo "$as_me: failed program was:" >&5
10547 cat conftest.$ac_ext >&5
10548 ac_header_preproc=no
10550 rm -f conftest.err conftest.$ac_ext
10551 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10552 echo "${ECHO_T}$ac_header_preproc" >&6
10554 # So? What about this header?
10555 case $ac_header_compiler:$ac_header_preproc in
10556 yes:no )
10557 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
10558 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10559 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
10560 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};;
10561 no:yes )
10562 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
10563 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
10564 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
10565 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
10566 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
10567 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};;
10568 esac
10569 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
10570 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
10571 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
10572 echo $ECHO_N "(cached) $ECHO_C" >&6
10573 else
10574 ac_cv_header_atheos_threads_h=$ac_header_preproc
10576 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
10577 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
10580 if test $ac_cv_header_atheos_threads_h = yes; then
10581 cat >>confdefs.h <<\_ACEOF
10582 #define WITH_THREAD 1
10583 _ACEOF
10586 cat >>confdefs.h <<\_ACEOF
10587 #define ATHEOS_THREADS 1
10588 _ACEOF
10590 THREADOBJ="Python/thread.o"
10591 else
10593 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
10594 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
10595 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
10596 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
10597 echo $ECHO_N "(cached) $ECHO_C" >&6
10599 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
10600 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
10601 else
10602 # Is the header compilable?
10603 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
10604 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
10605 cat >conftest.$ac_ext <<_ACEOF
10606 #line $LINENO "configure"
10607 #include "confdefs.h"
10608 $ac_includes_default
10609 #include <kernel/OS.h>
10610 _ACEOF
10611 rm -f conftest.$ac_objext
10612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10613 (eval $ac_compile) 2>&5
10614 ac_status=$?
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); } &&
10617 { ac_try='test -s conftest.$ac_objext'
10618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10619 (eval $ac_try) 2>&5
10620 ac_status=$?
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); }; }; then
10623 ac_header_compiler=yes
10624 else
10625 echo "$as_me: failed program was:" >&5
10626 cat conftest.$ac_ext >&5
10627 ac_header_compiler=no
10629 rm -f conftest.$ac_objext conftest.$ac_ext
10630 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10631 echo "${ECHO_T}$ac_header_compiler" >&6
10633 # Is the header present?
10634 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
10635 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
10636 cat >conftest.$ac_ext <<_ACEOF
10637 #line $LINENO "configure"
10638 #include "confdefs.h"
10639 #include <kernel/OS.h>
10640 _ACEOF
10641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10643 ac_status=$?
10644 egrep -v '^ *\+' conftest.er1 >conftest.err
10645 rm -f conftest.er1
10646 cat conftest.err >&5
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); } >/dev/null; then
10649 if test -s conftest.err; then
10650 ac_cpp_err=$ac_c_preproc_warn_flag
10651 else
10652 ac_cpp_err=
10654 else
10655 ac_cpp_err=yes
10657 if test -z "$ac_cpp_err"; then
10658 ac_header_preproc=yes
10659 else
10660 echo "$as_me: failed program was:" >&5
10661 cat conftest.$ac_ext >&5
10662 ac_header_preproc=no
10664 rm -f conftest.err conftest.$ac_ext
10665 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10666 echo "${ECHO_T}$ac_header_preproc" >&6
10668 # So? What about this header?
10669 case $ac_header_compiler:$ac_header_preproc in
10670 yes:no )
10671 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
10672 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10673 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
10674 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};;
10675 no:yes )
10676 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
10677 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
10678 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
10679 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
10680 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
10681 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};;
10682 esac
10683 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
10684 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
10685 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
10687 else
10688 ac_cv_header_kernel_OS_h=$ac_header_preproc
10690 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
10691 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
10694 if test $ac_cv_header_kernel_OS_h = yes; then
10695 cat >>confdefs.h <<\_ACEOF
10696 #define WITH_THREAD 1
10697 _ACEOF
10700 cat >>confdefs.h <<\_ACEOF
10701 #define BEOS_THREADS 1
10702 _ACEOF
10704 THREADOBJ="Python/thread.o"
10705 else
10707 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
10708 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
10709 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
10710 echo $ECHO_N "(cached) $ECHO_C" >&6
10711 else
10712 ac_check_lib_save_LIBS=$LIBS
10713 LIBS="-lpthreads $LIBS"
10714 cat >conftest.$ac_ext <<_ACEOF
10715 #line $LINENO "configure"
10716 #include "confdefs.h"
10718 /* Override any gcc2 internal prototype to avoid an error. */
10719 #ifdef __cplusplus
10720 extern "C"
10721 #endif
10722 /* We use char because int might match the return type of a gcc2
10723 builtin and then its argument prototype would still apply. */
10724 char pthread_create ();
10725 #ifdef F77_DUMMY_MAIN
10726 # ifdef __cplusplus
10727 extern "C"
10728 # endif
10729 int F77_DUMMY_MAIN() { return 1; }
10730 #endif
10732 main ()
10734 pthread_create ();
10736 return 0;
10738 _ACEOF
10739 rm -f conftest.$ac_objext conftest$ac_exeext
10740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10741 (eval $ac_link) 2>&5
10742 ac_status=$?
10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); } &&
10745 { ac_try='test -s conftest$ac_exeext'
10746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10747 (eval $ac_try) 2>&5
10748 ac_status=$?
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); }; }; then
10751 ac_cv_lib_pthreads_pthread_create=yes
10752 else
10753 echo "$as_me: failed program was:" >&5
10754 cat conftest.$ac_ext >&5
10755 ac_cv_lib_pthreads_pthread_create=no
10757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10758 LIBS=$ac_check_lib_save_LIBS
10760 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
10761 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
10762 if test $ac_cv_lib_pthreads_pthread_create = yes; then
10763 cat >>confdefs.h <<\_ACEOF
10764 #define WITH_THREAD 1
10765 _ACEOF
10767 posix_threads=yes
10768 LIBS="$LIBS -lpthreads"
10769 THREADOBJ="Python/thread.o"
10770 else
10772 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
10773 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
10774 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
10776 else
10777 ac_check_lib_save_LIBS=$LIBS
10778 LIBS="-lc_r $LIBS"
10779 cat >conftest.$ac_ext <<_ACEOF
10780 #line $LINENO "configure"
10781 #include "confdefs.h"
10783 /* Override any gcc2 internal prototype to avoid an error. */
10784 #ifdef __cplusplus
10785 extern "C"
10786 #endif
10787 /* We use char because int might match the return type of a gcc2
10788 builtin and then its argument prototype would still apply. */
10789 char pthread_create ();
10790 #ifdef F77_DUMMY_MAIN
10791 # ifdef __cplusplus
10792 extern "C"
10793 # endif
10794 int F77_DUMMY_MAIN() { return 1; }
10795 #endif
10797 main ()
10799 pthread_create ();
10801 return 0;
10803 _ACEOF
10804 rm -f conftest.$ac_objext conftest$ac_exeext
10805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10806 (eval $ac_link) 2>&5
10807 ac_status=$?
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); } &&
10810 { ac_try='test -s conftest$ac_exeext'
10811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10812 (eval $ac_try) 2>&5
10813 ac_status=$?
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); }; }; then
10816 ac_cv_lib_c_r_pthread_create=yes
10817 else
10818 echo "$as_me: failed program was:" >&5
10819 cat conftest.$ac_ext >&5
10820 ac_cv_lib_c_r_pthread_create=no
10822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10823 LIBS=$ac_check_lib_save_LIBS
10825 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
10826 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
10827 if test $ac_cv_lib_c_r_pthread_create = yes; then
10828 cat >>confdefs.h <<\_ACEOF
10829 #define WITH_THREAD 1
10830 _ACEOF
10832 posix_threads=yes
10833 LIBS="$LIBS -lc_r"
10834 THREADOBJ="Python/thread.o"
10835 else
10837 echo "$as_me:$LINENO: checking for __d6_pthread_create in -lthread" >&5
10838 echo $ECHO_N "checking for __d6_pthread_create in -lthread... $ECHO_C" >&6
10839 if test "${ac_cv_lib_thread___d6_pthread_create+set}" = set; then
10840 echo $ECHO_N "(cached) $ECHO_C" >&6
10841 else
10842 ac_check_lib_save_LIBS=$LIBS
10843 LIBS="-lthread $LIBS"
10844 cat >conftest.$ac_ext <<_ACEOF
10845 #line $LINENO "configure"
10846 #include "confdefs.h"
10848 /* Override any gcc2 internal prototype to avoid an error. */
10849 #ifdef __cplusplus
10850 extern "C"
10851 #endif
10852 /* We use char because int might match the return type of a gcc2
10853 builtin and then its argument prototype would still apply. */
10854 char __d6_pthread_create ();
10855 #ifdef F77_DUMMY_MAIN
10856 # ifdef __cplusplus
10857 extern "C"
10858 # endif
10859 int F77_DUMMY_MAIN() { return 1; }
10860 #endif
10862 main ()
10864 __d6_pthread_create ();
10866 return 0;
10868 _ACEOF
10869 rm -f conftest.$ac_objext conftest$ac_exeext
10870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10871 (eval $ac_link) 2>&5
10872 ac_status=$?
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); } &&
10875 { ac_try='test -s conftest$ac_exeext'
10876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10877 (eval $ac_try) 2>&5
10878 ac_status=$?
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); }; }; then
10881 ac_cv_lib_thread___d6_pthread_create=yes
10882 else
10883 echo "$as_me: failed program was:" >&5
10884 cat conftest.$ac_ext >&5
10885 ac_cv_lib_thread___d6_pthread_create=no
10887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10888 LIBS=$ac_check_lib_save_LIBS
10890 echo "$as_me:$LINENO: result: $ac_cv_lib_thread___d6_pthread_create" >&5
10891 echo "${ECHO_T}$ac_cv_lib_thread___d6_pthread_create" >&6
10892 if test $ac_cv_lib_thread___d6_pthread_create = yes; then
10893 cat >>confdefs.h <<\_ACEOF
10894 #define WITH_THREAD 1
10895 _ACEOF
10897 echo Systems with __d6_pthread_create are not supported anymore.
10898 echo See README
10899 exit 1
10900 posix_threads=yes
10901 LIBS="$LIBS -lthread"
10902 THREADOBJ="Python/thread.o"
10903 else
10905 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
10906 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
10907 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
10908 echo $ECHO_N "(cached) $ECHO_C" >&6
10909 else
10910 ac_check_lib_save_LIBS=$LIBS
10911 LIBS="-lpthread $LIBS"
10912 cat >conftest.$ac_ext <<_ACEOF
10913 #line $LINENO "configure"
10914 #include "confdefs.h"
10916 /* Override any gcc2 internal prototype to avoid an error. */
10917 #ifdef __cplusplus
10918 extern "C"
10919 #endif
10920 /* We use char because int might match the return type of a gcc2
10921 builtin and then its argument prototype would still apply. */
10922 char __pthread_create_system ();
10923 #ifdef F77_DUMMY_MAIN
10924 # ifdef __cplusplus
10925 extern "C"
10926 # endif
10927 int F77_DUMMY_MAIN() { return 1; }
10928 #endif
10930 main ()
10932 __pthread_create_system ();
10934 return 0;
10936 _ACEOF
10937 rm -f conftest.$ac_objext conftest$ac_exeext
10938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10939 (eval $ac_link) 2>&5
10940 ac_status=$?
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); } &&
10943 { ac_try='test -s conftest$ac_exeext'
10944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10945 (eval $ac_try) 2>&5
10946 ac_status=$?
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); }; }; then
10949 ac_cv_lib_pthread___pthread_create_system=yes
10950 else
10951 echo "$as_me: failed program was:" >&5
10952 cat conftest.$ac_ext >&5
10953 ac_cv_lib_pthread___pthread_create_system=no
10955 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10956 LIBS=$ac_check_lib_save_LIBS
10958 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
10959 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
10960 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
10961 cat >>confdefs.h <<\_ACEOF
10962 #define WITH_THREAD 1
10963 _ACEOF
10965 posix_threads=yes
10966 LIBS="$LIBS -lpthread"
10967 THREADOBJ="Python/thread.o"
10968 else
10970 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
10971 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
10972 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
10974 else
10975 ac_check_lib_save_LIBS=$LIBS
10976 LIBS="-lcma $LIBS"
10977 cat >conftest.$ac_ext <<_ACEOF
10978 #line $LINENO "configure"
10979 #include "confdefs.h"
10981 /* Override any gcc2 internal prototype to avoid an error. */
10982 #ifdef __cplusplus
10983 extern "C"
10984 #endif
10985 /* We use char because int might match the return type of a gcc2
10986 builtin and then its argument prototype would still apply. */
10987 char pthread_create ();
10988 #ifdef F77_DUMMY_MAIN
10989 # ifdef __cplusplus
10990 extern "C"
10991 # endif
10992 int F77_DUMMY_MAIN() { return 1; }
10993 #endif
10995 main ()
10997 pthread_create ();
10999 return 0;
11001 _ACEOF
11002 rm -f conftest.$ac_objext conftest$ac_exeext
11003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11004 (eval $ac_link) 2>&5
11005 ac_status=$?
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); } &&
11008 { ac_try='test -s conftest$ac_exeext'
11009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11010 (eval $ac_try) 2>&5
11011 ac_status=$?
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); }; }; then
11014 ac_cv_lib_cma_pthread_create=yes
11015 else
11016 echo "$as_me: failed program was:" >&5
11017 cat conftest.$ac_ext >&5
11018 ac_cv_lib_cma_pthread_create=no
11020 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11021 LIBS=$ac_check_lib_save_LIBS
11023 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
11024 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
11025 if test $ac_cv_lib_cma_pthread_create = yes; then
11026 cat >>confdefs.h <<\_ACEOF
11027 #define WITH_THREAD 1
11028 _ACEOF
11030 posix_threads=yes
11031 LIBS="$LIBS -lcma"
11032 THREADOBJ="Python/thread.o"
11033 else
11035 USE_THREAD_MODULE="#"
11056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11065 if test "$posix_threads" = "yes"; then
11066 if test "$unistd_defines_pthreads" = "no"; then
11068 cat >>confdefs.h <<\_ACEOF
11069 #define _POSIX_THREADS 1
11070 _ACEOF
11074 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
11075 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
11076 if test "${ac_cv_pthread_system_supported+set}" = set; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11078 else
11079 if test "$cross_compiling" = yes; then
11080 ac_cv_pthread_system_supported=no
11081 else
11082 cat >conftest.$ac_ext <<_ACEOF
11083 #line $LINENO "configure"
11084 #include "confdefs.h"
11085 #include <pthread.h>
11086 void *foo(void *parm) {
11087 return NULL;
11089 main() {
11090 pthread_attr_t attr;
11091 pthread_t id;
11092 if (pthread_attr_init(&attr)) exit(-1);
11093 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
11094 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
11095 exit(0);
11097 _ACEOF
11098 rm -f conftest$ac_exeext
11099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11100 (eval $ac_link) 2>&5
11101 ac_status=$?
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11105 (eval $ac_try) 2>&5
11106 ac_status=$?
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); }; }; then
11109 ac_cv_pthread_system_supported=yes
11110 else
11111 echo "$as_me: program exited with status $ac_status" >&5
11112 echo "$as_me: failed program was:" >&5
11113 cat conftest.$ac_ext >&5
11114 ( exit $ac_status )
11115 ac_cv_pthread_system_supported=no
11117 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11122 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
11123 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
11124 if test "$ac_cv_pthread_system_supported" = "yes"; then
11126 cat >>confdefs.h <<\_ACEOF
11127 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
11128 _ACEOF
11132 for ac_func in pthread_sigmask
11134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11135 echo "$as_me:$LINENO: checking for $ac_func" >&5
11136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11137 if eval "test \"\${$as_ac_var+set}\" = set"; then
11138 echo $ECHO_N "(cached) $ECHO_C" >&6
11139 else
11140 cat >conftest.$ac_ext <<_ACEOF
11141 #line $LINENO "configure"
11142 #include "confdefs.h"
11143 /* System header to define __stub macros and hopefully few prototypes,
11144 which can conflict with char $ac_func (); below. */
11145 #include <assert.h>
11146 /* Override any gcc2 internal prototype to avoid an error. */
11147 #ifdef __cplusplus
11148 extern "C"
11149 #endif
11150 /* We use char because int might match the return type of a gcc2
11151 builtin and then its argument prototype would still apply. */
11152 char $ac_func ();
11153 char (*f) ();
11155 #ifdef F77_DUMMY_MAIN
11156 # ifdef __cplusplus
11157 extern "C"
11158 # endif
11159 int F77_DUMMY_MAIN() { return 1; }
11160 #endif
11162 main ()
11164 /* The GNU C library defines this for functions which it implements
11165 to always fail with ENOSYS. Some functions are actually named
11166 something starting with __ and the normal name is an alias. */
11167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11168 choke me
11169 #else
11170 f = $ac_func;
11171 #endif
11174 return 0;
11176 _ACEOF
11177 rm -f conftest.$ac_objext conftest$ac_exeext
11178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11179 (eval $ac_link) 2>&5
11180 ac_status=$?
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); } &&
11183 { ac_try='test -s conftest$ac_exeext'
11184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185 (eval $ac_try) 2>&5
11186 ac_status=$?
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; }; then
11189 eval "$as_ac_var=yes"
11190 else
11191 echo "$as_me: failed program was:" >&5
11192 cat conftest.$ac_ext >&5
11193 eval "$as_ac_var=no"
11195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11198 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11199 if test `eval echo '${'$as_ac_var'}'` = yes; then
11200 cat >>confdefs.h <<_ACEOF
11201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11202 _ACEOF
11205 done
11209 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
11210 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
11211 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
11212 echo $ECHO_N "(cached) $ECHO_C" >&6
11213 else
11214 ac_check_lib_save_LIBS=$LIBS
11215 LIBS="-lmpc $LIBS"
11216 cat >conftest.$ac_ext <<_ACEOF
11217 #line $LINENO "configure"
11218 #include "confdefs.h"
11220 /* Override any gcc2 internal prototype to avoid an error. */
11221 #ifdef __cplusplus
11222 extern "C"
11223 #endif
11224 /* We use char because int might match the return type of a gcc2
11225 builtin and then its argument prototype would still apply. */
11226 char usconfig ();
11227 #ifdef F77_DUMMY_MAIN
11228 # ifdef __cplusplus
11229 extern "C"
11230 # endif
11231 int F77_DUMMY_MAIN() { return 1; }
11232 #endif
11234 main ()
11236 usconfig ();
11238 return 0;
11240 _ACEOF
11241 rm -f conftest.$ac_objext conftest$ac_exeext
11242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11243 (eval $ac_link) 2>&5
11244 ac_status=$?
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); } &&
11247 { ac_try='test -s conftest$ac_exeext'
11248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11249 (eval $ac_try) 2>&5
11250 ac_status=$?
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); }; }; then
11253 ac_cv_lib_mpc_usconfig=yes
11254 else
11255 echo "$as_me: failed program was:" >&5
11256 cat conftest.$ac_ext >&5
11257 ac_cv_lib_mpc_usconfig=no
11259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11260 LIBS=$ac_check_lib_save_LIBS
11262 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
11263 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
11264 if test $ac_cv_lib_mpc_usconfig = yes; then
11265 cat >>confdefs.h <<\_ACEOF
11266 #define WITH_THREAD 1
11267 _ACEOF
11269 LIBS="$LIBS -lmpc"
11270 THREADOBJ="Python/thread.o"
11271 USE_THREAD_MODULE=""
11275 if test "$posix_threads" != "yes"; then
11276 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
11277 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
11278 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
11279 echo $ECHO_N "(cached) $ECHO_C" >&6
11280 else
11281 ac_check_lib_save_LIBS=$LIBS
11282 LIBS="-lthread $LIBS"
11283 cat >conftest.$ac_ext <<_ACEOF
11284 #line $LINENO "configure"
11285 #include "confdefs.h"
11287 /* Override any gcc2 internal prototype to avoid an error. */
11288 #ifdef __cplusplus
11289 extern "C"
11290 #endif
11291 /* We use char because int might match the return type of a gcc2
11292 builtin and then its argument prototype would still apply. */
11293 char thr_create ();
11294 #ifdef F77_DUMMY_MAIN
11295 # ifdef __cplusplus
11296 extern "C"
11297 # endif
11298 int F77_DUMMY_MAIN() { return 1; }
11299 #endif
11301 main ()
11303 thr_create ();
11305 return 0;
11307 _ACEOF
11308 rm -f conftest.$ac_objext conftest$ac_exeext
11309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11310 (eval $ac_link) 2>&5
11311 ac_status=$?
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); } &&
11314 { ac_try='test -s conftest$ac_exeext'
11315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11316 (eval $ac_try) 2>&5
11317 ac_status=$?
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); }; }; then
11320 ac_cv_lib_thread_thr_create=yes
11321 else
11322 echo "$as_me: failed program was:" >&5
11323 cat conftest.$ac_ext >&5
11324 ac_cv_lib_thread_thr_create=no
11326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11327 LIBS=$ac_check_lib_save_LIBS
11329 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
11330 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
11331 if test $ac_cv_lib_thread_thr_create = yes; then
11332 cat >>confdefs.h <<\_ACEOF
11333 #define WITH_THREAD 1
11334 _ACEOF
11336 LIBS="$LIBS -lthread"
11337 THREADOBJ="Python/thread.o"
11338 USE_THREAD_MODULE=""
11343 if test "$USE_THREAD_MODULE" != "#"
11344 then
11345 # If the above checks didn't disable threads, (at least) OSF1
11346 # needs this '-threads' argument during linking.
11347 case $ac_sys_system in
11348 OSF1) LDLAST=-threads;;
11349 esac
11352 if test "$posix_threads" = yes -a \
11353 "$ac_sys_system" = "SunOS" -a \
11354 "$ac_sys_release" = "5.6"; then
11356 cat >>confdefs.h <<\_ACEOF
11357 #define HAVE_PTHREAD_DESTRUCTOR 1
11358 _ACEOF
11364 # Check for enable-ipv6
11367 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
11368 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
11369 # Check whether --enable-ipv6 or --disable-ipv6 was given.
11370 if test "${enable_ipv6+set}" = set; then
11371 enableval="$enable_ipv6"
11372 case "$enableval" in
11374 echo "$as_me:$LINENO: result: no" >&5
11375 echo "${ECHO_T}no" >&6
11376 ipv6=no
11378 *) echo "$as_me:$LINENO: result: yes" >&5
11379 echo "${ECHO_T}yes" >&6
11380 cat >>confdefs.h <<\_ACEOF
11381 #define ENABLE_IPV6 1
11382 _ACEOF
11384 ipv6=yes
11386 esac
11387 else
11389 if test "$cross_compiling" = yes; then
11390 echo "$as_me:$LINENO: result: no" >&5
11391 echo "${ECHO_T}no" >&6
11392 ipv6=no
11394 else
11395 cat >conftest.$ac_ext <<_ACEOF
11396 #line $LINENO "configure"
11397 #include "confdefs.h"
11398 /* AF_INET6 available check */
11399 #include <sys/types.h>
11400 #include <sys/socket.h>
11401 main()
11403 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
11404 exit(1);
11405 else
11406 exit(0);
11409 _ACEOF
11410 rm -f conftest$ac_exeext
11411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11412 (eval $ac_link) 2>&5
11413 ac_status=$?
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11417 (eval $ac_try) 2>&5
11418 ac_status=$?
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); }; }; then
11421 echo "$as_me:$LINENO: result: yes" >&5
11422 echo "${ECHO_T}yes" >&6
11423 ipv6=yes
11424 else
11425 echo "$as_me: program exited with status $ac_status" >&5
11426 echo "$as_me: failed program was:" >&5
11427 cat conftest.$ac_ext >&5
11428 ( exit $ac_status )
11429 echo "$as_me:$LINENO: result: no" >&5
11430 echo "${ECHO_T}no" >&6
11431 ipv6=no
11433 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11436 if test "$ipv6" = "yes"; then
11437 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
11438 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
11439 cat >conftest.$ac_ext <<_ACEOF
11440 #line $LINENO "configure"
11441 #include "confdefs.h"
11442 #include <sys/types.h>
11443 #include <netinet/in.h>
11444 #ifdef F77_DUMMY_MAIN
11445 # ifdef __cplusplus
11446 extern "C"
11447 # endif
11448 int F77_DUMMY_MAIN() { return 1; }
11449 #endif
11451 main ()
11453 struct sockaddr_in6 x;
11454 x.sin6_scope_id;
11456 return 0;
11458 _ACEOF
11459 rm -f conftest.$ac_objext
11460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11461 (eval $ac_compile) 2>&5
11462 ac_status=$?
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } &&
11465 { ac_try='test -s conftest.$ac_objext'
11466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11467 (eval $ac_try) 2>&5
11468 ac_status=$?
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); }; }; then
11471 echo "$as_me:$LINENO: result: yes" >&5
11472 echo "${ECHO_T}yes" >&6
11473 ipv6=yes
11474 else
11475 echo "$as_me: failed program was:" >&5
11476 cat conftest.$ac_ext >&5
11477 echo "$as_me:$LINENO: result: no" >&5
11478 echo "${ECHO_T}no" >&6
11479 ipv6=no
11481 rm -f conftest.$ac_objext conftest.$ac_ext
11484 if test "$ipv6" = "yes"; then
11485 cat >>confdefs.h <<\_ACEOF
11486 #define ENABLE_IPV6 1
11487 _ACEOF
11493 ipv6type=unknown
11494 ipv6lib=none
11495 ipv6trylibc=no
11497 if test "$ipv6" = "yes"; then
11498 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
11499 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
11500 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
11502 case $i in
11503 inria)
11504 cat >conftest.$ac_ext <<_ACEOF
11505 #line $LINENO "configure"
11506 #include "confdefs.h"
11508 #include <netinet/in.h>
11509 #ifdef IPV6_INRIA_VERSION
11511 #endif
11512 _ACEOF
11513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11514 egrep "yes" >/dev/null 2>&1; then
11515 ipv6type=$i
11517 rm -f conftest*
11520 kame)
11521 cat >conftest.$ac_ext <<_ACEOF
11522 #line $LINENO "configure"
11523 #include "confdefs.h"
11525 #include <netinet/in.h>
11526 #ifdef __KAME__
11528 #endif
11529 _ACEOF
11530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11531 egrep "yes" >/dev/null 2>&1; then
11532 ipv6type=$i;
11533 ipv6lib=inet6
11534 ipv6libdir=/usr/local/v6/lib
11535 ipv6trylibc=yes
11537 rm -f conftest*
11540 linux-glibc)
11541 cat >conftest.$ac_ext <<_ACEOF
11542 #line $LINENO "configure"
11543 #include "confdefs.h"
11545 #include <features.h>
11546 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
11548 #endif
11549 _ACEOF
11550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11551 egrep "yes" >/dev/null 2>&1; then
11552 ipv6type=$i;
11553 ipv6trylibc=yes
11555 rm -f conftest*
11558 linux-inet6)
11559 if test -d /usr/inet6; then
11560 ipv6type=$i
11561 ipv6lib=inet6
11562 ipv6libdir=/usr/inet6/lib
11563 OPT="-I/usr/inet6/include $OPT"
11566 solaris)
11567 if test -f /etc/netconfig; then
11568 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
11569 ipv6type=$i
11570 ipv6trylibc=yes
11574 toshiba)
11575 cat >conftest.$ac_ext <<_ACEOF
11576 #line $LINENO "configure"
11577 #include "confdefs.h"
11579 #include <sys/param.h>
11580 #ifdef _TOSHIBA_INET6
11582 #endif
11583 _ACEOF
11584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11585 egrep "yes" >/dev/null 2>&1; then
11586 ipv6type=$i;
11587 ipv6lib=inet6;
11588 ipv6libdir=/usr/local/v6/lib
11590 rm -f conftest*
11593 v6d)
11594 cat >conftest.$ac_ext <<_ACEOF
11595 #line $LINENO "configure"
11596 #include "confdefs.h"
11598 #include </usr/local/v6/include/sys/v6config.h>
11599 #ifdef __V6D__
11601 #endif
11602 _ACEOF
11603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11604 egrep "yes" >/dev/null 2>&1; then
11605 ipv6type=$i;
11606 ipv6lib=v6;
11607 ipv6libdir=/usr/local/v6/lib;
11608 OPT="-I/usr/local/v6/include $OPT"
11610 rm -f conftest*
11613 zeta)
11614 cat >conftest.$ac_ext <<_ACEOF
11615 #line $LINENO "configure"
11616 #include "confdefs.h"
11618 #include <sys/param.h>
11619 #ifdef _ZETA_MINAMI_INET6
11621 #endif
11622 _ACEOF
11623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11624 egrep "yes" >/dev/null 2>&1; then
11625 ipv6type=$i;
11626 ipv6lib=inet6;
11627 ipv6libdir=/usr/local/v6/lib
11629 rm -f conftest*
11632 esac
11633 if test "$ipv6type" != "unknown"; then
11634 break
11636 done
11637 echo "$as_me:$LINENO: result: $ipv6type" >&5
11638 echo "${ECHO_T}$ipv6type" >&6
11641 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
11642 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
11643 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
11644 echo "using lib$ipv6lib"
11645 else
11646 if test $ipv6trylibc = "yes"; then
11647 echo "using libc"
11648 else
11649 echo 'Fatal: no $ipv6lib library found. cannot continue.'
11650 echo "You need to fetch lib$ipv6lib.a from appropriate"
11651 echo 'ipv6 kit and compile beforehand.'
11652 exit 1
11657 # Check for universal newline support
11658 echo "$as_me:$LINENO: checking for --with-universal-newlines" >&5
11659 echo $ECHO_N "checking for --with-universal-newlines... $ECHO_C" >&6
11661 # Check whether --with-universal-newlines or --without-universal-newlines was given.
11662 if test "${with_universal_newlines+set}" = set; then
11663 withval="$with_universal_newlines"
11667 if test -z "$with_universal_newlines"
11668 then with_universal_newlines="yes"
11670 if test "$with_universal_newlines" = "no"
11671 then
11672 echo --without-universal-newlines is unsupported, see README
11673 exit 1
11674 else
11676 cat >>confdefs.h <<\_ACEOF
11677 #define WITH_UNIVERSAL_NEWLINES 1
11678 _ACEOF
11681 echo "$as_me:$LINENO: result: $with_universal_newlines" >&5
11682 echo "${ECHO_T}$with_universal_newlines" >&6
11684 # Check for --with-doc-strings
11685 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
11686 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
11688 # Check whether --with-doc-strings or --without-doc-strings was given.
11689 if test "${with_doc_strings+set}" = set; then
11690 withval="$with_doc_strings"
11694 if test -z "$with_doc_strings"
11695 then with_doc_strings="yes"
11697 if test "$with_doc_strings" != "no"
11698 then
11700 cat >>confdefs.h <<\_ACEOF
11701 #define WITH_DOC_STRINGS 1
11702 _ACEOF
11705 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
11706 echo "${ECHO_T}$with_doc_strings" >&6
11708 # Check for Python-specific malloc support
11709 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
11710 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
11712 # Check whether --with-pymalloc or --without-pymalloc was given.
11713 if test "${with_pymalloc+set}" = set; then
11714 withval="$with_pymalloc"
11718 if test -z "$with_pymalloc"
11719 then with_pymalloc="yes"
11721 if test "$with_pymalloc" != "no"
11722 then
11724 cat >>confdefs.h <<\_ACEOF
11725 #define WITH_PYMALLOC 1
11726 _ACEOF
11729 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
11730 echo "${ECHO_T}$with_pymalloc" >&6
11732 # Check for --with-wctype-functions
11733 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
11734 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
11736 # Check whether --with-wctype-functions or --without-wctype-functions was given.
11737 if test "${with_wctype_functions+set}" = set; then
11738 withval="$with_wctype_functions"
11740 if test "$withval" != no
11741 then
11743 cat >>confdefs.h <<\_ACEOF
11744 #define WANT_WCTYPE_FUNCTIONS 1
11745 _ACEOF
11747 echo "$as_me:$LINENO: result: yes" >&5
11748 echo "${ECHO_T}yes" >&6
11749 else echo "$as_me:$LINENO: result: no" >&5
11750 echo "${ECHO_T}no" >&6
11752 else
11753 echo "$as_me:$LINENO: result: no" >&5
11754 echo "${ECHO_T}no" >&6
11757 # -I${DLINCLDIR} is added to the compile rule for importdl.o
11759 DLINCLDIR=.
11761 echo "$as_me:$LINENO: checking for --with-sgi-dl" >&5
11762 echo $ECHO_N "checking for --with-sgi-dl... $ECHO_C" >&6
11764 # Check whether --with-sgi-dl or --without-sgi-dl was given.
11765 if test "${with_sgi_dl+set}" = set; then
11766 withval="$with_sgi_dl"
11768 echo "$as_me:$LINENO: result: $withval" >&5
11769 echo "${ECHO_T}$withval" >&6
11770 echo --with-sgi-dl is unsupported, see README
11771 exit 1
11773 cat >>confdefs.h <<\_ACEOF
11774 #define WITH_SGI_DL 1
11775 _ACEOF
11777 DYNLOADFILE="dynload_dl.o"
11778 dldir=$withval
11779 if test ! -z "$dldir" -a -d "$dldir"
11780 then LDFLAGS="$LDFLAGS -L$dldir"
11781 else { { echo "$as_me:$LINENO: error: proper usage is --with-sgi-dl=DIRECTORY" >&5
11782 echo "$as_me: error: proper usage is --with-sgi-dl=DIRECTORY" >&2;}
11783 { (exit 1); exit 1; }; }
11785 DLINCLDIR=${dldir}
11786 LIBS="$LIBS -ldl -lmld"
11787 else
11788 echo "$as_me:$LINENO: result: no" >&5
11789 echo "${ECHO_T}no" >&6
11792 echo "$as_me:$LINENO: checking for --with-dl-dld" >&5
11793 echo $ECHO_N "checking for --with-dl-dld... $ECHO_C" >&6
11795 # Check whether --with-dl-dld or --without-dl-dld was given.
11796 if test "${with_dl_dld+set}" = set; then
11797 withval="$with_dl_dld"
11799 echo "$as_me:$LINENO: result: $withval" >&5
11800 echo "${ECHO_T}$withval" >&6
11801 echo --with-dl-dld is unsupported, see README
11802 exit 1
11804 cat >>confdefs.h <<\_ACEOF
11805 #define WITH_DL_DLD 1
11806 _ACEOF
11808 DYNLOADFILE="dynload_dl.o"
11809 dldir=`echo "$withval" | sed 's/,.*//'`
11810 dlddir=`echo "$withval" | sed 's/.*,//'`
11811 if test ! -z "$dldir" -a -d "$dldir" -a ! -z "$dlddir" -a -d "$dlddir"
11812 then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir"
11813 else { { echo "$as_me:$LINENO: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&5
11814 echo "$as_me: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&2;}
11815 { (exit 1); exit 1; }; }
11817 DLINCLDIR=${dldir}
11818 LIBS="$LIBS -ldl -ldld"
11819 else
11820 echo "$as_me:$LINENO: result: no" >&5
11821 echo "${ECHO_T}no" >&6
11824 # the dlopen() function means we might want to use dynload_shlib.o. some
11825 # platforms, such as AIX, have dlopen(), but don't want to use it.
11827 for ac_func in dlopen
11829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11830 echo "$as_me:$LINENO: checking for $ac_func" >&5
11831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11832 if eval "test \"\${$as_ac_var+set}\" = set"; then
11833 echo $ECHO_N "(cached) $ECHO_C" >&6
11834 else
11835 cat >conftest.$ac_ext <<_ACEOF
11836 #line $LINENO "configure"
11837 #include "confdefs.h"
11838 /* System header to define __stub macros and hopefully few prototypes,
11839 which can conflict with char $ac_func (); below. */
11840 #include <assert.h>
11841 /* Override any gcc2 internal prototype to avoid an error. */
11842 #ifdef __cplusplus
11843 extern "C"
11844 #endif
11845 /* We use char because int might match the return type of a gcc2
11846 builtin and then its argument prototype would still apply. */
11847 char $ac_func ();
11848 char (*f) ();
11850 #ifdef F77_DUMMY_MAIN
11851 # ifdef __cplusplus
11852 extern "C"
11853 # endif
11854 int F77_DUMMY_MAIN() { return 1; }
11855 #endif
11857 main ()
11859 /* The GNU C library defines this for functions which it implements
11860 to always fail with ENOSYS. Some functions are actually named
11861 something starting with __ and the normal name is an alias. */
11862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11863 choke me
11864 #else
11865 f = $ac_func;
11866 #endif
11869 return 0;
11871 _ACEOF
11872 rm -f conftest.$ac_objext conftest$ac_exeext
11873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11874 (eval $ac_link) 2>&5
11875 ac_status=$?
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); } &&
11878 { ac_try='test -s conftest$ac_exeext'
11879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11880 (eval $ac_try) 2>&5
11881 ac_status=$?
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); }; }; then
11884 eval "$as_ac_var=yes"
11885 else
11886 echo "$as_me: failed program was:" >&5
11887 cat conftest.$ac_ext >&5
11888 eval "$as_ac_var=no"
11890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11893 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11894 if test `eval echo '${'$as_ac_var'}'` = yes; then
11895 cat >>confdefs.h <<_ACEOF
11896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11897 _ACEOF
11900 done
11903 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
11904 # loading of modules.
11906 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
11907 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
11908 if test -z "$DYNLOADFILE"
11909 then
11910 case $ac_sys_system/$ac_sys_release in
11911 AIX*) DYNLOADFILE="dynload_aix.o";;
11912 BeOS*) DYNLOADFILE="dynload_beos.o";;
11913 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
11914 Darwin/*) DYNLOADFILE="dynload_next.o";;
11915 atheos*) DYNLOADFILE="dynload_atheos.o";;
11917 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
11918 # out any dynamic loading
11919 if test "$ac_cv_func_dlopen" = yes
11920 then DYNLOADFILE="dynload_shlib.o"
11921 else DYNLOADFILE="dynload_stub.o"
11924 esac
11926 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
11927 echo "${ECHO_T}$DYNLOADFILE" >&6
11928 if test "$DYNLOADFILE" != "dynload_stub.o"
11929 then
11931 cat >>confdefs.h <<\_ACEOF
11932 #define HAVE_DYNAMIC_LOADING 1
11933 _ACEOF
11937 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
11940 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
11941 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
11942 if test -z "$MACHDEP_OBJS"
11943 then
11944 MACHDEP_OBJS=$extra_machdep_objs
11945 else
11946 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
11948 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
11949 echo "${ECHO_T}MACHDEP_OBJS" >&6
11951 # checks for library functions
12027 for ac_func in alarm chown clock confstr ctermid execv \
12028 fchdir flock fork fsync fdatasync fpathconf ftime ftruncate \
12029 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
12030 getpriority getpwent getwd \
12031 hstrerror inet_pton kill killpg lchown lstat mkfifo mknod mktime \
12032 mremap nice pathconf pause plock poll pthread_init \
12033 putenv readlink \
12034 select setegid seteuid setgid \
12035 setlocale setregid setreuid setsid setpgid setuid setvbuf snprintf \
12036 sigaction siginterrupt sigrelse strftime strptime \
12037 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
12038 truncate uname unsetenv utimes waitpid wcscoll _getpty
12040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12041 echo "$as_me:$LINENO: checking for $ac_func" >&5
12042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12043 if eval "test \"\${$as_ac_var+set}\" = set"; then
12044 echo $ECHO_N "(cached) $ECHO_C" >&6
12045 else
12046 cat >conftest.$ac_ext <<_ACEOF
12047 #line $LINENO "configure"
12048 #include "confdefs.h"
12049 /* System header to define __stub macros and hopefully few prototypes,
12050 which can conflict with char $ac_func (); below. */
12051 #include <assert.h>
12052 /* Override any gcc2 internal prototype to avoid an error. */
12053 #ifdef __cplusplus
12054 extern "C"
12055 #endif
12056 /* We use char because int might match the return type of a gcc2
12057 builtin and then its argument prototype would still apply. */
12058 char $ac_func ();
12059 char (*f) ();
12061 #ifdef F77_DUMMY_MAIN
12062 # ifdef __cplusplus
12063 extern "C"
12064 # endif
12065 int F77_DUMMY_MAIN() { return 1; }
12066 #endif
12068 main ()
12070 /* The GNU C library defines this for functions which it implements
12071 to always fail with ENOSYS. Some functions are actually named
12072 something starting with __ and the normal name is an alias. */
12073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12074 choke me
12075 #else
12076 f = $ac_func;
12077 #endif
12080 return 0;
12082 _ACEOF
12083 rm -f conftest.$ac_objext conftest$ac_exeext
12084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12085 (eval $ac_link) 2>&5
12086 ac_status=$?
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); } &&
12089 { ac_try='test -s conftest$ac_exeext'
12090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091 (eval $ac_try) 2>&5
12092 ac_status=$?
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; }; then
12095 eval "$as_ac_var=yes"
12096 else
12097 echo "$as_me: failed program was:" >&5
12098 cat conftest.$ac_ext >&5
12099 eval "$as_ac_var=no"
12101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12104 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12105 if test `eval echo '${'$as_ac_var'}'` = yes; then
12106 cat >>confdefs.h <<_ACEOF
12107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12108 _ACEOF
12111 done
12114 # For some functions, having a definition is not sufficient, since
12115 # we want to take their address.
12116 echo "$as_me:$LINENO: checking for chroot" >&5
12117 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
12118 cat >conftest.$ac_ext <<_ACEOF
12119 #line $LINENO "configure"
12120 #include "confdefs.h"
12121 #include <unistd.h>
12122 #ifdef F77_DUMMY_MAIN
12123 # ifdef __cplusplus
12124 extern "C"
12125 # endif
12126 int F77_DUMMY_MAIN() { return 1; }
12127 #endif
12129 main ()
12131 void *x=chroot
12133 return 0;
12135 _ACEOF
12136 rm -f conftest.$ac_objext
12137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12138 (eval $ac_compile) 2>&5
12139 ac_status=$?
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); } &&
12142 { ac_try='test -s conftest.$ac_objext'
12143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12144 (eval $ac_try) 2>&5
12145 ac_status=$?
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; }; then
12149 cat >>confdefs.h <<\_ACEOF
12150 #define HAVE_CHROOT 1
12151 _ACEOF
12153 echo "$as_me:$LINENO: result: yes" >&5
12154 echo "${ECHO_T}yes" >&6
12155 else
12156 echo "$as_me: failed program was:" >&5
12157 cat conftest.$ac_ext >&5
12158 echo "$as_me:$LINENO: result: no" >&5
12159 echo "${ECHO_T}no" >&6
12162 rm -f conftest.$ac_objext conftest.$ac_ext
12163 echo "$as_me:$LINENO: checking for link" >&5
12164 echo $ECHO_N "checking for link... $ECHO_C" >&6
12165 cat >conftest.$ac_ext <<_ACEOF
12166 #line $LINENO "configure"
12167 #include "confdefs.h"
12168 #include <unistd.h>
12169 #ifdef F77_DUMMY_MAIN
12170 # ifdef __cplusplus
12171 extern "C"
12172 # endif
12173 int F77_DUMMY_MAIN() { return 1; }
12174 #endif
12176 main ()
12178 void *x=link
12180 return 0;
12182 _ACEOF
12183 rm -f conftest.$ac_objext
12184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12185 (eval $ac_compile) 2>&5
12186 ac_status=$?
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } &&
12189 { ac_try='test -s conftest.$ac_objext'
12190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12191 (eval $ac_try) 2>&5
12192 ac_status=$?
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); }; }; then
12196 cat >>confdefs.h <<\_ACEOF
12197 #define HAVE_LINK 1
12198 _ACEOF
12200 echo "$as_me:$LINENO: result: yes" >&5
12201 echo "${ECHO_T}yes" >&6
12202 else
12203 echo "$as_me: failed program was:" >&5
12204 cat conftest.$ac_ext >&5
12205 echo "$as_me:$LINENO: result: no" >&5
12206 echo "${ECHO_T}no" >&6
12209 rm -f conftest.$ac_objext conftest.$ac_ext
12210 echo "$as_me:$LINENO: checking for symlink" >&5
12211 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
12212 cat >conftest.$ac_ext <<_ACEOF
12213 #line $LINENO "configure"
12214 #include "confdefs.h"
12215 #include <unistd.h>
12216 #ifdef F77_DUMMY_MAIN
12217 # ifdef __cplusplus
12218 extern "C"
12219 # endif
12220 int F77_DUMMY_MAIN() { return 1; }
12221 #endif
12223 main ()
12225 void *x=symlink
12227 return 0;
12229 _ACEOF
12230 rm -f conftest.$ac_objext
12231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12232 (eval $ac_compile) 2>&5
12233 ac_status=$?
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); } &&
12236 { ac_try='test -s conftest.$ac_objext'
12237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238 (eval $ac_try) 2>&5
12239 ac_status=$?
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); }; }; then
12243 cat >>confdefs.h <<\_ACEOF
12244 #define HAVE_SYMLINK 1
12245 _ACEOF
12247 echo "$as_me:$LINENO: result: yes" >&5
12248 echo "${ECHO_T}yes" >&6
12249 else
12250 echo "$as_me: failed program was:" >&5
12251 cat conftest.$ac_ext >&5
12252 echo "$as_me:$LINENO: result: no" >&5
12253 echo "${ECHO_T}no" >&6
12256 rm -f conftest.$ac_objext conftest.$ac_ext
12258 # On some systems (eg. FreeBSD 5), we would find a definition of the
12259 # functions ctermid_r, setgroups in the library, but no prototype
12260 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
12261 # address to avoid compiler warnings and potential miscompilations
12262 # because of the missing prototypes.
12264 echo "$as_me:$LINENO: checking for ctermid_r" >&5
12265 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
12266 cat >conftest.$ac_ext <<_ACEOF
12267 #line $LINENO "configure"
12268 #include "confdefs.h"
12270 #include "confdefs.h"
12271 #include <stdio.h>
12273 #ifdef F77_DUMMY_MAIN
12274 # ifdef __cplusplus
12275 extern "C"
12276 # endif
12277 int F77_DUMMY_MAIN() { return 1; }
12278 #endif
12280 main ()
12282 void* p = ctermid_r
12284 return 0;
12286 _ACEOF
12287 rm -f conftest.$ac_objext
12288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12289 (eval $ac_compile) 2>&5
12290 ac_status=$?
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); } &&
12293 { ac_try='test -s conftest.$ac_objext'
12294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295 (eval $ac_try) 2>&5
12296 ac_status=$?
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; }; then
12300 cat >>confdefs.h <<\_ACEOF
12301 #define HAVE_CTERMID_R 1
12302 _ACEOF
12304 echo "$as_me:$LINENO: result: yes" >&5
12305 echo "${ECHO_T}yes" >&6
12306 else
12307 echo "$as_me: failed program was:" >&5
12308 cat conftest.$ac_ext >&5
12309 echo "$as_me:$LINENO: result: no" >&5
12310 echo "${ECHO_T}no" >&6
12313 rm -f conftest.$ac_objext conftest.$ac_ext
12315 echo "$as_me:$LINENO: checking for setgroups" >&5
12316 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
12317 cat >conftest.$ac_ext <<_ACEOF
12318 #line $LINENO "configure"
12319 #include "confdefs.h"
12321 #include "confdefs.h"
12322 #include <unistd.h.h>
12324 #ifdef F77_DUMMY_MAIN
12325 # ifdef __cplusplus
12326 extern "C"
12327 # endif
12328 int F77_DUMMY_MAIN() { return 1; }
12329 #endif
12331 main ()
12333 void* p = setgroups
12335 return 0;
12337 _ACEOF
12338 rm -f conftest.$ac_objext
12339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12340 (eval $ac_compile) 2>&5
12341 ac_status=$?
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); } &&
12344 { ac_try='test -s conftest.$ac_objext'
12345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346 (eval $ac_try) 2>&5
12347 ac_status=$?
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }; }; then
12351 cat >>confdefs.h <<\_ACEOF
12352 #define HAVE_SETGROUPS 1
12353 _ACEOF
12355 echo "$as_me:$LINENO: result: yes" >&5
12356 echo "${ECHO_T}yes" >&6
12357 else
12358 echo "$as_me: failed program was:" >&5
12359 cat conftest.$ac_ext >&5
12360 echo "$as_me:$LINENO: result: no" >&5
12361 echo "${ECHO_T}no" >&6
12364 rm -f conftest.$ac_objext conftest.$ac_ext
12366 # check for openpty and forkpty
12369 for ac_func in openpty
12371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12372 echo "$as_me:$LINENO: checking for $ac_func" >&5
12373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12374 if eval "test \"\${$as_ac_var+set}\" = set"; then
12375 echo $ECHO_N "(cached) $ECHO_C" >&6
12376 else
12377 cat >conftest.$ac_ext <<_ACEOF
12378 #line $LINENO "configure"
12379 #include "confdefs.h"
12380 /* System header to define __stub macros and hopefully few prototypes,
12381 which can conflict with char $ac_func (); below. */
12382 #include <assert.h>
12383 /* Override any gcc2 internal prototype to avoid an error. */
12384 #ifdef __cplusplus
12385 extern "C"
12386 #endif
12387 /* We use char because int might match the return type of a gcc2
12388 builtin and then its argument prototype would still apply. */
12389 char $ac_func ();
12390 char (*f) ();
12392 #ifdef F77_DUMMY_MAIN
12393 # ifdef __cplusplus
12394 extern "C"
12395 # endif
12396 int F77_DUMMY_MAIN() { return 1; }
12397 #endif
12399 main ()
12401 /* The GNU C library defines this for functions which it implements
12402 to always fail with ENOSYS. Some functions are actually named
12403 something starting with __ and the normal name is an alias. */
12404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12405 choke me
12406 #else
12407 f = $ac_func;
12408 #endif
12411 return 0;
12413 _ACEOF
12414 rm -f conftest.$ac_objext conftest$ac_exeext
12415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12416 (eval $ac_link) 2>&5
12417 ac_status=$?
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); } &&
12420 { ac_try='test -s conftest$ac_exeext'
12421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12422 (eval $ac_try) 2>&5
12423 ac_status=$?
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); }; }; then
12426 eval "$as_ac_var=yes"
12427 else
12428 echo "$as_me: failed program was:" >&5
12429 cat conftest.$ac_ext >&5
12430 eval "$as_ac_var=no"
12432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12435 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12436 if test `eval echo '${'$as_ac_var'}'` = yes; then
12437 cat >>confdefs.h <<_ACEOF
12438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12439 _ACEOF
12441 else
12442 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
12443 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
12444 if test "${ac_cv_lib_util_openpty+set}" = set; then
12445 echo $ECHO_N "(cached) $ECHO_C" >&6
12446 else
12447 ac_check_lib_save_LIBS=$LIBS
12448 LIBS="-lutil $LIBS"
12449 cat >conftest.$ac_ext <<_ACEOF
12450 #line $LINENO "configure"
12451 #include "confdefs.h"
12453 /* Override any gcc2 internal prototype to avoid an error. */
12454 #ifdef __cplusplus
12455 extern "C"
12456 #endif
12457 /* We use char because int might match the return type of a gcc2
12458 builtin and then its argument prototype would still apply. */
12459 char openpty ();
12460 #ifdef F77_DUMMY_MAIN
12461 # ifdef __cplusplus
12462 extern "C"
12463 # endif
12464 int F77_DUMMY_MAIN() { return 1; }
12465 #endif
12467 main ()
12469 openpty ();
12471 return 0;
12473 _ACEOF
12474 rm -f conftest.$ac_objext conftest$ac_exeext
12475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12476 (eval $ac_link) 2>&5
12477 ac_status=$?
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); } &&
12480 { ac_try='test -s conftest$ac_exeext'
12481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12482 (eval $ac_try) 2>&5
12483 ac_status=$?
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); }; }; then
12486 ac_cv_lib_util_openpty=yes
12487 else
12488 echo "$as_me: failed program was:" >&5
12489 cat conftest.$ac_ext >&5
12490 ac_cv_lib_util_openpty=no
12492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12493 LIBS=$ac_check_lib_save_LIBS
12495 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12496 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12497 if test $ac_cv_lib_util_openpty = yes; then
12498 cat >>confdefs.h <<\_ACEOF
12499 #define HAVE_OPENPTY 1
12500 _ACEOF
12501 LIBS="$LIBS -lutil"
12505 done
12508 for ac_func in forkpty
12510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12511 echo "$as_me:$LINENO: checking for $ac_func" >&5
12512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12513 if eval "test \"\${$as_ac_var+set}\" = set"; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12515 else
12516 cat >conftest.$ac_ext <<_ACEOF
12517 #line $LINENO "configure"
12518 #include "confdefs.h"
12519 /* System header to define __stub macros and hopefully few prototypes,
12520 which can conflict with char $ac_func (); below. */
12521 #include <assert.h>
12522 /* Override any gcc2 internal prototype to avoid an error. */
12523 #ifdef __cplusplus
12524 extern "C"
12525 #endif
12526 /* We use char because int might match the return type of a gcc2
12527 builtin and then its argument prototype would still apply. */
12528 char $ac_func ();
12529 char (*f) ();
12531 #ifdef F77_DUMMY_MAIN
12532 # ifdef __cplusplus
12533 extern "C"
12534 # endif
12535 int F77_DUMMY_MAIN() { return 1; }
12536 #endif
12538 main ()
12540 /* The GNU C library defines this for functions which it implements
12541 to always fail with ENOSYS. Some functions are actually named
12542 something starting with __ and the normal name is an alias. */
12543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12544 choke me
12545 #else
12546 f = $ac_func;
12547 #endif
12550 return 0;
12552 _ACEOF
12553 rm -f conftest.$ac_objext conftest$ac_exeext
12554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12555 (eval $ac_link) 2>&5
12556 ac_status=$?
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); } &&
12559 { ac_try='test -s conftest$ac_exeext'
12560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12561 (eval $ac_try) 2>&5
12562 ac_status=$?
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); }; }; then
12565 eval "$as_ac_var=yes"
12566 else
12567 echo "$as_me: failed program was:" >&5
12568 cat conftest.$ac_ext >&5
12569 eval "$as_ac_var=no"
12571 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12575 if test `eval echo '${'$as_ac_var'}'` = yes; then
12576 cat >>confdefs.h <<_ACEOF
12577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12578 _ACEOF
12580 else
12581 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
12582 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
12583 if test "${ac_cv_lib_util_forkpty+set}" = set; then
12584 echo $ECHO_N "(cached) $ECHO_C" >&6
12585 else
12586 ac_check_lib_save_LIBS=$LIBS
12587 LIBS="-lutil $LIBS"
12588 cat >conftest.$ac_ext <<_ACEOF
12589 #line $LINENO "configure"
12590 #include "confdefs.h"
12592 /* Override any gcc2 internal prototype to avoid an error. */
12593 #ifdef __cplusplus
12594 extern "C"
12595 #endif
12596 /* We use char because int might match the return type of a gcc2
12597 builtin and then its argument prototype would still apply. */
12598 char forkpty ();
12599 #ifdef F77_DUMMY_MAIN
12600 # ifdef __cplusplus
12601 extern "C"
12602 # endif
12603 int F77_DUMMY_MAIN() { return 1; }
12604 #endif
12606 main ()
12608 forkpty ();
12610 return 0;
12612 _ACEOF
12613 rm -f conftest.$ac_objext conftest$ac_exeext
12614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12615 (eval $ac_link) 2>&5
12616 ac_status=$?
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); } &&
12619 { ac_try='test -s conftest$ac_exeext'
12620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12621 (eval $ac_try) 2>&5
12622 ac_status=$?
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); }; }; then
12625 ac_cv_lib_util_forkpty=yes
12626 else
12627 echo "$as_me: failed program was:" >&5
12628 cat conftest.$ac_ext >&5
12629 ac_cv_lib_util_forkpty=no
12631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12632 LIBS=$ac_check_lib_save_LIBS
12634 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
12635 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
12636 if test $ac_cv_lib_util_forkpty = yes; then
12637 cat >>confdefs.h <<\_ACEOF
12638 #define HAVE_FORKPTY 1
12639 _ACEOF
12640 LIBS="$LIBS -lutil"
12644 done
12647 # check for long file support functions
12654 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
12656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12657 echo "$as_me:$LINENO: checking for $ac_func" >&5
12658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12659 if eval "test \"\${$as_ac_var+set}\" = set"; then
12660 echo $ECHO_N "(cached) $ECHO_C" >&6
12661 else
12662 cat >conftest.$ac_ext <<_ACEOF
12663 #line $LINENO "configure"
12664 #include "confdefs.h"
12665 /* System header to define __stub macros and hopefully few prototypes,
12666 which can conflict with char $ac_func (); below. */
12667 #include <assert.h>
12668 /* Override any gcc2 internal prototype to avoid an error. */
12669 #ifdef __cplusplus
12670 extern "C"
12671 #endif
12672 /* We use char because int might match the return type of a gcc2
12673 builtin and then its argument prototype would still apply. */
12674 char $ac_func ();
12675 char (*f) ();
12677 #ifdef F77_DUMMY_MAIN
12678 # ifdef __cplusplus
12679 extern "C"
12680 # endif
12681 int F77_DUMMY_MAIN() { return 1; }
12682 #endif
12684 main ()
12686 /* The GNU C library defines this for functions which it implements
12687 to always fail with ENOSYS. Some functions are actually named
12688 something starting with __ and the normal name is an alias. */
12689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12690 choke me
12691 #else
12692 f = $ac_func;
12693 #endif
12696 return 0;
12698 _ACEOF
12699 rm -f conftest.$ac_objext conftest$ac_exeext
12700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12701 (eval $ac_link) 2>&5
12702 ac_status=$?
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); } &&
12705 { ac_try='test -s conftest$ac_exeext'
12706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12707 (eval $ac_try) 2>&5
12708 ac_status=$?
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); }; }; then
12711 eval "$as_ac_var=yes"
12712 else
12713 echo "$as_me: failed program was:" >&5
12714 cat conftest.$ac_ext >&5
12715 eval "$as_ac_var=no"
12717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12720 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12721 if test `eval echo '${'$as_ac_var'}'` = yes; then
12722 cat >>confdefs.h <<_ACEOF
12723 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12724 _ACEOF
12727 done
12735 for ac_func in dup2 getcwd strdup strerror memmove
12737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12738 echo "$as_me:$LINENO: checking for $ac_func" >&5
12739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12740 if eval "test \"\${$as_ac_var+set}\" = set"; then
12741 echo $ECHO_N "(cached) $ECHO_C" >&6
12742 else
12743 cat >conftest.$ac_ext <<_ACEOF
12744 #line $LINENO "configure"
12745 #include "confdefs.h"
12746 /* System header to define __stub macros and hopefully few prototypes,
12747 which can conflict with char $ac_func (); below. */
12748 #include <assert.h>
12749 /* Override any gcc2 internal prototype to avoid an error. */
12750 #ifdef __cplusplus
12751 extern "C"
12752 #endif
12753 /* We use char because int might match the return type of a gcc2
12754 builtin and then its argument prototype would still apply. */
12755 char $ac_func ();
12756 char (*f) ();
12758 #ifdef F77_DUMMY_MAIN
12759 # ifdef __cplusplus
12760 extern "C"
12761 # endif
12762 int F77_DUMMY_MAIN() { return 1; }
12763 #endif
12765 main ()
12767 /* The GNU C library defines this for functions which it implements
12768 to always fail with ENOSYS. Some functions are actually named
12769 something starting with __ and the normal name is an alias. */
12770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12771 choke me
12772 #else
12773 f = $ac_func;
12774 #endif
12777 return 0;
12779 _ACEOF
12780 rm -f conftest.$ac_objext conftest$ac_exeext
12781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12782 (eval $ac_link) 2>&5
12783 ac_status=$?
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); } &&
12786 { ac_try='test -s conftest$ac_exeext'
12787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12788 (eval $ac_try) 2>&5
12789 ac_status=$?
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; }; then
12792 eval "$as_ac_var=yes"
12793 else
12794 echo "$as_me: failed program was:" >&5
12795 cat conftest.$ac_ext >&5
12796 eval "$as_ac_var=no"
12798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12801 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12802 if test `eval echo '${'$as_ac_var'}'` = yes; then
12803 cat >>confdefs.h <<_ACEOF
12804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12805 _ACEOF
12807 else
12808 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12810 done
12814 for ac_func in getpgrp
12816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12817 echo "$as_me:$LINENO: checking for $ac_func" >&5
12818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12819 if eval "test \"\${$as_ac_var+set}\" = set"; then
12820 echo $ECHO_N "(cached) $ECHO_C" >&6
12821 else
12822 cat >conftest.$ac_ext <<_ACEOF
12823 #line $LINENO "configure"
12824 #include "confdefs.h"
12825 /* System header to define __stub macros and hopefully few prototypes,
12826 which can conflict with char $ac_func (); below. */
12827 #include <assert.h>
12828 /* Override any gcc2 internal prototype to avoid an error. */
12829 #ifdef __cplusplus
12830 extern "C"
12831 #endif
12832 /* We use char because int might match the return type of a gcc2
12833 builtin and then its argument prototype would still apply. */
12834 char $ac_func ();
12835 char (*f) ();
12837 #ifdef F77_DUMMY_MAIN
12838 # ifdef __cplusplus
12839 extern "C"
12840 # endif
12841 int F77_DUMMY_MAIN() { return 1; }
12842 #endif
12844 main ()
12846 /* The GNU C library defines this for functions which it implements
12847 to always fail with ENOSYS. Some functions are actually named
12848 something starting with __ and the normal name is an alias. */
12849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12850 choke me
12851 #else
12852 f = $ac_func;
12853 #endif
12856 return 0;
12858 _ACEOF
12859 rm -f conftest.$ac_objext conftest$ac_exeext
12860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12861 (eval $ac_link) 2>&5
12862 ac_status=$?
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } &&
12865 { ac_try='test -s conftest$ac_exeext'
12866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12867 (eval $ac_try) 2>&5
12868 ac_status=$?
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); }; }; then
12871 eval "$as_ac_var=yes"
12872 else
12873 echo "$as_me: failed program was:" >&5
12874 cat conftest.$ac_ext >&5
12875 eval "$as_ac_var=no"
12877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12880 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12881 if test `eval echo '${'$as_ac_var'}'` = yes; then
12882 cat >>confdefs.h <<_ACEOF
12883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12884 _ACEOF
12885 cat >conftest.$ac_ext <<_ACEOF
12886 #line $LINENO "configure"
12887 #include "confdefs.h"
12888 #include <unistd.h>
12889 #ifdef F77_DUMMY_MAIN
12890 # ifdef __cplusplus
12891 extern "C"
12892 # endif
12893 int F77_DUMMY_MAIN() { return 1; }
12894 #endif
12896 main ()
12898 getpgrp(0);
12900 return 0;
12902 _ACEOF
12903 rm -f conftest.$ac_objext
12904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12905 (eval $ac_compile) 2>&5
12906 ac_status=$?
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); } &&
12909 { ac_try='test -s conftest.$ac_objext'
12910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911 (eval $ac_try) 2>&5
12912 ac_status=$?
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; }; then
12916 cat >>confdefs.h <<\_ACEOF
12917 #define GETPGRP_HAVE_ARG 1
12918 _ACEOF
12921 else
12922 echo "$as_me: failed program was:" >&5
12923 cat conftest.$ac_ext >&5
12925 rm -f conftest.$ac_objext conftest.$ac_ext
12928 done
12930 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
12931 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
12932 if test "${ac_cv_func_setpgrp_void+set}" = set; then
12933 echo $ECHO_N "(cached) $ECHO_C" >&6
12934 else
12935 if test "$cross_compiling" = yes; then
12936 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
12937 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
12938 { (exit 1); exit 1; }; }
12939 else
12940 cat >conftest.$ac_ext <<_ACEOF
12941 #line $LINENO "configure"
12942 #include "confdefs.h"
12943 #if HAVE_UNISTD_H
12944 # include <unistd.h>
12945 #endif
12947 #ifdef F77_DUMMY_MAIN
12948 # ifdef __cplusplus
12949 extern "C"
12950 # endif
12951 int F77_DUMMY_MAIN() { return 1; }
12952 #endif
12954 main ()
12956 /* If this system has a BSD-style setpgrp which takes arguments,
12957 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12958 exit successfully. */
12959 exit (setpgrp (1,1) == -1 ? 0 : 1);
12961 return 0;
12963 _ACEOF
12964 rm -f conftest$ac_exeext
12965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12966 (eval $ac_link) 2>&5
12967 ac_status=$?
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12971 (eval $ac_try) 2>&5
12972 ac_status=$?
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); }; }; then
12975 ac_cv_func_setpgrp_void=no
12976 else
12977 echo "$as_me: program exited with status $ac_status" >&5
12978 echo "$as_me: failed program was:" >&5
12979 cat conftest.$ac_ext >&5
12980 ( exit $ac_status )
12981 ac_cv_func_setpgrp_void=yes
12983 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12986 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
12987 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
12988 if test $ac_cv_func_setpgrp_void = yes; then
12990 cat >>confdefs.h <<\_ACEOF
12991 #define SETPGRP_VOID 1
12992 _ACEOF
12997 for ac_func in gettimeofday
12999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13000 echo "$as_me:$LINENO: checking for $ac_func" >&5
13001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13002 if eval "test \"\${$as_ac_var+set}\" = set"; then
13003 echo $ECHO_N "(cached) $ECHO_C" >&6
13004 else
13005 cat >conftest.$ac_ext <<_ACEOF
13006 #line $LINENO "configure"
13007 #include "confdefs.h"
13008 /* System header to define __stub macros and hopefully few prototypes,
13009 which can conflict with char $ac_func (); below. */
13010 #include <assert.h>
13011 /* Override any gcc2 internal prototype to avoid an error. */
13012 #ifdef __cplusplus
13013 extern "C"
13014 #endif
13015 /* We use char because int might match the return type of a gcc2
13016 builtin and then its argument prototype would still apply. */
13017 char $ac_func ();
13018 char (*f) ();
13020 #ifdef F77_DUMMY_MAIN
13021 # ifdef __cplusplus
13022 extern "C"
13023 # endif
13024 int F77_DUMMY_MAIN() { return 1; }
13025 #endif
13027 main ()
13029 /* The GNU C library defines this for functions which it implements
13030 to always fail with ENOSYS. Some functions are actually named
13031 something starting with __ and the normal name is an alias. */
13032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13033 choke me
13034 #else
13035 f = $ac_func;
13036 #endif
13039 return 0;
13041 _ACEOF
13042 rm -f conftest.$ac_objext conftest$ac_exeext
13043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13044 (eval $ac_link) 2>&5
13045 ac_status=$?
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); } &&
13048 { ac_try='test -s conftest$ac_exeext'
13049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13050 (eval $ac_try) 2>&5
13051 ac_status=$?
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); }; }; then
13054 eval "$as_ac_var=yes"
13055 else
13056 echo "$as_me: failed program was:" >&5
13057 cat conftest.$ac_ext >&5
13058 eval "$as_ac_var=no"
13060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13064 if test `eval echo '${'$as_ac_var'}'` = yes; then
13065 cat >>confdefs.h <<_ACEOF
13066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13067 _ACEOF
13068 cat >conftest.$ac_ext <<_ACEOF
13069 #line $LINENO "configure"
13070 #include "confdefs.h"
13071 #include <sys/time.h>
13072 #ifdef F77_DUMMY_MAIN
13073 # ifdef __cplusplus
13074 extern "C"
13075 # endif
13076 int F77_DUMMY_MAIN() { return 1; }
13077 #endif
13079 main ()
13081 gettimeofday((struct timeval*)0,(struct timezone*)0);
13083 return 0;
13085 _ACEOF
13086 rm -f conftest.$ac_objext
13087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13088 (eval $ac_compile) 2>&5
13089 ac_status=$?
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); } &&
13092 { ac_try='test -s conftest.$ac_objext'
13093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13094 (eval $ac_try) 2>&5
13095 ac_status=$?
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); }; }; then
13099 else
13100 echo "$as_me: failed program was:" >&5
13101 cat conftest.$ac_ext >&5
13103 cat >>confdefs.h <<\_ACEOF
13104 #define GETTIMEOFDAY_NO_TZ 1
13105 _ACEOF
13109 rm -f conftest.$ac_objext conftest.$ac_ext
13112 done
13115 echo "$as_me:$LINENO: checking for major" >&5
13116 echo $ECHO_N "checking for major... $ECHO_C" >&6
13117 cat >conftest.$ac_ext <<_ACEOF
13118 #line $LINENO "configure"
13119 #include "confdefs.h"
13121 #if defined(MAJOR_IN_MKDEV)
13122 #include <sys/mkdev.h>
13123 #elif defined(MAJOR_IN_SYSMACROS)
13124 #include <sys/sysmacros.h>
13125 #else
13126 #include <sys/types.h>
13127 #endif
13129 #ifdef F77_DUMMY_MAIN
13130 # ifdef __cplusplus
13131 extern "C"
13132 # endif
13133 int F77_DUMMY_MAIN() { return 1; }
13134 #endif
13136 main ()
13139 makedev(major(0),minor(0));
13142 return 0;
13144 _ACEOF
13145 rm -f conftest.$ac_objext conftest$ac_exeext
13146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13147 (eval $ac_link) 2>&5
13148 ac_status=$?
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); } &&
13151 { ac_try='test -s conftest$ac_exeext'
13152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13153 (eval $ac_try) 2>&5
13154 ac_status=$?
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; }; then
13159 cat >>confdefs.h <<\_ACEOF
13160 #define HAVE_DEVICE_MACROS 1
13161 _ACEOF
13163 echo "$as_me:$LINENO: result: yes" >&5
13164 echo "${ECHO_T}yes" >&6
13166 else
13167 echo "$as_me: failed program was:" >&5
13168 cat conftest.$ac_ext >&5
13170 echo "$as_me:$LINENO: result: no" >&5
13171 echo "${ECHO_T}no" >&6
13174 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13176 # On OSF/1 V5.1, getaddrinfo is available, but a define
13177 # for [no]getaddrinfo in netdb.h.
13178 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
13179 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
13180 cat >conftest.$ac_ext <<_ACEOF
13181 #line $LINENO "configure"
13182 #include "confdefs.h"
13184 #include <sys/types.h>
13185 #include <sys/socket.h>
13186 #include <netdb.h>
13187 #include <stdio.h>
13189 #ifdef F77_DUMMY_MAIN
13190 # ifdef __cplusplus
13191 extern "C"
13192 # endif
13193 int F77_DUMMY_MAIN() { return 1; }
13194 #endif
13196 main ()
13199 getaddrinfo(NULL, NULL, NULL, NULL);
13202 return 0;
13204 _ACEOF
13205 rm -f conftest.$ac_objext conftest$ac_exeext
13206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13207 (eval $ac_link) 2>&5
13208 ac_status=$?
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); } &&
13211 { ac_try='test -s conftest$ac_exeext'
13212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13213 (eval $ac_try) 2>&5
13214 ac_status=$?
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; }; then
13218 echo "$as_me:$LINENO: result: yes" >&5
13219 echo "${ECHO_T}yes" >&6
13220 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
13221 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
13222 if test "$cross_compiling" = yes; then
13223 echo "$as_me:$LINENO: result: buggy" >&5
13224 echo "${ECHO_T}buggy" >&6
13225 buggygetaddrinfo=yes
13226 else
13227 cat >conftest.$ac_ext <<_ACEOF
13228 #line $LINENO "configure"
13229 #include "confdefs.h"
13231 #include <sys/types.h>
13232 #include <netdb.h>
13233 #include <string.h>
13234 #include <sys/socket.h>
13235 #include <netinet/in.h>
13237 main()
13239 int passive, gaierr, inet4 = 0, inet6 = 0;
13240 struct addrinfo hints, *ai, *aitop;
13241 char straddr[INET6_ADDRSTRLEN], strport[16];
13243 for (passive = 0; passive <= 1; passive++) {
13244 memset(&hints, 0, sizeof(hints));
13245 hints.ai_family = AF_UNSPEC;
13246 hints.ai_flags = passive ? AI_PASSIVE : 0;
13247 hints.ai_socktype = SOCK_STREAM;
13248 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
13249 (void)gai_strerror(gaierr);
13250 goto bad;
13252 for (ai = aitop; ai; ai = ai->ai_next) {
13253 if (ai->ai_addr == NULL ||
13254 ai->ai_addrlen == 0 ||
13255 getnameinfo(ai->ai_addr, ai->ai_addrlen,
13256 straddr, sizeof(straddr), strport, sizeof(strport),
13257 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
13258 goto bad;
13260 switch (ai->ai_family) {
13261 case AF_INET:
13262 if (strcmp(strport, "54321") != 0) {
13263 goto bad;
13265 if (passive) {
13266 if (strcmp(straddr, "0.0.0.0") != 0) {
13267 goto bad;
13269 } else {
13270 if (strcmp(straddr, "127.0.0.1") != 0) {
13271 goto bad;
13274 inet4++;
13275 break;
13276 case AF_INET6:
13277 if (strcmp(strport, "54321") != 0) {
13278 goto bad;
13280 if (passive) {
13281 if (strcmp(straddr, "::") != 0) {
13282 goto bad;
13284 } else {
13285 if (strcmp(straddr, "::1") != 0) {
13286 goto bad;
13289 inet6++;
13290 break;
13291 case AF_UNSPEC:
13292 goto bad;
13293 break;
13294 default:
13295 /* another family support? */
13296 break;
13301 if (!(inet4 == 0 || inet4 == 2))
13302 goto bad;
13303 if (!(inet6 == 0 || inet6 == 2))
13304 goto bad;
13306 if (aitop)
13307 freeaddrinfo(aitop);
13308 exit(0);
13310 bad:
13311 if (aitop)
13312 freeaddrinfo(aitop);
13313 exit(1);
13316 _ACEOF
13317 rm -f conftest$ac_exeext
13318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13319 (eval $ac_link) 2>&5
13320 ac_status=$?
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13324 (eval $ac_try) 2>&5
13325 ac_status=$?
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); }; }; then
13328 echo "$as_me:$LINENO: result: good" >&5
13329 echo "${ECHO_T}good" >&6
13330 buggygetaddrinfo=no
13331 else
13332 echo "$as_me: program exited with status $ac_status" >&5
13333 echo "$as_me: failed program was:" >&5
13334 cat conftest.$ac_ext >&5
13335 ( exit $ac_status )
13336 echo "$as_me:$LINENO: result: buggy" >&5
13337 echo "${ECHO_T}buggy" >&6
13338 buggygetaddrinfo=yes
13340 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13342 else
13343 echo "$as_me: failed program was:" >&5
13344 cat conftest.$ac_ext >&5
13346 echo "$as_me:$LINENO: result: no" >&5
13347 echo "${ECHO_T}no" >&6
13348 buggygetaddrinfo=yes
13351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13353 if test "$buggygetaddrinfo" = "yes"; then
13354 if test "$ipv6" = "yes"; then
13355 echo 'Fatal: You must get working getaddrinfo() function.'
13356 echo ' or you can specify "--disable-ipv6"'.
13357 exit 1
13359 else
13361 cat >>confdefs.h <<\_ACEOF
13362 #define HAVE_GETADDRINFO 1
13363 _ACEOF
13367 for ac_func in getnameinfo
13369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13370 echo "$as_me:$LINENO: checking for $ac_func" >&5
13371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13372 if eval "test \"\${$as_ac_var+set}\" = set"; then
13373 echo $ECHO_N "(cached) $ECHO_C" >&6
13374 else
13375 cat >conftest.$ac_ext <<_ACEOF
13376 #line $LINENO "configure"
13377 #include "confdefs.h"
13378 /* System header to define __stub macros and hopefully few prototypes,
13379 which can conflict with char $ac_func (); below. */
13380 #include <assert.h>
13381 /* Override any gcc2 internal prototype to avoid an error. */
13382 #ifdef __cplusplus
13383 extern "C"
13384 #endif
13385 /* We use char because int might match the return type of a gcc2
13386 builtin and then its argument prototype would still apply. */
13387 char $ac_func ();
13388 char (*f) ();
13390 #ifdef F77_DUMMY_MAIN
13391 # ifdef __cplusplus
13392 extern "C"
13393 # endif
13394 int F77_DUMMY_MAIN() { return 1; }
13395 #endif
13397 main ()
13399 /* The GNU C library defines this for functions which it implements
13400 to always fail with ENOSYS. Some functions are actually named
13401 something starting with __ and the normal name is an alias. */
13402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13403 choke me
13404 #else
13405 f = $ac_func;
13406 #endif
13409 return 0;
13411 _ACEOF
13412 rm -f conftest.$ac_objext conftest$ac_exeext
13413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13414 (eval $ac_link) 2>&5
13415 ac_status=$?
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); } &&
13418 { ac_try='test -s conftest$ac_exeext'
13419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13420 (eval $ac_try) 2>&5
13421 ac_status=$?
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); }; }; then
13424 eval "$as_ac_var=yes"
13425 else
13426 echo "$as_me: failed program was:" >&5
13427 cat conftest.$ac_ext >&5
13428 eval "$as_ac_var=no"
13430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13433 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13434 if test `eval echo '${'$as_ac_var'}'` = yes; then
13435 cat >>confdefs.h <<_ACEOF
13436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13437 _ACEOF
13440 done
13443 # checks for structures
13444 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13445 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
13446 if test "${ac_cv_header_time+set}" = set; then
13447 echo $ECHO_N "(cached) $ECHO_C" >&6
13448 else
13449 cat >conftest.$ac_ext <<_ACEOF
13450 #line $LINENO "configure"
13451 #include "confdefs.h"
13452 #include <sys/types.h>
13453 #include <sys/time.h>
13454 #include <time.h>
13456 #ifdef F77_DUMMY_MAIN
13457 # ifdef __cplusplus
13458 extern "C"
13459 # endif
13460 int F77_DUMMY_MAIN() { return 1; }
13461 #endif
13463 main ()
13465 if ((struct tm *) 0)
13466 return 0;
13468 return 0;
13470 _ACEOF
13471 rm -f conftest.$ac_objext
13472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13473 (eval $ac_compile) 2>&5
13474 ac_status=$?
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); } &&
13477 { ac_try='test -s conftest.$ac_objext'
13478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13479 (eval $ac_try) 2>&5
13480 ac_status=$?
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); }; }; then
13483 ac_cv_header_time=yes
13484 else
13485 echo "$as_me: failed program was:" >&5
13486 cat conftest.$ac_ext >&5
13487 ac_cv_header_time=no
13489 rm -f conftest.$ac_objext conftest.$ac_ext
13491 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13492 echo "${ECHO_T}$ac_cv_header_time" >&6
13493 if test $ac_cv_header_time = yes; then
13495 cat >>confdefs.h <<\_ACEOF
13496 #define TIME_WITH_SYS_TIME 1
13497 _ACEOF
13501 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13502 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
13503 if test "${ac_cv_struct_tm+set}" = set; then
13504 echo $ECHO_N "(cached) $ECHO_C" >&6
13505 else
13506 cat >conftest.$ac_ext <<_ACEOF
13507 #line $LINENO "configure"
13508 #include "confdefs.h"
13509 #include <sys/types.h>
13510 #include <time.h>
13512 #ifdef F77_DUMMY_MAIN
13513 # ifdef __cplusplus
13514 extern "C"
13515 # endif
13516 int F77_DUMMY_MAIN() { return 1; }
13517 #endif
13519 main ()
13521 struct tm *tp; tp->tm_sec;
13523 return 0;
13525 _ACEOF
13526 rm -f conftest.$ac_objext
13527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13528 (eval $ac_compile) 2>&5
13529 ac_status=$?
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); } &&
13532 { ac_try='test -s conftest.$ac_objext'
13533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13534 (eval $ac_try) 2>&5
13535 ac_status=$?
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); }; }; then
13538 ac_cv_struct_tm=time.h
13539 else
13540 echo "$as_me: failed program was:" >&5
13541 cat conftest.$ac_ext >&5
13542 ac_cv_struct_tm=sys/time.h
13544 rm -f conftest.$ac_objext conftest.$ac_ext
13546 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13547 echo "${ECHO_T}$ac_cv_struct_tm" >&6
13548 if test $ac_cv_struct_tm = sys/time.h; then
13550 cat >>confdefs.h <<\_ACEOF
13551 #define TM_IN_SYS_TIME 1
13552 _ACEOF
13556 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
13557 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
13558 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
13559 echo $ECHO_N "(cached) $ECHO_C" >&6
13560 else
13561 cat >conftest.$ac_ext <<_ACEOF
13562 #line $LINENO "configure"
13563 #include "confdefs.h"
13564 #include <sys/types.h>
13565 #include <$ac_cv_struct_tm>
13568 #ifdef F77_DUMMY_MAIN
13569 # ifdef __cplusplus
13570 extern "C"
13571 # endif
13572 int F77_DUMMY_MAIN() { return 1; }
13573 #endif
13575 main ()
13577 static struct tm ac_aggr;
13578 if (ac_aggr.tm_zone)
13579 return 0;
13581 return 0;
13583 _ACEOF
13584 rm -f conftest.$ac_objext
13585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13586 (eval $ac_compile) 2>&5
13587 ac_status=$?
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); } &&
13590 { ac_try='test -s conftest.$ac_objext'
13591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13592 (eval $ac_try) 2>&5
13593 ac_status=$?
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); }; }; then
13596 ac_cv_member_struct_tm_tm_zone=yes
13597 else
13598 echo "$as_me: failed program was:" >&5
13599 cat conftest.$ac_ext >&5
13600 ac_cv_member_struct_tm_tm_zone=no
13602 rm -f conftest.$ac_objext conftest.$ac_ext
13604 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
13605 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
13606 if test $ac_cv_member_struct_tm_tm_zone = yes; then
13608 cat >>confdefs.h <<_ACEOF
13609 #define HAVE_STRUCT_TM_TM_ZONE 1
13610 _ACEOF
13615 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13617 cat >>confdefs.h <<\_ACEOF
13618 #define HAVE_TM_ZONE 1
13619 _ACEOF
13621 else
13622 echo "$as_me:$LINENO: checking for tzname" >&5
13623 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
13624 if test "${ac_cv_var_tzname+set}" = set; then
13625 echo $ECHO_N "(cached) $ECHO_C" >&6
13626 else
13627 cat >conftest.$ac_ext <<_ACEOF
13628 #line $LINENO "configure"
13629 #include "confdefs.h"
13630 #include <time.h>
13631 #ifndef tzname /* For SGI. */
13632 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
13633 #endif
13635 #ifdef F77_DUMMY_MAIN
13636 # ifdef __cplusplus
13637 extern "C"
13638 # endif
13639 int F77_DUMMY_MAIN() { return 1; }
13640 #endif
13642 main ()
13644 atoi(*tzname);
13646 return 0;
13648 _ACEOF
13649 rm -f conftest.$ac_objext conftest$ac_exeext
13650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13651 (eval $ac_link) 2>&5
13652 ac_status=$?
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); } &&
13655 { ac_try='test -s conftest$ac_exeext'
13656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13657 (eval $ac_try) 2>&5
13658 ac_status=$?
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); }; }; then
13661 ac_cv_var_tzname=yes
13662 else
13663 echo "$as_me: failed program was:" >&5
13664 cat conftest.$ac_ext >&5
13665 ac_cv_var_tzname=no
13667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13669 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
13670 echo "${ECHO_T}$ac_cv_var_tzname" >&6
13671 if test $ac_cv_var_tzname = yes; then
13673 cat >>confdefs.h <<\_ACEOF
13674 #define HAVE_TZNAME 1
13675 _ACEOF
13680 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
13681 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
13682 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
13683 echo $ECHO_N "(cached) $ECHO_C" >&6
13684 else
13685 cat >conftest.$ac_ext <<_ACEOF
13686 #line $LINENO "configure"
13687 #include "confdefs.h"
13688 $ac_includes_default
13689 #ifdef F77_DUMMY_MAIN
13690 # ifdef __cplusplus
13691 extern "C"
13692 # endif
13693 int F77_DUMMY_MAIN() { return 1; }
13694 #endif
13696 main ()
13698 static struct stat ac_aggr;
13699 if (ac_aggr.st_rdev)
13700 return 0;
13702 return 0;
13704 _ACEOF
13705 rm -f conftest.$ac_objext
13706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13707 (eval $ac_compile) 2>&5
13708 ac_status=$?
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); } &&
13711 { ac_try='test -s conftest.$ac_objext'
13712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13713 (eval $ac_try) 2>&5
13714 ac_status=$?
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); }; }; then
13717 ac_cv_member_struct_stat_st_rdev=yes
13718 else
13719 echo "$as_me: failed program was:" >&5
13720 cat conftest.$ac_ext >&5
13721 ac_cv_member_struct_stat_st_rdev=no
13723 rm -f conftest.$ac_objext conftest.$ac_ext
13725 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
13726 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
13727 if test $ac_cv_member_struct_stat_st_rdev = yes; then
13729 cat >>confdefs.h <<_ACEOF
13730 #define HAVE_STRUCT_STAT_ST_RDEV 1
13731 _ACEOF
13736 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13737 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13738 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13739 echo $ECHO_N "(cached) $ECHO_C" >&6
13740 else
13741 cat >conftest.$ac_ext <<_ACEOF
13742 #line $LINENO "configure"
13743 #include "confdefs.h"
13744 $ac_includes_default
13745 #ifdef F77_DUMMY_MAIN
13746 # ifdef __cplusplus
13747 extern "C"
13748 # endif
13749 int F77_DUMMY_MAIN() { return 1; }
13750 #endif
13752 main ()
13754 static struct stat ac_aggr;
13755 if (ac_aggr.st_blksize)
13756 return 0;
13758 return 0;
13760 _ACEOF
13761 rm -f conftest.$ac_objext
13762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13763 (eval $ac_compile) 2>&5
13764 ac_status=$?
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); } &&
13767 { ac_try='test -s conftest.$ac_objext'
13768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13769 (eval $ac_try) 2>&5
13770 ac_status=$?
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); }; }; then
13773 ac_cv_member_struct_stat_st_blksize=yes
13774 else
13775 echo "$as_me: failed program was:" >&5
13776 cat conftest.$ac_ext >&5
13777 ac_cv_member_struct_stat_st_blksize=no
13779 rm -f conftest.$ac_objext conftest.$ac_ext
13781 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13782 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13783 if test $ac_cv_member_struct_stat_st_blksize = yes; then
13785 cat >>confdefs.h <<_ACEOF
13786 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13787 _ACEOF
13792 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13793 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13794 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13795 echo $ECHO_N "(cached) $ECHO_C" >&6
13796 else
13797 cat >conftest.$ac_ext <<_ACEOF
13798 #line $LINENO "configure"
13799 #include "confdefs.h"
13800 $ac_includes_default
13801 #ifdef F77_DUMMY_MAIN
13802 # ifdef __cplusplus
13803 extern "C"
13804 # endif
13805 int F77_DUMMY_MAIN() { return 1; }
13806 #endif
13808 main ()
13810 static struct stat ac_aggr;
13811 if (ac_aggr.st_blocks)
13812 return 0;
13814 return 0;
13816 _ACEOF
13817 rm -f conftest.$ac_objext
13818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13819 (eval $ac_compile) 2>&5
13820 ac_status=$?
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
13826 ac_status=$?
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); }; }; then
13829 ac_cv_member_struct_stat_st_blocks=yes
13830 else
13831 echo "$as_me: failed program was:" >&5
13832 cat conftest.$ac_ext >&5
13833 ac_cv_member_struct_stat_st_blocks=no
13835 rm -f conftest.$ac_objext conftest.$ac_ext
13837 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13838 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13839 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13841 cat >>confdefs.h <<_ACEOF
13842 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13843 _ACEOF
13846 cat >>confdefs.h <<\_ACEOF
13847 #define HAVE_ST_BLOCKS 1
13848 _ACEOF
13850 else
13851 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
13856 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
13857 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
13858 if test "${ac_cv_header_time_altzone+set}" = set; then
13859 echo $ECHO_N "(cached) $ECHO_C" >&6
13860 else
13861 cat >conftest.$ac_ext <<_ACEOF
13862 #line $LINENO "configure"
13863 #include "confdefs.h"
13864 #include <time.h>
13865 #ifdef F77_DUMMY_MAIN
13866 # ifdef __cplusplus
13867 extern "C"
13868 # endif
13869 int F77_DUMMY_MAIN() { return 1; }
13870 #endif
13872 main ()
13874 return altzone;
13876 return 0;
13878 _ACEOF
13879 rm -f conftest.$ac_objext
13880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13881 (eval $ac_compile) 2>&5
13882 ac_status=$?
13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); } &&
13885 { ac_try='test -s conftest.$ac_objext'
13886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13887 (eval $ac_try) 2>&5
13888 ac_status=$?
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); }; }; then
13891 ac_cv_header_time_altzone=yes
13892 else
13893 echo "$as_me: failed program was:" >&5
13894 cat conftest.$ac_ext >&5
13895 ac_cv_header_time_altzone=no
13897 rm -f conftest.$ac_objext conftest.$ac_ext
13900 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
13901 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
13902 if test $ac_cv_header_time_altzone = yes; then
13904 cat >>confdefs.h <<\_ACEOF
13905 #define HAVE_ALTZONE 1
13906 _ACEOF
13910 was_it_defined=no
13911 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
13912 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
13913 cat >conftest.$ac_ext <<_ACEOF
13914 #line $LINENO "configure"
13915 #include "confdefs.h"
13917 #include <sys/types.h>
13918 #include <sys/select.h>
13919 #include <sys/time.h>
13921 #ifdef F77_DUMMY_MAIN
13922 # ifdef __cplusplus
13923 extern "C"
13924 # endif
13925 int F77_DUMMY_MAIN() { return 1; }
13926 #endif
13928 main ()
13932 return 0;
13934 _ACEOF
13935 rm -f conftest.$ac_objext
13936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13937 (eval $ac_compile) 2>&5
13938 ac_status=$?
13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940 (exit $ac_status); } &&
13941 { ac_try='test -s conftest.$ac_objext'
13942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13943 (eval $ac_try) 2>&5
13944 ac_status=$?
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); }; }; then
13949 cat >>confdefs.h <<\_ACEOF
13950 #define SYS_SELECT_WITH_SYS_TIME 1
13951 _ACEOF
13953 was_it_defined=yes
13955 else
13956 echo "$as_me: failed program was:" >&5
13957 cat conftest.$ac_ext >&5
13959 rm -f conftest.$ac_objext conftest.$ac_ext
13960 echo "$as_me:$LINENO: result: $was_it_defined" >&5
13961 echo "${ECHO_T}$was_it_defined" >&6
13963 echo "$as_me:$LINENO: checking for addrinfo" >&5
13964 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
13965 if test "${ac_cv_struct_addrinfo+set}" = set; then
13966 echo $ECHO_N "(cached) $ECHO_C" >&6
13967 else
13968 cat >conftest.$ac_ext <<_ACEOF
13969 #line $LINENO "configure"
13970 #include "confdefs.h"
13972 # include <netdb.h>
13973 #ifdef F77_DUMMY_MAIN
13974 # ifdef __cplusplus
13975 extern "C"
13976 # endif
13977 int F77_DUMMY_MAIN() { return 1; }
13978 #endif
13980 main ()
13982 struct addrinfo a
13984 return 0;
13986 _ACEOF
13987 rm -f conftest.$ac_objext
13988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13989 (eval $ac_compile) 2>&5
13990 ac_status=$?
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); } &&
13993 { ac_try='test -s conftest.$ac_objext'
13994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13995 (eval $ac_try) 2>&5
13996 ac_status=$?
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); }; }; then
13999 ac_cv_struct_addrinfo=yes
14000 else
14001 echo "$as_me: failed program was:" >&5
14002 cat conftest.$ac_ext >&5
14003 ac_cv_struct_addrinfo=no
14005 rm -f conftest.$ac_objext conftest.$ac_ext
14008 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
14009 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
14010 if test $ac_cv_struct_addrinfo = yes; then
14012 cat >>confdefs.h <<\_ACEOF
14013 #define HAVE_ADDRINFO 1
14014 _ACEOF
14018 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
14019 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
14020 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
14021 echo $ECHO_N "(cached) $ECHO_C" >&6
14022 else
14023 cat >conftest.$ac_ext <<_ACEOF
14024 #line $LINENO "configure"
14025 #include "confdefs.h"
14027 # include <sys/types.h>
14028 # include <sys/socket.h>
14029 #ifdef F77_DUMMY_MAIN
14030 # ifdef __cplusplus
14031 extern "C"
14032 # endif
14033 int F77_DUMMY_MAIN() { return 1; }
14034 #endif
14036 main ()
14038 struct sockaddr_storage s
14040 return 0;
14042 _ACEOF
14043 rm -f conftest.$ac_objext
14044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14045 (eval $ac_compile) 2>&5
14046 ac_status=$?
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); } &&
14049 { ac_try='test -s conftest.$ac_objext'
14050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14051 (eval $ac_try) 2>&5
14052 ac_status=$?
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); }; }; then
14055 ac_cv_struct_sockaddr_storage=yes
14056 else
14057 echo "$as_me: failed program was:" >&5
14058 cat conftest.$ac_ext >&5
14059 ac_cv_struct_sockaddr_storage=no
14061 rm -f conftest.$ac_objext conftest.$ac_ext
14064 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
14065 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
14066 if test $ac_cv_struct_sockaddr_storage = yes; then
14068 cat >>confdefs.h <<\_ACEOF
14069 #define HAVE_SOCKADDR_STORAGE 1
14070 _ACEOF
14074 # checks for compiler characteristics
14077 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
14078 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
14079 if test "${ac_cv_c_char_unsigned+set}" = set; then
14080 echo $ECHO_N "(cached) $ECHO_C" >&6
14081 else
14082 cat >conftest.$ac_ext <<_ACEOF
14083 #line $LINENO "configure"
14084 #include "confdefs.h"
14085 $ac_includes_default
14086 #ifdef F77_DUMMY_MAIN
14087 # ifdef __cplusplus
14088 extern "C"
14089 # endif
14090 int F77_DUMMY_MAIN() { return 1; }
14091 #endif
14093 main ()
14095 static int test_array [1 - 2 * !(((char) -1) < 0)];
14096 test_array [0] = 0
14099 return 0;
14101 _ACEOF
14102 rm -f conftest.$ac_objext
14103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14104 (eval $ac_compile) 2>&5
14105 ac_status=$?
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); } &&
14108 { ac_try='test -s conftest.$ac_objext'
14109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110 (eval $ac_try) 2>&5
14111 ac_status=$?
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); }; }; then
14114 ac_cv_c_char_unsigned=no
14115 else
14116 echo "$as_me: failed program was:" >&5
14117 cat conftest.$ac_ext >&5
14118 ac_cv_c_char_unsigned=yes
14120 rm -f conftest.$ac_objext conftest.$ac_ext
14122 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
14123 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
14124 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
14125 cat >>confdefs.h <<\_ACEOF
14126 #define __CHAR_UNSIGNED__ 1
14127 _ACEOF
14131 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
14132 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
14133 if test "${ac_cv_prog_cc_stdc+set}" = set; then
14134 echo $ECHO_N "(cached) $ECHO_C" >&6
14135 else
14136 ac_cv_prog_cc_stdc=no
14137 ac_save_CC=$CC
14138 cat >conftest.$ac_ext <<_ACEOF
14139 #line $LINENO "configure"
14140 #include "confdefs.h"
14141 #include <stdarg.h>
14142 #include <stdio.h>
14143 #include <sys/types.h>
14144 #include <sys/stat.h>
14145 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
14146 struct buf { int x; };
14147 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14148 static char *e (p, i)
14149 char **p;
14150 int i;
14152 return p[i];
14154 static char *f (char * (*g) (char **, int), char **p, ...)
14156 char *s;
14157 va_list v;
14158 va_start (v,p);
14159 s = g (p, va_arg (v,int));
14160 va_end (v);
14161 return s;
14163 int test (int i, double x);
14164 struct s1 {int (*f) (int a);};
14165 struct s2 {int (*f) (double a);};
14166 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14167 int argc;
14168 char **argv;
14169 #ifdef F77_DUMMY_MAIN
14170 # ifdef __cplusplus
14171 extern "C"
14172 # endif
14173 int F77_DUMMY_MAIN() { return 1; }
14174 #endif
14176 main ()
14178 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
14180 return 0;
14182 _ACEOF
14183 # Don't try gcc -ansi; that turns off useful extensions and
14184 # breaks some systems' header files.
14185 # AIX -qlanglvl=ansi
14186 # Ultrix and OSF/1 -std1
14187 # HP-UX 10.20 and later -Ae
14188 # HP-UX older versions -Aa -D_HPUX_SOURCE
14189 # SVR4 -Xc -D__EXTENSIONS__
14190 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14192 CC="$ac_save_CC $ac_arg"
14193 rm -f conftest.$ac_objext
14194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14195 (eval $ac_compile) 2>&5
14196 ac_status=$?
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); } &&
14199 { ac_try='test -s conftest.$ac_objext'
14200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14201 (eval $ac_try) 2>&5
14202 ac_status=$?
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); }; }; then
14205 ac_cv_prog_cc_stdc=$ac_arg
14206 break
14207 else
14208 echo "$as_me: failed program was:" >&5
14209 cat conftest.$ac_ext >&5
14211 rm -f conftest.$ac_objext
14212 done
14213 rm -f conftest.$ac_ext conftest.$ac_objext
14214 CC=$ac_save_CC
14218 case "x$ac_cv_prog_cc_stdc" in
14219 x|xno)
14220 echo "$as_me:$LINENO: result: none needed" >&5
14221 echo "${ECHO_T}none needed" >&6 ;;
14223 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
14224 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
14225 CC="$CC $ac_cv_prog_cc_stdc" ;;
14226 esac
14228 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14229 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14230 if test "${ac_cv_c_const+set}" = set; then
14231 echo $ECHO_N "(cached) $ECHO_C" >&6
14232 else
14233 cat >conftest.$ac_ext <<_ACEOF
14234 #line $LINENO "configure"
14235 #include "confdefs.h"
14237 #ifdef F77_DUMMY_MAIN
14238 # ifdef __cplusplus
14239 extern "C"
14240 # endif
14241 int F77_DUMMY_MAIN() { return 1; }
14242 #endif
14244 main ()
14246 /* FIXME: Include the comments suggested by Paul. */
14247 #ifndef __cplusplus
14248 /* Ultrix mips cc rejects this. */
14249 typedef int charset[2];
14250 const charset x;
14251 /* SunOS 4.1.1 cc rejects this. */
14252 char const *const *ccp;
14253 char **p;
14254 /* NEC SVR4.0.2 mips cc rejects this. */
14255 struct point {int x, y;};
14256 static struct point const zero = {0,0};
14257 /* AIX XL C 1.02.0.0 rejects this.
14258 It does not let you subtract one const X* pointer from another in
14259 an arm of an if-expression whose if-part is not a constant
14260 expression */
14261 const char *g = "string";
14262 ccp = &g + (g ? g-g : 0);
14263 /* HPUX 7.0 cc rejects these. */
14264 ++ccp;
14265 p = (char**) ccp;
14266 ccp = (char const *const *) p;
14267 { /* SCO 3.2v4 cc rejects this. */
14268 char *t;
14269 char const *s = 0 ? (char *) 0 : (char const *) 0;
14271 *t++ = 0;
14273 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14274 int x[] = {25, 17};
14275 const int *foo = &x[0];
14276 ++foo;
14278 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14279 typedef const int *iptr;
14280 iptr p = 0;
14281 ++p;
14283 { /* AIX XL C 1.02.0.0 rejects this saying
14284 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14285 struct s { int j; const int *ap[3]; };
14286 struct s *b; b->j = 5;
14288 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14289 const int foo = 10;
14291 #endif
14294 return 0;
14296 _ACEOF
14297 rm -f conftest.$ac_objext
14298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14299 (eval $ac_compile) 2>&5
14300 ac_status=$?
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); } &&
14303 { ac_try='test -s conftest.$ac_objext'
14304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14305 (eval $ac_try) 2>&5
14306 ac_status=$?
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); }; }; then
14309 ac_cv_c_const=yes
14310 else
14311 echo "$as_me: failed program was:" >&5
14312 cat conftest.$ac_ext >&5
14313 ac_cv_c_const=no
14315 rm -f conftest.$ac_objext conftest.$ac_ext
14317 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14318 echo "${ECHO_T}$ac_cv_c_const" >&6
14319 if test $ac_cv_c_const = no; then
14321 cat >>confdefs.h <<\_ACEOF
14322 #define const
14323 _ACEOF
14328 works=no
14329 echo "$as_me:$LINENO: checking for working volatile" >&5
14330 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
14331 cat >conftest.$ac_ext <<_ACEOF
14332 #line $LINENO "configure"
14333 #include "confdefs.h"
14335 #ifdef F77_DUMMY_MAIN
14336 # ifdef __cplusplus
14337 extern "C"
14338 # endif
14339 int F77_DUMMY_MAIN() { return 1; }
14340 #endif
14342 main ()
14344 volatile int x; x = 0;
14346 return 0;
14348 _ACEOF
14349 rm -f conftest.$ac_objext
14350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14351 (eval $ac_compile) 2>&5
14352 ac_status=$?
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); } &&
14355 { ac_try='test -s conftest.$ac_objext'
14356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14357 (eval $ac_try) 2>&5
14358 ac_status=$?
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; }; then
14361 works=yes
14362 else
14363 echo "$as_me: failed program was:" >&5
14364 cat conftest.$ac_ext >&5
14366 cat >>confdefs.h <<\_ACEOF
14367 #define volatile
14368 _ACEOF
14372 rm -f conftest.$ac_objext conftest.$ac_ext
14373 echo "$as_me:$LINENO: result: $works" >&5
14374 echo "${ECHO_T}$works" >&6
14376 works=no
14377 echo "$as_me:$LINENO: checking for working signed char" >&5
14378 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
14379 cat >conftest.$ac_ext <<_ACEOF
14380 #line $LINENO "configure"
14381 #include "confdefs.h"
14383 #ifdef F77_DUMMY_MAIN
14384 # ifdef __cplusplus
14385 extern "C"
14386 # endif
14387 int F77_DUMMY_MAIN() { return 1; }
14388 #endif
14390 main ()
14392 signed char c;
14394 return 0;
14396 _ACEOF
14397 rm -f conftest.$ac_objext
14398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14399 (eval $ac_compile) 2>&5
14400 ac_status=$?
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); } &&
14403 { ac_try='test -s conftest.$ac_objext'
14404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14405 (eval $ac_try) 2>&5
14406 ac_status=$?
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); }; }; then
14409 works=yes
14410 else
14411 echo "$as_me: failed program was:" >&5
14412 cat conftest.$ac_ext >&5
14414 cat >>confdefs.h <<\_ACEOF
14415 #define signed
14416 _ACEOF
14420 rm -f conftest.$ac_objext conftest.$ac_ext
14421 echo "$as_me:$LINENO: result: $works" >&5
14422 echo "${ECHO_T}$works" >&6
14424 have_prototypes=no
14425 echo "$as_me:$LINENO: checking for prototypes" >&5
14426 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
14427 cat >conftest.$ac_ext <<_ACEOF
14428 #line $LINENO "configure"
14429 #include "confdefs.h"
14430 int foo(int x) { return 0; }
14431 #ifdef F77_DUMMY_MAIN
14432 # ifdef __cplusplus
14433 extern "C"
14434 # endif
14435 int F77_DUMMY_MAIN() { return 1; }
14436 #endif
14438 main ()
14440 return foo(10);
14442 return 0;
14444 _ACEOF
14445 rm -f conftest.$ac_objext
14446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14447 (eval $ac_compile) 2>&5
14448 ac_status=$?
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); } &&
14451 { ac_try='test -s conftest.$ac_objext'
14452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14453 (eval $ac_try) 2>&5
14454 ac_status=$?
14455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456 (exit $ac_status); }; }; then
14459 cat >>confdefs.h <<\_ACEOF
14460 #define HAVE_PROTOTYPES 1
14461 _ACEOF
14463 have_prototypes=yes
14465 else
14466 echo "$as_me: failed program was:" >&5
14467 cat conftest.$ac_ext >&5
14469 rm -f conftest.$ac_objext conftest.$ac_ext
14470 echo "$as_me:$LINENO: result: $have_prototypes" >&5
14471 echo "${ECHO_T}$have_prototypes" >&6
14473 works=no
14474 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
14475 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
14476 cat >conftest.$ac_ext <<_ACEOF
14477 #line $LINENO "configure"
14478 #include "confdefs.h"
14480 #include <stdarg.h>
14481 int foo(int x, ...) {
14482 va_list va;
14483 va_start(va, x);
14484 va_arg(va, int);
14485 va_arg(va, char *);
14486 va_arg(va, double);
14487 return 0;
14490 #ifdef F77_DUMMY_MAIN
14491 # ifdef __cplusplus
14492 extern "C"
14493 # endif
14494 int F77_DUMMY_MAIN() { return 1; }
14495 #endif
14497 main ()
14499 return foo(10, "", 3.14);
14501 return 0;
14503 _ACEOF
14504 rm -f conftest.$ac_objext
14505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14506 (eval $ac_compile) 2>&5
14507 ac_status=$?
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); } &&
14510 { ac_try='test -s conftest.$ac_objext'
14511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14512 (eval $ac_try) 2>&5
14513 ac_status=$?
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); }; }; then
14518 cat >>confdefs.h <<\_ACEOF
14519 #define HAVE_STDARG_PROTOTYPES 1
14520 _ACEOF
14522 works=yes
14524 else
14525 echo "$as_me: failed program was:" >&5
14526 cat conftest.$ac_ext >&5
14528 rm -f conftest.$ac_objext conftest.$ac_ext
14529 echo "$as_me:$LINENO: result: $works" >&5
14530 echo "${ECHO_T}$works" >&6
14532 if test "$have_prototypes" = yes; then
14533 bad_prototypes=no
14534 echo "$as_me:$LINENO: checking for bad exec* prototypes" >&5
14535 echo $ECHO_N "checking for bad exec* prototypes... $ECHO_C" >&6
14536 cat >conftest.$ac_ext <<_ACEOF
14537 #line $LINENO "configure"
14538 #include "confdefs.h"
14539 #include <unistd.h>
14540 #ifdef F77_DUMMY_MAIN
14541 # ifdef __cplusplus
14542 extern "C"
14543 # endif
14544 int F77_DUMMY_MAIN() { return 1; }
14545 #endif
14547 main ()
14549 char **t;execve("@",t,t);
14551 return 0;
14553 _ACEOF
14554 rm -f conftest.$ac_objext
14555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14556 (eval $ac_compile) 2>&5
14557 ac_status=$?
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); } &&
14560 { ac_try='test -s conftest.$ac_objext'
14561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14562 (eval $ac_try) 2>&5
14563 ac_status=$?
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); }; }; then
14567 else
14568 echo "$as_me: failed program was:" >&5
14569 cat conftest.$ac_ext >&5
14571 cat >>confdefs.h <<\_ACEOF
14572 #define BAD_EXEC_PROTOTYPES 1
14573 _ACEOF
14575 bad_prototypes=yes
14578 rm -f conftest.$ac_objext conftest.$ac_ext
14579 echo "$as_me:$LINENO: result: $bad_prototypes" >&5
14580 echo "${ECHO_T}$bad_prototypes" >&6
14583 # check if sockaddr has sa_len member
14584 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
14585 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
14586 cat >conftest.$ac_ext <<_ACEOF
14587 #line $LINENO "configure"
14588 #include "confdefs.h"
14589 #include <sys/types.h>
14590 #include <sys/socket.h>
14591 #ifdef F77_DUMMY_MAIN
14592 # ifdef __cplusplus
14593 extern "C"
14594 # endif
14595 int F77_DUMMY_MAIN() { return 1; }
14596 #endif
14598 main ()
14600 struct sockaddr x;
14601 x.sa_len = 0;
14603 return 0;
14605 _ACEOF
14606 rm -f conftest.$ac_objext
14607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14608 (eval $ac_compile) 2>&5
14609 ac_status=$?
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); } &&
14612 { ac_try='test -s conftest.$ac_objext'
14613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14614 (eval $ac_try) 2>&5
14615 ac_status=$?
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); }; }; then
14618 echo "$as_me:$LINENO: result: yes" >&5
14619 echo "${ECHO_T}yes" >&6
14621 cat >>confdefs.h <<\_ACEOF
14622 #define HAVE_SOCKADDR_SA_LEN 1
14623 _ACEOF
14625 else
14626 echo "$as_me: failed program was:" >&5
14627 cat conftest.$ac_ext >&5
14628 echo "$as_me:$LINENO: result: no" >&5
14629 echo "${ECHO_T}no" >&6
14631 rm -f conftest.$ac_objext conftest.$ac_ext
14633 va_list_is_array=no
14634 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
14635 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
14636 cat >conftest.$ac_ext <<_ACEOF
14637 #line $LINENO "configure"
14638 #include "confdefs.h"
14640 #ifdef HAVE_STDARG_PROTOTYPES
14641 #include <stdarg.h>
14642 #else
14643 #include <varargs.h>
14644 #endif
14646 #ifdef F77_DUMMY_MAIN
14647 # ifdef __cplusplus
14648 extern "C"
14649 # endif
14650 int F77_DUMMY_MAIN() { return 1; }
14651 #endif
14653 main ()
14655 va_list list1, list2; list1 = list2;
14657 return 0;
14659 _ACEOF
14660 rm -f conftest.$ac_objext
14661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14662 (eval $ac_compile) 2>&5
14663 ac_status=$?
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); } &&
14666 { ac_try='test -s conftest.$ac_objext'
14667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14668 (eval $ac_try) 2>&5
14669 ac_status=$?
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); }; }; then
14673 else
14674 echo "$as_me: failed program was:" >&5
14675 cat conftest.$ac_ext >&5
14678 cat >>confdefs.h <<\_ACEOF
14679 #define VA_LIST_IS_ARRAY 1
14680 _ACEOF
14682 va_list_is_array=yes
14685 rm -f conftest.$ac_objext conftest.$ac_ext
14686 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
14687 echo "${ECHO_T}$va_list_is_array" >&6
14689 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
14693 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
14694 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
14695 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
14696 echo $ECHO_N "(cached) $ECHO_C" >&6
14697 else
14698 cat >conftest.$ac_ext <<_ACEOF
14699 #line $LINENO "configure"
14700 #include "confdefs.h"
14701 /* System header to define __stub macros and hopefully few prototypes,
14702 which can conflict with char gethostbyname_r (); below. */
14703 #include <assert.h>
14704 /* Override any gcc2 internal prototype to avoid an error. */
14705 #ifdef __cplusplus
14706 extern "C"
14707 #endif
14708 /* We use char because int might match the return type of a gcc2
14709 builtin and then its argument prototype would still apply. */
14710 char gethostbyname_r ();
14711 char (*f) ();
14713 #ifdef F77_DUMMY_MAIN
14714 # ifdef __cplusplus
14715 extern "C"
14716 # endif
14717 int F77_DUMMY_MAIN() { return 1; }
14718 #endif
14720 main ()
14722 /* The GNU C library defines this for functions which it implements
14723 to always fail with ENOSYS. Some functions are actually named
14724 something starting with __ and the normal name is an alias. */
14725 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
14726 choke me
14727 #else
14728 f = gethostbyname_r;
14729 #endif
14732 return 0;
14734 _ACEOF
14735 rm -f conftest.$ac_objext conftest$ac_exeext
14736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14737 (eval $ac_link) 2>&5
14738 ac_status=$?
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); } &&
14741 { ac_try='test -s conftest$ac_exeext'
14742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14743 (eval $ac_try) 2>&5
14744 ac_status=$?
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); }; }; then
14747 ac_cv_func_gethostbyname_r=yes
14748 else
14749 echo "$as_me: failed program was:" >&5
14750 cat conftest.$ac_ext >&5
14751 ac_cv_func_gethostbyname_r=no
14753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14755 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
14756 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
14757 if test $ac_cv_func_gethostbyname_r = yes; then
14759 cat >>confdefs.h <<\_ACEOF
14760 #define HAVE_GETHOSTBYNAME_R 1
14761 _ACEOF
14763 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
14764 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
14765 OLD_CFLAGS=$CFLAGS
14766 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
14767 cat >conftest.$ac_ext <<_ACEOF
14768 #line $LINENO "configure"
14769 #include "confdefs.h"
14771 # include <netdb.h>
14773 #ifdef F77_DUMMY_MAIN
14774 # ifdef __cplusplus
14775 extern "C"
14776 # endif
14777 int F77_DUMMY_MAIN() { return 1; }
14778 #endif
14780 main ()
14783 char *name;
14784 struct hostent *he, *res;
14785 char buffer[2048];
14786 int buflen = 2048;
14787 int h_errnop;
14789 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
14792 return 0;
14794 _ACEOF
14795 rm -f conftest.$ac_objext
14796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14797 (eval $ac_compile) 2>&5
14798 ac_status=$?
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); } &&
14801 { ac_try='test -s conftest.$ac_objext'
14802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803 (eval $ac_try) 2>&5
14804 ac_status=$?
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; }; then
14808 cat >>confdefs.h <<\_ACEOF
14809 #define HAVE_GETHOSTBYNAME_R 1
14810 _ACEOF
14813 cat >>confdefs.h <<\_ACEOF
14814 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
14815 _ACEOF
14817 echo "$as_me:$LINENO: result: yes" >&5
14818 echo "${ECHO_T}yes" >&6
14820 else
14821 echo "$as_me: failed program was:" >&5
14822 cat conftest.$ac_ext >&5
14824 echo "$as_me:$LINENO: result: no" >&5
14825 echo "${ECHO_T}no" >&6
14826 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
14827 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
14828 cat >conftest.$ac_ext <<_ACEOF
14829 #line $LINENO "configure"
14830 #include "confdefs.h"
14832 # include <netdb.h>
14834 #ifdef F77_DUMMY_MAIN
14835 # ifdef __cplusplus
14836 extern "C"
14837 # endif
14838 int F77_DUMMY_MAIN() { return 1; }
14839 #endif
14841 main ()
14844 char *name;
14845 struct hostent *he;
14846 char buffer[2048];
14847 int buflen = 2048;
14848 int h_errnop;
14850 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
14853 return 0;
14855 _ACEOF
14856 rm -f conftest.$ac_objext
14857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14858 (eval $ac_compile) 2>&5
14859 ac_status=$?
14860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861 (exit $ac_status); } &&
14862 { ac_try='test -s conftest.$ac_objext'
14863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14864 (eval $ac_try) 2>&5
14865 ac_status=$?
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); }; }; then
14869 cat >>confdefs.h <<\_ACEOF
14870 #define HAVE_GETHOSTBYNAME_R 1
14871 _ACEOF
14874 cat >>confdefs.h <<\_ACEOF
14875 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
14876 _ACEOF
14878 echo "$as_me:$LINENO: result: yes" >&5
14879 echo "${ECHO_T}yes" >&6
14881 else
14882 echo "$as_me: failed program was:" >&5
14883 cat conftest.$ac_ext >&5
14885 echo "$as_me:$LINENO: result: no" >&5
14886 echo "${ECHO_T}no" >&6
14887 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
14888 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
14889 cat >conftest.$ac_ext <<_ACEOF
14890 #line $LINENO "configure"
14891 #include "confdefs.h"
14893 # include <netdb.h>
14895 #ifdef F77_DUMMY_MAIN
14896 # ifdef __cplusplus
14897 extern "C"
14898 # endif
14899 int F77_DUMMY_MAIN() { return 1; }
14900 #endif
14902 main ()
14905 char *name;
14906 struct hostent *he;
14907 struct hostent_data data;
14909 (void) gethostbyname_r(name, he, &data);
14912 return 0;
14914 _ACEOF
14915 rm -f conftest.$ac_objext
14916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14917 (eval $ac_compile) 2>&5
14918 ac_status=$?
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); } &&
14921 { ac_try='test -s conftest.$ac_objext'
14922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14923 (eval $ac_try) 2>&5
14924 ac_status=$?
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); }; }; then
14928 cat >>confdefs.h <<\_ACEOF
14929 #define HAVE_GETHOSTBYNAME_R 1
14930 _ACEOF
14933 cat >>confdefs.h <<\_ACEOF
14934 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
14935 _ACEOF
14937 echo "$as_me:$LINENO: result: yes" >&5
14938 echo "${ECHO_T}yes" >&6
14940 else
14941 echo "$as_me: failed program was:" >&5
14942 cat conftest.$ac_ext >&5
14944 echo "$as_me:$LINENO: result: no" >&5
14945 echo "${ECHO_T}no" >&6
14948 rm -f conftest.$ac_objext conftest.$ac_ext
14951 rm -f conftest.$ac_objext conftest.$ac_ext
14954 rm -f conftest.$ac_objext conftest.$ac_ext
14955 CFLAGS=$OLD_CFLAGS
14957 else
14960 for ac_func in gethostbyname
14962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14963 echo "$as_me:$LINENO: checking for $ac_func" >&5
14964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14965 if eval "test \"\${$as_ac_var+set}\" = set"; then
14966 echo $ECHO_N "(cached) $ECHO_C" >&6
14967 else
14968 cat >conftest.$ac_ext <<_ACEOF
14969 #line $LINENO "configure"
14970 #include "confdefs.h"
14971 /* System header to define __stub macros and hopefully few prototypes,
14972 which can conflict with char $ac_func (); below. */
14973 #include <assert.h>
14974 /* Override any gcc2 internal prototype to avoid an error. */
14975 #ifdef __cplusplus
14976 extern "C"
14977 #endif
14978 /* We use char because int might match the return type of a gcc2
14979 builtin and then its argument prototype would still apply. */
14980 char $ac_func ();
14981 char (*f) ();
14983 #ifdef F77_DUMMY_MAIN
14984 # ifdef __cplusplus
14985 extern "C"
14986 # endif
14987 int F77_DUMMY_MAIN() { return 1; }
14988 #endif
14990 main ()
14992 /* The GNU C library defines this for functions which it implements
14993 to always fail with ENOSYS. Some functions are actually named
14994 something starting with __ and the normal name is an alias. */
14995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14996 choke me
14997 #else
14998 f = $ac_func;
14999 #endif
15002 return 0;
15004 _ACEOF
15005 rm -f conftest.$ac_objext conftest$ac_exeext
15006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15007 (eval $ac_link) 2>&5
15008 ac_status=$?
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); } &&
15011 { ac_try='test -s conftest$ac_exeext'
15012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15013 (eval $ac_try) 2>&5
15014 ac_status=$?
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); }; }; then
15017 eval "$as_ac_var=yes"
15018 else
15019 echo "$as_me: failed program was:" >&5
15020 cat conftest.$ac_ext >&5
15021 eval "$as_ac_var=no"
15023 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15026 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15027 if test `eval echo '${'$as_ac_var'}'` = yes; then
15028 cat >>confdefs.h <<_ACEOF
15029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15030 _ACEOF
15033 done
15044 # checks for system services
15045 # (none yet)
15047 # Linux requires this for correct f.p. operations
15048 echo "$as_me:$LINENO: checking for __fpu_control" >&5
15049 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
15050 if test "${ac_cv_func___fpu_control+set}" = set; then
15051 echo $ECHO_N "(cached) $ECHO_C" >&6
15052 else
15053 cat >conftest.$ac_ext <<_ACEOF
15054 #line $LINENO "configure"
15055 #include "confdefs.h"
15056 /* System header to define __stub macros and hopefully few prototypes,
15057 which can conflict with char __fpu_control (); below. */
15058 #include <assert.h>
15059 /* Override any gcc2 internal prototype to avoid an error. */
15060 #ifdef __cplusplus
15061 extern "C"
15062 #endif
15063 /* We use char because int might match the return type of a gcc2
15064 builtin and then its argument prototype would still apply. */
15065 char __fpu_control ();
15066 char (*f) ();
15068 #ifdef F77_DUMMY_MAIN
15069 # ifdef __cplusplus
15070 extern "C"
15071 # endif
15072 int F77_DUMMY_MAIN() { return 1; }
15073 #endif
15075 main ()
15077 /* The GNU C library defines this for functions which it implements
15078 to always fail with ENOSYS. Some functions are actually named
15079 something starting with __ and the normal name is an alias. */
15080 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
15081 choke me
15082 #else
15083 f = __fpu_control;
15084 #endif
15087 return 0;
15089 _ACEOF
15090 rm -f conftest.$ac_objext conftest$ac_exeext
15091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15092 (eval $ac_link) 2>&5
15093 ac_status=$?
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); } &&
15096 { ac_try='test -s conftest$ac_exeext'
15097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15098 (eval $ac_try) 2>&5
15099 ac_status=$?
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; }; then
15102 ac_cv_func___fpu_control=yes
15103 else
15104 echo "$as_me: failed program was:" >&5
15105 cat conftest.$ac_ext >&5
15106 ac_cv_func___fpu_control=no
15108 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15110 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
15111 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
15112 if test $ac_cv_func___fpu_control = yes; then
15114 else
15116 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
15117 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
15118 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
15119 echo $ECHO_N "(cached) $ECHO_C" >&6
15120 else
15121 ac_check_lib_save_LIBS=$LIBS
15122 LIBS="-lieee $LIBS"
15123 cat >conftest.$ac_ext <<_ACEOF
15124 #line $LINENO "configure"
15125 #include "confdefs.h"
15127 /* Override any gcc2 internal prototype to avoid an error. */
15128 #ifdef __cplusplus
15129 extern "C"
15130 #endif
15131 /* We use char because int might match the return type of a gcc2
15132 builtin and then its argument prototype would still apply. */
15133 char __fpu_control ();
15134 #ifdef F77_DUMMY_MAIN
15135 # ifdef __cplusplus
15136 extern "C"
15137 # endif
15138 int F77_DUMMY_MAIN() { return 1; }
15139 #endif
15141 main ()
15143 __fpu_control ();
15145 return 0;
15147 _ACEOF
15148 rm -f conftest.$ac_objext conftest$ac_exeext
15149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15150 (eval $ac_link) 2>&5
15151 ac_status=$?
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); } &&
15154 { ac_try='test -s conftest$ac_exeext'
15155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15156 (eval $ac_try) 2>&5
15157 ac_status=$?
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); }; }; then
15160 ac_cv_lib_ieee___fpu_control=yes
15161 else
15162 echo "$as_me: failed program was:" >&5
15163 cat conftest.$ac_ext >&5
15164 ac_cv_lib_ieee___fpu_control=no
15166 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15167 LIBS=$ac_check_lib_save_LIBS
15169 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
15170 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
15171 if test $ac_cv_lib_ieee___fpu_control = yes; then
15172 cat >>confdefs.h <<_ACEOF
15173 #define HAVE_LIBIEEE 1
15174 _ACEOF
15176 LIBS="-lieee $LIBS"
15184 # Check for --with-fpectl
15185 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
15186 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
15188 # Check whether --with-fpectl or --without-fpectl was given.
15189 if test "${with_fpectl+set}" = set; then
15190 withval="$with_fpectl"
15192 if test "$withval" != no
15193 then
15195 cat >>confdefs.h <<\_ACEOF
15196 #define WANT_SIGFPE_HANDLER 1
15197 _ACEOF
15199 echo "$as_me:$LINENO: result: yes" >&5
15200 echo "${ECHO_T}yes" >&6
15201 else echo "$as_me:$LINENO: result: no" >&5
15202 echo "${ECHO_T}no" >&6
15204 else
15205 echo "$as_me:$LINENO: result: no" >&5
15206 echo "${ECHO_T}no" >&6
15209 # check for --with-libm=...
15211 case $ac_sys_system in
15212 Darwin) ;;
15213 BeOS) ;;
15214 *) LIBM=-lm
15215 esac
15216 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
15217 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
15219 # Check whether --with-libm or --without-libm was given.
15220 if test "${with_libm+set}" = set; then
15221 withval="$with_libm"
15223 if test "$withval" = no
15224 then LIBM=
15225 echo "$as_me:$LINENO: result: force LIBM empty" >&5
15226 echo "${ECHO_T}force LIBM empty" >&6
15227 elif test "$withval" != yes
15228 then LIBM=$withval
15229 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
15230 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
15231 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
15232 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
15233 { (exit 1); exit 1; }; }
15235 else
15236 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
15237 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
15240 # check for --with-libc=...
15242 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
15243 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
15245 # Check whether --with-libc or --without-libc was given.
15246 if test "${with_libc+set}" = set; then
15247 withval="$with_libc"
15249 if test "$withval" = no
15250 then LIBC=
15251 echo "$as_me:$LINENO: result: force LIBC empty" >&5
15252 echo "${ECHO_T}force LIBC empty" >&6
15253 elif test "$withval" != yes
15254 then LIBC=$withval
15255 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
15256 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
15257 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
15258 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
15259 { (exit 1); exit 1; }; }
15261 else
15262 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
15263 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
15266 # check for hypot() in math library
15267 LIBS_SAVE=$LIBS
15268 LIBS="$LIBS $LIBM"
15270 for ac_func in hypot
15272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15273 echo "$as_me:$LINENO: checking for $ac_func" >&5
15274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15275 if eval "test \"\${$as_ac_var+set}\" = set"; then
15276 echo $ECHO_N "(cached) $ECHO_C" >&6
15277 else
15278 cat >conftest.$ac_ext <<_ACEOF
15279 #line $LINENO "configure"
15280 #include "confdefs.h"
15281 /* System header to define __stub macros and hopefully few prototypes,
15282 which can conflict with char $ac_func (); below. */
15283 #include <assert.h>
15284 /* Override any gcc2 internal prototype to avoid an error. */
15285 #ifdef __cplusplus
15286 extern "C"
15287 #endif
15288 /* We use char because int might match the return type of a gcc2
15289 builtin and then its argument prototype would still apply. */
15290 char $ac_func ();
15291 char (*f) ();
15293 #ifdef F77_DUMMY_MAIN
15294 # ifdef __cplusplus
15295 extern "C"
15296 # endif
15297 int F77_DUMMY_MAIN() { return 1; }
15298 #endif
15300 main ()
15302 /* The GNU C library defines this for functions which it implements
15303 to always fail with ENOSYS. Some functions are actually named
15304 something starting with __ and the normal name is an alias. */
15305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15306 choke me
15307 #else
15308 f = $ac_func;
15309 #endif
15312 return 0;
15314 _ACEOF
15315 rm -f conftest.$ac_objext conftest$ac_exeext
15316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15317 (eval $ac_link) 2>&5
15318 ac_status=$?
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); } &&
15321 { ac_try='test -s conftest$ac_exeext'
15322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15323 (eval $ac_try) 2>&5
15324 ac_status=$?
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); }; }; then
15327 eval "$as_ac_var=yes"
15328 else
15329 echo "$as_me: failed program was:" >&5
15330 cat conftest.$ac_ext >&5
15331 eval "$as_ac_var=no"
15333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15336 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15337 if test `eval echo '${'$as_ac_var'}'` = yes; then
15338 cat >>confdefs.h <<_ACEOF
15339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15340 _ACEOF
15342 else
15343 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
15345 done
15348 LIBS=$LIBS_SAVE
15350 # check for wchar.h
15351 if test "${ac_cv_header_wchar_h+set}" = set; then
15352 echo "$as_me:$LINENO: checking for wchar.h" >&5
15353 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
15354 if test "${ac_cv_header_wchar_h+set}" = set; then
15355 echo $ECHO_N "(cached) $ECHO_C" >&6
15357 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
15358 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
15359 else
15360 # Is the header compilable?
15361 echo "$as_me:$LINENO: checking wchar.h usability" >&5
15362 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
15363 cat >conftest.$ac_ext <<_ACEOF
15364 #line $LINENO "configure"
15365 #include "confdefs.h"
15366 $ac_includes_default
15367 #include <wchar.h>
15368 _ACEOF
15369 rm -f conftest.$ac_objext
15370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15371 (eval $ac_compile) 2>&5
15372 ac_status=$?
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); } &&
15375 { ac_try='test -s conftest.$ac_objext'
15376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15377 (eval $ac_try) 2>&5
15378 ac_status=$?
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); }; }; then
15381 ac_header_compiler=yes
15382 else
15383 echo "$as_me: failed program was:" >&5
15384 cat conftest.$ac_ext >&5
15385 ac_header_compiler=no
15387 rm -f conftest.$ac_objext conftest.$ac_ext
15388 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15389 echo "${ECHO_T}$ac_header_compiler" >&6
15391 # Is the header present?
15392 echo "$as_me:$LINENO: checking wchar.h presence" >&5
15393 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
15394 cat >conftest.$ac_ext <<_ACEOF
15395 #line $LINENO "configure"
15396 #include "confdefs.h"
15397 #include <wchar.h>
15398 _ACEOF
15399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15401 ac_status=$?
15402 egrep -v '^ *\+' conftest.er1 >conftest.err
15403 rm -f conftest.er1
15404 cat conftest.err >&5
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); } >/dev/null; then
15407 if test -s conftest.err; then
15408 ac_cpp_err=$ac_c_preproc_warn_flag
15409 else
15410 ac_cpp_err=
15412 else
15413 ac_cpp_err=yes
15415 if test -z "$ac_cpp_err"; then
15416 ac_header_preproc=yes
15417 else
15418 echo "$as_me: failed program was:" >&5
15419 cat conftest.$ac_ext >&5
15420 ac_header_preproc=no
15422 rm -f conftest.err conftest.$ac_ext
15423 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15424 echo "${ECHO_T}$ac_header_preproc" >&6
15426 # So? What about this header?
15427 case $ac_header_compiler:$ac_header_preproc in
15428 yes:no )
15429 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
15430 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15431 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
15432 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};;
15433 no:yes )
15434 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
15435 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
15436 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
15437 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
15438 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
15439 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};;
15440 esac
15441 echo "$as_me:$LINENO: checking for wchar.h" >&5
15442 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
15443 if test "${ac_cv_header_wchar_h+set}" = set; then
15444 echo $ECHO_N "(cached) $ECHO_C" >&6
15445 else
15446 ac_cv_header_wchar_h=$ac_header_preproc
15448 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
15449 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
15452 if test $ac_cv_header_wchar_h = yes; then
15455 cat >>confdefs.h <<\_ACEOF
15456 #define HAVE_WCHAR_H 1
15457 _ACEOF
15459 wchar_h="yes"
15461 else
15462 wchar_h="no"
15468 # determine wchar_t size
15469 if test "$wchar_h" = yes
15470 then
15471 echo "$as_me:$LINENO: checking for wchar_t" >&5
15472 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
15473 if test "${ac_cv_type_wchar_t+set}" = set; then
15474 echo $ECHO_N "(cached) $ECHO_C" >&6
15475 else
15476 cat >conftest.$ac_ext <<_ACEOF
15477 #line $LINENO "configure"
15478 #include "confdefs.h"
15479 #include <wchar.h>
15481 #ifdef F77_DUMMY_MAIN
15482 # ifdef __cplusplus
15483 extern "C"
15484 # endif
15485 int F77_DUMMY_MAIN() { return 1; }
15486 #endif
15488 main ()
15490 if ((wchar_t *) 0)
15491 return 0;
15492 if (sizeof (wchar_t))
15493 return 0;
15495 return 0;
15497 _ACEOF
15498 rm -f conftest.$ac_objext
15499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15500 (eval $ac_compile) 2>&5
15501 ac_status=$?
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); } &&
15504 { ac_try='test -s conftest.$ac_objext'
15505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15506 (eval $ac_try) 2>&5
15507 ac_status=$?
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); }; }; then
15510 ac_cv_type_wchar_t=yes
15511 else
15512 echo "$as_me: failed program was:" >&5
15513 cat conftest.$ac_ext >&5
15514 ac_cv_type_wchar_t=no
15516 rm -f conftest.$ac_objext conftest.$ac_ext
15518 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
15519 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
15521 echo "$as_me:$LINENO: checking size of wchar_t" >&5
15522 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
15523 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
15524 echo $ECHO_N "(cached) $ECHO_C" >&6
15525 else
15526 if test "$ac_cv_type_wchar_t" = yes; then
15527 # The cast to unsigned long works around a bug in the HP C Compiler
15528 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15529 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15530 # This bug is HP SR number 8606223364.
15531 if test "$cross_compiling" = yes; then
15532 # Depending upon the size, compute the lo and hi bounds.
15533 cat >conftest.$ac_ext <<_ACEOF
15534 #line $LINENO "configure"
15535 #include "confdefs.h"
15536 #include <wchar.h>
15538 #ifdef F77_DUMMY_MAIN
15539 # ifdef __cplusplus
15540 extern "C"
15541 # endif
15542 int F77_DUMMY_MAIN() { return 1; }
15543 #endif
15545 main ()
15547 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
15548 test_array [0] = 0
15551 return 0;
15553 _ACEOF
15554 rm -f conftest.$ac_objext
15555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15556 (eval $ac_compile) 2>&5
15557 ac_status=$?
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); } &&
15560 { ac_try='test -s conftest.$ac_objext'
15561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15562 (eval $ac_try) 2>&5
15563 ac_status=$?
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); }; }; then
15566 ac_lo=0 ac_mid=0
15567 while :; do
15568 cat >conftest.$ac_ext <<_ACEOF
15569 #line $LINENO "configure"
15570 #include "confdefs.h"
15571 #include <wchar.h>
15573 #ifdef F77_DUMMY_MAIN
15574 # ifdef __cplusplus
15575 extern "C"
15576 # endif
15577 int F77_DUMMY_MAIN() { return 1; }
15578 #endif
15580 main ()
15582 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
15583 test_array [0] = 0
15586 return 0;
15588 _ACEOF
15589 rm -f conftest.$ac_objext
15590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15591 (eval $ac_compile) 2>&5
15592 ac_status=$?
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); } &&
15595 { ac_try='test -s conftest.$ac_objext'
15596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15597 (eval $ac_try) 2>&5
15598 ac_status=$?
15599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); }; }; then
15601 ac_hi=$ac_mid; break
15602 else
15603 echo "$as_me: failed program was:" >&5
15604 cat conftest.$ac_ext >&5
15605 ac_lo=`expr $ac_mid + 1`
15606 if test $ac_lo -le $ac_mid; then
15607 ac_lo= ac_hi=
15608 break
15610 ac_mid=`expr 2 '*' $ac_mid + 1`
15612 rm -f conftest.$ac_objext conftest.$ac_ext
15613 done
15614 else
15615 echo "$as_me: failed program was:" >&5
15616 cat conftest.$ac_ext >&5
15617 cat >conftest.$ac_ext <<_ACEOF
15618 #line $LINENO "configure"
15619 #include "confdefs.h"
15620 #include <wchar.h>
15622 #ifdef F77_DUMMY_MAIN
15623 # ifdef __cplusplus
15624 extern "C"
15625 # endif
15626 int F77_DUMMY_MAIN() { return 1; }
15627 #endif
15629 main ()
15631 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
15632 test_array [0] = 0
15635 return 0;
15637 _ACEOF
15638 rm -f conftest.$ac_objext
15639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15640 (eval $ac_compile) 2>&5
15641 ac_status=$?
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); } &&
15644 { ac_try='test -s conftest.$ac_objext'
15645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15646 (eval $ac_try) 2>&5
15647 ac_status=$?
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); }; }; then
15650 ac_hi=-1 ac_mid=-1
15651 while :; do
15652 cat >conftest.$ac_ext <<_ACEOF
15653 #line $LINENO "configure"
15654 #include "confdefs.h"
15655 #include <wchar.h>
15657 #ifdef F77_DUMMY_MAIN
15658 # ifdef __cplusplus
15659 extern "C"
15660 # endif
15661 int F77_DUMMY_MAIN() { return 1; }
15662 #endif
15664 main ()
15666 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
15667 test_array [0] = 0
15670 return 0;
15672 _ACEOF
15673 rm -f conftest.$ac_objext
15674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15675 (eval $ac_compile) 2>&5
15676 ac_status=$?
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); } &&
15679 { ac_try='test -s conftest.$ac_objext'
15680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15681 (eval $ac_try) 2>&5
15682 ac_status=$?
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); }; }; then
15685 ac_lo=$ac_mid; break
15686 else
15687 echo "$as_me: failed program was:" >&5
15688 cat conftest.$ac_ext >&5
15689 ac_hi=`expr '(' $ac_mid ')' - 1`
15690 if test $ac_mid -le $ac_hi; then
15691 ac_lo= ac_hi=
15692 break
15694 ac_mid=`expr 2 '*' $ac_mid`
15696 rm -f conftest.$ac_objext conftest.$ac_ext
15697 done
15698 else
15699 echo "$as_me: failed program was:" >&5
15700 cat conftest.$ac_ext >&5
15701 ac_lo= ac_hi=
15703 rm -f conftest.$ac_objext conftest.$ac_ext
15705 rm -f conftest.$ac_objext conftest.$ac_ext
15706 # Binary search between lo and hi bounds.
15707 while test "x$ac_lo" != "x$ac_hi"; do
15708 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15709 cat >conftest.$ac_ext <<_ACEOF
15710 #line $LINENO "configure"
15711 #include "confdefs.h"
15712 #include <wchar.h>
15714 #ifdef F77_DUMMY_MAIN
15715 # ifdef __cplusplus
15716 extern "C"
15717 # endif
15718 int F77_DUMMY_MAIN() { return 1; }
15719 #endif
15721 main ()
15723 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
15724 test_array [0] = 0
15727 return 0;
15729 _ACEOF
15730 rm -f conftest.$ac_objext
15731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15732 (eval $ac_compile) 2>&5
15733 ac_status=$?
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); } &&
15736 { ac_try='test -s conftest.$ac_objext'
15737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15738 (eval $ac_try) 2>&5
15739 ac_status=$?
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); }; }; then
15742 ac_hi=$ac_mid
15743 else
15744 echo "$as_me: failed program was:" >&5
15745 cat conftest.$ac_ext >&5
15746 ac_lo=`expr '(' $ac_mid ')' + 1`
15748 rm -f conftest.$ac_objext conftest.$ac_ext
15749 done
15750 case $ac_lo in
15751 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
15752 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5
15753 echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;}
15754 { (exit 1); exit 1; }; } ;;
15755 esac
15756 else
15757 if test "$cross_compiling" = yes; then
15758 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15759 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15760 { (exit 1); exit 1; }; }
15761 else
15762 cat >conftest.$ac_ext <<_ACEOF
15763 #line $LINENO "configure"
15764 #include "confdefs.h"
15765 #include <wchar.h>
15767 long longval () { return (long) (sizeof (wchar_t)); }
15768 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
15769 #include <stdio.h>
15770 #include <stdlib.h>
15771 #ifdef F77_DUMMY_MAIN
15772 # ifdef __cplusplus
15773 extern "C"
15774 # endif
15775 int F77_DUMMY_MAIN() { return 1; }
15776 #endif
15778 main ()
15781 FILE *f = fopen ("conftest.val", "w");
15782 if (! f)
15783 exit (1);
15784 if (((long) (sizeof (wchar_t))) < 0)
15786 long i = longval ();
15787 if (i != ((long) (sizeof (wchar_t))))
15788 exit (1);
15789 fprintf (f, "%ld\n", i);
15791 else
15793 unsigned long i = ulongval ();
15794 if (i != ((long) (sizeof (wchar_t))))
15795 exit (1);
15796 fprintf (f, "%lu\n", i);
15798 exit (ferror (f) || fclose (f) != 0);
15801 return 0;
15803 _ACEOF
15804 rm -f conftest$ac_exeext
15805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15806 (eval $ac_link) 2>&5
15807 ac_status=$?
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15811 (eval $ac_try) 2>&5
15812 ac_status=$?
15813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); }; }; then
15815 ac_cv_sizeof_wchar_t=`cat conftest.val`
15816 else
15817 echo "$as_me: program exited with status $ac_status" >&5
15818 echo "$as_me: failed program was:" >&5
15819 cat conftest.$ac_ext >&5
15820 ( exit $ac_status )
15821 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5
15822 echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;}
15823 { (exit 1); exit 1; }; }
15825 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15828 rm -f conftest.val
15829 else
15830 ac_cv_sizeof_wchar_t=0
15833 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
15834 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
15835 cat >>confdefs.h <<_ACEOF
15836 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
15837 _ACEOF
15842 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
15843 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
15844 # Check whether --enable-unicode or --disable-unicode was given.
15845 if test "${enable_unicode+set}" = set; then
15846 enableval="$enable_unicode"
15848 else
15849 enable_unicode=yes
15852 if test $enable_unicode = yes
15853 then
15854 # Without any arguments, Py_UNICODE defaults to two-byte mode
15855 enable_unicode="ucs2"
15860 case "$enable_unicode" in
15861 ucs2) unicode_size="2"
15862 cat >>confdefs.h <<\_ACEOF
15863 #define Py_UNICODE_SIZE 2
15864 _ACEOF
15867 ucs4) unicode_size="4"
15868 cat >>confdefs.h <<\_ACEOF
15869 #define Py_UNICODE_SIZE 4
15870 _ACEOF
15873 esac
15879 if test "$enable_unicode" = "no"
15880 then
15881 UNICODE_OBJS=""
15882 echo "$as_me:$LINENO: result: not used" >&5
15883 echo "${ECHO_T}not used" >&6
15884 else
15885 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
15887 cat >>confdefs.h <<\_ACEOF
15888 #define Py_USING_UNICODE 1
15889 _ACEOF
15891 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t"
15892 then
15893 PY_UNICODE_TYPE="wchar_t"
15895 cat >>confdefs.h <<\_ACEOF
15896 #define HAVE_USABLE_WCHAR_T 1
15897 _ACEOF
15899 cat >>confdefs.h <<\_ACEOF
15900 #define PY_UNICODE_TYPE wchar_t
15901 _ACEOF
15903 elif test "$ac_cv_sizeof_short" = "$unicode_size"
15904 then
15905 PY_UNICODE_TYPE="unsigned short"
15906 cat >>confdefs.h <<\_ACEOF
15907 #define PY_UNICODE_TYPE unsigned short
15908 _ACEOF
15910 elif test "$ac_cv_sizeof_long" = "$unicode_size"
15911 then
15912 PY_UNICODE_TYPE="unsigned long"
15913 cat >>confdefs.h <<\_ACEOF
15914 #define PY_UNICODE_TYPE unsigned long
15915 _ACEOF
15917 else
15918 PY_UNICODE_TYPE="no type found"
15920 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
15921 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
15924 # check for endianness
15925 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
15926 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
15927 if test "${ac_cv_c_bigendian+set}" = set; then
15928 echo $ECHO_N "(cached) $ECHO_C" >&6
15929 else
15930 # See if sys/param.h defines the BYTE_ORDER macro.
15931 cat >conftest.$ac_ext <<_ACEOF
15932 #line $LINENO "configure"
15933 #include "confdefs.h"
15934 #include <sys/types.h>
15935 #include <sys/param.h>
15937 #ifdef F77_DUMMY_MAIN
15938 # ifdef __cplusplus
15939 extern "C"
15940 # endif
15941 int F77_DUMMY_MAIN() { return 1; }
15942 #endif
15944 main ()
15946 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15947 bogus endian macros
15948 #endif
15951 return 0;
15953 _ACEOF
15954 rm -f conftest.$ac_objext
15955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15956 (eval $ac_compile) 2>&5
15957 ac_status=$?
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); } &&
15960 { ac_try='test -s conftest.$ac_objext'
15961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15962 (eval $ac_try) 2>&5
15963 ac_status=$?
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); }; }; then
15966 # It does; now see whether it defined to BIG_ENDIAN or not.
15967 cat >conftest.$ac_ext <<_ACEOF
15968 #line $LINENO "configure"
15969 #include "confdefs.h"
15970 #include <sys/types.h>
15971 #include <sys/param.h>
15973 #ifdef F77_DUMMY_MAIN
15974 # ifdef __cplusplus
15975 extern "C"
15976 # endif
15977 int F77_DUMMY_MAIN() { return 1; }
15978 #endif
15980 main ()
15982 #if BYTE_ORDER != BIG_ENDIAN
15983 not big endian
15984 #endif
15987 return 0;
15989 _ACEOF
15990 rm -f conftest.$ac_objext
15991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15992 (eval $ac_compile) 2>&5
15993 ac_status=$?
15994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995 (exit $ac_status); } &&
15996 { ac_try='test -s conftest.$ac_objext'
15997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15998 (eval $ac_try) 2>&5
15999 ac_status=$?
16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); }; }; then
16002 ac_cv_c_bigendian=yes
16003 else
16004 echo "$as_me: failed program was:" >&5
16005 cat conftest.$ac_ext >&5
16006 ac_cv_c_bigendian=no
16008 rm -f conftest.$ac_objext conftest.$ac_ext
16009 else
16010 echo "$as_me: failed program was:" >&5
16011 cat conftest.$ac_ext >&5
16012 # It does not; compile a test program.
16013 if test "$cross_compiling" = yes; then
16014 # try to guess the endianess by grep'ing values into an object file
16015 ac_cv_c_bigendian=unknown
16016 cat >conftest.$ac_ext <<_ACEOF
16017 #line $LINENO "configure"
16018 #include "confdefs.h"
16019 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16020 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16021 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
16022 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16023 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16024 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
16025 #ifdef F77_DUMMY_MAIN
16026 # ifdef __cplusplus
16027 extern "C"
16028 # endif
16029 int F77_DUMMY_MAIN() { return 1; }
16030 #endif
16032 main ()
16034 _ascii (); _ebcdic ();
16036 return 0;
16038 _ACEOF
16039 rm -f conftest.$ac_objext
16040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16041 (eval $ac_compile) 2>&5
16042 ac_status=$?
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); } &&
16045 { ac_try='test -s conftest.$ac_objext'
16046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16047 (eval $ac_try) 2>&5
16048 ac_status=$?
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 (exit $ac_status); }; }; then
16051 if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
16052 ac_cv_c_bigendian=yes
16054 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16055 if test "$ac_cv_c_bigendian" = unknown; then
16056 ac_cv_c_bigendian=no
16057 else
16058 # finding both strings is unlikely to happen, but who knows?
16059 ac_cv_c_bigendian=unknown
16062 else
16063 echo "$as_me: failed program was:" >&5
16064 cat conftest.$ac_ext >&5
16066 rm -f conftest.$ac_objext conftest.$ac_ext
16067 else
16068 cat >conftest.$ac_ext <<_ACEOF
16069 #line $LINENO "configure"
16070 #include "confdefs.h"
16072 main ()
16074 /* Are we little or big endian? From Harbison&Steele. */
16075 union
16077 long l;
16078 char c[sizeof (long)];
16079 } u;
16080 u.l = 1;
16081 exit (u.c[sizeof (long) - 1] == 1);
16083 _ACEOF
16084 rm -f conftest$ac_exeext
16085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16086 (eval $ac_link) 2>&5
16087 ac_status=$?
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16091 (eval $ac_try) 2>&5
16092 ac_status=$?
16093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094 (exit $ac_status); }; }; then
16095 ac_cv_c_bigendian=no
16096 else
16097 echo "$as_me: program exited with status $ac_status" >&5
16098 echo "$as_me: failed program was:" >&5
16099 cat conftest.$ac_ext >&5
16100 ( exit $ac_status )
16101 ac_cv_c_bigendian=yes
16103 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16106 rm -f conftest.$ac_objext conftest.$ac_ext
16108 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
16109 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
16110 case $ac_cv_c_bigendian in
16111 yes)
16113 cat >>confdefs.h <<\_ACEOF
16114 #define WORDS_BIGENDIAN 1
16115 _ACEOF
16120 { { echo "$as_me:$LINENO: error: unknown endianess
16121 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
16122 echo "$as_me: error: unknown endianess
16123 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
16124 { (exit 1); exit 1; }; } ;;
16125 esac
16128 # Check whether right shifting a negative integer extends the sign bit
16129 # or fills with zeros (like the Cray J90, according to Tim Peters).
16130 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
16131 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
16132 if test "${ac_cv_rshift_extends_sign+set}" = set; then
16133 echo $ECHO_N "(cached) $ECHO_C" >&6
16134 else
16136 if test "$cross_compiling" = yes; then
16137 ac_cv_rshift_extends_sign=yes
16138 else
16139 cat >conftest.$ac_ext <<_ACEOF
16140 #line $LINENO "configure"
16141 #include "confdefs.h"
16143 int main()
16145 exit(((-1)>>3 == -1) ? 0 : 1);
16148 _ACEOF
16149 rm -f conftest$ac_exeext
16150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16151 (eval $ac_link) 2>&5
16152 ac_status=$?
16153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16156 (eval $ac_try) 2>&5
16157 ac_status=$?
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); }; }; then
16160 ac_cv_rshift_extends_sign=yes
16161 else
16162 echo "$as_me: program exited with status $ac_status" >&5
16163 echo "$as_me: failed program was:" >&5
16164 cat conftest.$ac_ext >&5
16165 ( exit $ac_status )
16166 ac_cv_rshift_extends_sign=no
16168 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16172 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
16173 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
16174 if test "$ac_cv_rshift_extends_sign" = no
16175 then
16177 cat >>confdefs.h <<\_ACEOF
16178 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
16179 _ACEOF
16183 # check for getc_unlocked and related locking functions
16184 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
16185 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
16186 if test "${ac_cv_have_getc_unlocked+set}" = set; then
16187 echo $ECHO_N "(cached) $ECHO_C" >&6
16188 else
16190 cat >conftest.$ac_ext <<_ACEOF
16191 #line $LINENO "configure"
16192 #include "confdefs.h"
16193 #include <stdio.h>
16194 #ifdef F77_DUMMY_MAIN
16195 # ifdef __cplusplus
16196 extern "C"
16197 # endif
16198 int F77_DUMMY_MAIN() { return 1; }
16199 #endif
16201 main ()
16204 FILE *f = fopen("/dev/null", "r");
16205 flockfile(f);
16206 getc_unlocked(f);
16207 funlockfile(f);
16210 return 0;
16212 _ACEOF
16213 rm -f conftest.$ac_objext conftest$ac_exeext
16214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16215 (eval $ac_link) 2>&5
16216 ac_status=$?
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); } &&
16219 { ac_try='test -s conftest$ac_exeext'
16220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16221 (eval $ac_try) 2>&5
16222 ac_status=$?
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); }; }; then
16225 ac_cv_have_getc_unlocked=yes
16226 else
16227 echo "$as_me: failed program was:" >&5
16228 cat conftest.$ac_ext >&5
16229 ac_cv_have_getc_unlocked=no
16231 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16234 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
16235 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
16236 if test "$ac_cv_have_getc_unlocked" = yes
16237 then
16239 cat >>confdefs.h <<\_ACEOF
16240 #define HAVE_GETC_UNLOCKED 1
16241 _ACEOF
16245 # check for readline 2.2
16246 cat >conftest.$ac_ext <<_ACEOF
16247 #line $LINENO "configure"
16248 #include "confdefs.h"
16249 #include <readline/readline.h>
16250 _ACEOF
16251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16253 ac_status=$?
16254 egrep -v '^ *\+' conftest.er1 >conftest.err
16255 rm -f conftest.er1
16256 cat conftest.err >&5
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); } >/dev/null; then
16259 if test -s conftest.err; then
16260 ac_cpp_err=$ac_c_preproc_warn_flag
16261 else
16262 ac_cpp_err=
16264 else
16265 ac_cpp_err=yes
16267 if test -z "$ac_cpp_err"; then
16268 have_readline=yes
16269 else
16270 echo "$as_me: failed program was:" >&5
16271 cat conftest.$ac_ext >&5
16272 have_readline=no
16274 rm -f conftest.err conftest.$ac_ext
16275 if test $have_readline = yes
16276 then
16277 cat >conftest.$ac_ext <<_ACEOF
16278 #line $LINENO "configure"
16279 #include "confdefs.h"
16280 #include <readline/readline.h>
16282 _ACEOF
16283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16284 egrep "extern int rl_completion_append_character;" >/dev/null 2>&1; then
16286 cat >>confdefs.h <<\_ACEOF
16287 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
16288 _ACEOF
16291 rm -f conftest*
16295 # check for readline 4.0
16296 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
16297 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
16298 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
16299 echo $ECHO_N "(cached) $ECHO_C" >&6
16300 else
16301 ac_check_lib_save_LIBS=$LIBS
16302 LIBS="-lreadline -ltermcap $LIBS"
16303 cat >conftest.$ac_ext <<_ACEOF
16304 #line $LINENO "configure"
16305 #include "confdefs.h"
16307 /* Override any gcc2 internal prototype to avoid an error. */
16308 #ifdef __cplusplus
16309 extern "C"
16310 #endif
16311 /* We use char because int might match the return type of a gcc2
16312 builtin and then its argument prototype would still apply. */
16313 char rl_pre_input_hook ();
16314 #ifdef F77_DUMMY_MAIN
16315 # ifdef __cplusplus
16316 extern "C"
16317 # endif
16318 int F77_DUMMY_MAIN() { return 1; }
16319 #endif
16321 main ()
16323 rl_pre_input_hook ();
16325 return 0;
16327 _ACEOF
16328 rm -f conftest.$ac_objext conftest$ac_exeext
16329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16330 (eval $ac_link) 2>&5
16331 ac_status=$?
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); } &&
16334 { ac_try='test -s conftest$ac_exeext'
16335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16336 (eval $ac_try) 2>&5
16337 ac_status=$?
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); }; }; then
16340 ac_cv_lib_readline_rl_pre_input_hook=yes
16341 else
16342 echo "$as_me: failed program was:" >&5
16343 cat conftest.$ac_ext >&5
16344 ac_cv_lib_readline_rl_pre_input_hook=no
16346 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16347 LIBS=$ac_check_lib_save_LIBS
16349 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
16350 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
16351 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
16353 cat >>confdefs.h <<\_ACEOF
16354 #define HAVE_RL_PRE_INPUT_HOOK 1
16355 _ACEOF
16360 # check for readline 4.2
16361 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
16362 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
16363 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
16364 echo $ECHO_N "(cached) $ECHO_C" >&6
16365 else
16366 ac_check_lib_save_LIBS=$LIBS
16367 LIBS="-lreadline -ltermcap $LIBS"
16368 cat >conftest.$ac_ext <<_ACEOF
16369 #line $LINENO "configure"
16370 #include "confdefs.h"
16372 /* Override any gcc2 internal prototype to avoid an error. */
16373 #ifdef __cplusplus
16374 extern "C"
16375 #endif
16376 /* We use char because int might match the return type of a gcc2
16377 builtin and then its argument prototype would still apply. */
16378 char rl_completion_matches ();
16379 #ifdef F77_DUMMY_MAIN
16380 # ifdef __cplusplus
16381 extern "C"
16382 # endif
16383 int F77_DUMMY_MAIN() { return 1; }
16384 #endif
16386 main ()
16388 rl_completion_matches ();
16390 return 0;
16392 _ACEOF
16393 rm -f conftest.$ac_objext conftest$ac_exeext
16394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16395 (eval $ac_link) 2>&5
16396 ac_status=$?
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); } &&
16399 { ac_try='test -s conftest$ac_exeext'
16400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16401 (eval $ac_try) 2>&5
16402 ac_status=$?
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); }; }; then
16405 ac_cv_lib_readline_rl_completion_matches=yes
16406 else
16407 echo "$as_me: failed program was:" >&5
16408 cat conftest.$ac_ext >&5
16409 ac_cv_lib_readline_rl_completion_matches=no
16411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16412 LIBS=$ac_check_lib_save_LIBS
16414 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
16415 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
16416 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
16418 cat >>confdefs.h <<\_ACEOF
16419 #define HAVE_RL_COMPLETION_MATCHES 1
16420 _ACEOF
16425 echo "$as_me:$LINENO: checking for broken nice()" >&5
16426 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
16427 if test "${ac_cv_broken_nice+set}" = set; then
16428 echo $ECHO_N "(cached) $ECHO_C" >&6
16429 else
16431 if test "$cross_compiling" = yes; then
16432 ac_cv_broken_nice=no
16433 else
16434 cat >conftest.$ac_ext <<_ACEOF
16435 #line $LINENO "configure"
16436 #include "confdefs.h"
16438 int main()
16440 int val1 = nice(1);
16441 if (val1 != -1 && val1 == nice(2))
16442 exit(0);
16443 exit(1);
16446 _ACEOF
16447 rm -f conftest$ac_exeext
16448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16449 (eval $ac_link) 2>&5
16450 ac_status=$?
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454 (eval $ac_try) 2>&5
16455 ac_status=$?
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); }; }; then
16458 ac_cv_broken_nice=yes
16459 else
16460 echo "$as_me: program exited with status $ac_status" >&5
16461 echo "$as_me: failed program was:" >&5
16462 cat conftest.$ac_ext >&5
16463 ( exit $ac_status )
16464 ac_cv_broken_nice=no
16466 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16470 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
16471 echo "${ECHO_T}$ac_cv_broken_nice" >&6
16472 if test "$ac_cv_broken_nice" = yes
16473 then
16475 cat >>confdefs.h <<\_ACEOF
16476 #define HAVE_BROKEN_NICE 1
16477 _ACEOF
16481 # Look for subsecond timestamps in struct stat
16482 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
16483 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
16484 if test "${ac_cv_stat_tv_nsec+set}" = set; then
16485 echo $ECHO_N "(cached) $ECHO_C" >&6
16486 else
16487 cat >conftest.$ac_ext <<_ACEOF
16488 #line $LINENO "configure"
16489 #include "confdefs.h"
16490 #include <sys/stat.h>
16491 #ifdef F77_DUMMY_MAIN
16492 # ifdef __cplusplus
16493 extern "C"
16494 # endif
16495 int F77_DUMMY_MAIN() { return 1; }
16496 #endif
16498 main ()
16501 struct stat st;
16502 st.st_mtim.tv_nsec = 1;
16505 return 0;
16507 _ACEOF
16508 rm -f conftest.$ac_objext
16509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16510 (eval $ac_compile) 2>&5
16511 ac_status=$?
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); } &&
16514 { ac_try='test -s conftest.$ac_objext'
16515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16516 (eval $ac_try) 2>&5
16517 ac_status=$?
16518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); }; }; then
16520 ac_cv_stat_tv_nsec=yes
16521 else
16522 echo "$as_me: failed program was:" >&5
16523 cat conftest.$ac_ext >&5
16524 ac_cv_stat_tv_nsec=no
16526 rm -f conftest.$ac_objext conftest.$ac_ext
16529 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
16530 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
16531 if test "$ac_cv_stat_tv_nsec" = yes
16532 then
16534 cat >>confdefs.h <<\_ACEOF
16535 #define HAVE_STAT_TV_NSEC 1
16536 _ACEOF
16540 # On HP/UX 11.0, mvwdelch is a block with a return statement
16541 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
16542 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
16543 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
16544 echo $ECHO_N "(cached) $ECHO_C" >&6
16545 else
16546 cat >conftest.$ac_ext <<_ACEOF
16547 #line $LINENO "configure"
16548 #include "confdefs.h"
16549 #include <curses.h>
16550 #ifdef F77_DUMMY_MAIN
16551 # ifdef __cplusplus
16552 extern "C"
16553 # endif
16554 int F77_DUMMY_MAIN() { return 1; }
16555 #endif
16557 main ()
16560 int rtn;
16561 rtn = mvwdelch(0,0,0);
16564 return 0;
16566 _ACEOF
16567 rm -f conftest.$ac_objext
16568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16569 (eval $ac_compile) 2>&5
16570 ac_status=$?
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); } &&
16573 { ac_try='test -s conftest.$ac_objext'
16574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16575 (eval $ac_try) 2>&5
16576 ac_status=$?
16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); }; }; then
16579 ac_cv_mvwdelch_is_expression=yes
16580 else
16581 echo "$as_me: failed program was:" >&5
16582 cat conftest.$ac_ext >&5
16583 ac_cv_mvwdelch_is_expression=no
16585 rm -f conftest.$ac_objext conftest.$ac_ext
16588 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
16589 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
16591 if test "$ac_cv_mvwdelch_is_expression" = yes
16592 then
16594 cat >>confdefs.h <<\_ACEOF
16595 #define MVWDELCH_IS_EXPRESSION 1
16596 _ACEOF
16600 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
16601 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
16602 if test "${ac_cv_window_has_flags+set}" = set; then
16603 echo $ECHO_N "(cached) $ECHO_C" >&6
16604 else
16605 cat >conftest.$ac_ext <<_ACEOF
16606 #line $LINENO "configure"
16607 #include "confdefs.h"
16608 #include <curses.h>
16609 #ifdef F77_DUMMY_MAIN
16610 # ifdef __cplusplus
16611 extern "C"
16612 # endif
16613 int F77_DUMMY_MAIN() { return 1; }
16614 #endif
16616 main ()
16619 WINDOW *w;
16620 w->_flags = 0;
16623 return 0;
16625 _ACEOF
16626 rm -f conftest.$ac_objext
16627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16628 (eval $ac_compile) 2>&5
16629 ac_status=$?
16630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); } &&
16632 { ac_try='test -s conftest.$ac_objext'
16633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16634 (eval $ac_try) 2>&5
16635 ac_status=$?
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); }; }; then
16638 ac_cv_window_has_flags=yes
16639 else
16640 echo "$as_me: failed program was:" >&5
16641 cat conftest.$ac_ext >&5
16642 ac_cv_window_has_flags=no
16644 rm -f conftest.$ac_objext conftest.$ac_ext
16647 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
16648 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
16651 if test "$ac_cv_window_has_flags" = yes
16652 then
16654 cat >>confdefs.h <<\_ACEOF
16655 #define WINDOW_HAS_FLAGS 1
16656 _ACEOF
16660 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
16661 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
16663 if test -e /dev/ptmx
16664 then
16665 echo "$as_me:$LINENO: result: yes" >&5
16666 echo "${ECHO_T}yes" >&6
16668 cat >>confdefs.h <<\_ACEOF
16669 #define HAVE_DEV_PTMX 1
16670 _ACEOF
16672 else
16673 echo "$as_me:$LINENO: result: no" >&5
16674 echo "${ECHO_T}no" >&6
16677 echo "$as_me:$LINENO: checking for socklen_t" >&5
16678 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
16679 if test "${ac_cv_type_socklen_t+set}" = set; then
16680 echo $ECHO_N "(cached) $ECHO_C" >&6
16681 else
16682 cat >conftest.$ac_ext <<_ACEOF
16683 #line $LINENO "configure"
16684 #include "confdefs.h"
16686 #ifdef HAVE_SYS_TYPES_H
16687 #include <sys/types.h>
16688 #endif
16689 #ifdef HAVE_SYS_SOCKET_H
16690 #include <sys/socket.h>
16691 #endif
16694 #ifdef F77_DUMMY_MAIN
16695 # ifdef __cplusplus
16696 extern "C"
16697 # endif
16698 int F77_DUMMY_MAIN() { return 1; }
16699 #endif
16701 main ()
16703 if ((socklen_t *) 0)
16704 return 0;
16705 if (sizeof (socklen_t))
16706 return 0;
16708 return 0;
16710 _ACEOF
16711 rm -f conftest.$ac_objext
16712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16713 (eval $ac_compile) 2>&5
16714 ac_status=$?
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); } &&
16717 { ac_try='test -s conftest.$ac_objext'
16718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16719 (eval $ac_try) 2>&5
16720 ac_status=$?
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); }; }; then
16723 ac_cv_type_socklen_t=yes
16724 else
16725 echo "$as_me: failed program was:" >&5
16726 cat conftest.$ac_ext >&5
16727 ac_cv_type_socklen_t=no
16729 rm -f conftest.$ac_objext conftest.$ac_ext
16731 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
16732 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
16733 if test $ac_cv_type_socklen_t = yes; then
16735 else
16737 cat >>confdefs.h <<\_ACEOF
16738 #define socklen_t int
16739 _ACEOF
16746 for h in `(cd $srcdir;echo Python/thread_*.h)`
16748 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
16749 done
16752 SRCDIRS="Parser Grammar Objects Python Modules Mac Mac/Python"
16753 echo "$as_me:$LINENO: checking for build directories" >&5
16754 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
16755 for dir in $SRCDIRS; do
16756 if test ! -d $dir; then
16757 mkdir $dir
16759 done
16760 echo "$as_me:$LINENO: result: done" >&5
16761 echo "${ECHO_T}done" >&6
16763 # generate output files
16764 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
16766 cat >confcache <<\_ACEOF
16767 # This file is a shell script that caches the results of configure
16768 # tests run on this system so they can be shared between configure
16769 # scripts and configure runs, see configure's option --config-cache.
16770 # It is not useful on other systems. If it contains results you don't
16771 # want to keep, you may remove or edit it.
16773 # config.status only pays attention to the cache file if you give it
16774 # the --recheck option to rerun configure.
16776 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16777 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16778 # following values.
16780 _ACEOF
16782 # The following way of writing the cache mishandles newlines in values,
16783 # but we know of no workaround that is simple, portable, and efficient.
16784 # So, don't put newlines in cache variables' values.
16785 # Ultrix sh set writes to stderr and can't be redirected directly,
16786 # and sets the high bit in the cache file unless we assign to the vars.
16788 (set) 2>&1 |
16789 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16790 *ac_space=\ *)
16791 # `set' does not quote correctly, so add quotes (double-quote
16792 # substitution turns \\\\ into \\, and sed turns \\ into \).
16793 sed -n \
16794 "s/'/'\\\\''/g;
16795 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16798 # `set' quotes correctly as required by POSIX, so do not add quotes.
16799 sed -n \
16800 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16802 esac;
16804 sed '
16805 t clear
16806 : clear
16807 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16808 t end
16809 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16810 : end' >>confcache
16811 if cmp -s $cache_file confcache; then :; else
16812 if test -w $cache_file; then
16813 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16814 cat confcache >$cache_file
16815 else
16816 echo "not updating unwritable cache $cache_file"
16819 rm -f confcache
16821 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16822 # Let make expand exec_prefix.
16823 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16825 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16826 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16827 # trailing colons and then remove the whole line if VPATH becomes empty
16828 # (actually we leave an empty line to preserve line numbers).
16829 if test "x$srcdir" = x.; then
16830 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16831 s/:*\$(srcdir):*/:/;
16832 s/:*\${srcdir}:*/:/;
16833 s/:*@srcdir@:*/:/;
16834 s/^\([^=]*=[ ]*\):*/\1/;
16835 s/:*$//;
16836 s/^[^=]*=[ ]*$//;
16840 DEFS=-DHAVE_CONFIG_H
16843 : ${CONFIG_STATUS=./config.status}
16844 ac_clean_files_save=$ac_clean_files
16845 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16846 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16847 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16848 cat >$CONFIG_STATUS <<_ACEOF
16849 #! $SHELL
16850 # Generated by $as_me.
16851 # Run this file to recreate the current configuration.
16852 # Compiler output produced by configure, useful for debugging
16853 # configure, is in config.log if it exists.
16855 debug=false
16856 SHELL=\${CONFIG_SHELL-$SHELL}
16857 _ACEOF
16859 cat >>$CONFIG_STATUS <<\_ACEOF
16861 ## --------------------- ##
16862 ## M4sh Initialization. ##
16863 ## --------------------- ##
16865 # Be Bourne compatible
16866 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16867 emulate sh
16868 NULLCMD=:
16869 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16870 set -o posix
16873 # NLS nuisances.
16874 # Support unset when possible.
16875 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16876 as_unset=unset
16877 else
16878 as_unset=false
16881 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16882 { $as_unset LANG || test "${LANG+set}" != set; } ||
16883 { LANG=C; export LANG; }
16884 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16885 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16886 { LC_ALL=C; export LC_ALL; }
16887 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16888 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16889 { LC_TIME=C; export LC_TIME; }
16890 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16891 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16892 { LC_CTYPE=C; export LC_CTYPE; }
16893 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16894 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16895 { LANGUAGE=C; export LANGUAGE; }
16896 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16897 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16898 { LC_COLLATE=C; export LC_COLLATE; }
16899 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16900 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16901 { LC_NUMERIC=C; export LC_NUMERIC; }
16902 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16903 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
16904 { LC_MESSAGES=C; export LC_MESSAGES; }
16907 # Name of the executable.
16908 as_me=`(basename "$0") 2>/dev/null ||
16909 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16910 X"$0" : 'X\(//\)$' \| \
16911 X"$0" : 'X\(/\)$' \| \
16912 . : '\(.\)' 2>/dev/null ||
16913 echo X/"$0" |
16914 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16915 /^X\/\(\/\/\)$/{ s//\1/; q; }
16916 /^X\/\(\/\).*/{ s//\1/; q; }
16917 s/.*/./; q'`
16919 # PATH needs CR, and LINENO needs CR and PATH.
16920 # Avoid depending upon Character Ranges.
16921 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16922 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16923 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16924 as_cr_digits='0123456789'
16925 as_cr_alnum=$as_cr_Letters$as_cr_digits
16927 # The user is always right.
16928 if test "${PATH_SEPARATOR+set}" != set; then
16929 echo "#! /bin/sh" >conftest.sh
16930 echo "exit 0" >>conftest.sh
16931 chmod +x conftest.sh
16932 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16933 PATH_SEPARATOR=';'
16934 else
16935 PATH_SEPARATOR=:
16937 rm -f conftest.sh
16941 as_lineno_1=$LINENO
16942 as_lineno_2=$LINENO
16943 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16944 test "x$as_lineno_1" != "x$as_lineno_2" &&
16945 test "x$as_lineno_3" = "x$as_lineno_2" || {
16946 # Find who we are. Look in the path if we contain no path at all
16947 # relative or not.
16948 case $0 in
16949 *[\\/]* ) as_myself=$0 ;;
16950 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16951 for as_dir in $PATH
16953 IFS=$as_save_IFS
16954 test -z "$as_dir" && as_dir=.
16955 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16956 done
16959 esac
16960 # We did not find ourselves, most probably we were run as `sh COMMAND'
16961 # in which case we are not to be found in the path.
16962 if test "x$as_myself" = x; then
16963 as_myself=$0
16965 if test ! -f "$as_myself"; then
16966 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16967 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16968 { (exit 1); exit 1; }; }
16970 case $CONFIG_SHELL in
16972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16973 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16975 IFS=$as_save_IFS
16976 test -z "$as_dir" && as_dir=.
16977 for as_base in sh bash ksh sh5; do
16978 case $as_dir in
16980 if ("$as_dir/$as_base" -c '
16981 as_lineno_1=$LINENO
16982 as_lineno_2=$LINENO
16983 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16984 test "x$as_lineno_1" != "x$as_lineno_2" &&
16985 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16986 CONFIG_SHELL=$as_dir/$as_base
16987 export CONFIG_SHELL
16988 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16989 fi;;
16990 esac
16991 done
16992 done
16994 esac
16996 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16997 # uniformly replaced by the line number. The first 'sed' inserts a
16998 # line-number line before each line; the second 'sed' does the real
16999 # work. The second script uses 'N' to pair each line-number line
17000 # with the numbered line, and appends trailing '-' during
17001 # substitution so that $LINENO is not a special case at line end.
17002 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17003 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17004 sed '=' <$as_myself |
17005 sed '
17007 s,$,-,
17008 : loop
17009 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17010 t loop
17011 s,-$,,
17012 s,^['$as_cr_digits']*\n,,
17013 ' >$as_me.lineno &&
17014 chmod +x $as_me.lineno ||
17015 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17016 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17017 { (exit 1); exit 1; }; }
17019 # Don't try to exec as it changes $[0], causing all sort of problems
17020 # (the dirname of $[0] is not the place where we might find the
17021 # original and so on. Autoconf is especially sensible to this).
17022 . ./$as_me.lineno
17023 # Exit status is that of the last command.
17024 exit
17028 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17029 *c*,-n*) ECHO_N= ECHO_C='
17030 ' ECHO_T=' ' ;;
17031 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17032 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17033 esac
17035 if expr a : '\(a\)' >/dev/null 2>&1; then
17036 as_expr=expr
17037 else
17038 as_expr=false
17041 rm -f conf$$ conf$$.exe conf$$.file
17042 echo >conf$$.file
17043 if ln -s conf$$.file conf$$ 2>/dev/null; then
17044 # We could just check for DJGPP; but this test a) works b) is more generic
17045 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17046 if test -f conf$$.exe; then
17047 # Don't use ln at all; we don't have any links
17048 as_ln_s='cp -p'
17049 else
17050 as_ln_s='ln -s'
17052 elif ln conf$$.file conf$$ 2>/dev/null; then
17053 as_ln_s=ln
17054 else
17055 as_ln_s='cp -p'
17057 rm -f conf$$ conf$$.exe conf$$.file
17059 as_executable_p="test -f"
17061 # Sed expression to map a string onto a valid CPP name.
17062 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17064 # Sed expression to map a string onto a valid variable name.
17065 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17068 # IFS
17069 # We need space, tab and new line, in precisely that order.
17070 as_nl='
17072 IFS=" $as_nl"
17074 # CDPATH.
17075 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17077 exec 6>&1
17079 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17080 # report actual input values of CONFIG_FILES etc. instead of their
17081 # values after options handling. Logging --version etc. is OK.
17082 exec 5>>config.log
17084 echo
17085 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17086 ## Running $as_me. ##
17087 _ASBOX
17088 } >&5
17089 cat >&5 <<_CSEOF
17091 This file was extended by python $as_me 2.3, which was
17092 generated by GNU Autoconf 2.53. Invocation command line was
17094 CONFIG_FILES = $CONFIG_FILES
17095 CONFIG_HEADERS = $CONFIG_HEADERS
17096 CONFIG_LINKS = $CONFIG_LINKS
17097 CONFIG_COMMANDS = $CONFIG_COMMANDS
17098 $ $0 $@
17100 _CSEOF
17101 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17102 echo >&5
17103 _ACEOF
17105 # Files that config.status was made for.
17106 if test -n "$ac_config_files"; then
17107 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17110 if test -n "$ac_config_headers"; then
17111 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17114 if test -n "$ac_config_links"; then
17115 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17118 if test -n "$ac_config_commands"; then
17119 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17122 cat >>$CONFIG_STATUS <<\_ACEOF
17124 ac_cs_usage="\
17125 \`$as_me' instantiates files from templates according to the
17126 current configuration.
17128 Usage: $0 [OPTIONS] [FILE]...
17130 -h, --help print this help, then exit
17131 -V, --version print version number, then exit
17132 -d, --debug don't remove temporary files
17133 --recheck update $as_me by reconfiguring in the same conditions
17134 --file=FILE[:TEMPLATE]
17135 instantiate the configuration file FILE
17136 --header=FILE[:TEMPLATE]
17137 instantiate the configuration header FILE
17139 Configuration files:
17140 $config_files
17142 Configuration headers:
17143 $config_headers
17145 Report bugs to <bug-autoconf@gnu.org>."
17146 _ACEOF
17148 cat >>$CONFIG_STATUS <<_ACEOF
17149 ac_cs_version="\\
17150 python config.status 2.3
17151 configured by $0, generated by GNU Autoconf 2.53,
17152 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17154 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17155 Free Software Foundation, Inc.
17156 This config.status script is free software; the Free Software Foundation
17157 gives unlimited permission to copy, distribute and modify it."
17158 srcdir=$srcdir
17159 INSTALL="$INSTALL"
17160 _ACEOF
17162 cat >>$CONFIG_STATUS <<\_ACEOF
17163 # If no file are specified by the user, then we need to provide default
17164 # value. By we need to know if files were specified by the user.
17165 ac_need_defaults=:
17166 while test $# != 0
17168 case $1 in
17169 --*=*)
17170 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17171 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17172 shift
17173 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17174 shift
17176 -*);;
17177 *) # This is not an option, so the user has probably given explicit
17178 # arguments.
17179 ac_need_defaults=false;;
17180 esac
17182 case $1 in
17183 # Handling of the options.
17184 _ACEOF
17185 cat >>$CONFIG_STATUS <<_ACEOF
17186 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17187 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17188 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17189 _ACEOF
17190 cat >>$CONFIG_STATUS <<\_ACEOF
17191 --version | --vers* | -V )
17192 echo "$ac_cs_version"; exit 0 ;;
17193 --he | --h)
17194 # Conflict between --help and --header
17195 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17196 Try \`$0 --help' for more information." >&5
17197 echo "$as_me: error: ambiguous option: $1
17198 Try \`$0 --help' for more information." >&2;}
17199 { (exit 1); exit 1; }; };;
17200 --help | --hel | -h )
17201 echo "$ac_cs_usage"; exit 0 ;;
17202 --debug | --d* | -d )
17203 debug=: ;;
17204 --file | --fil | --fi | --f )
17205 shift
17206 CONFIG_FILES="$CONFIG_FILES $1"
17207 ac_need_defaults=false;;
17208 --header | --heade | --head | --hea )
17209 shift
17210 CONFIG_HEADERS="$CONFIG_HEADERS $1"
17211 ac_need_defaults=false;;
17213 # This is an error.
17214 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17215 Try \`$0 --help' for more information." >&5
17216 echo "$as_me: error: unrecognized option: $1
17217 Try \`$0 --help' for more information." >&2;}
17218 { (exit 1); exit 1; }; } ;;
17220 *) ac_config_targets="$ac_config_targets $1" ;;
17222 esac
17223 shift
17224 done
17226 _ACEOF
17232 cat >>$CONFIG_STATUS <<\_ACEOF
17233 for ac_config_target in $ac_config_targets
17235 case "$ac_config_target" in
17236 # Handling of arguments.
17237 "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
17238 "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
17239 "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
17240 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17241 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17242 { (exit 1); exit 1; }; };;
17243 esac
17244 done
17246 # If the user did not use the arguments to specify the items to instantiate,
17247 # then the envvar interface is used. Set only those that are not.
17248 # We use the long form for the default assignment because of an extremely
17249 # bizarre bug on SunOS 4.1.3.
17250 if $ac_need_defaults; then
17251 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17252 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17255 # Create a temporary directory, and hook for its removal unless debugging.
17256 $debug ||
17258 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17259 trap '{ (exit 1); exit 1; }' 1 2 13 15
17262 # Create a (secure) tmp directory for tmp files.
17263 : ${TMPDIR=/tmp}
17265 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17266 test -n "$tmp" && test -d "$tmp"
17267 } ||
17269 tmp=$TMPDIR/cs$$-$RANDOM
17270 (umask 077 && mkdir $tmp)
17271 } ||
17273 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17274 { (exit 1); exit 1; }
17277 _ACEOF
17279 cat >>$CONFIG_STATUS <<_ACEOF
17282 # CONFIG_FILES section.
17285 # No need to generate the scripts if there are no CONFIG_FILES.
17286 # This happens for instance when ./config.status config.h
17287 if test -n "\$CONFIG_FILES"; then
17288 # Protect against being on the right side of a sed subst in config.status.
17289 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17290 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17291 s,@SHELL@,$SHELL,;t t
17292 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17293 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17294 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17295 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17296 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17297 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17298 s,@exec_prefix@,$exec_prefix,;t t
17299 s,@prefix@,$prefix,;t t
17300 s,@program_transform_name@,$program_transform_name,;t t
17301 s,@bindir@,$bindir,;t t
17302 s,@sbindir@,$sbindir,;t t
17303 s,@libexecdir@,$libexecdir,;t t
17304 s,@datadir@,$datadir,;t t
17305 s,@sysconfdir@,$sysconfdir,;t t
17306 s,@sharedstatedir@,$sharedstatedir,;t t
17307 s,@localstatedir@,$localstatedir,;t t
17308 s,@libdir@,$libdir,;t t
17309 s,@includedir@,$includedir,;t t
17310 s,@oldincludedir@,$oldincludedir,;t t
17311 s,@infodir@,$infodir,;t t
17312 s,@mandir@,$mandir,;t t
17313 s,@build_alias@,$build_alias,;t t
17314 s,@host_alias@,$host_alias,;t t
17315 s,@target_alias@,$target_alias,;t t
17316 s,@DEFS@,$DEFS,;t t
17317 s,@ECHO_C@,$ECHO_C,;t t
17318 s,@ECHO_N@,$ECHO_N,;t t
17319 s,@ECHO_T@,$ECHO_T,;t t
17320 s,@LIBS@,$LIBS,;t t
17321 s,@VERSION@,$VERSION,;t t
17322 s,@SOVERSION@,$SOVERSION,;t t
17323 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
17324 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
17325 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
17326 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
17327 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
17328 s,@MACHDEP@,$MACHDEP,;t t
17329 s,@SGI_ABI@,$SGI_ABI,;t t
17330 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
17331 s,@CXX@,$CXX,;t t
17332 s,@MAINOBJ@,$MAINOBJ,;t t
17333 s,@EXEEXT@,$EXEEXT,;t t
17334 s,@CC@,$CC,;t t
17335 s,@CFLAGS@,$CFLAGS,;t t
17336 s,@LDFLAGS@,$LDFLAGS,;t t
17337 s,@CPPFLAGS@,$CPPFLAGS,;t t
17338 s,@ac_ct_CC@,$ac_ct_CC,;t t
17339 s,@OBJEXT@,$OBJEXT,;t t
17340 s,@CPP@,$CPP,;t t
17341 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
17342 s,@LIBRARY@,$LIBRARY,;t t
17343 s,@LDLIBRARY@,$LDLIBRARY,;t t
17344 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
17345 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
17346 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
17347 s,@INSTSONAME@,$INSTSONAME,;t t
17348 s,@RUNSHARED@,$RUNSHARED,;t t
17349 s,@LINKCC@,$LINKCC,;t t
17350 s,@RANLIB@,$RANLIB,;t t
17351 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17352 s,@AR@,$AR,;t t
17353 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17354 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17355 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17356 s,@LN@,$LN,;t t
17357 s,@OPT@,$OPT,;t t
17358 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
17359 s,@SO@,$SO,;t t
17360 s,@LDSHARED@,$LDSHARED,;t t
17361 s,@BLDSHARED@,$BLDSHARED,;t t
17362 s,@CCSHARED@,$CCSHARED,;t t
17363 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
17364 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
17365 s,@SHLIBS@,$SHLIBS,;t t
17366 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
17367 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
17368 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
17369 s,@LDLAST@,$LDLAST,;t t
17370 s,@THREADOBJ@,$THREADOBJ,;t t
17371 s,@DLINCLDIR@,$DLINCLDIR,;t t
17372 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
17373 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
17374 s,@LIBOBJS@,$LIBOBJS,;t t
17375 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
17376 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
17377 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
17378 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
17379 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
17380 s,@LIBM@,$LIBM,;t t
17381 s,@LIBC@,$LIBC,;t t
17382 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
17383 s,@THREADHEADERS@,$THREADHEADERS,;t t
17384 s,@SRCDIRS@,$SRCDIRS,;t t
17385 CEOF
17387 _ACEOF
17389 cat >>$CONFIG_STATUS <<\_ACEOF
17390 # Split the substitutions into bite-sized pieces for seds with
17391 # small command number limits, like on Digital OSF/1 and HP-UX.
17392 ac_max_sed_lines=48
17393 ac_sed_frag=1 # Number of current file.
17394 ac_beg=1 # First line for current file.
17395 ac_end=$ac_max_sed_lines # Line after last line for current file.
17396 ac_more_lines=:
17397 ac_sed_cmds=
17398 while $ac_more_lines; do
17399 if test $ac_beg -gt 1; then
17400 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17401 else
17402 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17404 if test ! -s $tmp/subs.frag; then
17405 ac_more_lines=false
17406 else
17407 # The purpose of the label and of the branching condition is to
17408 # speed up the sed processing (if there are no `@' at all, there
17409 # is no need to browse any of the substitutions).
17410 # These are the two extra sed commands mentioned above.
17411 (echo ':t
17412 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17413 if test -z "$ac_sed_cmds"; then
17414 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17415 else
17416 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17418 ac_sed_frag=`expr $ac_sed_frag + 1`
17419 ac_beg=$ac_end
17420 ac_end=`expr $ac_end + $ac_max_sed_lines`
17422 done
17423 if test -z "$ac_sed_cmds"; then
17424 ac_sed_cmds=cat
17426 fi # test -n "$CONFIG_FILES"
17428 _ACEOF
17429 cat >>$CONFIG_STATUS <<\_ACEOF
17430 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17431 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17432 case $ac_file in
17433 - | *:- | *:-:* ) # input from stdin
17434 cat >$tmp/stdin
17435 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17436 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17437 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17438 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17439 * ) ac_file_in=$ac_file.in ;;
17440 esac
17442 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17443 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17444 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17445 X"$ac_file" : 'X\(//\)[^/]' \| \
17446 X"$ac_file" : 'X\(//\)$' \| \
17447 X"$ac_file" : 'X\(/\)' \| \
17448 . : '\(.\)' 2>/dev/null ||
17449 echo X"$ac_file" |
17450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17451 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17452 /^X\(\/\/\)$/{ s//\1/; q; }
17453 /^X\(\/\).*/{ s//\1/; q; }
17454 s/.*/./; q'`
17455 { case "$ac_dir" in
17456 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17457 *) as_incr_dir=.;;
17458 esac
17459 as_dummy="$ac_dir"
17460 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17461 case $as_mkdir_dir in
17462 # Skip DOS drivespec
17463 ?:) as_incr_dir=$as_mkdir_dir ;;
17465 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17466 test -d "$as_incr_dir" ||
17467 mkdir "$as_incr_dir" ||
17468 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17469 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17470 { (exit 1); exit 1; }; }
17472 esac
17473 done; }
17475 ac_builddir=.
17477 if test "$ac_dir" != .; then
17478 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17479 # A "../" for each directory in $ac_dir_suffix.
17480 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17481 else
17482 ac_dir_suffix= ac_top_builddir=
17485 case $srcdir in
17486 .) # No --srcdir option. We are building in place.
17487 ac_srcdir=.
17488 if test -z "$ac_top_builddir"; then
17489 ac_top_srcdir=.
17490 else
17491 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17492 fi ;;
17493 [\\/]* | ?:[\\/]* ) # Absolute path.
17494 ac_srcdir=$srcdir$ac_dir_suffix;
17495 ac_top_srcdir=$srcdir ;;
17496 *) # Relative path.
17497 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17498 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17499 esac
17500 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17501 # absolute.
17502 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17503 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17504 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17505 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17508 case $INSTALL in
17509 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17510 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17511 esac
17513 if test x"$ac_file" != x-; then
17514 { echo "$as_me:$LINENO: creating $ac_file" >&5
17515 echo "$as_me: creating $ac_file" >&6;}
17516 rm -f "$ac_file"
17518 # Let's still pretend it is `configure' which instantiates (i.e., don't
17519 # use $as_me), people would be surprised to read:
17520 # /* config.h. Generated by config.status. */
17521 if test x"$ac_file" = x-; then
17522 configure_input=
17523 else
17524 configure_input="$ac_file. "
17526 configure_input=$configure_input"Generated from `echo $ac_file_in |
17527 sed 's,.*/,,'` by configure."
17529 # First look for the input files in the build tree, otherwise in the
17530 # src tree.
17531 ac_file_inputs=`IFS=:
17532 for f in $ac_file_in; do
17533 case $f in
17534 -) echo $tmp/stdin ;;
17535 [\\/$]*)
17536 # Absolute (can't be DOS-style, as IFS=:)
17537 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17538 echo "$as_me: error: cannot find input file: $f" >&2;}
17539 { (exit 1); exit 1; }; }
17540 echo $f;;
17541 *) # Relative
17542 if test -f "$f"; then
17543 # Build tree
17544 echo $f
17545 elif test -f "$srcdir/$f"; then
17546 # Source tree
17547 echo $srcdir/$f
17548 else
17549 # /dev/null tree
17550 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17551 echo "$as_me: error: cannot find input file: $f" >&2;}
17552 { (exit 1); exit 1; }; }
17553 fi;;
17554 esac
17555 done` || { (exit 1); exit 1; }
17556 _ACEOF
17557 cat >>$CONFIG_STATUS <<_ACEOF
17558 sed "$ac_vpsub
17559 $extrasub
17560 _ACEOF
17561 cat >>$CONFIG_STATUS <<\_ACEOF
17563 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17564 s,@configure_input@,$configure_input,;t t
17565 s,@srcdir@,$ac_srcdir,;t t
17566 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17567 s,@top_srcdir@,$ac_top_srcdir,;t t
17568 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17569 s,@builddir@,$ac_builddir,;t t
17570 s,@abs_builddir@,$ac_abs_builddir,;t t
17571 s,@top_builddir@,$ac_top_builddir,;t t
17572 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17573 s,@INSTALL@,$ac_INSTALL,;t t
17574 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17575 rm -f $tmp/stdin
17576 if test x"$ac_file" != x-; then
17577 mv $tmp/out $ac_file
17578 else
17579 cat $tmp/out
17580 rm -f $tmp/out
17583 done
17584 _ACEOF
17585 cat >>$CONFIG_STATUS <<\_ACEOF
17588 # CONFIG_HEADER section.
17591 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17592 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17594 # ac_d sets the value in "#define NAME VALUE" lines.
17595 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17596 ac_dB='[ ].*$,\1#\2'
17597 ac_dC=' '
17598 ac_dD=',;t'
17599 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17600 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17601 ac_uB='$,\1#\2define\3'
17602 ac_uC=' '
17603 ac_uD=',;t'
17605 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17606 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17607 case $ac_file in
17608 - | *:- | *:-:* ) # input from stdin
17609 cat >$tmp/stdin
17610 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17611 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17612 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17613 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17614 * ) ac_file_in=$ac_file.in ;;
17615 esac
17617 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17618 echo "$as_me: creating $ac_file" >&6;}
17620 # First look for the input files in the build tree, otherwise in the
17621 # src tree.
17622 ac_file_inputs=`IFS=:
17623 for f in $ac_file_in; do
17624 case $f in
17625 -) echo $tmp/stdin ;;
17626 [\\/$]*)
17627 # Absolute (can't be DOS-style, as IFS=:)
17628 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17629 echo "$as_me: error: cannot find input file: $f" >&2;}
17630 { (exit 1); exit 1; }; }
17631 echo $f;;
17632 *) # Relative
17633 if test -f "$f"; then
17634 # Build tree
17635 echo $f
17636 elif test -f "$srcdir/$f"; then
17637 # Source tree
17638 echo $srcdir/$f
17639 else
17640 # /dev/null tree
17641 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17642 echo "$as_me: error: cannot find input file: $f" >&2;}
17643 { (exit 1); exit 1; }; }
17644 fi;;
17645 esac
17646 done` || { (exit 1); exit 1; }
17647 # Remove the trailing spaces.
17648 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17650 _ACEOF
17652 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17653 # `conftest.undefs', that substitutes the proper values into
17654 # config.h.in to produce config.h. The first handles `#define'
17655 # templates, and the second `#undef' templates.
17656 # And first: Protect against being on the right side of a sed subst in
17657 # config.status. Protect against being in an unquoted here document
17658 # in config.status.
17659 rm -f conftest.defines conftest.undefs
17660 # Using a here document instead of a string reduces the quoting nightmare.
17661 # Putting comments in sed scripts is not portable.
17663 # `end' is used to avoid that the second main sed command (meant for
17664 # 0-ary CPP macros) applies to n-ary macro definitions.
17665 # See the Autoconf documentation for `clear'.
17666 cat >confdef2sed.sed <<\_ACEOF
17667 s/[\\&,]/\\&/g
17668 s,[\\$`],\\&,g
17669 t clear
17670 : clear
17671 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17672 t end
17673 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17674 : end
17675 _ACEOF
17676 # If some macros were called several times there might be several times
17677 # the same #defines, which is useless. Nevertheless, we may not want to
17678 # sort them, since we want the *last* AC-DEFINE to be honored.
17679 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17680 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17681 rm -f confdef2sed.sed
17683 # This sed command replaces #undef with comments. This is necessary, for
17684 # example, in the case of _POSIX_SOURCE, which is predefined and required
17685 # on some systems where configure will not decide to define it.
17686 cat >>conftest.undefs <<\_ACEOF
17687 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17688 _ACEOF
17690 # Break up conftest.defines because some shells have a limit on the size
17691 # of here documents, and old seds have small limits too (100 cmds).
17692 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17693 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17694 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17695 echo ' :' >>$CONFIG_STATUS
17696 rm -f conftest.tail
17697 while grep . conftest.defines >/dev/null
17699 # Write a limited-size here document to $tmp/defines.sed.
17700 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17701 # Speed up: don't consider the non `#define' lines.
17702 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17703 # Work around the forget-to-reset-the-flag bug.
17704 echo 't clr' >>$CONFIG_STATUS
17705 echo ': clr' >>$CONFIG_STATUS
17706 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17707 echo 'CEOF
17708 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17709 rm -f $tmp/in
17710 mv $tmp/out $tmp/in
17711 ' >>$CONFIG_STATUS
17712 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17713 rm -f conftest.defines
17714 mv conftest.tail conftest.defines
17715 done
17716 rm -f conftest.defines
17717 echo ' fi # egrep' >>$CONFIG_STATUS
17718 echo >>$CONFIG_STATUS
17720 # Break up conftest.undefs because some shells have a limit on the size
17721 # of here documents, and old seds have small limits too (100 cmds).
17722 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17723 rm -f conftest.tail
17724 while grep . conftest.undefs >/dev/null
17726 # Write a limited-size here document to $tmp/undefs.sed.
17727 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17728 # Speed up: don't consider the non `#undef'
17729 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17730 # Work around the forget-to-reset-the-flag bug.
17731 echo 't clr' >>$CONFIG_STATUS
17732 echo ': clr' >>$CONFIG_STATUS
17733 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17734 echo 'CEOF
17735 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17736 rm -f $tmp/in
17737 mv $tmp/out $tmp/in
17738 ' >>$CONFIG_STATUS
17739 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17740 rm -f conftest.undefs
17741 mv conftest.tail conftest.undefs
17742 done
17743 rm -f conftest.undefs
17745 cat >>$CONFIG_STATUS <<\_ACEOF
17746 # Let's still pretend it is `configure' which instantiates (i.e., don't
17747 # use $as_me), people would be surprised to read:
17748 # /* config.h. Generated by config.status. */
17749 if test x"$ac_file" = x-; then
17750 echo "/* Generated by configure. */" >$tmp/config.h
17751 else
17752 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17754 cat $tmp/in >>$tmp/config.h
17755 rm -f $tmp/in
17756 if test x"$ac_file" != x-; then
17757 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17758 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17759 echo "$as_me: $ac_file is unchanged" >&6;}
17760 else
17761 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17762 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17763 X"$ac_file" : 'X\(//\)[^/]' \| \
17764 X"$ac_file" : 'X\(//\)$' \| \
17765 X"$ac_file" : 'X\(/\)' \| \
17766 . : '\(.\)' 2>/dev/null ||
17767 echo X"$ac_file" |
17768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17769 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17770 /^X\(\/\/\)$/{ s//\1/; q; }
17771 /^X\(\/\).*/{ s//\1/; q; }
17772 s/.*/./; q'`
17773 { case "$ac_dir" in
17774 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17775 *) as_incr_dir=.;;
17776 esac
17777 as_dummy="$ac_dir"
17778 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17779 case $as_mkdir_dir in
17780 # Skip DOS drivespec
17781 ?:) as_incr_dir=$as_mkdir_dir ;;
17783 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17784 test -d "$as_incr_dir" ||
17785 mkdir "$as_incr_dir" ||
17786 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17787 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17788 { (exit 1); exit 1; }; }
17790 esac
17791 done; }
17793 rm -f $ac_file
17794 mv $tmp/config.h $ac_file
17796 else
17797 cat $tmp/config.h
17798 rm -f $tmp/config.h
17800 done
17801 _ACEOF
17803 cat >>$CONFIG_STATUS <<\_ACEOF
17805 { (exit 0); exit 0; }
17806 _ACEOF
17807 chmod +x $CONFIG_STATUS
17808 ac_clean_files=$ac_clean_files_save
17811 # configure is writing to config.log, and then calls config.status.
17812 # config.status does its own redirection, appending to config.log.
17813 # Unfortunately, on DOS this fails, as config.log is still kept open
17814 # by configure, so config.status won't be able to write to it; its
17815 # output is simply discarded. So we exec the FD to /dev/null,
17816 # effectively closing config.log, so it can be properly (re)opened and
17817 # appended to by config.status. When coming back to configure, we
17818 # need to make the FD available again.
17819 if test "$no_create" != yes; then
17820 ac_cs_success=:
17821 exec 5>/dev/null
17822 $SHELL $CONFIG_STATUS || ac_cs_success=false
17823 exec 5>>config.log
17824 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17825 # would make configure fail if this is the last instruction.
17826 $ac_cs_success || { (exit 1); exit 1; }
17830 echo "creating Setup"
17831 if test ! -f Modules/Setup
17832 then
17833 cp $srcdir/Modules/Setup.dist Modules/Setup
17836 echo "creating Setup.local"
17837 if test ! -f Modules/Setup.local
17838 then
17839 echo "# Edit this file for local setup changes" >Modules/Setup.local
17842 echo "creating Makefile"
17843 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
17844 -s Modules Modules/Setup.config \
17845 Modules/Setup.local Modules/Setup
17846 mv config.c Modules