Exceptions raised during renaming in rotating file handlers are now passed to handleE...
[python.git] / configure
blob0d4fad3661d15d355491215cb1a83e62b726dc21
1 #! /bin/sh
2 # From configure.in Revision: 41984 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for python 2.5.
6 # Report bugs to <http://www.python.org/python-bugs>.
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
25 DUALCASE=1; export DUALCASE # for MKS sh
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29 as_unset=unset
30 else
31 as_unset=false
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
41 # NLS nuisances.
42 for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
52 done
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57 else
58 as_expr=false
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63 else
64 as_basename=false
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
99 rm -f conf$$.sh
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155 done
157 esac
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199 else
200 as_expr=false
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216 else
217 as_ln_s='cp -p'
219 rm -f conf$$ conf$$.exe conf$$.file
221 if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223 else
224 test -d ./-p && rmdir ./-p
225 as_mkdir_p=false
228 as_executable_p="test -f"
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
241 IFS=" $as_nl"
243 # CDPATH.
244 $as_unset CDPATH
247 # Name of the host.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252 exec 6>&1
255 # Initializations.
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
259 cross_compiling=no
260 subdirs=
261 MFLAGS=
262 MAKEFLAGS=
263 SHELL=${CONFIG_SHELL-/bin/sh}
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete. It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
270 # Identity of this package.
271 PACKAGE_NAME='python'
272 PACKAGE_TARNAME='python'
273 PACKAGE_VERSION='2.5'
274 PACKAGE_STRING='python 2.5'
275 PACKAGE_BUGREPORT='http://www.python.org/python-bugs'
277 ac_unique_file="Include/object.h"
278 # Factoring default headers for most tests.
279 ac_includes_default="\
280 #include <stdio.h>
281 #if HAVE_SYS_TYPES_H
282 # include <sys/types.h>
283 #endif
284 #if HAVE_SYS_STAT_H
285 # include <sys/stat.h>
286 #endif
287 #if STDC_HEADERS
288 # include <stdlib.h>
289 # include <stddef.h>
290 #else
291 # if HAVE_STDLIB_H
292 # include <stdlib.h>
293 # endif
294 #endif
295 #if HAVE_STRING_H
296 # if !STDC_HEADERS && HAVE_MEMORY_H
297 # include <memory.h>
298 # endif
299 # include <string.h>
300 #endif
301 #if HAVE_STRINGS_H
302 # include <strings.h>
303 #endif
304 #if HAVE_INTTYPES_H
305 # include <inttypes.h>
306 #else
307 # if HAVE_STDINT_H
308 # include <stdint.h>
309 # endif
310 #endif
311 #if HAVE_UNISTD_H
312 # include <unistd.h>
313 #endif"
315 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION SOVERSION CONFIG_ARGS PYTHONFRAMEWORK PYTHONFRAMEWORKDIR PYTHONFRAMEWORKPREFIX PYTHONFRAMEWORKINSTALLDIR MACHDEP SGI_ABI EXTRAPLATDIR EXTRAMACHDEPPATH CONFIGURE_MACOSX_DEPLOYMENT_TARGET CXX MAINOBJ EXEEXT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC OBJEXT CPP EGREP BUILDEXEEXT LIBRARY LDLIBRARY DLLLIBRARY BLDLIBRARY LDLIBRARYDIR INSTSONAME RUNSHARED LINKCC RANLIB ac_ct_RANLIB AR SVNVERSION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN OPT BASECFLAGS OTHER_LIBTOOL_OPT LIBTOOL_CRUFT SO LDSHARED BLDSHARED CCSHARED LINKFORSHARED CFLAGSFORSHARED SHLIBS USE_SIGNAL_MODULE SIGNAL_OBJS USE_THREAD_MODULE LDLAST THREADOBJ DLINCLDIR DYNLOADFILE MACHDEP_OBJS TRUE LIBOBJS HAVE_GETHOSTBYNAME_R_6_ARG HAVE_GETHOSTBYNAME_R_5_ARG HAVE_GETHOSTBYNAME_R_3_ARG HAVE_GETHOSTBYNAME_R HAVE_GETHOSTBYNAME LIBM LIBC UNICODE_OBJS THREADHEADERS SRCDIRS LTLIBOBJS'
316 ac_subst_files=''
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_libraries=NONE
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
356 ac_prev=
357 for ac_option
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
370 case $ac_option in
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 bindir=$ac_optarg ;;
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
389 --config-cache | -C)
390 cache_file=config.cache ;;
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
396 datadir=$ac_optarg ;;
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 *) ac_optarg=yes ;;
417 esac
418 eval "enable_$ac_feature='$ac_optarg'" ;;
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 libdir=$ac_optarg ;;
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 mandir=$ac_optarg ;;
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
489 no_create=yes ;;
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 prefix=$ac_optarg ;;
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
548 sbindir=$ac_optarg ;;
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
559 sharedstatedir=$ac_optarg ;;
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
564 site=$ac_optarg ;;
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 srcdir=$ac_optarg ;;
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
589 -with-* | --with-*)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 *) ac_optarg=yes ;;
599 esac
600 eval "with_$ac_package='$ac_optarg'" ;;
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 esac
653 done
655 if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670 done
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
681 esac
682 done
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705 test "$silent" = yes && exec 6>/dev/null
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718 echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
728 else
729 ac_srcdir_defaulted=no
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
735 else
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
757 ac_env_CC_value=$CC
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CPP_set=${CPP+set}
773 ac_env_CPP_value=$CPP
774 ac_cv_env_CPP_set=${CPP+set}
775 ac_cv_env_CPP_value=$CPP
778 # Report the --help message.
780 if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
783 cat <<_ACEOF
784 \`configure' configures python 2.5 to adapt to many kinds of systems.
786 Usage: $0 [OPTION]... [VAR=VALUE]...
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE. See below for descriptions of some of the useful variables.
791 Defaults for the options are specified in brackets.
793 Configuration:
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 _ACEOF
806 cat <<_ACEOF
807 Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
809 [$ac_default_prefix]
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 [PREFIX]
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
818 For better control, use the options below.
820 Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
833 _ACEOF
835 cat <<\_ACEOF
836 _ACEOF
839 if test -n "$ac_init_help"; then
840 case $ac_init_help in
841 short | recursive ) echo "Configuration of python 2.5:";;
842 esac
843 cat <<\_ACEOF
845 Optional Features:
846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848 --enable-framework[=INSTALLDIR]
849 Build (MacOSX|Darwin) framework
850 --enable-shared disable/enable building shared python library
851 --enable-profiling enable C-level code profiling
852 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
853 --enable-ipv6 Enable ipv6 (with ipv4) support
854 --disable-ipv6 Disable ipv6 support
855 --enable-unicode[=ucs[24]]
856 Enable Unicode strings (default is yes)
858 Optional Packages:
859 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
860 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
861 --without-gcc never use gcc
862 --with-cxx=<compiler> enable C++ support
863 --with-suffix=.exe set executable suffix
864 --with-pydebug build with Py_DEBUG defined
865 --with-libs='lib1 ...' link against additional libs
866 --with-signal-module disable/enable signal module
867 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
868 --with(out)-threads[=DIRECTORY]
869 disable/enable thread support
870 --with(out)-thread[=DIRECTORY]
871 deprecated; use --with(out)-threads
872 --with-pth use GNU pth threading libraries
873 --with(out)-doc-strings disable/enable documentation strings
874 --with(out)-tsc enable/disable timestamp counter profile
875 --with(out)-pymalloc disable/enable specialized mallocs
876 --with-wctype-functions use wctype.h functions
877 --with-fpectl enable SIGFPE catching
878 --with-libm=STRING math library
879 --with-libc=STRING C library
881 Some influential environment variables:
882 CC C compiler command
883 CFLAGS C compiler flags
884 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
885 nonstandard directory <lib dir>
886 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
887 headers in a nonstandard directory <include dir>
888 CPP C preprocessor
890 Use these variables to override the choices made by `configure' or to help
891 it to find libraries and programs with nonstandard names/locations.
893 Report bugs to <http://www.python.org/python-bugs>.
894 _ACEOF
897 if test "$ac_init_help" = "recursive"; then
898 # If there are subdirs, report their specific --help.
899 ac_popdir=`pwd`
900 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
901 test -d $ac_dir || continue
902 ac_builddir=.
904 if test "$ac_dir" != .; then
905 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
906 # A "../" for each directory in $ac_dir_suffix.
907 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
908 else
909 ac_dir_suffix= ac_top_builddir=
912 case $srcdir in
913 .) # No --srcdir option. We are building in place.
914 ac_srcdir=.
915 if test -z "$ac_top_builddir"; then
916 ac_top_srcdir=.
917 else
918 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
919 fi ;;
920 [\\/]* | ?:[\\/]* ) # Absolute path.
921 ac_srcdir=$srcdir$ac_dir_suffix;
922 ac_top_srcdir=$srcdir ;;
923 *) # Relative path.
924 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
925 ac_top_srcdir=$ac_top_builddir$srcdir ;;
926 esac
928 # Do not use `cd foo && pwd` to compute absolute paths, because
929 # the directories may not exist.
930 case `pwd` in
931 .) ac_abs_builddir="$ac_dir";;
933 case "$ac_dir" in
934 .) ac_abs_builddir=`pwd`;;
935 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
936 *) ac_abs_builddir=`pwd`/"$ac_dir";;
937 esac;;
938 esac
939 case $ac_abs_builddir in
940 .) ac_abs_top_builddir=${ac_top_builddir}.;;
942 case ${ac_top_builddir}. in
943 .) ac_abs_top_builddir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
945 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
946 esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_srcdir=$ac_srcdir;;
951 case $ac_srcdir in
952 .) ac_abs_srcdir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
954 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
955 esac;;
956 esac
957 case $ac_abs_builddir in
958 .) ac_abs_top_srcdir=$ac_top_srcdir;;
960 case $ac_top_srcdir in
961 .) ac_abs_top_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
963 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
964 esac;;
965 esac
967 cd $ac_dir
968 # Check for guested configure; otherwise get Cygnus style configure.
969 if test -f $ac_srcdir/configure.gnu; then
970 echo
971 $SHELL $ac_srcdir/configure.gnu --help=recursive
972 elif test -f $ac_srcdir/configure; then
973 echo
974 $SHELL $ac_srcdir/configure --help=recursive
975 elif test -f $ac_srcdir/configure.ac ||
976 test -f $ac_srcdir/configure.in; then
977 echo
978 $ac_configure --help
979 else
980 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
982 cd $ac_popdir
983 done
986 test -n "$ac_init_help" && exit 0
987 if $ac_init_version; then
988 cat <<\_ACEOF
989 python configure 2.5
990 generated by GNU Autoconf 2.59
992 Copyright (C) 2003 Free Software Foundation, Inc.
993 This configure script is free software; the Free Software Foundation
994 gives unlimited permission to copy, distribute and modify it.
995 _ACEOF
996 exit 0
998 exec 5>config.log
999 cat >&5 <<_ACEOF
1000 This file contains any messages produced by compilers while
1001 running configure, to aid debugging if configure makes a mistake.
1003 It was created by python $as_me 2.5, which was
1004 generated by GNU Autoconf 2.59. Invocation command line was
1006 $ $0 $@
1008 _ACEOF
1010 cat <<_ASUNAME
1011 ## --------- ##
1012 ## Platform. ##
1013 ## --------- ##
1015 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1016 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1017 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1018 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1019 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1021 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1022 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1024 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1025 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1026 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1027 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1028 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1029 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1030 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1032 _ASUNAME
1034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1035 for as_dir in $PATH
1037 IFS=$as_save_IFS
1038 test -z "$as_dir" && as_dir=.
1039 echo "PATH: $as_dir"
1040 done
1042 } >&5
1044 cat >&5 <<_ACEOF
1047 ## ----------- ##
1048 ## Core tests. ##
1049 ## ----------- ##
1051 _ACEOF
1054 # Keep a trace of the command line.
1055 # Strip out --no-create and --no-recursion so they do not pile up.
1056 # Strip out --silent because we don't want to record it for future runs.
1057 # Also quote any args containing shell meta-characters.
1058 # Make two passes to allow for proper duplicate-argument suppression.
1059 ac_configure_args=
1060 ac_configure_args0=
1061 ac_configure_args1=
1062 ac_sep=
1063 ac_must_keep_next=false
1064 for ac_pass in 1 2
1066 for ac_arg
1068 case $ac_arg in
1069 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1072 continue ;;
1073 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1074 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1075 esac
1076 case $ac_pass in
1077 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1079 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1080 if test $ac_must_keep_next = true; then
1081 ac_must_keep_next=false # Got value, back to normal.
1082 else
1083 case $ac_arg in
1084 *=* | --config-cache | -C | -disable-* | --disable-* \
1085 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1086 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1087 | -with-* | --with-* | -without-* | --without-* | --x)
1088 case "$ac_configure_args0 " in
1089 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1090 esac
1092 -* ) ac_must_keep_next=true ;;
1093 esac
1095 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1096 # Get rid of the leading space.
1097 ac_sep=" "
1099 esac
1100 done
1101 done
1102 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1103 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1105 # When interrupted or exit'd, cleanup temporary files, and complete
1106 # config.log. We remove comments because anyway the quotes in there
1107 # would cause problems or look ugly.
1108 # WARNING: Be sure not to use single quotes in there, as some shells,
1109 # such as our DU 5.0 friend, will then `close' the trap.
1110 trap 'exit_status=$?
1111 # Save into config.log some information that might help in debugging.
1113 echo
1115 cat <<\_ASBOX
1116 ## ---------------- ##
1117 ## Cache variables. ##
1118 ## ---------------- ##
1119 _ASBOX
1120 echo
1121 # The following way of writing the cache mishandles newlines in values,
1123 (set) 2>&1 |
1124 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1125 *ac_space=\ *)
1126 sed -n \
1127 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1131 sed -n \
1132 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1134 esac;
1136 echo
1138 cat <<\_ASBOX
1139 ## ----------------- ##
1140 ## Output variables. ##
1141 ## ----------------- ##
1142 _ASBOX
1143 echo
1144 for ac_var in $ac_subst_vars
1146 eval ac_val=$`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1148 done | sort
1149 echo
1151 if test -n "$ac_subst_files"; then
1152 cat <<\_ASBOX
1153 ## ------------- ##
1154 ## Output files. ##
1155 ## ------------- ##
1156 _ASBOX
1157 echo
1158 for ac_var in $ac_subst_files
1160 eval ac_val=$`echo $ac_var`
1161 echo "$ac_var='"'"'$ac_val'"'"'"
1162 done | sort
1163 echo
1166 if test -s confdefs.h; then
1167 cat <<\_ASBOX
1168 ## ----------- ##
1169 ## confdefs.h. ##
1170 ## ----------- ##
1171 _ASBOX
1172 echo
1173 sed "/^$/d" confdefs.h | sort
1174 echo
1176 test "$ac_signal" != 0 &&
1177 echo "$as_me: caught signal $ac_signal"
1178 echo "$as_me: exit $exit_status"
1179 } >&5
1180 rm -f core *.core &&
1181 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1182 exit $exit_status
1184 for ac_signal in 1 2 13 15; do
1185 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1186 done
1187 ac_signal=0
1189 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1190 rm -rf conftest* confdefs.h
1191 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1192 echo >confdefs.h
1194 # Predefined preprocessor variables.
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_NAME "$PACKAGE_NAME"
1198 _ACEOF
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1203 _ACEOF
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1208 _ACEOF
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_STRING "$PACKAGE_STRING"
1213 _ACEOF
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1218 _ACEOF
1221 # Let the site file select an alternate cache file if it wants to.
1222 # Prefer explicitly selected file to automatically selected ones.
1223 if test -z "$CONFIG_SITE"; then
1224 if test "x$prefix" != xNONE; then
1225 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1226 else
1227 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1230 for ac_site_file in $CONFIG_SITE; do
1231 if test -r "$ac_site_file"; then
1232 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1233 echo "$as_me: loading site script $ac_site_file" >&6;}
1234 sed 's/^/| /' "$ac_site_file" >&5
1235 . "$ac_site_file"
1237 done
1239 if test -r "$cache_file"; then
1240 # Some versions of bash will fail to source /dev/null (special
1241 # files actually), so we avoid doing that.
1242 if test -f "$cache_file"; then
1243 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1244 echo "$as_me: loading cache $cache_file" >&6;}
1245 case $cache_file in
1246 [\\/]* | ?:[\\/]* ) . $cache_file;;
1247 *) . ./$cache_file;;
1248 esac
1250 else
1251 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1252 echo "$as_me: creating cache $cache_file" >&6;}
1253 >$cache_file
1256 # Check that the precious variables saved in the cache have kept the same
1257 # value.
1258 ac_cache_corrupted=false
1259 for ac_var in `(set) 2>&1 |
1260 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1261 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1262 eval ac_new_set=\$ac_env_${ac_var}_set
1263 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1264 eval ac_new_val="\$ac_env_${ac_var}_value"
1265 case $ac_old_set,$ac_new_set in
1266 set,)
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1269 ac_cache_corrupted=: ;;
1270 ,set)
1271 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1273 ac_cache_corrupted=: ;;
1274 ,);;
1276 if test "x$ac_old_val" != "x$ac_new_val"; then
1277 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1278 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1279 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1280 echo "$as_me: former value: $ac_old_val" >&2;}
1281 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1282 echo "$as_me: current value: $ac_new_val" >&2;}
1283 ac_cache_corrupted=:
1284 fi;;
1285 esac
1286 # Pass precious variables to config.status.
1287 if test "$ac_new_set" = set; then
1288 case $ac_new_val in
1289 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1290 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1291 *) ac_arg=$ac_var=$ac_new_val ;;
1292 esac
1293 case " $ac_configure_args " in
1294 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1295 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1296 esac
1298 done
1299 if $ac_cache_corrupted; then
1300 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1301 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1302 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1303 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1304 { (exit 1); exit 1; }; }
1307 ac_ext=c
1308 ac_cpp='$CPP $CPPFLAGS'
1309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1340 ac_config_headers="$ac_config_headers pyconfig.h"
1348 # We don't use PACKAGE_ variables, and they cause conflicts
1349 # with other autoconf-based packages that include Python.h
1350 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1351 rm confdefs.h
1352 mv confdefs.h.new confdefs.h
1355 VERSION=2.5
1358 SOVERSION=1.0
1360 # The later defininition of _XOPEN_SOURCE disables certain features
1361 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1363 cat >>confdefs.h <<\_ACEOF
1364 #define _GNU_SOURCE 1
1365 _ACEOF
1368 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1369 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1370 # them.
1372 cat >>confdefs.h <<\_ACEOF
1373 #define _NETBSD_SOURCE 1
1374 _ACEOF
1377 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1378 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1379 # them.
1381 cat >>confdefs.h <<\_ACEOF
1382 #define __BSD_VISIBLE 1
1383 _ACEOF
1386 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1387 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1389 cat >>confdefs.h <<\_ACEOF
1390 #define _BSD_TYPES 1
1391 _ACEOF
1394 define_xopen_source=yes
1396 # Arguments passed to configure.
1398 CONFIG_ARGS="$ac_configure_args"
1400 # Check whether --enable-framework or --disable-framework was given.
1401 if test "${enable_framework+set}" = set; then
1402 enableval="$enable_framework"
1404 case $enableval in
1405 yes)
1406 enableval=/Library/Frameworks
1407 esac
1408 case $enableval in
1410 PYTHONFRAMEWORK=
1411 PYTHONFRAMEWORKDIR=no-framework
1412 PYTHONFRAMEWORKPREFIX=
1413 PYTHONFRAMEWORKINSTALLDIR=
1414 enable_framework=
1417 PYTHONFRAMEWORK=Python
1418 PYTHONFRAMEWORKDIR=Python.framework
1419 PYTHONFRAMEWORKPREFIX=$enableval
1420 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1421 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1422 esac
1424 else
1426 PYTHONFRAMEWORK=
1427 PYTHONFRAMEWORKDIR=no-framework
1428 PYTHONFRAMEWORKPREFIX=
1429 PYTHONFRAMEWORKINSTALLDIR=
1430 enable_framework=
1438 ##AC_ARG_WITH(dyld,
1439 ## AC_HELP_STRING(--with-dyld,
1440 ## Use (OpenStep|Rhapsody) dynamic linker))
1442 # Set name for machine-dependent library files
1444 echo "$as_me:$LINENO: checking MACHDEP" >&5
1445 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1446 if test -z "$MACHDEP"
1447 then
1448 ac_sys_system=`uname -s`
1449 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1450 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1451 ac_sys_release=`uname -v`
1452 else
1453 ac_sys_release=`uname -r`
1455 ac_md_system=`echo $ac_sys_system |
1456 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1457 ac_md_release=`echo $ac_sys_release |
1458 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
1459 MACHDEP="$ac_md_system$ac_md_release"
1461 case $MACHDEP in
1462 cygwin*) MACHDEP="cygwin";;
1463 darwin*) MACHDEP="darwin";;
1464 atheos*) MACHDEP="atheos";;
1465 irix646) MACHDEP="irix6";;
1466 '') MACHDEP="unknown";;
1467 esac
1470 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1471 # disable features if it is defined, without any means to access these
1472 # features as extensions. For these systems, we skip the definition of
1473 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1474 # some feature, make sure there is no alternative way to access this
1475 # feature. Also, when using wildcards, make sure you have verified the
1476 # need for not defining _XOPEN_SOURCE on all systems matching the
1477 # wildcard, and that the wildcard does not include future systems
1478 # (which may remove their limitations).
1479 case $ac_sys_system/$ac_sys_release in
1480 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
1481 # even though select is a POSIX function. Reported by J. Ribbens.
1482 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
1483 OpenBSD/2.* | OpenBSD/3.[012345678])
1484 define_xopen_source=no;;
1485 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
1486 # of union __?sigval. Reported by Stuart Bishop.
1487 SunOS/5.6)
1488 define_xopen_source=no;;
1489 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
1490 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
1491 # Reconfirmed for 7.1.4 by Martin v. Loewis.
1492 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
1493 define_xopen_source=no;;
1494 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
1495 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
1496 SCO_SV/3.2)
1497 define_xopen_source=no;;
1498 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
1499 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
1500 # this is fixed in 10.3, which identifies itself as Darwin/7.*
1501 # This should hopefully be fixed in FreeBSD 4.9
1502 FreeBSD/4.8* | Darwin/6* )
1503 define_xopen_source=no;;
1504 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
1505 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
1506 # or has another value. By not (re)defining it, the defaults come in place.
1507 AIX/4)
1508 define_xopen_source=no;;
1509 AIX/5)
1510 if test `uname -r` -eq 1; then
1511 define_xopen_source=no
1514 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1515 # disables platform specific features beyond repair.
1516 Darwin/8.*)
1517 define_xopen_source=no
1520 esac
1522 if test $define_xopen_source = yes
1523 then
1524 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
1525 # defined precisely as g++ defines it
1526 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
1527 # compiler
1528 case $ac_sys_system/$ac_sys_release in
1529 SunOS/5.8|SunOS/5.9|SunOS/5.10)
1531 cat >>confdefs.h <<\_ACEOF
1532 #define _XOPEN_SOURCE 500
1533 _ACEOF
1538 cat >>confdefs.h <<\_ACEOF
1539 #define _XOPEN_SOURCE 600
1540 _ACEOF
1543 esac
1545 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1546 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1547 # several APIs are not declared. Since this is also needed in some
1548 # cases for HP-UX, we define it globally.
1549 # except for Solaris 10, where it must not be defined,
1550 # as it implies XPG4.2
1551 case $ac_sys_system/$ac_sys_release in
1552 SunOS/5.10)
1556 cat >>confdefs.h <<\_ACEOF
1557 #define _XOPEN_SOURCE_EXTENDED 1
1558 _ACEOF
1561 esac
1564 cat >>confdefs.h <<\_ACEOF
1565 #define _POSIX_C_SOURCE 200112L
1566 _ACEOF
1572 # SGI compilers allow the specification of the both the ABI and the
1573 # ISA on the command line. Depending on the values of these switches,
1574 # different and often incompatable code will be generated.
1576 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1577 # thus supply support for various ABI/ISA combinations. The MACHDEP
1578 # variable is also adjusted.
1581 if test ! -z "$SGI_ABI"
1582 then
1583 CC="cc $SGI_ABI"
1584 LDFLAGS="$SGI_ABI $LDFLAGS"
1585 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1587 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1588 echo "${ECHO_T}$MACHDEP" >&6
1590 # And add extra plat-mac for darwin
1593 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1594 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1595 if test -z "$EXTRAPLATDIR"
1596 then
1597 case $MACHDEP in
1598 darwin)
1599 EXTRAPLATDIR="\$(PLATMACDIRS)"
1600 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
1603 EXTRAPLATDIR=""
1604 EXTRAMACHDEPPATH=""
1606 esac
1608 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1609 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1611 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
1612 # it may influence the way we can build extensions, so distutils
1613 # needs to check it
1615 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
1617 # checks for alternative programs
1619 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1620 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1621 # just to get things to compile and link. Users are free to override OPT
1622 # when running configure or make. The build should not break if they do.
1623 # BASECFLAGS should generally not be messed with, however.
1625 # XXX shouldn't some/most/all of this code be merged with the stuff later
1626 # on that fiddles with OPT and BASECFLAGS?
1627 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1628 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1630 # Check whether --with-gcc or --without-gcc was given.
1631 if test "${with_gcc+set}" = set; then
1632 withval="$with_gcc"
1634 case $withval in
1635 no) CC=cc
1636 without_gcc=yes;;
1637 yes) CC=gcc
1638 without_gcc=no;;
1639 *) CC=$withval
1640 without_gcc=$withval;;
1641 esac
1642 else
1644 case $ac_sys_system in
1645 AIX*) CC=cc_r
1646 without_gcc=;;
1647 BeOS*)
1648 case $BE_HOST_CPU in
1649 ppc)
1650 CC=mwcc
1651 without_gcc=yes
1652 BASECFLAGS="$BASECFLAGS -export pragma"
1653 OPT="$OPT -O"
1654 LDFLAGS="$LDFLAGS -nodup"
1656 x86)
1657 CC=gcc
1658 without_gcc=no
1659 OPT="$OPT -O"
1662 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1663 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1664 { (exit 1); exit 1; }; }
1666 esac
1667 AR="\$(srcdir)/Modules/ar_beos"
1668 RANLIB=:
1670 Monterey*)
1671 RANLIB=:
1672 without_gcc=;;
1673 *) without_gcc=no;;
1674 esac
1676 echo "$as_me:$LINENO: result: $without_gcc" >&5
1677 echo "${ECHO_T}$without_gcc" >&6
1681 MAINOBJ=python.o
1682 echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5
1683 echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6
1685 # Check whether --with-cxx or --without-cxx was given.
1686 if test "${with_cxx+set}" = set; then
1687 withval="$with_cxx"
1689 check_cxx=no
1690 case $withval in
1691 no) CXX=
1692 with_cxx=no;;
1693 *) CXX=$withval
1694 MAINOBJ=ccpython.o
1695 with_cxx=$withval;;
1696 esac
1697 else
1699 with_cxx=no
1700 check_cxx=yes
1703 echo "$as_me:$LINENO: result: $with_cxx" >&5
1704 echo "${ECHO_T}$with_cxx" >&6
1706 if test "$with_cxx" = "yes"
1707 then
1708 { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5
1709 echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;}
1710 { (exit 1); exit 1; }; }
1716 if test "$check_cxx" = "yes"
1717 then
1718 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1720 # Extract the first word of "$ac_prog", so it can be a program name with args.
1721 set dummy $ac_prog; ac_word=$2
1722 echo "$as_me:$LINENO: checking for $ac_word" >&5
1723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1724 if test "${ac_cv_prog_CXX+set}" = set; then
1725 echo $ECHO_N "(cached) $ECHO_C" >&6
1726 else
1727 if test -n "$CXX"; then
1728 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1729 else
1730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731 for as_dir in $PATH
1733 IFS=$as_save_IFS
1734 test -z "$as_dir" && as_dir=.
1735 for ac_exec_ext in '' $ac_executable_extensions; do
1736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1737 ac_cv_prog_CXX="$ac_prog"
1738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1739 break 2
1741 done
1742 done
1746 CXX=$ac_cv_prog_CXX
1747 if test -n "$CXX"; then
1748 echo "$as_me:$LINENO: result: $CXX" >&5
1749 echo "${ECHO_T}$CXX" >&6
1750 else
1751 echo "$as_me:$LINENO: result: no" >&5
1752 echo "${ECHO_T}no" >&6
1755 test -n "$CXX" && break
1756 done
1757 test -n "$CXX" || CXX="notfound"
1759 if test "$CXX" = "notfound"
1760 then
1761 CXX=
1762 else
1763 ac_ext=cc
1764 ac_cpp='$CXXCPP $CPPFLAGS'
1765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1768 cat >conftest.$ac_ext <<_ACEOF
1769 /* confdefs.h. */
1770 _ACEOF
1771 cat confdefs.h >>conftest.$ac_ext
1772 cat >>conftest.$ac_ext <<_ACEOF
1773 /* end confdefs.h. */
1776 main ()
1780 return 0;
1782 _ACEOF
1783 ac_clean_files_save=$ac_clean_files
1784 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1785 # Try to create an executable without -o first, disregard a.out.
1786 # It will help us diagnose broken compilers, and finding out an intuition
1787 # of exeext.
1788 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1789 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1790 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1791 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1792 (eval $ac_link_default) 2>&5
1793 ac_status=$?
1794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795 (exit $ac_status); }; then
1796 # Find the output, starting from the most likely. This scheme is
1797 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1798 # resort.
1800 # Be careful to initialize this variable, since it used to be cached.
1801 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1802 ac_cv_exeext=
1803 # b.out is created by i960 compilers.
1804 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1806 test -f "$ac_file" || continue
1807 case $ac_file in
1808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1810 conftest.$ac_ext )
1811 # This is the source file.
1813 [ab].out )
1814 # We found the default executable, but exeext='' is most
1815 # certainly right.
1816 break;;
1817 *.* )
1818 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1819 # FIXME: I believe we export ac_cv_exeext for Libtool,
1820 # but it would be cool to find out if it's true. Does anybody
1821 # maintain Libtool? --akim.
1822 export ac_cv_exeext
1823 break;;
1825 break;;
1826 esac
1827 done
1828 else
1829 echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1832 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1833 See \`config.log' for more details." >&5
1834 echo "$as_me: error: C++ compiler cannot create executables
1835 See \`config.log' for more details." >&2;}
1836 { (exit 77); exit 77; }; }
1839 ac_exeext=$ac_cv_exeext
1840 echo "$as_me:$LINENO: result: $ac_file" >&5
1841 echo "${ECHO_T}$ac_file" >&6
1843 # Check the compiler produces executables we can run. If not, either
1844 # the compiler is broken, or we cross compile.
1845 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1846 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1847 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1848 # If not cross compiling, check that we can run a simple program.
1849 if test "$cross_compiling" != yes; then
1850 if { ac_try='./$ac_file'
1851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1852 (eval $ac_try) 2>&5
1853 ac_status=$?
1854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855 (exit $ac_status); }; }; then
1856 cross_compiling=no
1857 else
1858 if test "$cross_compiling" = maybe; then
1859 cross_compiling=yes
1860 else
1861 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1862 If you meant to cross compile, use \`--host'.
1863 See \`config.log' for more details." >&5
1864 echo "$as_me: error: cannot run C++ compiled programs.
1865 If you meant to cross compile, use \`--host'.
1866 See \`config.log' for more details." >&2;}
1867 { (exit 1); exit 1; }; }
1871 echo "$as_me:$LINENO: result: yes" >&5
1872 echo "${ECHO_T}yes" >&6
1874 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1875 ac_clean_files=$ac_clean_files_save
1876 # Check the compiler produces executables we can run. If not, either
1877 # the compiler is broken, or we cross compile.
1878 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1879 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1880 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1881 echo "${ECHO_T}$cross_compiling" >&6
1883 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1884 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1886 (eval $ac_link) 2>&5
1887 ac_status=$?
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 (exit $ac_status); }; then
1890 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1891 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1892 # work properly (i.e., refer to `conftest.exe'), while it won't with
1893 # `rm'.
1894 for ac_file in conftest.exe conftest conftest.*; do
1895 test -f "$ac_file" || continue
1896 case $ac_file in
1897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1898 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1899 export ac_cv_exeext
1900 break;;
1901 * ) break;;
1902 esac
1903 done
1904 else
1905 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1906 See \`config.log' for more details." >&5
1907 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1908 See \`config.log' for more details." >&2;}
1909 { (exit 1); exit 1; }; }
1912 rm -f conftest$ac_cv_exeext
1913 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1914 echo "${ECHO_T}$ac_cv_exeext" >&6
1916 rm -f conftest.$ac_ext
1917 EXEEXT=$ac_cv_exeext
1918 ac_exeext=$EXEEXT
1920 ac_ext=c
1921 ac_cpp='$CPP $CPPFLAGS'
1922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1931 # If the user switches compilers, we can't believe the cache
1932 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1933 then
1934 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1935 (it is also a good idea to do 'make clean' before compiling)" >&5
1936 echo "$as_me: error: cached CC is different -- throw away $cache_file
1937 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1938 { (exit 1); exit 1; }; }
1941 ac_ext=c
1942 ac_cpp='$CPP $CPPFLAGS'
1943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1946 if test -n "$ac_tool_prefix"; then
1947 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1948 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1949 echo "$as_me:$LINENO: checking for $ac_word" >&5
1950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1951 if test "${ac_cv_prog_CC+set}" = set; then
1952 echo $ECHO_N "(cached) $ECHO_C" >&6
1953 else
1954 if test -n "$CC"; then
1955 ac_cv_prog_CC="$CC" # Let the user override the test.
1956 else
1957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1958 for as_dir in $PATH
1960 IFS=$as_save_IFS
1961 test -z "$as_dir" && as_dir=.
1962 for ac_exec_ext in '' $ac_executable_extensions; do
1963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1964 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1966 break 2
1968 done
1969 done
1973 CC=$ac_cv_prog_CC
1974 if test -n "$CC"; then
1975 echo "$as_me:$LINENO: result: $CC" >&5
1976 echo "${ECHO_T}$CC" >&6
1977 else
1978 echo "$as_me:$LINENO: result: no" >&5
1979 echo "${ECHO_T}no" >&6
1983 if test -z "$ac_cv_prog_CC"; then
1984 ac_ct_CC=$CC
1985 # Extract the first word of "gcc", so it can be a program name with args.
1986 set dummy gcc; ac_word=$2
1987 echo "$as_me:$LINENO: checking for $ac_word" >&5
1988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1989 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1991 else
1992 if test -n "$ac_ct_CC"; then
1993 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1994 else
1995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996 for as_dir in $PATH
1998 IFS=$as_save_IFS
1999 test -z "$as_dir" && as_dir=.
2000 for ac_exec_ext in '' $ac_executable_extensions; do
2001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2002 ac_cv_prog_ac_ct_CC="gcc"
2003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004 break 2
2006 done
2007 done
2011 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2012 if test -n "$ac_ct_CC"; then
2013 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2014 echo "${ECHO_T}$ac_ct_CC" >&6
2015 else
2016 echo "$as_me:$LINENO: result: no" >&5
2017 echo "${ECHO_T}no" >&6
2020 CC=$ac_ct_CC
2021 else
2022 CC="$ac_cv_prog_CC"
2025 if test -z "$CC"; then
2026 if test -n "$ac_tool_prefix"; then
2027 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2028 set dummy ${ac_tool_prefix}cc; ac_word=$2
2029 echo "$as_me:$LINENO: checking for $ac_word" >&5
2030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2031 if test "${ac_cv_prog_CC+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 else
2034 if test -n "$CC"; then
2035 ac_cv_prog_CC="$CC" # Let the user override the test.
2036 else
2037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038 for as_dir in $PATH
2040 IFS=$as_save_IFS
2041 test -z "$as_dir" && as_dir=.
2042 for ac_exec_ext in '' $ac_executable_extensions; do
2043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2044 ac_cv_prog_CC="${ac_tool_prefix}cc"
2045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046 break 2
2048 done
2049 done
2053 CC=$ac_cv_prog_CC
2054 if test -n "$CC"; then
2055 echo "$as_me:$LINENO: result: $CC" >&5
2056 echo "${ECHO_T}$CC" >&6
2057 else
2058 echo "$as_me:$LINENO: result: no" >&5
2059 echo "${ECHO_T}no" >&6
2063 if test -z "$ac_cv_prog_CC"; then
2064 ac_ct_CC=$CC
2065 # Extract the first word of "cc", so it can be a program name with args.
2066 set dummy cc; ac_word=$2
2067 echo "$as_me:$LINENO: checking for $ac_word" >&5
2068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2069 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2071 else
2072 if test -n "$ac_ct_CC"; then
2073 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2074 else
2075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076 for as_dir in $PATH
2078 IFS=$as_save_IFS
2079 test -z "$as_dir" && as_dir=.
2080 for ac_exec_ext in '' $ac_executable_extensions; do
2081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2082 ac_cv_prog_ac_ct_CC="cc"
2083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2084 break 2
2086 done
2087 done
2091 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2092 if test -n "$ac_ct_CC"; then
2093 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2094 echo "${ECHO_T}$ac_ct_CC" >&6
2095 else
2096 echo "$as_me:$LINENO: result: no" >&5
2097 echo "${ECHO_T}no" >&6
2100 CC=$ac_ct_CC
2101 else
2102 CC="$ac_cv_prog_CC"
2106 if test -z "$CC"; then
2107 # Extract the first word of "cc", so it can be a program name with args.
2108 set dummy cc; ac_word=$2
2109 echo "$as_me:$LINENO: checking for $ac_word" >&5
2110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2111 if test "${ac_cv_prog_CC+set}" = set; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 else
2114 if test -n "$CC"; then
2115 ac_cv_prog_CC="$CC" # Let the user override the test.
2116 else
2117 ac_prog_rejected=no
2118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2119 for as_dir in $PATH
2121 IFS=$as_save_IFS
2122 test -z "$as_dir" && as_dir=.
2123 for ac_exec_ext in '' $ac_executable_extensions; do
2124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2125 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2126 ac_prog_rejected=yes
2127 continue
2129 ac_cv_prog_CC="cc"
2130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2131 break 2
2133 done
2134 done
2136 if test $ac_prog_rejected = yes; then
2137 # We found a bogon in the path, so make sure we never use it.
2138 set dummy $ac_cv_prog_CC
2139 shift
2140 if test $# != 0; then
2141 # We chose a different compiler from the bogus one.
2142 # However, it has the same basename, so the bogon will be chosen
2143 # first if we set CC to just the basename; use the full file name.
2144 shift
2145 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2150 CC=$ac_cv_prog_CC
2151 if test -n "$CC"; then
2152 echo "$as_me:$LINENO: result: $CC" >&5
2153 echo "${ECHO_T}$CC" >&6
2154 else
2155 echo "$as_me:$LINENO: result: no" >&5
2156 echo "${ECHO_T}no" >&6
2160 if test -z "$CC"; then
2161 if test -n "$ac_tool_prefix"; then
2162 for ac_prog in cl
2164 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2165 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2166 echo "$as_me:$LINENO: checking for $ac_word" >&5
2167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2168 if test "${ac_cv_prog_CC+set}" = set; then
2169 echo $ECHO_N "(cached) $ECHO_C" >&6
2170 else
2171 if test -n "$CC"; then
2172 ac_cv_prog_CC="$CC" # Let the user override the test.
2173 else
2174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2175 for as_dir in $PATH
2177 IFS=$as_save_IFS
2178 test -z "$as_dir" && as_dir=.
2179 for ac_exec_ext in '' $ac_executable_extensions; do
2180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2181 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2183 break 2
2185 done
2186 done
2190 CC=$ac_cv_prog_CC
2191 if test -n "$CC"; then
2192 echo "$as_me:$LINENO: result: $CC" >&5
2193 echo "${ECHO_T}$CC" >&6
2194 else
2195 echo "$as_me:$LINENO: result: no" >&5
2196 echo "${ECHO_T}no" >&6
2199 test -n "$CC" && break
2200 done
2202 if test -z "$CC"; then
2203 ac_ct_CC=$CC
2204 for ac_prog in cl
2206 # Extract the first word of "$ac_prog", so it can be a program name with args.
2207 set dummy $ac_prog; ac_word=$2
2208 echo "$as_me:$LINENO: checking for $ac_word" >&5
2209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2210 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 else
2213 if test -n "$ac_ct_CC"; then
2214 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2215 else
2216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2217 for as_dir in $PATH
2219 IFS=$as_save_IFS
2220 test -z "$as_dir" && as_dir=.
2221 for ac_exec_ext in '' $ac_executable_extensions; do
2222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2223 ac_cv_prog_ac_ct_CC="$ac_prog"
2224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2225 break 2
2227 done
2228 done
2232 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2233 if test -n "$ac_ct_CC"; then
2234 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2235 echo "${ECHO_T}$ac_ct_CC" >&6
2236 else
2237 echo "$as_me:$LINENO: result: no" >&5
2238 echo "${ECHO_T}no" >&6
2241 test -n "$ac_ct_CC" && break
2242 done
2244 CC=$ac_ct_CC
2250 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2251 See \`config.log' for more details." >&5
2252 echo "$as_me: error: no acceptable C compiler found in \$PATH
2253 See \`config.log' for more details." >&2;}
2254 { (exit 1); exit 1; }; }
2256 # Provide some information about the compiler.
2257 echo "$as_me:$LINENO:" \
2258 "checking for C compiler version" >&5
2259 ac_compiler=`set X $ac_compile; echo $2`
2260 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2261 (eval $ac_compiler --version </dev/null >&5) 2>&5
2262 ac_status=$?
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }
2265 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2266 (eval $ac_compiler -v </dev/null >&5) 2>&5
2267 ac_status=$?
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }
2270 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2271 (eval $ac_compiler -V </dev/null >&5) 2>&5
2272 ac_status=$?
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }
2276 cat >conftest.$ac_ext <<_ACEOF
2277 /* confdefs.h. */
2278 _ACEOF
2279 cat confdefs.h >>conftest.$ac_ext
2280 cat >>conftest.$ac_ext <<_ACEOF
2281 /* end confdefs.h. */
2284 main ()
2288 return 0;
2290 _ACEOF
2291 ac_clean_files_save=$ac_clean_files
2292 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2293 # Try to create an executable without -o first, disregard a.out.
2294 # It will help us diagnose broken compilers, and finding out an intuition
2295 # of exeext.
2296 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2297 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2298 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2299 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2300 (eval $ac_link_default) 2>&5
2301 ac_status=$?
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); }; then
2304 # Find the output, starting from the most likely. This scheme is
2305 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2306 # resort.
2308 # Be careful to initialize this variable, since it used to be cached.
2309 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2310 ac_cv_exeext=
2311 # b.out is created by i960 compilers.
2312 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2314 test -f "$ac_file" || continue
2315 case $ac_file in
2316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2318 conftest.$ac_ext )
2319 # This is the source file.
2321 [ab].out )
2322 # We found the default executable, but exeext='' is most
2323 # certainly right.
2324 break;;
2325 *.* )
2326 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2327 # FIXME: I believe we export ac_cv_exeext for Libtool,
2328 # but it would be cool to find out if it's true. Does anybody
2329 # maintain Libtool? --akim.
2330 export ac_cv_exeext
2331 break;;
2333 break;;
2334 esac
2335 done
2336 else
2337 echo "$as_me: failed program was:" >&5
2338 sed 's/^/| /' conftest.$ac_ext >&5
2340 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2341 See \`config.log' for more details." >&5
2342 echo "$as_me: error: C compiler cannot create executables
2343 See \`config.log' for more details." >&2;}
2344 { (exit 77); exit 77; }; }
2347 ac_exeext=$ac_cv_exeext
2348 echo "$as_me:$LINENO: result: $ac_file" >&5
2349 echo "${ECHO_T}$ac_file" >&6
2351 # Check the compiler produces executables we can run. If not, either
2352 # the compiler is broken, or we cross compile.
2353 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2354 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2355 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2356 # If not cross compiling, check that we can run a simple program.
2357 if test "$cross_compiling" != yes; then
2358 if { ac_try='./$ac_file'
2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360 (eval $ac_try) 2>&5
2361 ac_status=$?
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; }; then
2364 cross_compiling=no
2365 else
2366 if test "$cross_compiling" = maybe; then
2367 cross_compiling=yes
2368 else
2369 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2370 If you meant to cross compile, use \`--host'.
2371 See \`config.log' for more details." >&5
2372 echo "$as_me: error: cannot run C compiled programs.
2373 If you meant to cross compile, use \`--host'.
2374 See \`config.log' for more details." >&2;}
2375 { (exit 1); exit 1; }; }
2379 echo "$as_me:$LINENO: result: yes" >&5
2380 echo "${ECHO_T}yes" >&6
2382 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2383 ac_clean_files=$ac_clean_files_save
2384 # Check the compiler produces executables we can run. If not, either
2385 # the compiler is broken, or we cross compile.
2386 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2387 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2388 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2389 echo "${ECHO_T}$cross_compiling" >&6
2391 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2392 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2394 (eval $ac_link) 2>&5
2395 ac_status=$?
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; then
2398 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2399 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2400 # work properly (i.e., refer to `conftest.exe'), while it won't with
2401 # `rm'.
2402 for ac_file in conftest.exe conftest conftest.*; do
2403 test -f "$ac_file" || continue
2404 case $ac_file in
2405 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2406 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2407 export ac_cv_exeext
2408 break;;
2409 * ) break;;
2410 esac
2411 done
2412 else
2413 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2414 See \`config.log' for more details." >&5
2415 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2416 See \`config.log' for more details." >&2;}
2417 { (exit 1); exit 1; }; }
2420 rm -f conftest$ac_cv_exeext
2421 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2422 echo "${ECHO_T}$ac_cv_exeext" >&6
2424 rm -f conftest.$ac_ext
2425 EXEEXT=$ac_cv_exeext
2426 ac_exeext=$EXEEXT
2427 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2428 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2429 if test "${ac_cv_objext+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 else
2432 cat >conftest.$ac_ext <<_ACEOF
2433 /* confdefs.h. */
2434 _ACEOF
2435 cat confdefs.h >>conftest.$ac_ext
2436 cat >>conftest.$ac_ext <<_ACEOF
2437 /* end confdefs.h. */
2440 main ()
2444 return 0;
2446 _ACEOF
2447 rm -f conftest.o conftest.obj
2448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2449 (eval $ac_compile) 2>&5
2450 ac_status=$?
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }; then
2453 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2454 case $ac_file in
2455 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2456 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2457 break;;
2458 esac
2459 done
2460 else
2461 echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.$ac_ext >&5
2464 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2465 See \`config.log' for more details." >&5
2466 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2467 See \`config.log' for more details." >&2;}
2468 { (exit 1); exit 1; }; }
2471 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2473 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2474 echo "${ECHO_T}$ac_cv_objext" >&6
2475 OBJEXT=$ac_cv_objext
2476 ac_objext=$OBJEXT
2477 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2478 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2479 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 else
2482 cat >conftest.$ac_ext <<_ACEOF
2483 /* confdefs.h. */
2484 _ACEOF
2485 cat confdefs.h >>conftest.$ac_ext
2486 cat >>conftest.$ac_ext <<_ACEOF
2487 /* end confdefs.h. */
2490 main ()
2492 #ifndef __GNUC__
2493 choke me
2494 #endif
2497 return 0;
2499 _ACEOF
2500 rm -f conftest.$ac_objext
2501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502 (eval $ac_compile) 2>conftest.er1
2503 ac_status=$?
2504 grep -v '^ *+' conftest.er1 >conftest.err
2505 rm -f conftest.er1
2506 cat conftest.err >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); } &&
2509 { ac_try='test -z "$ac_c_werror_flag"
2510 || test ! -s conftest.err'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512 (eval $ac_try) 2>&5
2513 ac_status=$?
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; } &&
2516 { ac_try='test -s conftest.$ac_objext'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518 (eval $ac_try) 2>&5
2519 ac_status=$?
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; }; then
2522 ac_compiler_gnu=yes
2523 else
2524 echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.$ac_ext >&5
2527 ac_compiler_gnu=no
2529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2530 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2533 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2534 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2535 GCC=`test $ac_compiler_gnu = yes && echo yes`
2536 ac_test_CFLAGS=${CFLAGS+set}
2537 ac_save_CFLAGS=$CFLAGS
2538 CFLAGS="-g"
2539 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2540 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2541 if test "${ac_cv_prog_cc_g+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 else
2544 cat >conftest.$ac_ext <<_ACEOF
2545 /* confdefs.h. */
2546 _ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h. */
2552 main ()
2556 return 0;
2558 _ACEOF
2559 rm -f conftest.$ac_objext
2560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2561 (eval $ac_compile) 2>conftest.er1
2562 ac_status=$?
2563 grep -v '^ *+' conftest.er1 >conftest.err
2564 rm -f conftest.er1
2565 cat conftest.err >&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); } &&
2568 { ac_try='test -z "$ac_c_werror_flag"
2569 || test ! -s conftest.err'
2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571 (eval $ac_try) 2>&5
2572 ac_status=$?
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; } &&
2575 { ac_try='test -s conftest.$ac_objext'
2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577 (eval $ac_try) 2>&5
2578 ac_status=$?
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; }; then
2581 ac_cv_prog_cc_g=yes
2582 else
2583 echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.$ac_ext >&5
2586 ac_cv_prog_cc_g=no
2588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2590 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2591 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2592 if test "$ac_test_CFLAGS" = set; then
2593 CFLAGS=$ac_save_CFLAGS
2594 elif test $ac_cv_prog_cc_g = yes; then
2595 if test "$GCC" = yes; then
2596 CFLAGS="-g -O2"
2597 else
2598 CFLAGS="-g"
2600 else
2601 if test "$GCC" = yes; then
2602 CFLAGS="-O2"
2603 else
2604 CFLAGS=
2607 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2608 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2609 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
2611 else
2612 ac_cv_prog_cc_stdc=no
2613 ac_save_CC=$CC
2614 cat >conftest.$ac_ext <<_ACEOF
2615 /* confdefs.h. */
2616 _ACEOF
2617 cat confdefs.h >>conftest.$ac_ext
2618 cat >>conftest.$ac_ext <<_ACEOF
2619 /* end confdefs.h. */
2620 #include <stdarg.h>
2621 #include <stdio.h>
2622 #include <sys/types.h>
2623 #include <sys/stat.h>
2624 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2625 struct buf { int x; };
2626 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2627 static char *e (p, i)
2628 char **p;
2629 int i;
2631 return p[i];
2633 static char *f (char * (*g) (char **, int), char **p, ...)
2635 char *s;
2636 va_list v;
2637 va_start (v,p);
2638 s = g (p, va_arg (v,int));
2639 va_end (v);
2640 return s;
2643 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2644 function prototypes and stuff, but not '\xHH' hex character constants.
2645 These don't provoke an error unfortunately, instead are silently treated
2646 as 'x'. The following induces an error, until -std1 is added to get
2647 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2648 array size at least. It's necessary to write '\x00'==0 to get something
2649 that's true only with -std1. */
2650 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2652 int test (int i, double x);
2653 struct s1 {int (*f) (int a);};
2654 struct s2 {int (*f) (double a);};
2655 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2656 int argc;
2657 char **argv;
2659 main ()
2661 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2663 return 0;
2665 _ACEOF
2666 # Don't try gcc -ansi; that turns off useful extensions and
2667 # breaks some systems' header files.
2668 # AIX -qlanglvl=ansi
2669 # Ultrix and OSF/1 -std1
2670 # HP-UX 10.20 and later -Ae
2671 # HP-UX older versions -Aa -D_HPUX_SOURCE
2672 # SVR4 -Xc -D__EXTENSIONS__
2673 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2675 CC="$ac_save_CC $ac_arg"
2676 rm -f conftest.$ac_objext
2677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2678 (eval $ac_compile) 2>conftest.er1
2679 ac_status=$?
2680 grep -v '^ *+' conftest.er1 >conftest.err
2681 rm -f conftest.er1
2682 cat conftest.err >&5
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); } &&
2685 { ac_try='test -z "$ac_c_werror_flag"
2686 || test ! -s conftest.err'
2687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688 (eval $ac_try) 2>&5
2689 ac_status=$?
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; } &&
2692 { ac_try='test -s conftest.$ac_objext'
2693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694 (eval $ac_try) 2>&5
2695 ac_status=$?
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; }; then
2698 ac_cv_prog_cc_stdc=$ac_arg
2699 break
2700 else
2701 echo "$as_me: failed program was:" >&5
2702 sed 's/^/| /' conftest.$ac_ext >&5
2705 rm -f conftest.err conftest.$ac_objext
2706 done
2707 rm -f conftest.$ac_ext conftest.$ac_objext
2708 CC=$ac_save_CC
2712 case "x$ac_cv_prog_cc_stdc" in
2713 x|xno)
2714 echo "$as_me:$LINENO: result: none needed" >&5
2715 echo "${ECHO_T}none needed" >&6 ;;
2717 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2718 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2719 CC="$CC $ac_cv_prog_cc_stdc" ;;
2720 esac
2722 # Some people use a C++ compiler to compile C. Since we use `exit',
2723 # in C++ we need to declare it. In case someone uses the same compiler
2724 # for both compiling C and C++ we need to have the C++ compiler decide
2725 # the declaration of exit, since it's the most demanding environment.
2726 cat >conftest.$ac_ext <<_ACEOF
2727 #ifndef __cplusplus
2728 choke me
2729 #endif
2730 _ACEOF
2731 rm -f conftest.$ac_objext
2732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2733 (eval $ac_compile) 2>conftest.er1
2734 ac_status=$?
2735 grep -v '^ *+' conftest.er1 >conftest.err
2736 rm -f conftest.er1
2737 cat conftest.err >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); } &&
2740 { ac_try='test -z "$ac_c_werror_flag"
2741 || test ! -s conftest.err'
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743 (eval $ac_try) 2>&5
2744 ac_status=$?
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; } &&
2747 { ac_try='test -s conftest.$ac_objext'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749 (eval $ac_try) 2>&5
2750 ac_status=$?
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; }; then
2753 for ac_declaration in \
2754 '' \
2755 'extern "C" void std::exit (int) throw (); using std::exit;' \
2756 'extern "C" void std::exit (int); using std::exit;' \
2757 'extern "C" void exit (int) throw ();' \
2758 'extern "C" void exit (int);' \
2759 'void exit (int);'
2761 cat >conftest.$ac_ext <<_ACEOF
2762 /* confdefs.h. */
2763 _ACEOF
2764 cat confdefs.h >>conftest.$ac_ext
2765 cat >>conftest.$ac_ext <<_ACEOF
2766 /* end confdefs.h. */
2767 $ac_declaration
2768 #include <stdlib.h>
2770 main ()
2772 exit (42);
2774 return 0;
2776 _ACEOF
2777 rm -f conftest.$ac_objext
2778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779 (eval $ac_compile) 2>conftest.er1
2780 ac_status=$?
2781 grep -v '^ *+' conftest.er1 >conftest.err
2782 rm -f conftest.er1
2783 cat conftest.err >&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } &&
2786 { ac_try='test -z "$ac_c_werror_flag"
2787 || test ! -s conftest.err'
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789 (eval $ac_try) 2>&5
2790 ac_status=$?
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; } &&
2793 { ac_try='test -s conftest.$ac_objext'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795 (eval $ac_try) 2>&5
2796 ac_status=$?
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; }; then
2800 else
2801 echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2804 continue
2806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2807 cat >conftest.$ac_ext <<_ACEOF
2808 /* confdefs.h. */
2809 _ACEOF
2810 cat confdefs.h >>conftest.$ac_ext
2811 cat >>conftest.$ac_ext <<_ACEOF
2812 /* end confdefs.h. */
2813 $ac_declaration
2815 main ()
2817 exit (42);
2819 return 0;
2821 _ACEOF
2822 rm -f conftest.$ac_objext
2823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2824 (eval $ac_compile) 2>conftest.er1
2825 ac_status=$?
2826 grep -v '^ *+' conftest.er1 >conftest.err
2827 rm -f conftest.er1
2828 cat conftest.err >&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); } &&
2831 { ac_try='test -z "$ac_c_werror_flag"
2832 || test ! -s conftest.err'
2833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834 (eval $ac_try) 2>&5
2835 ac_status=$?
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }; } &&
2838 { ac_try='test -s conftest.$ac_objext'
2839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840 (eval $ac_try) 2>&5
2841 ac_status=$?
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }; }; then
2844 break
2845 else
2846 echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.$ac_ext >&5
2850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2851 done
2852 rm -f conftest*
2853 if test -n "$ac_declaration"; then
2854 echo '#ifdef __cplusplus' >>confdefs.h
2855 echo $ac_declaration >>confdefs.h
2856 echo '#endif' >>confdefs.h
2859 else
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2865 ac_ext=c
2866 ac_cpp='$CPP $CPPFLAGS'
2867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2872 # checks for UNIX variants that set C preprocessor variables
2874 ac_ext=c
2875 ac_cpp='$CPP $CPPFLAGS'
2876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2879 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2880 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2881 # On Suns, sometimes $CPP names a directory.
2882 if test -n "$CPP" && test -d "$CPP"; then
2883 CPP=
2885 if test -z "$CPP"; then
2886 if test "${ac_cv_prog_CPP+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2888 else
2889 # Double quotes because CPP needs to be expanded
2890 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2892 ac_preproc_ok=false
2893 for ac_c_preproc_warn_flag in '' yes
2895 # Use a header file that comes with gcc, so configuring glibc
2896 # with a fresh cross-compiler works.
2897 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2898 # <limits.h> exists even on freestanding compilers.
2899 # On the NeXT, cc -E runs the code through the compiler's parser,
2900 # not just through cpp. "Syntax error" is here to catch this case.
2901 cat >conftest.$ac_ext <<_ACEOF
2902 /* confdefs.h. */
2903 _ACEOF
2904 cat confdefs.h >>conftest.$ac_ext
2905 cat >>conftest.$ac_ext <<_ACEOF
2906 /* end confdefs.h. */
2907 #ifdef __STDC__
2908 # include <limits.h>
2909 #else
2910 # include <assert.h>
2911 #endif
2912 Syntax error
2913 _ACEOF
2914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2915 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2916 ac_status=$?
2917 grep -v '^ *+' conftest.er1 >conftest.err
2918 rm -f conftest.er1
2919 cat conftest.err >&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); } >/dev/null; then
2922 if test -s conftest.err; then
2923 ac_cpp_err=$ac_c_preproc_warn_flag
2924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2925 else
2926 ac_cpp_err=
2928 else
2929 ac_cpp_err=yes
2931 if test -z "$ac_cpp_err"; then
2933 else
2934 echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.$ac_ext >&5
2937 # Broken: fails on valid input.
2938 continue
2940 rm -f conftest.err conftest.$ac_ext
2942 # OK, works on sane cases. Now check whether non-existent headers
2943 # can be detected and how.
2944 cat >conftest.$ac_ext <<_ACEOF
2945 /* confdefs.h. */
2946 _ACEOF
2947 cat confdefs.h >>conftest.$ac_ext
2948 cat >>conftest.$ac_ext <<_ACEOF
2949 /* end confdefs.h. */
2950 #include <ac_nonexistent.h>
2951 _ACEOF
2952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2954 ac_status=$?
2955 grep -v '^ *+' conftest.er1 >conftest.err
2956 rm -f conftest.er1
2957 cat conftest.err >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } >/dev/null; then
2960 if test -s conftest.err; then
2961 ac_cpp_err=$ac_c_preproc_warn_flag
2962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2963 else
2964 ac_cpp_err=
2966 else
2967 ac_cpp_err=yes
2969 if test -z "$ac_cpp_err"; then
2970 # Broken: success on invalid input.
2971 continue
2972 else
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2976 # Passes both tests.
2977 ac_preproc_ok=:
2978 break
2980 rm -f conftest.err conftest.$ac_ext
2982 done
2983 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2984 rm -f conftest.err conftest.$ac_ext
2985 if $ac_preproc_ok; then
2986 break
2989 done
2990 ac_cv_prog_CPP=$CPP
2993 CPP=$ac_cv_prog_CPP
2994 else
2995 ac_cv_prog_CPP=$CPP
2997 echo "$as_me:$LINENO: result: $CPP" >&5
2998 echo "${ECHO_T}$CPP" >&6
2999 ac_preproc_ok=false
3000 for ac_c_preproc_warn_flag in '' yes
3002 # Use a header file that comes with gcc, so configuring glibc
3003 # with a fresh cross-compiler works.
3004 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3005 # <limits.h> exists even on freestanding compilers.
3006 # On the NeXT, cc -E runs the code through the compiler's parser,
3007 # not just through cpp. "Syntax error" is here to catch this case.
3008 cat >conftest.$ac_ext <<_ACEOF
3009 /* confdefs.h. */
3010 _ACEOF
3011 cat confdefs.h >>conftest.$ac_ext
3012 cat >>conftest.$ac_ext <<_ACEOF
3013 /* end confdefs.h. */
3014 #ifdef __STDC__
3015 # include <limits.h>
3016 #else
3017 # include <assert.h>
3018 #endif
3019 Syntax error
3020 _ACEOF
3021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3023 ac_status=$?
3024 grep -v '^ *+' conftest.er1 >conftest.err
3025 rm -f conftest.er1
3026 cat conftest.err >&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); } >/dev/null; then
3029 if test -s conftest.err; then
3030 ac_cpp_err=$ac_c_preproc_warn_flag
3031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3032 else
3033 ac_cpp_err=
3035 else
3036 ac_cpp_err=yes
3038 if test -z "$ac_cpp_err"; then
3040 else
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3044 # Broken: fails on valid input.
3045 continue
3047 rm -f conftest.err conftest.$ac_ext
3049 # OK, works on sane cases. Now check whether non-existent headers
3050 # can be detected and how.
3051 cat >conftest.$ac_ext <<_ACEOF
3052 /* confdefs.h. */
3053 _ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3057 #include <ac_nonexistent.h>
3058 _ACEOF
3059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3061 ac_status=$?
3062 grep -v '^ *+' conftest.er1 >conftest.err
3063 rm -f conftest.er1
3064 cat conftest.err >&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); } >/dev/null; then
3067 if test -s conftest.err; then
3068 ac_cpp_err=$ac_c_preproc_warn_flag
3069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3070 else
3071 ac_cpp_err=
3073 else
3074 ac_cpp_err=yes
3076 if test -z "$ac_cpp_err"; then
3077 # Broken: success on invalid input.
3078 continue
3079 else
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3083 # Passes both tests.
3084 ac_preproc_ok=:
3085 break
3087 rm -f conftest.err conftest.$ac_ext
3089 done
3090 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3091 rm -f conftest.err conftest.$ac_ext
3092 if $ac_preproc_ok; then
3094 else
3095 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3096 See \`config.log' for more details." >&5
3097 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3098 See \`config.log' for more details." >&2;}
3099 { (exit 1); exit 1; }; }
3102 ac_ext=c
3103 ac_cpp='$CPP $CPPFLAGS'
3104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3109 echo "$as_me:$LINENO: checking for egrep" >&5
3110 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3111 if test "${ac_cv_prog_egrep+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3113 else
3114 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3115 then ac_cv_prog_egrep='grep -E'
3116 else ac_cv_prog_egrep='egrep'
3119 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3120 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3121 EGREP=$ac_cv_prog_egrep
3125 echo "$as_me:$LINENO: checking for AIX" >&5
3126 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3127 cat >conftest.$ac_ext <<_ACEOF
3128 /* confdefs.h. */
3129 _ACEOF
3130 cat confdefs.h >>conftest.$ac_ext
3131 cat >>conftest.$ac_ext <<_ACEOF
3132 /* end confdefs.h. */
3133 #ifdef _AIX
3135 #endif
3137 _ACEOF
3138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3139 $EGREP "yes" >/dev/null 2>&1; then
3140 echo "$as_me:$LINENO: result: yes" >&5
3141 echo "${ECHO_T}yes" >&6
3142 cat >>confdefs.h <<\_ACEOF
3143 #define _ALL_SOURCE 1
3144 _ACEOF
3146 else
3147 echo "$as_me:$LINENO: result: no" >&5
3148 echo "${ECHO_T}no" >&6
3150 rm -f conftest*
3154 # Check for unsupported systems
3155 case $ac_sys_system/$ac_sys_release in
3156 Linux*/1*)
3157 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3158 echo See README for details.
3159 exit 1;;
3160 esac
3163 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3164 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3166 # Check whether --with-suffix or --without-suffix was given.
3167 if test "${with_suffix+set}" = set; then
3168 withval="$with_suffix"
3170 case $withval in
3171 no) EXEEXT=;;
3172 yes) EXEEXT=.exe;;
3173 *) EXEEXT=$withval;;
3174 esac
3176 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3177 echo "${ECHO_T}$EXEEXT" >&6
3179 # Test whether we're running on a non-case-sensitive system, in which
3180 # case we give a warning if no ext is given
3182 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3183 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3184 if test ! -d CaseSensitiveTestDir; then
3185 mkdir CaseSensitiveTestDir
3188 if test -d casesensitivetestdir
3189 then
3190 echo "$as_me:$LINENO: result: yes" >&5
3191 echo "${ECHO_T}yes" >&6
3192 BUILDEXEEXT=.exe
3193 else
3194 echo "$as_me:$LINENO: result: no" >&5
3195 echo "${ECHO_T}no" >&6
3196 BUILDEXEEXT=$EXEEXT
3198 rmdir CaseSensitiveTestDir
3200 case $MACHDEP in
3201 bsdos*)
3202 case $CC in
3203 gcc) CC="$CC -D_HAVE_BSDI";;
3204 esac;;
3205 esac
3207 case $ac_sys_system in
3208 hp*|HP*)
3209 case $CC in
3210 cc|*/cc) CC="$CC -Ae";;
3211 esac;;
3212 Monterey*)
3213 case $CC in
3214 cc) CC="$CC -Wl,-Bexport";;
3215 esac;;
3216 SunOS*)
3217 # Some functions have a prototype only with that define, e.g. confstr
3219 cat >>confdefs.h <<\_ACEOF
3220 #define __EXTENSIONS__ 1
3221 _ACEOF
3224 esac
3228 echo "$as_me:$LINENO: checking LIBRARY" >&5
3229 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3230 if test -z "$LIBRARY"
3231 then
3232 LIBRARY='libpython$(VERSION).a'
3234 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3235 echo "${ECHO_T}$LIBRARY" >&6
3237 # LDLIBRARY is the name of the library to link against (as opposed to the
3238 # name of the library into which to insert object files). BLDLIBRARY is also
3239 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3240 # is blank as the main program is not linked directly against LDLIBRARY.
3241 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3242 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3243 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3244 # DLLLIBRARY is the shared (i.e., DLL) library.
3246 # RUNSHARED is used to run shared python without installed libraries
3248 # INSTSONAME is the name of the shared library that will be use to install
3249 # on the system - some systems like version suffix, others don't
3256 LDLIBRARY="$LIBRARY"
3257 BLDLIBRARY='$(LDLIBRARY)'
3258 INSTSONAME='$(LDLIBRARY)'
3259 DLLLIBRARY=''
3260 LDLIBRARYDIR=''
3261 RUNSHARED=''
3263 # LINKCC is the command that links the python executable -- default is $(CC).
3264 # If CXX is set, and if it is needed to link a main function that was
3265 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3266 # python might then depend on the C++ runtime
3267 # This is altered for AIX in order to build the export list before
3268 # linking.
3270 echo "$as_me:$LINENO: checking LINKCC" >&5
3271 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3272 if test -z "$LINKCC"
3273 then
3274 if test -z "$CXX"; then
3275 LINKCC="\$(PURIFY) \$(CC)"
3276 else
3277 echo 'extern "C" void foo();int main(){foo();}' > conftest_a.cc
3278 $CXX -c conftest_a.cc # 2>&5
3279 echo 'void foo(){}' > conftest_b.$ac_ext
3280 $CC -c conftest_b.$ac_ext # 2>&5
3281 if $CC -o conftest$ac_exeext conftest_a.$ac_objext conftest_b.$ac_objext 2>&5 \
3282 && test -s conftest$ac_exeext && ./conftest$ac_exeext
3283 then
3284 LINKCC="\$(PURIFY) \$(CC)"
3285 else
3286 LINKCC="\$(PURIFY) \$(CXX)"
3288 rm -fr conftest*
3290 case $ac_sys_system in
3291 AIX*)
3292 exp_extra="\"\""
3293 if test $ac_sys_release -ge 5 -o \
3294 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3295 exp_extra="."
3297 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3298 Monterey64*)
3299 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3300 esac
3302 echo "$as_me:$LINENO: result: $LINKCC" >&5
3303 echo "${ECHO_T}$LINKCC" >&6
3305 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3306 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3307 # Check whether --enable-shared or --disable-shared was given.
3308 if test "${enable_shared+set}" = set; then
3309 enableval="$enable_shared"
3313 if test -z "$enable_shared"
3314 then
3315 case $ac_sys_system in
3316 CYGWIN* | atheos*)
3317 enable_shared="yes";;
3319 enable_shared="no";;
3320 esac
3322 echo "$as_me:$LINENO: result: $enable_shared" >&5
3323 echo "${ECHO_T}$enable_shared" >&6
3325 echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3326 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6
3327 # Check whether --enable-profiling or --disable-profiling was given.
3328 if test "${enable_profiling+set}" = set; then
3329 enableval="$enable_profiling"
3330 ac_save_cc="$CC"
3331 CC="$CC -pg"
3332 if test "$cross_compiling" = yes; then
3333 ac_enable_profiling="no"
3334 else
3335 cat >conftest.$ac_ext <<_ACEOF
3336 /* confdefs.h. */
3337 _ACEOF
3338 cat confdefs.h >>conftest.$ac_ext
3339 cat >>conftest.$ac_ext <<_ACEOF
3340 /* end confdefs.h. */
3341 int main() { return 0; }
3342 _ACEOF
3343 rm -f conftest$ac_exeext
3344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3345 (eval $ac_link) 2>&5
3346 ac_status=$?
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 (eval $ac_try) 2>&5
3351 ac_status=$?
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; }; then
3354 ac_enable_profiling="yes"
3355 else
3356 echo "$as_me: program exited with status $ac_status" >&5
3357 echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3360 ( exit $ac_status )
3361 ac_enable_profiling="no"
3363 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3365 CC="$ac_save_cc"
3367 echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3368 echo "${ECHO_T}$ac_enable_profiling" >&6
3370 case "$ac_enable_profiling" in
3371 "yes")
3372 BASECFLAGS="-pg $BASECFLAGS"
3373 LDFLAGS="-pg $LDFLAGS"
3375 esac
3377 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3378 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3380 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3381 # library that we build, but we do not want to link against it (we
3382 # will find it with a -framework option). For this reason there is an
3383 # extra variable BLDLIBRARY against which Python and the extension
3384 # modules are linked, BLDLIBRARY. This is normally the same as
3385 # LDLIBRARY, but empty for MacOSX framework builds.
3386 if test "$enable_framework"
3387 then
3388 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3389 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
3390 BLDLIBRARY=''
3391 else
3392 BLDLIBRARY='$(LDLIBRARY)'
3395 # Other platforms follow
3396 if test $enable_shared = "yes"; then
3398 cat >>confdefs.h <<\_ACEOF
3399 #define Py_ENABLE_SHARED 1
3400 _ACEOF
3402 case $ac_sys_system in
3403 BeOS*)
3404 LDLIBRARY='libpython$(VERSION).so'
3406 CYGWIN*)
3407 LDLIBRARY='libpython$(VERSION).dll.a'
3408 DLLLIBRARY='libpython$(VERSION).dll'
3410 SunOS*)
3411 LDLIBRARY='libpython$(VERSION).so'
3412 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
3413 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3414 INSTSONAME="$LDLIBRARY".$SOVERSION
3416 Linux*|GNU*|NetBSD*|FreeBSD*)
3417 LDLIBRARY='libpython$(VERSION).so'
3418 BLDLIBRARY='-L. -lpython$(VERSION)'
3419 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3420 case $ac_sys_system in
3421 FreeBSD*)
3422 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
3424 esac
3425 INSTSONAME="$LDLIBRARY".$SOVERSION
3427 hp*|HP*)
3428 LDLIBRARY='libpython$(VERSION).sl'
3429 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3430 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
3432 OSF*)
3433 LDLIBRARY='libpython$(VERSION).so'
3434 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3435 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3437 atheos*)
3438 LDLIBRARY='libpython$(VERSION).so'
3439 BLDLIBRARY='-L. -lpython$(VERSION)'
3440 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3442 esac
3443 else # shared is disabled
3444 case $ac_sys_system in
3445 CYGWIN*)
3446 BLDLIBRARY='$(LIBRARY)'
3447 LDLIBRARY='libpython$(VERSION).dll.a'
3449 esac
3452 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3453 echo "${ECHO_T}$LDLIBRARY" >&6
3455 if test -n "$ac_tool_prefix"; then
3456 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3457 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3458 echo "$as_me:$LINENO: checking for $ac_word" >&5
3459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3460 if test "${ac_cv_prog_RANLIB+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3462 else
3463 if test -n "$RANLIB"; then
3464 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3465 else
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 for as_dir in $PATH
3469 IFS=$as_save_IFS
3470 test -z "$as_dir" && as_dir=.
3471 for ac_exec_ext in '' $ac_executable_extensions; do
3472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3473 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3475 break 2
3477 done
3478 done
3482 RANLIB=$ac_cv_prog_RANLIB
3483 if test -n "$RANLIB"; then
3484 echo "$as_me:$LINENO: result: $RANLIB" >&5
3485 echo "${ECHO_T}$RANLIB" >&6
3486 else
3487 echo "$as_me:$LINENO: result: no" >&5
3488 echo "${ECHO_T}no" >&6
3492 if test -z "$ac_cv_prog_RANLIB"; then
3493 ac_ct_RANLIB=$RANLIB
3494 # Extract the first word of "ranlib", so it can be a program name with args.
3495 set dummy ranlib; ac_word=$2
3496 echo "$as_me:$LINENO: checking for $ac_word" >&5
3497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3498 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3500 else
3501 if test -n "$ac_ct_RANLIB"; then
3502 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3503 else
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 for as_dir in $PATH
3507 IFS=$as_save_IFS
3508 test -z "$as_dir" && as_dir=.
3509 for ac_exec_ext in '' $ac_executable_extensions; do
3510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3511 ac_cv_prog_ac_ct_RANLIB="ranlib"
3512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3513 break 2
3515 done
3516 done
3518 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3521 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3522 if test -n "$ac_ct_RANLIB"; then
3523 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3524 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3525 else
3526 echo "$as_me:$LINENO: result: no" >&5
3527 echo "${ECHO_T}no" >&6
3530 RANLIB=$ac_ct_RANLIB
3531 else
3532 RANLIB="$ac_cv_prog_RANLIB"
3536 for ac_prog in ar aal
3538 # Extract the first word of "$ac_prog", so it can be a program name with args.
3539 set dummy $ac_prog; ac_word=$2
3540 echo "$as_me:$LINENO: checking for $ac_word" >&5
3541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3542 if test "${ac_cv_prog_AR+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545 if test -n "$AR"; then
3546 ac_cv_prog_AR="$AR" # Let the user override the test.
3547 else
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 for as_dir in $PATH
3551 IFS=$as_save_IFS
3552 test -z "$as_dir" && as_dir=.
3553 for ac_exec_ext in '' $ac_executable_extensions; do
3554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3555 ac_cv_prog_AR="$ac_prog"
3556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3557 break 2
3559 done
3560 done
3564 AR=$ac_cv_prog_AR
3565 if test -n "$AR"; then
3566 echo "$as_me:$LINENO: result: $AR" >&5
3567 echo "${ECHO_T}$AR" >&6
3568 else
3569 echo "$as_me:$LINENO: result: no" >&5
3570 echo "${ECHO_T}no" >&6
3573 test -n "$AR" && break
3574 done
3575 test -n "$AR" || AR="ar"
3579 # Extract the first word of "svnversion", so it can be a program name with args.
3580 set dummy svnversion; ac_word=$2
3581 echo "$as_me:$LINENO: checking for $ac_word" >&5
3582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3583 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 else
3586 if test -n "$SVNVERSION"; then
3587 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
3588 else
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 for as_dir in $PATH
3592 IFS=$as_save_IFS
3593 test -z "$as_dir" && as_dir=.
3594 for ac_exec_ext in '' $ac_executable_extensions; do
3595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3596 ac_cv_prog_SVNVERSION="found"
3597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3598 break 2
3600 done
3601 done
3605 SVNVERSION=$ac_cv_prog_SVNVERSION
3606 if test -n "$SVNVERSION"; then
3607 echo "$as_me:$LINENO: result: $SVNVERSION" >&5
3608 echo "${ECHO_T}$SVNVERSION" >&6
3609 else
3610 echo "$as_me:$LINENO: result: no" >&5
3611 echo "${ECHO_T}no" >&6
3614 if test $SVNVERSION = found
3615 then
3616 SVNVERSION="svnversion \$(srcdir)"
3617 else
3618 SVNVERSION="echo exported"
3621 case $MACHDEP in
3622 bsdos*|hp*|HP*)
3623 # install -d does not work on BSDI or HP-UX
3624 if test -z "$INSTALL"
3625 then
3626 INSTALL="${srcdir}/install-sh -c"
3628 esac
3629 ac_aux_dir=
3630 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3631 if test -f $ac_dir/install-sh; then
3632 ac_aux_dir=$ac_dir
3633 ac_install_sh="$ac_aux_dir/install-sh -c"
3634 break
3635 elif test -f $ac_dir/install.sh; then
3636 ac_aux_dir=$ac_dir
3637 ac_install_sh="$ac_aux_dir/install.sh -c"
3638 break
3639 elif test -f $ac_dir/shtool; then
3640 ac_aux_dir=$ac_dir
3641 ac_install_sh="$ac_aux_dir/shtool install -c"
3642 break
3644 done
3645 if test -z "$ac_aux_dir"; then
3646 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3647 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3648 { (exit 1); exit 1; }; }
3650 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3651 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3652 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3654 # Find a good install program. We prefer a C program (faster),
3655 # so one script is as good as another. But avoid the broken or
3656 # incompatible versions:
3657 # SysV /etc/install, /usr/sbin/install
3658 # SunOS /usr/etc/install
3659 # IRIX /sbin/install
3660 # AIX /bin/install
3661 # AmigaOS /C/install, which installs bootblocks on floppy discs
3662 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3663 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3664 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3665 # OS/2's system install, which has a completely different semantic
3666 # ./install, which can be erroneously created by make from ./install.sh.
3667 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3668 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3669 if test -z "$INSTALL"; then
3670 if test "${ac_cv_path_install+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 else
3673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 for as_dir in $PATH
3676 IFS=$as_save_IFS
3677 test -z "$as_dir" && as_dir=.
3678 # Account for people who put trailing slashes in PATH elements.
3679 case $as_dir/ in
3680 ./ | .// | /cC/* | \
3681 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3682 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3683 /usr/ucb/* ) ;;
3685 # OSF1 and SCO ODT 3.0 have their own names for install.
3686 # Don't use installbsd from OSF since it installs stuff as root
3687 # by default.
3688 for ac_prog in ginstall scoinst install; do
3689 for ac_exec_ext in '' $ac_executable_extensions; do
3690 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3691 if test $ac_prog = install &&
3692 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3693 # AIX install. It has an incompatible calling convention.
3695 elif test $ac_prog = install &&
3696 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3697 # program-specific install script used by HP pwplus--don't use.
3699 else
3700 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3701 break 3
3704 done
3705 done
3707 esac
3708 done
3712 if test "${ac_cv_path_install+set}" = set; then
3713 INSTALL=$ac_cv_path_install
3714 else
3715 # As a last resort, use the slow shell script. We don't cache a
3716 # path for INSTALL within a source directory, because that will
3717 # break other packages using the cache if that directory is
3718 # removed, or if the path is relative.
3719 INSTALL=$ac_install_sh
3722 echo "$as_me:$LINENO: result: $INSTALL" >&5
3723 echo "${ECHO_T}$INSTALL" >&6
3725 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3726 # It thinks the first close brace ends the variable substitution.
3727 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3729 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3731 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3734 # Not every filesystem supports hard links
3736 if test -z "$LN" ; then
3737 case $ac_sys_system in
3738 BeOS*) LN="ln -s";;
3739 CYGWIN*) LN="ln -s";;
3740 atheos*) LN="ln -s";;
3741 *) LN=ln;;
3742 esac
3745 # Check for --with-pydebug
3746 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3747 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3749 # Check whether --with-pydebug or --without-pydebug was given.
3750 if test "${with_pydebug+set}" = set; then
3751 withval="$with_pydebug"
3753 if test "$withval" != no
3754 then
3756 cat >>confdefs.h <<\_ACEOF
3757 #define Py_DEBUG 1
3758 _ACEOF
3760 echo "$as_me:$LINENO: result: yes" >&5
3761 echo "${ECHO_T}yes" >&6;
3762 Py_DEBUG='true'
3763 else echo "$as_me:$LINENO: result: no" >&5
3764 echo "${ECHO_T}no" >&6; Py_DEBUG='false'
3766 else
3767 echo "$as_me:$LINENO: result: no" >&5
3768 echo "${ECHO_T}no" >&6
3771 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3772 # merged with this chunk of code?
3774 # Optimizer/debugger flags
3775 # ------------------------
3776 # (The following bit of code is complicated enough - please keep things
3777 # indented properly. Just pretend you're editing Python code. ;-)
3779 # There are two parallel sets of case statements below, one that checks to
3780 # see if OPT was set and one that does BASECFLAGS setting based upon
3781 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3782 # user set OPT.
3784 # tweak OPT based on compiler and platform, only if the user didn't set
3785 # it on the command line
3787 if test -z "$OPT"
3788 then
3789 case $GCC in
3790 yes)
3791 case $ac_cv_prog_cc_g in
3792 yes)
3793 if test "$Py_DEBUG" = 'true' ; then
3794 # Optimization messes up debuggers, so turn it off for
3795 # debug builds.
3796 OPT="-g -Wall -Wstrict-prototypes"
3797 else
3798 OPT="-g -O3 -Wall -Wstrict-prototypes"
3802 OPT="-O3 -Wall -Wstrict-prototypes"
3804 esac
3805 case $ac_sys_system in
3806 SCO_SV*) OPT="$OPT -m486 -DSCO5"
3808 esac
3812 OPT="-O"
3814 esac
3816 # The current (beta) Monterey compiler dies with optimizations
3817 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3818 case $ac_sys_system in
3819 Monterey*)
3820 OPT=""
3822 esac
3827 # tweak BASECFLAGS based on compiler and platform
3828 case $GCC in
3829 yes)
3830 # Python violates C99 rules, by casting between incompatible
3831 # pointer types. GCC may generate bad code as a result of that,
3832 # so use -fno-strict-aliasing if supported.
3833 echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
3834 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6
3835 ac_save_cc="$CC"
3836 CC="$CC -fno-strict-aliasing"
3837 if test "$cross_compiling" = yes; then
3838 ac_cv_no_strict_aliasing_ok=no
3839 else
3840 cat >conftest.$ac_ext <<_ACEOF
3841 /* confdefs.h. */
3842 _ACEOF
3843 cat confdefs.h >>conftest.$ac_ext
3844 cat >>conftest.$ac_ext <<_ACEOF
3845 /* end confdefs.h. */
3846 int main() { return 0; }
3847 _ACEOF
3848 rm -f conftest$ac_exeext
3849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3850 (eval $ac_link) 2>&5
3851 ac_status=$?
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3855 (eval $ac_try) 2>&5
3856 ac_status=$?
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); }; }; then
3859 ac_cv_no_strict_aliasing_ok=yes
3860 else
3861 echo "$as_me: program exited with status $ac_status" >&5
3862 echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3865 ( exit $ac_status )
3866 ac_cv_no_strict_aliasing_ok=no
3868 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3870 CC="$ac_save_cc"
3871 echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
3872 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
3873 if test $ac_cv_no_strict_aliasing_ok = yes
3874 then
3875 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
3877 case $ac_sys_system in
3878 SCO_SV*)
3879 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
3881 # is there any other compiler on Darwin besides gcc?
3882 Darwin*)
3883 BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
3885 esac
3889 case $ac_sys_system in
3890 OpenUNIX*|UnixWare*)
3891 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3893 OSF*)
3894 BASECFLAGS="$BASECFLAGS -ieee -std"
3896 SCO_SV*)
3897 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
3899 esac
3901 esac
3903 if test "$Py_DEBUG" = 'true'; then
3905 else
3906 OPT="-DNDEBUG $OPT"
3909 if test "$ac_arch_flags"
3910 then
3911 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
3914 # disable check for icc since it seems to pass, but generates a warning
3915 if test "$CC" = icc
3916 then
3917 ac_cv_opt_olimit_ok=no
3920 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3921 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3922 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3924 else
3925 ac_save_cc="$CC"
3926 CC="$CC -OPT:Olimit=0"
3927 if test "$cross_compiling" = yes; then
3928 ac_cv_opt_olimit_ok=no
3929 else
3930 cat >conftest.$ac_ext <<_ACEOF
3931 /* confdefs.h. */
3932 _ACEOF
3933 cat confdefs.h >>conftest.$ac_ext
3934 cat >>conftest.$ac_ext <<_ACEOF
3935 /* end confdefs.h. */
3936 int main() { return 0; }
3937 _ACEOF
3938 rm -f conftest$ac_exeext
3939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3940 (eval $ac_link) 2>&5
3941 ac_status=$?
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3945 (eval $ac_try) 2>&5
3946 ac_status=$?
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); }; }; then
3949 ac_cv_opt_olimit_ok=yes
3950 else
3951 echo "$as_me: program exited with status $ac_status" >&5
3952 echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3955 ( exit $ac_status )
3956 ac_cv_opt_olimit_ok=no
3958 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3960 CC="$ac_save_cc"
3963 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3964 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3965 if test $ac_cv_opt_olimit_ok = yes; then
3966 case $ac_sys_system in
3967 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3968 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3969 # environment?
3970 Darwin*)
3973 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
3975 esac
3976 else
3977 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3978 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3979 if test "${ac_cv_olimit_ok+set}" = set; then
3980 echo $ECHO_N "(cached) $ECHO_C" >&6
3981 else
3982 ac_save_cc="$CC"
3983 CC="$CC -Olimit 1500"
3984 if test "$cross_compiling" = yes; then
3985 ac_cv_olimit_ok=no
3986 else
3987 cat >conftest.$ac_ext <<_ACEOF
3988 /* confdefs.h. */
3989 _ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
3993 int main() { return 0; }
3994 _ACEOF
3995 rm -f conftest$ac_exeext
3996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3997 (eval $ac_link) 2>&5
3998 ac_status=$?
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002 (eval $ac_try) 2>&5
4003 ac_status=$?
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); }; }; then
4006 ac_cv_olimit_ok=yes
4007 else
4008 echo "$as_me: program exited with status $ac_status" >&5
4009 echo "$as_me: failed program was:" >&5
4010 sed 's/^/| /' conftest.$ac_ext >&5
4012 ( exit $ac_status )
4013 ac_cv_olimit_ok=no
4015 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4017 CC="$ac_save_cc"
4020 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4021 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
4022 if test $ac_cv_olimit_ok = yes; then
4023 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4027 # On some compilers, pthreads are available without further options
4028 # (e.g. MacOS X). On some of these systems, the compiler will not
4029 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4030 # So we have to see first whether pthreads are available without
4031 # options before we can check whether -Kpthread improves anything.
4032 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4033 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
4034 if test "${ac_cv_pthread_is_default+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 else
4037 if test "$cross_compiling" = yes; then
4038 ac_cv_pthread_is_default=no
4039 else
4040 cat >conftest.$ac_ext <<_ACEOF
4041 /* confdefs.h. */
4042 _ACEOF
4043 cat confdefs.h >>conftest.$ac_ext
4044 cat >>conftest.$ac_ext <<_ACEOF
4045 /* end confdefs.h. */
4047 #include <pthread.h>
4049 void* routine(void* p){return NULL;}
4051 int main(){
4052 pthread_t p;
4053 if(pthread_create(&p,NULL,routine,NULL)!=0)
4054 return 1;
4055 (void)pthread_detach(p);
4056 return 0;
4059 _ACEOF
4060 rm -f conftest$ac_exeext
4061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4062 (eval $ac_link) 2>&5
4063 ac_status=$?
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067 (eval $ac_try) 2>&5
4068 ac_status=$?
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); }; }; then
4072 ac_cv_pthread_is_default=yes
4073 ac_cv_kthread=no
4074 ac_cv_pthread=no
4076 else
4077 echo "$as_me: program exited with status $ac_status" >&5
4078 echo "$as_me: failed program was:" >&5
4079 sed 's/^/| /' conftest.$ac_ext >&5
4081 ( exit $ac_status )
4082 ac_cv_pthread_is_default=no
4084 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4089 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4090 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
4093 if test $ac_cv_pthread_is_default = yes
4094 then
4095 ac_cv_kpthread=no
4096 else
4097 # -Kpthread, if available, provides the right #defines
4098 # and linker options to make pthread_create available
4099 # Some compilers won't report that they do not support -Kpthread,
4100 # so we need to run a program to see whether it really made the
4101 # function available.
4102 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4103 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
4104 if test "${ac_cv_kpthread+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4106 else
4107 ac_save_cc="$CC"
4108 CC="$CC -Kpthread"
4109 if test "$cross_compiling" = yes; then
4110 ac_cv_kpthread=no
4111 else
4112 cat >conftest.$ac_ext <<_ACEOF
4113 /* confdefs.h. */
4114 _ACEOF
4115 cat confdefs.h >>conftest.$ac_ext
4116 cat >>conftest.$ac_ext <<_ACEOF
4117 /* end confdefs.h. */
4119 #include <pthread.h>
4121 void* routine(void* p){return NULL;}
4123 int main(){
4124 pthread_t p;
4125 if(pthread_create(&p,NULL,routine,NULL)!=0)
4126 return 1;
4127 (void)pthread_detach(p);
4128 return 0;
4131 _ACEOF
4132 rm -f conftest$ac_exeext
4133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4134 (eval $ac_link) 2>&5
4135 ac_status=$?
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4139 (eval $ac_try) 2>&5
4140 ac_status=$?
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); }; }; then
4143 ac_cv_kpthread=yes
4144 else
4145 echo "$as_me: program exited with status $ac_status" >&5
4146 echo "$as_me: failed program was:" >&5
4147 sed 's/^/| /' conftest.$ac_ext >&5
4149 ( exit $ac_status )
4150 ac_cv_kpthread=no
4152 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4154 CC="$ac_save_cc"
4157 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4158 echo "${ECHO_T}$ac_cv_kpthread" >&6
4161 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
4162 then
4163 # -Kthread, if available, provides the right #defines
4164 # and linker options to make pthread_create available
4165 # Some compilers won't report that they do not support -Kthread,
4166 # so we need to run a program to see whether it really made the
4167 # function available.
4168 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4169 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
4170 if test "${ac_cv_kthread+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 else
4173 ac_save_cc="$CC"
4174 CC="$CC -Kthread"
4175 if test "$cross_compiling" = yes; then
4176 ac_cv_kthread=no
4177 else
4178 cat >conftest.$ac_ext <<_ACEOF
4179 /* confdefs.h. */
4180 _ACEOF
4181 cat confdefs.h >>conftest.$ac_ext
4182 cat >>conftest.$ac_ext <<_ACEOF
4183 /* end confdefs.h. */
4185 #include <pthread.h>
4187 void* routine(void* p){return NULL;}
4189 int main(){
4190 pthread_t p;
4191 if(pthread_create(&p,NULL,routine,NULL)!=0)
4192 return 1;
4193 (void)pthread_detach(p);
4194 return 0;
4197 _ACEOF
4198 rm -f 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); } && { ac_try='./conftest$ac_exeext'
4204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4205 (eval $ac_try) 2>&5
4206 ac_status=$?
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }; }; then
4209 ac_cv_kthread=yes
4210 else
4211 echo "$as_me: program exited with status $ac_status" >&5
4212 echo "$as_me: failed program was:" >&5
4213 sed 's/^/| /' conftest.$ac_ext >&5
4215 ( exit $ac_status )
4216 ac_cv_kthread=no
4218 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4220 CC="$ac_save_cc"
4223 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4224 echo "${ECHO_T}$ac_cv_kthread" >&6
4227 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
4228 then
4229 # -pthread, if available, provides the right #defines
4230 # and linker options to make pthread_create available
4231 # Some compilers won't report that they do not support -pthread,
4232 # so we need to run a program to see whether it really made the
4233 # function available.
4234 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4235 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
4236 if test "${ac_cv_thread+set}" = set; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4238 else
4239 ac_save_cc="$CC"
4240 CC="$CC -pthread"
4241 if test "$cross_compiling" = yes; then
4242 ac_cv_pthread=no
4243 else
4244 cat >conftest.$ac_ext <<_ACEOF
4245 /* confdefs.h. */
4246 _ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4251 #include <pthread.h>
4253 void* routine(void* p){return NULL;}
4255 int main(){
4256 pthread_t p;
4257 if(pthread_create(&p,NULL,routine,NULL)!=0)
4258 return 1;
4259 (void)pthread_detach(p);
4260 return 0;
4263 _ACEOF
4264 rm -f conftest$ac_exeext
4265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4266 (eval $ac_link) 2>&5
4267 ac_status=$?
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271 (eval $ac_try) 2>&5
4272 ac_status=$?
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4275 ac_cv_pthread=yes
4276 else
4277 echo "$as_me: program exited with status $ac_status" >&5
4278 echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4281 ( exit $ac_status )
4282 ac_cv_pthread=no
4284 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4286 CC="$ac_save_cc"
4289 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4290 echo "${ECHO_T}$ac_cv_pthread" >&6
4293 # If we have set a CC compiler flag for thread support then
4294 # check if it works for CXX, too.
4295 ac_cv_cxx_thread=no
4296 if test ! -z "$CXX"
4297 then
4298 echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
4299 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6
4300 ac_save_cxx="$CXX"
4302 if test "$ac_cv_kpthread" = "yes"
4303 then
4304 CXX="$CXX -Kpthread"
4305 ac_cv_cxx_thread=yes
4306 elif test "$ac_cv_kthread" = "yes"
4307 then
4308 CXX="$CXX -Kthread"
4309 ac_cv_cxx_thread=yes
4310 elif test "$ac_cv_pthread" = "yes"
4311 then
4312 CXX="$CXX -pthread"
4313 ac_cv_cxx_thread=yes
4316 if test $ac_cv_cxx_thread = yes
4317 then
4318 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
4319 $CXX -c conftest.$ac_ext 2>&5
4320 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
4321 && test -s conftest$ac_exeext && ./conftest$ac_exeext
4322 then
4323 ac_cv_cxx_thread=yes
4324 else
4325 ac_cv_cxx_thread=no
4327 rm -fr conftest*
4329 echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
4330 echo "${ECHO_T}$ac_cv_cxx_thread" >&6
4332 CXX="$ac_save_cxx"
4335 # checks for header files
4336 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4337 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4338 if test "${ac_cv_header_stdc+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4340 else
4341 cat >conftest.$ac_ext <<_ACEOF
4342 /* confdefs.h. */
4343 _ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h. */
4347 #include <stdlib.h>
4348 #include <stdarg.h>
4349 #include <string.h>
4350 #include <float.h>
4353 main ()
4357 return 0;
4359 _ACEOF
4360 rm -f conftest.$ac_objext
4361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4362 (eval $ac_compile) 2>conftest.er1
4363 ac_status=$?
4364 grep -v '^ *+' conftest.er1 >conftest.err
4365 rm -f conftest.er1
4366 cat conftest.err >&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } &&
4369 { ac_try='test -z "$ac_c_werror_flag"
4370 || test ! -s conftest.err'
4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372 (eval $ac_try) 2>&5
4373 ac_status=$?
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; } &&
4376 { ac_try='test -s conftest.$ac_objext'
4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378 (eval $ac_try) 2>&5
4379 ac_status=$?
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; }; then
4382 ac_cv_header_stdc=yes
4383 else
4384 echo "$as_me: failed program was:" >&5
4385 sed 's/^/| /' conftest.$ac_ext >&5
4387 ac_cv_header_stdc=no
4389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4391 if test $ac_cv_header_stdc = yes; then
4392 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4393 cat >conftest.$ac_ext <<_ACEOF
4394 /* confdefs.h. */
4395 _ACEOF
4396 cat confdefs.h >>conftest.$ac_ext
4397 cat >>conftest.$ac_ext <<_ACEOF
4398 /* end confdefs.h. */
4399 #include <string.h>
4401 _ACEOF
4402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4403 $EGREP "memchr" >/dev/null 2>&1; then
4405 else
4406 ac_cv_header_stdc=no
4408 rm -f conftest*
4412 if test $ac_cv_header_stdc = yes; then
4413 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4414 cat >conftest.$ac_ext <<_ACEOF
4415 /* confdefs.h. */
4416 _ACEOF
4417 cat confdefs.h >>conftest.$ac_ext
4418 cat >>conftest.$ac_ext <<_ACEOF
4419 /* end confdefs.h. */
4420 #include <stdlib.h>
4422 _ACEOF
4423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4424 $EGREP "free" >/dev/null 2>&1; then
4426 else
4427 ac_cv_header_stdc=no
4429 rm -f conftest*
4433 if test $ac_cv_header_stdc = yes; then
4434 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4435 if test "$cross_compiling" = yes; then
4437 else
4438 cat >conftest.$ac_ext <<_ACEOF
4439 /* confdefs.h. */
4440 _ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4444 #include <ctype.h>
4445 #if ((' ' & 0x0FF) == 0x020)
4446 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4447 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4448 #else
4449 # define ISLOWER(c) \
4450 (('a' <= (c) && (c) <= 'i') \
4451 || ('j' <= (c) && (c) <= 'r') \
4452 || ('s' <= (c) && (c) <= 'z'))
4453 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4454 #endif
4456 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4458 main ()
4460 int i;
4461 for (i = 0; i < 256; i++)
4462 if (XOR (islower (i), ISLOWER (i))
4463 || toupper (i) != TOUPPER (i))
4464 exit(2);
4465 exit (0);
4467 _ACEOF
4468 rm -f conftest$ac_exeext
4469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4470 (eval $ac_link) 2>&5
4471 ac_status=$?
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475 (eval $ac_try) 2>&5
4476 ac_status=$?
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; }; then
4480 else
4481 echo "$as_me: program exited with status $ac_status" >&5
4482 echo "$as_me: failed program was:" >&5
4483 sed 's/^/| /' conftest.$ac_ext >&5
4485 ( exit $ac_status )
4486 ac_cv_header_stdc=no
4488 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4492 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4493 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4494 if test $ac_cv_header_stdc = yes; then
4496 cat >>confdefs.h <<\_ACEOF
4497 #define STDC_HEADERS 1
4498 _ACEOF
4502 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4512 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4513 inttypes.h stdint.h unistd.h
4515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4516 echo "$as_me:$LINENO: checking for $ac_header" >&5
4517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4520 else
4521 cat >conftest.$ac_ext <<_ACEOF
4522 /* confdefs.h. */
4523 _ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4527 $ac_includes_default
4529 #include <$ac_header>
4530 _ACEOF
4531 rm -f conftest.$ac_objext
4532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4533 (eval $ac_compile) 2>conftest.er1
4534 ac_status=$?
4535 grep -v '^ *+' conftest.er1 >conftest.err
4536 rm -f conftest.er1
4537 cat conftest.err >&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); } &&
4540 { ac_try='test -z "$ac_c_werror_flag"
4541 || test ! -s conftest.err'
4542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543 (eval $ac_try) 2>&5
4544 ac_status=$?
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; } &&
4547 { ac_try='test -s conftest.$ac_objext'
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549 (eval $ac_try) 2>&5
4550 ac_status=$?
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; }; then
4553 eval "$as_ac_Header=yes"
4554 else
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4558 eval "$as_ac_Header=no"
4560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4565 cat >>confdefs.h <<_ACEOF
4566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4567 _ACEOF
4571 done
4613 for ac_header in asm/types.h curses.h dlfcn.h fcntl.h grp.h \
4614 shadow.h langinfo.h libintl.h ncurses.h poll.h pthread.h \
4615 stropts.h termios.h thread.h \
4616 unistd.h utime.h \
4617 sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
4618 sys/modem.h \
4619 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \
4620 sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
4621 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
4622 bluetooth/bluetooth.h
4624 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4626 echo "$as_me:$LINENO: checking for $ac_header" >&5
4627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4629 echo $ECHO_N "(cached) $ECHO_C" >&6
4631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4633 else
4634 # Is the header compilable?
4635 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4636 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4637 cat >conftest.$ac_ext <<_ACEOF
4638 /* confdefs.h. */
4639 _ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h. */
4643 $ac_includes_default
4644 #include <$ac_header>
4645 _ACEOF
4646 rm -f conftest.$ac_objext
4647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4648 (eval $ac_compile) 2>conftest.er1
4649 ac_status=$?
4650 grep -v '^ *+' conftest.er1 >conftest.err
4651 rm -f conftest.er1
4652 cat conftest.err >&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } &&
4655 { ac_try='test -z "$ac_c_werror_flag"
4656 || test ! -s conftest.err'
4657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4658 (eval $ac_try) 2>&5
4659 ac_status=$?
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; } &&
4662 { ac_try='test -s conftest.$ac_objext'
4663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4664 (eval $ac_try) 2>&5
4665 ac_status=$?
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); }; }; then
4668 ac_header_compiler=yes
4669 else
4670 echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.$ac_ext >&5
4673 ac_header_compiler=no
4675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4676 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4677 echo "${ECHO_T}$ac_header_compiler" >&6
4679 # Is the header present?
4680 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4681 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4682 cat >conftest.$ac_ext <<_ACEOF
4683 /* confdefs.h. */
4684 _ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4688 #include <$ac_header>
4689 _ACEOF
4690 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4691 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4692 ac_status=$?
4693 grep -v '^ *+' conftest.er1 >conftest.err
4694 rm -f conftest.er1
4695 cat conftest.err >&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); } >/dev/null; then
4698 if test -s conftest.err; then
4699 ac_cpp_err=$ac_c_preproc_warn_flag
4700 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4701 else
4702 ac_cpp_err=
4704 else
4705 ac_cpp_err=yes
4707 if test -z "$ac_cpp_err"; then
4708 ac_header_preproc=yes
4709 else
4710 echo "$as_me: failed program was:" >&5
4711 sed 's/^/| /' conftest.$ac_ext >&5
4713 ac_header_preproc=no
4715 rm -f conftest.err conftest.$ac_ext
4716 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4717 echo "${ECHO_T}$ac_header_preproc" >&6
4719 # So? What about this header?
4720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4721 yes:no: )
4722 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4723 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4725 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4726 ac_header_preproc=yes
4728 no:yes:* )
4729 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4730 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4731 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4732 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4733 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4734 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4735 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4736 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4739 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4740 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4742 cat <<\_ASBOX
4743 ## ------------------------------------------------ ##
4744 ## Report this to http://www.python.org/python-bugs ##
4745 ## ------------------------------------------------ ##
4746 _ASBOX
4748 sed "s/^/$as_me: WARNING: /" >&2
4750 esac
4751 echo "$as_me:$LINENO: checking for $ac_header" >&5
4752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4754 echo $ECHO_N "(cached) $ECHO_C" >&6
4755 else
4756 eval "$as_ac_Header=\$ac_header_preproc"
4758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4763 cat >>confdefs.h <<_ACEOF
4764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4765 _ACEOF
4769 done
4776 ac_header_dirent=no
4777 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4778 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4779 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4780 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4783 else
4784 cat >conftest.$ac_ext <<_ACEOF
4785 /* confdefs.h. */
4786 _ACEOF
4787 cat confdefs.h >>conftest.$ac_ext
4788 cat >>conftest.$ac_ext <<_ACEOF
4789 /* end confdefs.h. */
4790 #include <sys/types.h>
4791 #include <$ac_hdr>
4794 main ()
4796 if ((DIR *) 0)
4797 return 0;
4799 return 0;
4801 _ACEOF
4802 rm -f conftest.$ac_objext
4803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4804 (eval $ac_compile) 2>conftest.er1
4805 ac_status=$?
4806 grep -v '^ *+' conftest.er1 >conftest.err
4807 rm -f conftest.er1
4808 cat conftest.err >&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } &&
4811 { ac_try='test -z "$ac_c_werror_flag"
4812 || test ! -s conftest.err'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814 (eval $ac_try) 2>&5
4815 ac_status=$?
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; } &&
4818 { ac_try='test -s conftest.$ac_objext'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820 (eval $ac_try) 2>&5
4821 ac_status=$?
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; }; then
4824 eval "$as_ac_Header=yes"
4825 else
4826 echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.$ac_ext >&5
4829 eval "$as_ac_Header=no"
4831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4836 cat >>confdefs.h <<_ACEOF
4837 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4838 _ACEOF
4840 ac_header_dirent=$ac_hdr; break
4843 done
4844 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4845 if test $ac_header_dirent = dirent.h; then
4846 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4847 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4848 if test "${ac_cv_search_opendir+set}" = set; then
4849 echo $ECHO_N "(cached) $ECHO_C" >&6
4850 else
4851 ac_func_search_save_LIBS=$LIBS
4852 ac_cv_search_opendir=no
4853 cat >conftest.$ac_ext <<_ACEOF
4854 /* confdefs.h. */
4855 _ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h. */
4860 /* Override any gcc2 internal prototype to avoid an error. */
4861 #ifdef __cplusplus
4862 extern "C"
4863 #endif
4864 /* We use char because int might match the return type of a gcc2
4865 builtin and then its argument prototype would still apply. */
4866 char opendir ();
4868 main ()
4870 opendir ();
4872 return 0;
4874 _ACEOF
4875 rm -f conftest.$ac_objext conftest$ac_exeext
4876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4877 (eval $ac_link) 2>conftest.er1
4878 ac_status=$?
4879 grep -v '^ *+' conftest.er1 >conftest.err
4880 rm -f conftest.er1
4881 cat conftest.err >&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); } &&
4884 { ac_try='test -z "$ac_c_werror_flag"
4885 || test ! -s conftest.err'
4886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4887 (eval $ac_try) 2>&5
4888 ac_status=$?
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); }; } &&
4891 { ac_try='test -s conftest$ac_exeext'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 (eval $ac_try) 2>&5
4894 ac_status=$?
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; }; then
4897 ac_cv_search_opendir="none required"
4898 else
4899 echo "$as_me: failed program was:" >&5
4900 sed 's/^/| /' conftest.$ac_ext >&5
4903 rm -f conftest.err conftest.$ac_objext \
4904 conftest$ac_exeext conftest.$ac_ext
4905 if test "$ac_cv_search_opendir" = no; then
4906 for ac_lib in dir; do
4907 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4908 cat >conftest.$ac_ext <<_ACEOF
4909 /* confdefs.h. */
4910 _ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h. */
4915 /* Override any gcc2 internal prototype to avoid an error. */
4916 #ifdef __cplusplus
4917 extern "C"
4918 #endif
4919 /* We use char because int might match the return type of a gcc2
4920 builtin and then its argument prototype would still apply. */
4921 char opendir ();
4923 main ()
4925 opendir ();
4927 return 0;
4929 _ACEOF
4930 rm -f conftest.$ac_objext conftest$ac_exeext
4931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4932 (eval $ac_link) 2>conftest.er1
4933 ac_status=$?
4934 grep -v '^ *+' conftest.er1 >conftest.err
4935 rm -f conftest.er1
4936 cat conftest.err >&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } &&
4939 { ac_try='test -z "$ac_c_werror_flag"
4940 || test ! -s conftest.err'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942 (eval $ac_try) 2>&5
4943 ac_status=$?
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; } &&
4946 { ac_try='test -s conftest$ac_exeext'
4947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948 (eval $ac_try) 2>&5
4949 ac_status=$?
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); }; }; then
4952 ac_cv_search_opendir="-l$ac_lib"
4953 break
4954 else
4955 echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.$ac_ext >&5
4959 rm -f conftest.err conftest.$ac_objext \
4960 conftest$ac_exeext conftest.$ac_ext
4961 done
4963 LIBS=$ac_func_search_save_LIBS
4965 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4966 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4967 if test "$ac_cv_search_opendir" != no; then
4968 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4972 else
4973 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4974 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4975 if test "${ac_cv_search_opendir+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4977 else
4978 ac_func_search_save_LIBS=$LIBS
4979 ac_cv_search_opendir=no
4980 cat >conftest.$ac_ext <<_ACEOF
4981 /* confdefs.h. */
4982 _ACEOF
4983 cat confdefs.h >>conftest.$ac_ext
4984 cat >>conftest.$ac_ext <<_ACEOF
4985 /* end confdefs.h. */
4987 /* Override any gcc2 internal prototype to avoid an error. */
4988 #ifdef __cplusplus
4989 extern "C"
4990 #endif
4991 /* We use char because int might match the return type of a gcc2
4992 builtin and then its argument prototype would still apply. */
4993 char opendir ();
4995 main ()
4997 opendir ();
4999 return 0;
5001 _ACEOF
5002 rm -f conftest.$ac_objext conftest$ac_exeext
5003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5004 (eval $ac_link) 2>conftest.er1
5005 ac_status=$?
5006 grep -v '^ *+' conftest.er1 >conftest.err
5007 rm -f conftest.er1
5008 cat conftest.err >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } &&
5011 { ac_try='test -z "$ac_c_werror_flag"
5012 || test ! -s conftest.err'
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014 (eval $ac_try) 2>&5
5015 ac_status=$?
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; } &&
5018 { ac_try='test -s conftest$ac_exeext'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 (eval $ac_try) 2>&5
5021 ac_status=$?
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; }; then
5024 ac_cv_search_opendir="none required"
5025 else
5026 echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.$ac_ext >&5
5030 rm -f conftest.err conftest.$ac_objext \
5031 conftest$ac_exeext conftest.$ac_ext
5032 if test "$ac_cv_search_opendir" = no; then
5033 for ac_lib in x; do
5034 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5035 cat >conftest.$ac_ext <<_ACEOF
5036 /* confdefs.h. */
5037 _ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5042 /* Override any gcc2 internal prototype to avoid an error. */
5043 #ifdef __cplusplus
5044 extern "C"
5045 #endif
5046 /* We use char because int might match the return type of a gcc2
5047 builtin and then its argument prototype would still apply. */
5048 char opendir ();
5050 main ()
5052 opendir ();
5054 return 0;
5056 _ACEOF
5057 rm -f conftest.$ac_objext conftest$ac_exeext
5058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5059 (eval $ac_link) 2>conftest.er1
5060 ac_status=$?
5061 grep -v '^ *+' conftest.er1 >conftest.err
5062 rm -f conftest.er1
5063 cat conftest.err >&5
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); } &&
5066 { ac_try='test -z "$ac_c_werror_flag"
5067 || test ! -s conftest.err'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069 (eval $ac_try) 2>&5
5070 ac_status=$?
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; } &&
5073 { ac_try='test -s conftest$ac_exeext'
5074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075 (eval $ac_try) 2>&5
5076 ac_status=$?
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); }; }; then
5079 ac_cv_search_opendir="-l$ac_lib"
5080 break
5081 else
5082 echo "$as_me: failed program was:" >&5
5083 sed 's/^/| /' conftest.$ac_ext >&5
5086 rm -f conftest.err conftest.$ac_objext \
5087 conftest$ac_exeext conftest.$ac_ext
5088 done
5090 LIBS=$ac_func_search_save_LIBS
5092 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5093 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5094 if test "$ac_cv_search_opendir" != no; then
5095 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5101 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5102 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5103 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5105 else
5106 cat >conftest.$ac_ext <<_ACEOF
5107 /* confdefs.h. */
5108 _ACEOF
5109 cat confdefs.h >>conftest.$ac_ext
5110 cat >>conftest.$ac_ext <<_ACEOF
5111 /* end confdefs.h. */
5112 #include <sys/types.h>
5114 main ()
5116 return makedev(0, 0);
5118 return 0;
5120 _ACEOF
5121 rm -f conftest.$ac_objext conftest$ac_exeext
5122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5123 (eval $ac_link) 2>conftest.er1
5124 ac_status=$?
5125 grep -v '^ *+' conftest.er1 >conftest.err
5126 rm -f conftest.er1
5127 cat conftest.err >&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); } &&
5130 { ac_try='test -z "$ac_c_werror_flag"
5131 || test ! -s conftest.err'
5132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133 (eval $ac_try) 2>&5
5134 ac_status=$?
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); }; } &&
5137 { ac_try='test -s conftest$ac_exeext'
5138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139 (eval $ac_try) 2>&5
5140 ac_status=$?
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); }; }; then
5143 ac_cv_header_sys_types_h_makedev=yes
5144 else
5145 echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5148 ac_cv_header_sys_types_h_makedev=no
5150 rm -f conftest.err conftest.$ac_objext \
5151 conftest$ac_exeext conftest.$ac_ext
5154 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5155 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5157 if test $ac_cv_header_sys_types_h_makedev = no; then
5158 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5159 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5160 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5161 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5165 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5166 else
5167 # Is the header compilable?
5168 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5169 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
5170 cat >conftest.$ac_ext <<_ACEOF
5171 /* confdefs.h. */
5172 _ACEOF
5173 cat confdefs.h >>conftest.$ac_ext
5174 cat >>conftest.$ac_ext <<_ACEOF
5175 /* end confdefs.h. */
5176 $ac_includes_default
5177 #include <sys/mkdev.h>
5178 _ACEOF
5179 rm -f conftest.$ac_objext
5180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5181 (eval $ac_compile) 2>conftest.er1
5182 ac_status=$?
5183 grep -v '^ *+' conftest.er1 >conftest.err
5184 rm -f conftest.er1
5185 cat conftest.err >&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); } &&
5188 { ac_try='test -z "$ac_c_werror_flag"
5189 || test ! -s conftest.err'
5190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5191 (eval $ac_try) 2>&5
5192 ac_status=$?
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); }; } &&
5195 { ac_try='test -s conftest.$ac_objext'
5196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197 (eval $ac_try) 2>&5
5198 ac_status=$?
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }; }; then
5201 ac_header_compiler=yes
5202 else
5203 echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.$ac_ext >&5
5206 ac_header_compiler=no
5208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5209 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5210 echo "${ECHO_T}$ac_header_compiler" >&6
5212 # Is the header present?
5213 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5214 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
5215 cat >conftest.$ac_ext <<_ACEOF
5216 /* confdefs.h. */
5217 _ACEOF
5218 cat confdefs.h >>conftest.$ac_ext
5219 cat >>conftest.$ac_ext <<_ACEOF
5220 /* end confdefs.h. */
5221 #include <sys/mkdev.h>
5222 _ACEOF
5223 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5224 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5225 ac_status=$?
5226 grep -v '^ *+' conftest.er1 >conftest.err
5227 rm -f conftest.er1
5228 cat conftest.err >&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } >/dev/null; then
5231 if test -s conftest.err; then
5232 ac_cpp_err=$ac_c_preproc_warn_flag
5233 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5234 else
5235 ac_cpp_err=
5237 else
5238 ac_cpp_err=yes
5240 if test -z "$ac_cpp_err"; then
5241 ac_header_preproc=yes
5242 else
5243 echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.$ac_ext >&5
5246 ac_header_preproc=no
5248 rm -f conftest.err conftest.$ac_ext
5249 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5250 echo "${ECHO_T}$ac_header_preproc" >&6
5252 # So? What about this header?
5253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5254 yes:no: )
5255 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5256 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5257 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5258 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5259 ac_header_preproc=yes
5261 no:yes:* )
5262 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5263 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5264 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5265 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5266 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5267 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5268 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5269 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5270 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5271 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5272 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5273 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5275 cat <<\_ASBOX
5276 ## ------------------------------------------------ ##
5277 ## Report this to http://www.python.org/python-bugs ##
5278 ## ------------------------------------------------ ##
5279 _ASBOX
5281 sed "s/^/$as_me: WARNING: /" >&2
5283 esac
5284 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5285 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5286 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5288 else
5289 ac_cv_header_sys_mkdev_h=$ac_header_preproc
5291 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5292 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5295 if test $ac_cv_header_sys_mkdev_h = yes; then
5297 cat >>confdefs.h <<\_ACEOF
5298 #define MAJOR_IN_MKDEV 1
5299 _ACEOF
5305 if test $ac_cv_header_sys_mkdev_h = no; then
5306 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5307 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5308 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5309 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5313 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5314 else
5315 # Is the header compilable?
5316 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5317 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
5318 cat >conftest.$ac_ext <<_ACEOF
5319 /* confdefs.h. */
5320 _ACEOF
5321 cat confdefs.h >>conftest.$ac_ext
5322 cat >>conftest.$ac_ext <<_ACEOF
5323 /* end confdefs.h. */
5324 $ac_includes_default
5325 #include <sys/sysmacros.h>
5326 _ACEOF
5327 rm -f conftest.$ac_objext
5328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5329 (eval $ac_compile) 2>conftest.er1
5330 ac_status=$?
5331 grep -v '^ *+' conftest.er1 >conftest.err
5332 rm -f conftest.er1
5333 cat conftest.err >&5
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); } &&
5336 { ac_try='test -z "$ac_c_werror_flag"
5337 || test ! -s conftest.err'
5338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339 (eval $ac_try) 2>&5
5340 ac_status=$?
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); }; } &&
5343 { ac_try='test -s conftest.$ac_objext'
5344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345 (eval $ac_try) 2>&5
5346 ac_status=$?
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); }; }; then
5349 ac_header_compiler=yes
5350 else
5351 echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5354 ac_header_compiler=no
5356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5357 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5358 echo "${ECHO_T}$ac_header_compiler" >&6
5360 # Is the header present?
5361 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
5362 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
5363 cat >conftest.$ac_ext <<_ACEOF
5364 /* confdefs.h. */
5365 _ACEOF
5366 cat confdefs.h >>conftest.$ac_ext
5367 cat >>conftest.$ac_ext <<_ACEOF
5368 /* end confdefs.h. */
5369 #include <sys/sysmacros.h>
5370 _ACEOF
5371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5373 ac_status=$?
5374 grep -v '^ *+' conftest.er1 >conftest.err
5375 rm -f conftest.er1
5376 cat conftest.err >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } >/dev/null; then
5379 if test -s conftest.err; then
5380 ac_cpp_err=$ac_c_preproc_warn_flag
5381 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5382 else
5383 ac_cpp_err=
5385 else
5386 ac_cpp_err=yes
5388 if test -z "$ac_cpp_err"; then
5389 ac_header_preproc=yes
5390 else
5391 echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5394 ac_header_preproc=no
5396 rm -f conftest.err conftest.$ac_ext
5397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5398 echo "${ECHO_T}$ac_header_preproc" >&6
5400 # So? What about this header?
5401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5402 yes:no: )
5403 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
5404 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5405 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
5406 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
5407 ac_header_preproc=yes
5409 no:yes:* )
5410 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
5411 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
5412 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
5413 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
5414 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
5415 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
5416 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
5417 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
5418 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
5419 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
5420 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
5421 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
5423 cat <<\_ASBOX
5424 ## ------------------------------------------------ ##
5425 ## Report this to http://www.python.org/python-bugs ##
5426 ## ------------------------------------------------ ##
5427 _ASBOX
5429 sed "s/^/$as_me: WARNING: /" >&2
5431 esac
5432 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5433 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5434 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5436 else
5437 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
5439 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5440 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5443 if test $ac_cv_header_sys_sysmacros_h = yes; then
5445 cat >>confdefs.h <<\_ACEOF
5446 #define MAJOR_IN_SYSMACROS 1
5447 _ACEOF
5456 # On Solaris, term.h requires curses.h
5458 for ac_header in term.h
5460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5461 echo "$as_me:$LINENO: checking for $ac_header" >&5
5462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 else
5466 cat >conftest.$ac_ext <<_ACEOF
5467 /* confdefs.h. */
5468 _ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5473 #ifdef HAVE_CURSES_H
5474 #include <curses.h>
5475 #endif
5478 #include <$ac_header>
5479 _ACEOF
5480 rm -f conftest.$ac_objext
5481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5482 (eval $ac_compile) 2>conftest.er1
5483 ac_status=$?
5484 grep -v '^ *+' conftest.er1 >conftest.err
5485 rm -f conftest.er1
5486 cat conftest.err >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } &&
5489 { ac_try='test -z "$ac_c_werror_flag"
5490 || test ! -s conftest.err'
5491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5492 (eval $ac_try) 2>&5
5493 ac_status=$?
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); }; } &&
5496 { ac_try='test -s conftest.$ac_objext'
5497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5498 (eval $ac_try) 2>&5
5499 ac_status=$?
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); }; }; then
5502 eval "$as_ac_Header=yes"
5503 else
5504 echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.$ac_ext >&5
5507 eval "$as_ac_Header=no"
5509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5514 cat >>confdefs.h <<_ACEOF
5515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5516 _ACEOF
5520 done
5523 # On Linux, netlink.h requires asm/types.h
5525 for ac_header in linux/netlink.h
5527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5528 echo "$as_me:$LINENO: checking for $ac_header" >&5
5529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5531 echo $ECHO_N "(cached) $ECHO_C" >&6
5532 else
5533 cat >conftest.$ac_ext <<_ACEOF
5534 /* confdefs.h. */
5535 _ACEOF
5536 cat confdefs.h >>conftest.$ac_ext
5537 cat >>conftest.$ac_ext <<_ACEOF
5538 /* end confdefs.h. */
5540 #ifdef HAVE_ASM_TYPES_H
5541 #include <asm/types.h>
5542 #endif
5543 #ifdef HAVE_SYS_SOCKET_H
5544 #include <sys/socket.h>
5545 #endif
5548 #include <$ac_header>
5549 _ACEOF
5550 rm -f conftest.$ac_objext
5551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5552 (eval $ac_compile) 2>conftest.er1
5553 ac_status=$?
5554 grep -v '^ *+' conftest.er1 >conftest.err
5555 rm -f conftest.er1
5556 cat conftest.err >&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); } &&
5559 { ac_try='test -z "$ac_c_werror_flag"
5560 || test ! -s conftest.err'
5561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5562 (eval $ac_try) 2>&5
5563 ac_status=$?
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); }; } &&
5566 { ac_try='test -s conftest.$ac_objext'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 (eval $ac_try) 2>&5
5569 ac_status=$?
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; }; then
5572 eval "$as_ac_Header=yes"
5573 else
5574 echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.$ac_ext >&5
5577 eval "$as_ac_Header=no"
5579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5582 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5584 cat >>confdefs.h <<_ACEOF
5585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5586 _ACEOF
5590 done
5593 # checks for typedefs
5594 was_it_defined=no
5595 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
5596 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
5597 cat >conftest.$ac_ext <<_ACEOF
5598 /* confdefs.h. */
5599 _ACEOF
5600 cat confdefs.h >>conftest.$ac_ext
5601 cat >>conftest.$ac_ext <<_ACEOF
5602 /* end confdefs.h. */
5603 #include <time.h>
5605 _ACEOF
5606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5607 $EGREP "clock_t" >/dev/null 2>&1; then
5608 was_it_defined=yes
5609 else
5612 cat >>confdefs.h <<\_ACEOF
5613 #define clock_t long
5614 _ACEOF
5618 rm -f conftest*
5620 echo "$as_me:$LINENO: result: $was_it_defined" >&5
5621 echo "${ECHO_T}$was_it_defined" >&6
5623 # Check whether using makedev requires defining _OSF_SOURCE
5624 echo "$as_me:$LINENO: checking for makedev" >&5
5625 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
5626 cat >conftest.$ac_ext <<_ACEOF
5627 /* confdefs.h. */
5628 _ACEOF
5629 cat confdefs.h >>conftest.$ac_ext
5630 cat >>conftest.$ac_ext <<_ACEOF
5631 /* end confdefs.h. */
5632 #include <sys/types.h>
5634 main ()
5636 makedev(0, 0)
5638 return 0;
5640 _ACEOF
5641 rm -f conftest.$ac_objext conftest$ac_exeext
5642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5643 (eval $ac_link) 2>conftest.er1
5644 ac_status=$?
5645 grep -v '^ *+' conftest.er1 >conftest.err
5646 rm -f conftest.er1
5647 cat conftest.err >&5
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); } &&
5650 { ac_try='test -z "$ac_c_werror_flag"
5651 || test ! -s conftest.err'
5652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5653 (eval $ac_try) 2>&5
5654 ac_status=$?
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); }; } &&
5657 { ac_try='test -s conftest$ac_exeext'
5658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5659 (eval $ac_try) 2>&5
5660 ac_status=$?
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); }; }; then
5663 ac_cv_has_makedev=yes
5664 else
5665 echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.$ac_ext >&5
5668 ac_cv_has_makedev=no
5670 rm -f conftest.err conftest.$ac_objext \
5671 conftest$ac_exeext conftest.$ac_ext
5672 if test "$ac_cv_has_makedev" = "no"; then
5673 # we didn't link, try if _OSF_SOURCE will allow us to link
5674 cat >conftest.$ac_ext <<_ACEOF
5675 /* confdefs.h. */
5676 _ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h. */
5681 #define _OSF_SOURCE 1
5682 #include <sys/types.h>
5685 main ()
5687 makedev(0, 0)
5689 return 0;
5691 _ACEOF
5692 rm -f conftest.$ac_objext conftest$ac_exeext
5693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5694 (eval $ac_link) 2>conftest.er1
5695 ac_status=$?
5696 grep -v '^ *+' conftest.er1 >conftest.err
5697 rm -f conftest.er1
5698 cat conftest.err >&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } &&
5701 { ac_try='test -z "$ac_c_werror_flag"
5702 || test ! -s conftest.err'
5703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5704 (eval $ac_try) 2>&5
5705 ac_status=$?
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); }; } &&
5708 { ac_try='test -s conftest$ac_exeext'
5709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5710 (eval $ac_try) 2>&5
5711 ac_status=$?
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; }; then
5714 ac_cv_has_makedev=yes
5715 else
5716 echo "$as_me: failed program was:" >&5
5717 sed 's/^/| /' conftest.$ac_ext >&5
5719 ac_cv_has_makedev=no
5721 rm -f conftest.err conftest.$ac_objext \
5722 conftest$ac_exeext conftest.$ac_ext
5723 if test "$ac_cv_has_makedev" = "yes"; then
5725 cat >>confdefs.h <<\_ACEOF
5726 #define _OSF_SOURCE 1
5727 _ACEOF
5731 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
5732 echo "${ECHO_T}$ac_cv_has_makedev" >&6
5733 if test "$ac_cv_has_makedev" = "yes"; then
5735 cat >>confdefs.h <<\_ACEOF
5736 #define HAVE_MAKEDEV 1
5737 _ACEOF
5741 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5742 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5743 # defined, but the compiler does not support pragma redefine_extname,
5744 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5745 # structures (such as rlimit64) without declaring them. As a
5746 # work-around, disable LFS on such configurations
5748 use_lfs=yes
5749 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5750 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5751 cat >conftest.$ac_ext <<_ACEOF
5752 /* confdefs.h. */
5753 _ACEOF
5754 cat confdefs.h >>conftest.$ac_ext
5755 cat >>conftest.$ac_ext <<_ACEOF
5756 /* end confdefs.h. */
5758 #define _LARGEFILE_SOURCE 1
5759 #define _FILE_OFFSET_BITS 64
5760 #include <sys/resource.h>
5763 main ()
5765 struct rlimit foo;
5767 return 0;
5769 _ACEOF
5770 rm -f conftest.$ac_objext
5771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5772 (eval $ac_compile) 2>conftest.er1
5773 ac_status=$?
5774 grep -v '^ *+' conftest.er1 >conftest.err
5775 rm -f conftest.er1
5776 cat conftest.err >&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); } &&
5779 { ac_try='test -z "$ac_c_werror_flag"
5780 || test ! -s conftest.err'
5781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5782 (eval $ac_try) 2>&5
5783 ac_status=$?
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); }; } &&
5786 { ac_try='test -s conftest.$ac_objext'
5787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788 (eval $ac_try) 2>&5
5789 ac_status=$?
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; }; then
5792 sol_lfs_bug=no
5793 else
5794 echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.$ac_ext >&5
5797 sol_lfs_bug=yes
5799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5800 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5801 echo "${ECHO_T}$sol_lfs_bug" >&6
5802 if test "$sol_lfs_bug" = "yes"; then
5803 use_lfs=no
5806 if test "$use_lfs" = "yes"; then
5807 # Two defines needed to enable largefile support on various platforms
5808 # These may affect some typedefs
5810 cat >>confdefs.h <<\_ACEOF
5811 #define _LARGEFILE_SOURCE 1
5812 _ACEOF
5815 cat >>confdefs.h <<\_ACEOF
5816 #define _FILE_OFFSET_BITS 64
5817 _ACEOF
5821 # Add some code to confdefs.h so that the test for off_t works on SCO
5822 cat >> confdefs.h <<\EOF
5823 #if defined(SCO_DS)
5824 #undef _OFF_T
5825 #endif
5828 # Type availability checks
5829 echo "$as_me:$LINENO: checking for mode_t" >&5
5830 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5831 if test "${ac_cv_type_mode_t+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5833 else
5834 cat >conftest.$ac_ext <<_ACEOF
5835 /* confdefs.h. */
5836 _ACEOF
5837 cat confdefs.h >>conftest.$ac_ext
5838 cat >>conftest.$ac_ext <<_ACEOF
5839 /* end confdefs.h. */
5840 $ac_includes_default
5842 main ()
5844 if ((mode_t *) 0)
5845 return 0;
5846 if (sizeof (mode_t))
5847 return 0;
5849 return 0;
5851 _ACEOF
5852 rm -f conftest.$ac_objext
5853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5854 (eval $ac_compile) 2>conftest.er1
5855 ac_status=$?
5856 grep -v '^ *+' conftest.er1 >conftest.err
5857 rm -f conftest.er1
5858 cat conftest.err >&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } &&
5861 { ac_try='test -z "$ac_c_werror_flag"
5862 || test ! -s conftest.err'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864 (eval $ac_try) 2>&5
5865 ac_status=$?
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; } &&
5868 { ac_try='test -s conftest.$ac_objext'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870 (eval $ac_try) 2>&5
5871 ac_status=$?
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; }; then
5874 ac_cv_type_mode_t=yes
5875 else
5876 echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5879 ac_cv_type_mode_t=no
5881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5883 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5884 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5885 if test $ac_cv_type_mode_t = yes; then
5887 else
5889 cat >>confdefs.h <<_ACEOF
5890 #define mode_t int
5891 _ACEOF
5895 echo "$as_me:$LINENO: checking for off_t" >&5
5896 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5897 if test "${ac_cv_type_off_t+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5899 else
5900 cat >conftest.$ac_ext <<_ACEOF
5901 /* confdefs.h. */
5902 _ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5906 $ac_includes_default
5908 main ()
5910 if ((off_t *) 0)
5911 return 0;
5912 if (sizeof (off_t))
5913 return 0;
5915 return 0;
5917 _ACEOF
5918 rm -f conftest.$ac_objext
5919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5920 (eval $ac_compile) 2>conftest.er1
5921 ac_status=$?
5922 grep -v '^ *+' conftest.er1 >conftest.err
5923 rm -f conftest.er1
5924 cat conftest.err >&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } &&
5927 { ac_try='test -z "$ac_c_werror_flag"
5928 || test ! -s conftest.err'
5929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930 (eval $ac_try) 2>&5
5931 ac_status=$?
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); }; } &&
5934 { ac_try='test -s conftest.$ac_objext'
5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936 (eval $ac_try) 2>&5
5937 ac_status=$?
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; }; then
5940 ac_cv_type_off_t=yes
5941 else
5942 echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5945 ac_cv_type_off_t=no
5947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5949 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5950 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5951 if test $ac_cv_type_off_t = yes; then
5953 else
5955 cat >>confdefs.h <<_ACEOF
5956 #define off_t long
5957 _ACEOF
5961 echo "$as_me:$LINENO: checking for pid_t" >&5
5962 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5963 if test "${ac_cv_type_pid_t+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 else
5966 cat >conftest.$ac_ext <<_ACEOF
5967 /* confdefs.h. */
5968 _ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5972 $ac_includes_default
5974 main ()
5976 if ((pid_t *) 0)
5977 return 0;
5978 if (sizeof (pid_t))
5979 return 0;
5981 return 0;
5983 _ACEOF
5984 rm -f conftest.$ac_objext
5985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5986 (eval $ac_compile) 2>conftest.er1
5987 ac_status=$?
5988 grep -v '^ *+' conftest.er1 >conftest.err
5989 rm -f conftest.er1
5990 cat conftest.err >&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } &&
5993 { ac_try='test -z "$ac_c_werror_flag"
5994 || test ! -s conftest.err'
5995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5996 (eval $ac_try) 2>&5
5997 ac_status=$?
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }; } &&
6000 { ac_try='test -s conftest.$ac_objext'
6001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002 (eval $ac_try) 2>&5
6003 ac_status=$?
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); }; }; then
6006 ac_cv_type_pid_t=yes
6007 else
6008 echo "$as_me: failed program was:" >&5
6009 sed 's/^/| /' conftest.$ac_ext >&5
6011 ac_cv_type_pid_t=no
6013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6015 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6016 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6017 if test $ac_cv_type_pid_t = yes; then
6019 else
6021 cat >>confdefs.h <<_ACEOF
6022 #define pid_t int
6023 _ACEOF
6027 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6028 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6029 if test "${ac_cv_type_signal+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6031 else
6032 cat >conftest.$ac_ext <<_ACEOF
6033 /* confdefs.h. */
6034 _ACEOF
6035 cat confdefs.h >>conftest.$ac_ext
6036 cat >>conftest.$ac_ext <<_ACEOF
6037 /* end confdefs.h. */
6038 #include <sys/types.h>
6039 #include <signal.h>
6040 #ifdef signal
6041 # undef signal
6042 #endif
6043 #ifdef __cplusplus
6044 extern "C" void (*signal (int, void (*)(int)))(int);
6045 #else
6046 void (*signal ()) ();
6047 #endif
6050 main ()
6052 int i;
6054 return 0;
6056 _ACEOF
6057 rm -f conftest.$ac_objext
6058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6059 (eval $ac_compile) 2>conftest.er1
6060 ac_status=$?
6061 grep -v '^ *+' conftest.er1 >conftest.err
6062 rm -f conftest.er1
6063 cat conftest.err >&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); } &&
6066 { ac_try='test -z "$ac_c_werror_flag"
6067 || test ! -s conftest.err'
6068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6069 (eval $ac_try) 2>&5
6070 ac_status=$?
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); }; } &&
6073 { ac_try='test -s conftest.$ac_objext'
6074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075 (eval $ac_try) 2>&5
6076 ac_status=$?
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; }; then
6079 ac_cv_type_signal=void
6080 else
6081 echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6084 ac_cv_type_signal=int
6086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6088 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6089 echo "${ECHO_T}$ac_cv_type_signal" >&6
6091 cat >>confdefs.h <<_ACEOF
6092 #define RETSIGTYPE $ac_cv_type_signal
6093 _ACEOF
6096 echo "$as_me:$LINENO: checking for size_t" >&5
6097 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6098 if test "${ac_cv_type_size_t+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6100 else
6101 cat >conftest.$ac_ext <<_ACEOF
6102 /* confdefs.h. */
6103 _ACEOF
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6107 $ac_includes_default
6109 main ()
6111 if ((size_t *) 0)
6112 return 0;
6113 if (sizeof (size_t))
6114 return 0;
6116 return 0;
6118 _ACEOF
6119 rm -f conftest.$ac_objext
6120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6121 (eval $ac_compile) 2>conftest.er1
6122 ac_status=$?
6123 grep -v '^ *+' conftest.er1 >conftest.err
6124 rm -f conftest.er1
6125 cat conftest.err >&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } &&
6128 { ac_try='test -z "$ac_c_werror_flag"
6129 || test ! -s conftest.err'
6130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131 (eval $ac_try) 2>&5
6132 ac_status=$?
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }; } &&
6135 { ac_try='test -s conftest.$ac_objext'
6136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 (eval $ac_try) 2>&5
6138 ac_status=$?
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; }; then
6141 ac_cv_type_size_t=yes
6142 else
6143 echo "$as_me: failed program was:" >&5
6144 sed 's/^/| /' conftest.$ac_ext >&5
6146 ac_cv_type_size_t=no
6148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6150 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6151 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6152 if test $ac_cv_type_size_t = yes; then
6154 else
6156 cat >>confdefs.h <<_ACEOF
6157 #define size_t unsigned
6158 _ACEOF
6162 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6163 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6164 if test "${ac_cv_type_uid_t+set}" = set; then
6165 echo $ECHO_N "(cached) $ECHO_C" >&6
6166 else
6167 cat >conftest.$ac_ext <<_ACEOF
6168 /* confdefs.h. */
6169 _ACEOF
6170 cat confdefs.h >>conftest.$ac_ext
6171 cat >>conftest.$ac_ext <<_ACEOF
6172 /* end confdefs.h. */
6173 #include <sys/types.h>
6175 _ACEOF
6176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6177 $EGREP "uid_t" >/dev/null 2>&1; then
6178 ac_cv_type_uid_t=yes
6179 else
6180 ac_cv_type_uid_t=no
6182 rm -f conftest*
6185 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6186 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6187 if test $ac_cv_type_uid_t = no; then
6189 cat >>confdefs.h <<\_ACEOF
6190 #define uid_t int
6191 _ACEOF
6194 cat >>confdefs.h <<\_ACEOF
6195 #define gid_t int
6196 _ACEOF
6201 # Sizes of various common basic types
6202 # ANSI C requires sizeof(char) == 1, so no need to check it
6203 echo "$as_me:$LINENO: checking for int" >&5
6204 echo $ECHO_N "checking for int... $ECHO_C" >&6
6205 if test "${ac_cv_type_int+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6207 else
6208 cat >conftest.$ac_ext <<_ACEOF
6209 /* confdefs.h. */
6210 _ACEOF
6211 cat confdefs.h >>conftest.$ac_ext
6212 cat >>conftest.$ac_ext <<_ACEOF
6213 /* end confdefs.h. */
6214 $ac_includes_default
6216 main ()
6218 if ((int *) 0)
6219 return 0;
6220 if (sizeof (int))
6221 return 0;
6223 return 0;
6225 _ACEOF
6226 rm -f conftest.$ac_objext
6227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6228 (eval $ac_compile) 2>conftest.er1
6229 ac_status=$?
6230 grep -v '^ *+' conftest.er1 >conftest.err
6231 rm -f conftest.er1
6232 cat conftest.err >&5
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); } &&
6235 { ac_try='test -z "$ac_c_werror_flag"
6236 || test ! -s conftest.err'
6237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6238 (eval $ac_try) 2>&5
6239 ac_status=$?
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }; } &&
6242 { ac_try='test -s conftest.$ac_objext'
6243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6244 (eval $ac_try) 2>&5
6245 ac_status=$?
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); }; }; then
6248 ac_cv_type_int=yes
6249 else
6250 echo "$as_me: failed program was:" >&5
6251 sed 's/^/| /' conftest.$ac_ext >&5
6253 ac_cv_type_int=no
6255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6257 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6258 echo "${ECHO_T}$ac_cv_type_int" >&6
6260 echo "$as_me:$LINENO: checking size of int" >&5
6261 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6262 if test "${ac_cv_sizeof_int+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6264 else
6265 if test "$ac_cv_type_int" = yes; then
6266 # The cast to unsigned long works around a bug in the HP C Compiler
6267 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6268 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6269 # This bug is HP SR number 8606223364.
6270 if test "$cross_compiling" = yes; then
6271 # Depending upon the size, compute the lo and hi bounds.
6272 cat >conftest.$ac_ext <<_ACEOF
6273 /* confdefs.h. */
6274 _ACEOF
6275 cat confdefs.h >>conftest.$ac_ext
6276 cat >>conftest.$ac_ext <<_ACEOF
6277 /* end confdefs.h. */
6278 $ac_includes_default
6280 main ()
6282 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6283 test_array [0] = 0
6286 return 0;
6288 _ACEOF
6289 rm -f conftest.$ac_objext
6290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6291 (eval $ac_compile) 2>conftest.er1
6292 ac_status=$?
6293 grep -v '^ *+' conftest.er1 >conftest.err
6294 rm -f conftest.er1
6295 cat conftest.err >&5
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); } &&
6298 { ac_try='test -z "$ac_c_werror_flag"
6299 || test ! -s conftest.err'
6300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6301 (eval $ac_try) 2>&5
6302 ac_status=$?
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); }; } &&
6305 { ac_try='test -s conftest.$ac_objext'
6306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6307 (eval $ac_try) 2>&5
6308 ac_status=$?
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); }; }; then
6311 ac_lo=0 ac_mid=0
6312 while :; do
6313 cat >conftest.$ac_ext <<_ACEOF
6314 /* confdefs.h. */
6315 _ACEOF
6316 cat confdefs.h >>conftest.$ac_ext
6317 cat >>conftest.$ac_ext <<_ACEOF
6318 /* end confdefs.h. */
6319 $ac_includes_default
6321 main ()
6323 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6324 test_array [0] = 0
6327 return 0;
6329 _ACEOF
6330 rm -f conftest.$ac_objext
6331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6332 (eval $ac_compile) 2>conftest.er1
6333 ac_status=$?
6334 grep -v '^ *+' conftest.er1 >conftest.err
6335 rm -f conftest.er1
6336 cat conftest.err >&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); } &&
6339 { ac_try='test -z "$ac_c_werror_flag"
6340 || test ! -s conftest.err'
6341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6342 (eval $ac_try) 2>&5
6343 ac_status=$?
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); }; } &&
6346 { ac_try='test -s conftest.$ac_objext'
6347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6348 (eval $ac_try) 2>&5
6349 ac_status=$?
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); }; }; then
6352 ac_hi=$ac_mid; break
6353 else
6354 echo "$as_me: failed program was:" >&5
6355 sed 's/^/| /' conftest.$ac_ext >&5
6357 ac_lo=`expr $ac_mid + 1`
6358 if test $ac_lo -le $ac_mid; then
6359 ac_lo= ac_hi=
6360 break
6362 ac_mid=`expr 2 '*' $ac_mid + 1`
6364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6365 done
6366 else
6367 echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.$ac_ext >&5
6370 cat >conftest.$ac_ext <<_ACEOF
6371 /* confdefs.h. */
6372 _ACEOF
6373 cat confdefs.h >>conftest.$ac_ext
6374 cat >>conftest.$ac_ext <<_ACEOF
6375 /* end confdefs.h. */
6376 $ac_includes_default
6378 main ()
6380 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6381 test_array [0] = 0
6384 return 0;
6386 _ACEOF
6387 rm -f conftest.$ac_objext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389 (eval $ac_compile) 2>conftest.er1
6390 ac_status=$?
6391 grep -v '^ *+' conftest.er1 >conftest.err
6392 rm -f conftest.er1
6393 cat conftest.err >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } &&
6396 { ac_try='test -z "$ac_c_werror_flag"
6397 || test ! -s conftest.err'
6398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6399 (eval $ac_try) 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=-1 ac_mid=-1
6410 while :; do
6411 cat >conftest.$ac_ext <<_ACEOF
6412 /* confdefs.h. */
6413 _ACEOF
6414 cat confdefs.h >>conftest.$ac_ext
6415 cat >>conftest.$ac_ext <<_ACEOF
6416 /* end confdefs.h. */
6417 $ac_includes_default
6419 main ()
6421 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6422 test_array [0] = 0
6425 return 0;
6427 _ACEOF
6428 rm -f conftest.$ac_objext
6429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6430 (eval $ac_compile) 2>conftest.er1
6431 ac_status=$?
6432 grep -v '^ *+' conftest.er1 >conftest.err
6433 rm -f conftest.er1
6434 cat conftest.err >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } &&
6437 { ac_try='test -z "$ac_c_werror_flag"
6438 || test ! -s conftest.err'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440 (eval $ac_try) 2>&5
6441 ac_status=$?
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; } &&
6444 { ac_try='test -s conftest.$ac_objext'
6445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446 (eval $ac_try) 2>&5
6447 ac_status=$?
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; }; then
6450 ac_lo=$ac_mid; break
6451 else
6452 echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.$ac_ext >&5
6455 ac_hi=`expr '(' $ac_mid ')' - 1`
6456 if test $ac_mid -le $ac_hi; then
6457 ac_lo= ac_hi=
6458 break
6460 ac_mid=`expr 2 '*' $ac_mid`
6462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6463 done
6464 else
6465 echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.$ac_ext >&5
6468 ac_lo= ac_hi=
6470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6473 # Binary search between lo and hi bounds.
6474 while test "x$ac_lo" != "x$ac_hi"; do
6475 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6476 cat >conftest.$ac_ext <<_ACEOF
6477 /* confdefs.h. */
6478 _ACEOF
6479 cat confdefs.h >>conftest.$ac_ext
6480 cat >>conftest.$ac_ext <<_ACEOF
6481 /* end confdefs.h. */
6482 $ac_includes_default
6484 main ()
6486 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6487 test_array [0] = 0
6490 return 0;
6492 _ACEOF
6493 rm -f conftest.$ac_objext
6494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6495 (eval $ac_compile) 2>conftest.er1
6496 ac_status=$?
6497 grep -v '^ *+' conftest.er1 >conftest.err
6498 rm -f conftest.er1
6499 cat conftest.err >&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); } &&
6502 { ac_try='test -z "$ac_c_werror_flag"
6503 || test ! -s conftest.err'
6504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6505 (eval $ac_try) 2>&5
6506 ac_status=$?
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }; } &&
6509 { ac_try='test -s conftest.$ac_objext'
6510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6511 (eval $ac_try) 2>&5
6512 ac_status=$?
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); }; }; then
6515 ac_hi=$ac_mid
6516 else
6517 echo "$as_me: failed program was:" >&5
6518 sed 's/^/| /' conftest.$ac_ext >&5
6520 ac_lo=`expr '(' $ac_mid ')' + 1`
6522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6523 done
6524 case $ac_lo in
6525 ?*) ac_cv_sizeof_int=$ac_lo;;
6526 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6527 See \`config.log' for more details." >&5
6528 echo "$as_me: error: cannot compute sizeof (int), 77
6529 See \`config.log' for more details." >&2;}
6530 { (exit 1); exit 1; }; } ;;
6531 esac
6532 else
6533 if test "$cross_compiling" = yes; then
6534 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6535 See \`config.log' for more details." >&5
6536 echo "$as_me: error: cannot run test program while cross compiling
6537 See \`config.log' for more details." >&2;}
6538 { (exit 1); exit 1; }; }
6539 else
6540 cat >conftest.$ac_ext <<_ACEOF
6541 /* confdefs.h. */
6542 _ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6546 $ac_includes_default
6547 long longval () { return (long) (sizeof (int)); }
6548 unsigned long ulongval () { return (long) (sizeof (int)); }
6549 #include <stdio.h>
6550 #include <stdlib.h>
6552 main ()
6555 FILE *f = fopen ("conftest.val", "w");
6556 if (! f)
6557 exit (1);
6558 if (((long) (sizeof (int))) < 0)
6560 long i = longval ();
6561 if (i != ((long) (sizeof (int))))
6562 exit (1);
6563 fprintf (f, "%ld\n", i);
6565 else
6567 unsigned long i = ulongval ();
6568 if (i != ((long) (sizeof (int))))
6569 exit (1);
6570 fprintf (f, "%lu\n", i);
6572 exit (ferror (f) || fclose (f) != 0);
6575 return 0;
6577 _ACEOF
6578 rm -f conftest$ac_exeext
6579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6580 (eval $ac_link) 2>&5
6581 ac_status=$?
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585 (eval $ac_try) 2>&5
6586 ac_status=$?
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; }; then
6589 ac_cv_sizeof_int=`cat conftest.val`
6590 else
6591 echo "$as_me: program exited with status $ac_status" >&5
6592 echo "$as_me: failed program was:" >&5
6593 sed 's/^/| /' conftest.$ac_ext >&5
6595 ( exit $ac_status )
6596 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6597 See \`config.log' for more details." >&5
6598 echo "$as_me: error: cannot compute sizeof (int), 77
6599 See \`config.log' for more details." >&2;}
6600 { (exit 1); exit 1; }; }
6602 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6605 rm -f conftest.val
6606 else
6607 ac_cv_sizeof_int=0
6610 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6611 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6612 cat >>confdefs.h <<_ACEOF
6613 #define SIZEOF_INT $ac_cv_sizeof_int
6614 _ACEOF
6617 echo "$as_me:$LINENO: checking for long" >&5
6618 echo $ECHO_N "checking for long... $ECHO_C" >&6
6619 if test "${ac_cv_type_long+set}" = set; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
6621 else
6622 cat >conftest.$ac_ext <<_ACEOF
6623 /* confdefs.h. */
6624 _ACEOF
6625 cat confdefs.h >>conftest.$ac_ext
6626 cat >>conftest.$ac_ext <<_ACEOF
6627 /* end confdefs.h. */
6628 $ac_includes_default
6630 main ()
6632 if ((long *) 0)
6633 return 0;
6634 if (sizeof (long))
6635 return 0;
6637 return 0;
6639 _ACEOF
6640 rm -f conftest.$ac_objext
6641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6642 (eval $ac_compile) 2>conftest.er1
6643 ac_status=$?
6644 grep -v '^ *+' conftest.er1 >conftest.err
6645 rm -f conftest.er1
6646 cat conftest.err >&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } &&
6649 { ac_try='test -z "$ac_c_werror_flag"
6650 || test ! -s conftest.err'
6651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652 (eval $ac_try) 2>&5
6653 ac_status=$?
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; } &&
6656 { ac_try='test -s conftest.$ac_objext'
6657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658 (eval $ac_try) 2>&5
6659 ac_status=$?
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; }; then
6662 ac_cv_type_long=yes
6663 else
6664 echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.$ac_ext >&5
6667 ac_cv_type_long=no
6669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6671 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6672 echo "${ECHO_T}$ac_cv_type_long" >&6
6674 echo "$as_me:$LINENO: checking size of long" >&5
6675 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6676 if test "${ac_cv_sizeof_long+set}" = set; then
6677 echo $ECHO_N "(cached) $ECHO_C" >&6
6678 else
6679 if test "$ac_cv_type_long" = yes; then
6680 # The cast to unsigned long works around a bug in the HP C Compiler
6681 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6682 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6683 # This bug is HP SR number 8606223364.
6684 if test "$cross_compiling" = yes; then
6685 # Depending upon the size, compute the lo and hi bounds.
6686 cat >conftest.$ac_ext <<_ACEOF
6687 /* confdefs.h. */
6688 _ACEOF
6689 cat confdefs.h >>conftest.$ac_ext
6690 cat >>conftest.$ac_ext <<_ACEOF
6691 /* end confdefs.h. */
6692 $ac_includes_default
6694 main ()
6696 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6697 test_array [0] = 0
6700 return 0;
6702 _ACEOF
6703 rm -f conftest.$ac_objext
6704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6705 (eval $ac_compile) 2>conftest.er1
6706 ac_status=$?
6707 grep -v '^ *+' conftest.er1 >conftest.err
6708 rm -f conftest.er1
6709 cat conftest.err >&5
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); } &&
6712 { ac_try='test -z "$ac_c_werror_flag"
6713 || test ! -s conftest.err'
6714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6715 (eval $ac_try) 2>&5
6716 ac_status=$?
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); }; } &&
6719 { ac_try='test -s conftest.$ac_objext'
6720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6721 (eval $ac_try) 2>&5
6722 ac_status=$?
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); }; }; then
6725 ac_lo=0 ac_mid=0
6726 while :; do
6727 cat >conftest.$ac_ext <<_ACEOF
6728 /* confdefs.h. */
6729 _ACEOF
6730 cat confdefs.h >>conftest.$ac_ext
6731 cat >>conftest.$ac_ext <<_ACEOF
6732 /* end confdefs.h. */
6733 $ac_includes_default
6735 main ()
6737 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6738 test_array [0] = 0
6741 return 0;
6743 _ACEOF
6744 rm -f conftest.$ac_objext
6745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6746 (eval $ac_compile) 2>conftest.er1
6747 ac_status=$?
6748 grep -v '^ *+' conftest.er1 >conftest.err
6749 rm -f conftest.er1
6750 cat conftest.err >&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } &&
6753 { ac_try='test -z "$ac_c_werror_flag"
6754 || test ! -s conftest.err'
6755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6756 (eval $ac_try) 2>&5
6757 ac_status=$?
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); }; } &&
6760 { ac_try='test -s conftest.$ac_objext'
6761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6762 (eval $ac_try) 2>&5
6763 ac_status=$?
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); }; }; then
6766 ac_hi=$ac_mid; break
6767 else
6768 echo "$as_me: failed program was:" >&5
6769 sed 's/^/| /' conftest.$ac_ext >&5
6771 ac_lo=`expr $ac_mid + 1`
6772 if test $ac_lo -le $ac_mid; then
6773 ac_lo= ac_hi=
6774 break
6776 ac_mid=`expr 2 '*' $ac_mid + 1`
6778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6779 done
6780 else
6781 echo "$as_me: failed program was:" >&5
6782 sed 's/^/| /' conftest.$ac_ext >&5
6784 cat >conftest.$ac_ext <<_ACEOF
6785 /* confdefs.h. */
6786 _ACEOF
6787 cat confdefs.h >>conftest.$ac_ext
6788 cat >>conftest.$ac_ext <<_ACEOF
6789 /* end confdefs.h. */
6790 $ac_includes_default
6792 main ()
6794 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6795 test_array [0] = 0
6798 return 0;
6800 _ACEOF
6801 rm -f conftest.$ac_objext
6802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6803 (eval $ac_compile) 2>conftest.er1
6804 ac_status=$?
6805 grep -v '^ *+' conftest.er1 >conftest.err
6806 rm -f conftest.er1
6807 cat conftest.err >&5
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); } &&
6810 { ac_try='test -z "$ac_c_werror_flag"
6811 || test ! -s conftest.err'
6812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6813 (eval $ac_try) 2>&5
6814 ac_status=$?
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); }; } &&
6817 { ac_try='test -s conftest.$ac_objext'
6818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6819 (eval $ac_try) 2>&5
6820 ac_status=$?
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); }; }; then
6823 ac_hi=-1 ac_mid=-1
6824 while :; do
6825 cat >conftest.$ac_ext <<_ACEOF
6826 /* confdefs.h. */
6827 _ACEOF
6828 cat confdefs.h >>conftest.$ac_ext
6829 cat >>conftest.$ac_ext <<_ACEOF
6830 /* end confdefs.h. */
6831 $ac_includes_default
6833 main ()
6835 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6836 test_array [0] = 0
6839 return 0;
6841 _ACEOF
6842 rm -f conftest.$ac_objext
6843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6844 (eval $ac_compile) 2>conftest.er1
6845 ac_status=$?
6846 grep -v '^ *+' conftest.er1 >conftest.err
6847 rm -f conftest.er1
6848 cat conftest.err >&5
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); } &&
6851 { ac_try='test -z "$ac_c_werror_flag"
6852 || test ! -s conftest.err'
6853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6854 (eval $ac_try) 2>&5
6855 ac_status=$?
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); }; } &&
6858 { ac_try='test -s conftest.$ac_objext'
6859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6860 (eval $ac_try) 2>&5
6861 ac_status=$?
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); }; }; then
6864 ac_lo=$ac_mid; break
6865 else
6866 echo "$as_me: failed program was:" >&5
6867 sed 's/^/| /' conftest.$ac_ext >&5
6869 ac_hi=`expr '(' $ac_mid ')' - 1`
6870 if test $ac_mid -le $ac_hi; then
6871 ac_lo= ac_hi=
6872 break
6874 ac_mid=`expr 2 '*' $ac_mid`
6876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6877 done
6878 else
6879 echo "$as_me: failed program was:" >&5
6880 sed 's/^/| /' conftest.$ac_ext >&5
6882 ac_lo= ac_hi=
6884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6887 # Binary search between lo and hi bounds.
6888 while test "x$ac_lo" != "x$ac_hi"; do
6889 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6890 cat >conftest.$ac_ext <<_ACEOF
6891 /* confdefs.h. */
6892 _ACEOF
6893 cat confdefs.h >>conftest.$ac_ext
6894 cat >>conftest.$ac_ext <<_ACEOF
6895 /* end confdefs.h. */
6896 $ac_includes_default
6898 main ()
6900 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6901 test_array [0] = 0
6904 return 0;
6906 _ACEOF
6907 rm -f conftest.$ac_objext
6908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6909 (eval $ac_compile) 2>conftest.er1
6910 ac_status=$?
6911 grep -v '^ *+' conftest.er1 >conftest.err
6912 rm -f conftest.er1
6913 cat conftest.err >&5
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); } &&
6916 { ac_try='test -z "$ac_c_werror_flag"
6917 || test ! -s conftest.err'
6918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6919 (eval $ac_try) 2>&5
6920 ac_status=$?
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); }; } &&
6923 { ac_try='test -s conftest.$ac_objext'
6924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6925 (eval $ac_try) 2>&5
6926 ac_status=$?
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); }; }; then
6929 ac_hi=$ac_mid
6930 else
6931 echo "$as_me: failed program was:" >&5
6932 sed 's/^/| /' conftest.$ac_ext >&5
6934 ac_lo=`expr '(' $ac_mid ')' + 1`
6936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6937 done
6938 case $ac_lo in
6939 ?*) ac_cv_sizeof_long=$ac_lo;;
6940 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6941 See \`config.log' for more details." >&5
6942 echo "$as_me: error: cannot compute sizeof (long), 77
6943 See \`config.log' for more details." >&2;}
6944 { (exit 1); exit 1; }; } ;;
6945 esac
6946 else
6947 if test "$cross_compiling" = yes; then
6948 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6949 See \`config.log' for more details." >&5
6950 echo "$as_me: error: cannot run test program while cross compiling
6951 See \`config.log' for more details." >&2;}
6952 { (exit 1); exit 1; }; }
6953 else
6954 cat >conftest.$ac_ext <<_ACEOF
6955 /* confdefs.h. */
6956 _ACEOF
6957 cat confdefs.h >>conftest.$ac_ext
6958 cat >>conftest.$ac_ext <<_ACEOF
6959 /* end confdefs.h. */
6960 $ac_includes_default
6961 long longval () { return (long) (sizeof (long)); }
6962 unsigned long ulongval () { return (long) (sizeof (long)); }
6963 #include <stdio.h>
6964 #include <stdlib.h>
6966 main ()
6969 FILE *f = fopen ("conftest.val", "w");
6970 if (! f)
6971 exit (1);
6972 if (((long) (sizeof (long))) < 0)
6974 long i = longval ();
6975 if (i != ((long) (sizeof (long))))
6976 exit (1);
6977 fprintf (f, "%ld\n", i);
6979 else
6981 unsigned long i = ulongval ();
6982 if (i != ((long) (sizeof (long))))
6983 exit (1);
6984 fprintf (f, "%lu\n", i);
6986 exit (ferror (f) || fclose (f) != 0);
6989 return 0;
6991 _ACEOF
6992 rm -f conftest$ac_exeext
6993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6994 (eval $ac_link) 2>&5
6995 ac_status=$?
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6999 (eval $ac_try) 2>&5
7000 ac_status=$?
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); }; }; then
7003 ac_cv_sizeof_long=`cat conftest.val`
7004 else
7005 echo "$as_me: program exited with status $ac_status" >&5
7006 echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7009 ( exit $ac_status )
7010 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7011 See \`config.log' for more details." >&5
7012 echo "$as_me: error: cannot compute sizeof (long), 77
7013 See \`config.log' for more details." >&2;}
7014 { (exit 1); exit 1; }; }
7016 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7019 rm -f conftest.val
7020 else
7021 ac_cv_sizeof_long=0
7024 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7025 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7026 cat >>confdefs.h <<_ACEOF
7027 #define SIZEOF_LONG $ac_cv_sizeof_long
7028 _ACEOF
7031 echo "$as_me:$LINENO: checking for void *" >&5
7032 echo $ECHO_N "checking for void *... $ECHO_C" >&6
7033 if test "${ac_cv_type_void_p+set}" = set; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7035 else
7036 cat >conftest.$ac_ext <<_ACEOF
7037 /* confdefs.h. */
7038 _ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h. */
7042 $ac_includes_default
7044 main ()
7046 if ((void * *) 0)
7047 return 0;
7048 if (sizeof (void *))
7049 return 0;
7051 return 0;
7053 _ACEOF
7054 rm -f conftest.$ac_objext
7055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7056 (eval $ac_compile) 2>conftest.er1
7057 ac_status=$?
7058 grep -v '^ *+' conftest.er1 >conftest.err
7059 rm -f conftest.er1
7060 cat conftest.err >&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } &&
7063 { ac_try='test -z "$ac_c_werror_flag"
7064 || test ! -s conftest.err'
7065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066 (eval $ac_try) 2>&5
7067 ac_status=$?
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); }; } &&
7070 { ac_try='test -s conftest.$ac_objext'
7071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7072 (eval $ac_try) 2>&5
7073 ac_status=$?
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); }; }; then
7076 ac_cv_type_void_p=yes
7077 else
7078 echo "$as_me: failed program was:" >&5
7079 sed 's/^/| /' conftest.$ac_ext >&5
7081 ac_cv_type_void_p=no
7083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7085 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7086 echo "${ECHO_T}$ac_cv_type_void_p" >&6
7088 echo "$as_me:$LINENO: checking size of void *" >&5
7089 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7090 if test "${ac_cv_sizeof_void_p+set}" = set; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
7092 else
7093 if test "$ac_cv_type_void_p" = yes; then
7094 # The cast to unsigned long works around a bug in the HP C Compiler
7095 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7096 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7097 # This bug is HP SR number 8606223364.
7098 if test "$cross_compiling" = yes; then
7099 # Depending upon the size, compute the lo and hi bounds.
7100 cat >conftest.$ac_ext <<_ACEOF
7101 /* confdefs.h. */
7102 _ACEOF
7103 cat confdefs.h >>conftest.$ac_ext
7104 cat >>conftest.$ac_ext <<_ACEOF
7105 /* end confdefs.h. */
7106 $ac_includes_default
7108 main ()
7110 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
7111 test_array [0] = 0
7114 return 0;
7116 _ACEOF
7117 rm -f conftest.$ac_objext
7118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7119 (eval $ac_compile) 2>conftest.er1
7120 ac_status=$?
7121 grep -v '^ *+' conftest.er1 >conftest.err
7122 rm -f conftest.er1
7123 cat conftest.err >&5
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); } &&
7126 { ac_try='test -z "$ac_c_werror_flag"
7127 || test ! -s conftest.err'
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); }; } &&
7133 { ac_try='test -s conftest.$ac_objext'
7134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7135 (eval $ac_try) 2>&5
7136 ac_status=$?
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); }; }; then
7139 ac_lo=0 ac_mid=0
7140 while :; do
7141 cat >conftest.$ac_ext <<_ACEOF
7142 /* confdefs.h. */
7143 _ACEOF
7144 cat confdefs.h >>conftest.$ac_ext
7145 cat >>conftest.$ac_ext <<_ACEOF
7146 /* end confdefs.h. */
7147 $ac_includes_default
7149 main ()
7151 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7152 test_array [0] = 0
7155 return 0;
7157 _ACEOF
7158 rm -f conftest.$ac_objext
7159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7160 (eval $ac_compile) 2>conftest.er1
7161 ac_status=$?
7162 grep -v '^ *+' conftest.er1 >conftest.err
7163 rm -f conftest.er1
7164 cat conftest.err >&5
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); } &&
7167 { ac_try='test -z "$ac_c_werror_flag"
7168 || test ! -s conftest.err'
7169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7170 (eval $ac_try) 2>&5
7171 ac_status=$?
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); }; } &&
7174 { ac_try='test -s conftest.$ac_objext'
7175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7176 (eval $ac_try) 2>&5
7177 ac_status=$?
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); }; }; then
7180 ac_hi=$ac_mid; break
7181 else
7182 echo "$as_me: failed program was:" >&5
7183 sed 's/^/| /' conftest.$ac_ext >&5
7185 ac_lo=`expr $ac_mid + 1`
7186 if test $ac_lo -le $ac_mid; then
7187 ac_lo= ac_hi=
7188 break
7190 ac_mid=`expr 2 '*' $ac_mid + 1`
7192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7193 done
7194 else
7195 echo "$as_me: failed program was:" >&5
7196 sed 's/^/| /' conftest.$ac_ext >&5
7198 cat >conftest.$ac_ext <<_ACEOF
7199 /* confdefs.h. */
7200 _ACEOF
7201 cat confdefs.h >>conftest.$ac_ext
7202 cat >>conftest.$ac_ext <<_ACEOF
7203 /* end confdefs.h. */
7204 $ac_includes_default
7206 main ()
7208 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
7209 test_array [0] = 0
7212 return 0;
7214 _ACEOF
7215 rm -f conftest.$ac_objext
7216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7217 (eval $ac_compile) 2>conftest.er1
7218 ac_status=$?
7219 grep -v '^ *+' conftest.er1 >conftest.err
7220 rm -f conftest.er1
7221 cat conftest.err >&5
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); } &&
7224 { ac_try='test -z "$ac_c_werror_flag"
7225 || test ! -s conftest.err'
7226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227 (eval $ac_try) 2>&5
7228 ac_status=$?
7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); }; } &&
7231 { ac_try='test -s conftest.$ac_objext'
7232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7233 (eval $ac_try) 2>&5
7234 ac_status=$?
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); }; }; then
7237 ac_hi=-1 ac_mid=-1
7238 while :; do
7239 cat >conftest.$ac_ext <<_ACEOF
7240 /* confdefs.h. */
7241 _ACEOF
7242 cat confdefs.h >>conftest.$ac_ext
7243 cat >>conftest.$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7245 $ac_includes_default
7247 main ()
7249 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
7250 test_array [0] = 0
7253 return 0;
7255 _ACEOF
7256 rm -f conftest.$ac_objext
7257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7258 (eval $ac_compile) 2>conftest.er1
7259 ac_status=$?
7260 grep -v '^ *+' conftest.er1 >conftest.err
7261 rm -f conftest.er1
7262 cat conftest.err >&5
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); } &&
7265 { ac_try='test -z "$ac_c_werror_flag"
7266 || test ! -s conftest.err'
7267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7268 (eval $ac_try) 2>&5
7269 ac_status=$?
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); }; } &&
7272 { ac_try='test -s conftest.$ac_objext'
7273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7274 (eval $ac_try) 2>&5
7275 ac_status=$?
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); }; }; then
7278 ac_lo=$ac_mid; break
7279 else
7280 echo "$as_me: failed program was:" >&5
7281 sed 's/^/| /' conftest.$ac_ext >&5
7283 ac_hi=`expr '(' $ac_mid ')' - 1`
7284 if test $ac_mid -le $ac_hi; then
7285 ac_lo= ac_hi=
7286 break
7288 ac_mid=`expr 2 '*' $ac_mid`
7290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7291 done
7292 else
7293 echo "$as_me: failed program was:" >&5
7294 sed 's/^/| /' conftest.$ac_ext >&5
7296 ac_lo= ac_hi=
7298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7301 # Binary search between lo and hi bounds.
7302 while test "x$ac_lo" != "x$ac_hi"; do
7303 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7304 cat >conftest.$ac_ext <<_ACEOF
7305 /* confdefs.h. */
7306 _ACEOF
7307 cat confdefs.h >>conftest.$ac_ext
7308 cat >>conftest.$ac_ext <<_ACEOF
7309 /* end confdefs.h. */
7310 $ac_includes_default
7312 main ()
7314 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7315 test_array [0] = 0
7318 return 0;
7320 _ACEOF
7321 rm -f conftest.$ac_objext
7322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7323 (eval $ac_compile) 2>conftest.er1
7324 ac_status=$?
7325 grep -v '^ *+' conftest.er1 >conftest.err
7326 rm -f conftest.er1
7327 cat conftest.err >&5
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); } &&
7330 { ac_try='test -z "$ac_c_werror_flag"
7331 || test ! -s conftest.err'
7332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7333 (eval $ac_try) 2>&5
7334 ac_status=$?
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); }; } &&
7337 { ac_try='test -s conftest.$ac_objext'
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_hi=$ac_mid
7344 else
7345 echo "$as_me: failed program was:" >&5
7346 sed 's/^/| /' conftest.$ac_ext >&5
7348 ac_lo=`expr '(' $ac_mid ')' + 1`
7350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7351 done
7352 case $ac_lo in
7353 ?*) ac_cv_sizeof_void_p=$ac_lo;;
7354 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7355 See \`config.log' for more details." >&5
7356 echo "$as_me: error: cannot compute sizeof (void *), 77
7357 See \`config.log' for more details." >&2;}
7358 { (exit 1); exit 1; }; } ;;
7359 esac
7360 else
7361 if test "$cross_compiling" = yes; then
7362 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7363 See \`config.log' for more details." >&5
7364 echo "$as_me: error: cannot run test program while cross compiling
7365 See \`config.log' for more details." >&2;}
7366 { (exit 1); exit 1; }; }
7367 else
7368 cat >conftest.$ac_ext <<_ACEOF
7369 /* confdefs.h. */
7370 _ACEOF
7371 cat confdefs.h >>conftest.$ac_ext
7372 cat >>conftest.$ac_ext <<_ACEOF
7373 /* end confdefs.h. */
7374 $ac_includes_default
7375 long longval () { return (long) (sizeof (void *)); }
7376 unsigned long ulongval () { return (long) (sizeof (void *)); }
7377 #include <stdio.h>
7378 #include <stdlib.h>
7380 main ()
7383 FILE *f = fopen ("conftest.val", "w");
7384 if (! f)
7385 exit (1);
7386 if (((long) (sizeof (void *))) < 0)
7388 long i = longval ();
7389 if (i != ((long) (sizeof (void *))))
7390 exit (1);
7391 fprintf (f, "%ld\n", i);
7393 else
7395 unsigned long i = ulongval ();
7396 if (i != ((long) (sizeof (void *))))
7397 exit (1);
7398 fprintf (f, "%lu\n", i);
7400 exit (ferror (f) || fclose (f) != 0);
7403 return 0;
7405 _ACEOF
7406 rm -f conftest$ac_exeext
7407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7408 (eval $ac_link) 2>&5
7409 ac_status=$?
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413 (eval $ac_try) 2>&5
7414 ac_status=$?
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); }; }; then
7417 ac_cv_sizeof_void_p=`cat conftest.val`
7418 else
7419 echo "$as_me: program exited with status $ac_status" >&5
7420 echo "$as_me: failed program was:" >&5
7421 sed 's/^/| /' conftest.$ac_ext >&5
7423 ( exit $ac_status )
7424 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7425 See \`config.log' for more details." >&5
7426 echo "$as_me: error: cannot compute sizeof (void *), 77
7427 See \`config.log' for more details." >&2;}
7428 { (exit 1); exit 1; }; }
7430 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7433 rm -f conftest.val
7434 else
7435 ac_cv_sizeof_void_p=0
7438 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7439 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7440 cat >>confdefs.h <<_ACEOF
7441 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7442 _ACEOF
7445 echo "$as_me:$LINENO: checking for short" >&5
7446 echo $ECHO_N "checking for short... $ECHO_C" >&6
7447 if test "${ac_cv_type_short+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7449 else
7450 cat >conftest.$ac_ext <<_ACEOF
7451 /* confdefs.h. */
7452 _ACEOF
7453 cat confdefs.h >>conftest.$ac_ext
7454 cat >>conftest.$ac_ext <<_ACEOF
7455 /* end confdefs.h. */
7456 $ac_includes_default
7458 main ()
7460 if ((short *) 0)
7461 return 0;
7462 if (sizeof (short))
7463 return 0;
7465 return 0;
7467 _ACEOF
7468 rm -f conftest.$ac_objext
7469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7470 (eval $ac_compile) 2>conftest.er1
7471 ac_status=$?
7472 grep -v '^ *+' conftest.er1 >conftest.err
7473 rm -f conftest.er1
7474 cat conftest.err >&5
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); } &&
7477 { ac_try='test -z "$ac_c_werror_flag"
7478 || test ! -s conftest.err'
7479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7480 (eval $ac_try) 2>&5
7481 ac_status=$?
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); }; } &&
7484 { ac_try='test -s conftest.$ac_objext'
7485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486 (eval $ac_try) 2>&5
7487 ac_status=$?
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; }; then
7490 ac_cv_type_short=yes
7491 else
7492 echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.$ac_ext >&5
7495 ac_cv_type_short=no
7497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7499 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7500 echo "${ECHO_T}$ac_cv_type_short" >&6
7502 echo "$as_me:$LINENO: checking size of short" >&5
7503 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7504 if test "${ac_cv_sizeof_short+set}" = set; then
7505 echo $ECHO_N "(cached) $ECHO_C" >&6
7506 else
7507 if test "$ac_cv_type_short" = yes; then
7508 # The cast to unsigned long works around a bug in the HP C Compiler
7509 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7510 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7511 # This bug is HP SR number 8606223364.
7512 if test "$cross_compiling" = yes; then
7513 # Depending upon the size, compute the lo and hi bounds.
7514 cat >conftest.$ac_ext <<_ACEOF
7515 /* confdefs.h. */
7516 _ACEOF
7517 cat confdefs.h >>conftest.$ac_ext
7518 cat >>conftest.$ac_ext <<_ACEOF
7519 /* end confdefs.h. */
7520 $ac_includes_default
7522 main ()
7524 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 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>conftest.er1
7534 ac_status=$?
7535 grep -v '^ *+' conftest.er1 >conftest.err
7536 rm -f conftest.er1
7537 cat conftest.err >&5
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } &&
7540 { ac_try='test -z "$ac_c_werror_flag"
7541 || test ! -s conftest.err'
7542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7543 (eval $ac_try) 2>&5
7544 ac_status=$?
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); }; } &&
7547 { ac_try='test -s conftest.$ac_objext'
7548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7549 (eval $ac_try) 2>&5
7550 ac_status=$?
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; }; then
7553 ac_lo=0 ac_mid=0
7554 while :; do
7555 cat >conftest.$ac_ext <<_ACEOF
7556 /* confdefs.h. */
7557 _ACEOF
7558 cat confdefs.h >>conftest.$ac_ext
7559 cat >>conftest.$ac_ext <<_ACEOF
7560 /* end confdefs.h. */
7561 $ac_includes_default
7563 main ()
7565 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7566 test_array [0] = 0
7569 return 0;
7571 _ACEOF
7572 rm -f conftest.$ac_objext
7573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7574 (eval $ac_compile) 2>conftest.er1
7575 ac_status=$?
7576 grep -v '^ *+' conftest.er1 >conftest.err
7577 rm -f conftest.er1
7578 cat conftest.err >&5
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); } &&
7581 { ac_try='test -z "$ac_c_werror_flag"
7582 || test ! -s conftest.err'
7583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584 (eval $ac_try) 2>&5
7585 ac_status=$?
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); }; } &&
7588 { ac_try='test -s conftest.$ac_objext'
7589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590 (eval $ac_try) 2>&5
7591 ac_status=$?
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); }; }; then
7594 ac_hi=$ac_mid; break
7595 else
7596 echo "$as_me: failed program was:" >&5
7597 sed 's/^/| /' conftest.$ac_ext >&5
7599 ac_lo=`expr $ac_mid + 1`
7600 if test $ac_lo -le $ac_mid; then
7601 ac_lo= ac_hi=
7602 break
7604 ac_mid=`expr 2 '*' $ac_mid + 1`
7606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7607 done
7608 else
7609 echo "$as_me: failed program was:" >&5
7610 sed 's/^/| /' conftest.$ac_ext >&5
7612 cat >conftest.$ac_ext <<_ACEOF
7613 /* confdefs.h. */
7614 _ACEOF
7615 cat confdefs.h >>conftest.$ac_ext
7616 cat >>conftest.$ac_ext <<_ACEOF
7617 /* end confdefs.h. */
7618 $ac_includes_default
7620 main ()
7622 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7623 test_array [0] = 0
7626 return 0;
7628 _ACEOF
7629 rm -f conftest.$ac_objext
7630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7631 (eval $ac_compile) 2>conftest.er1
7632 ac_status=$?
7633 grep -v '^ *+' conftest.er1 >conftest.err
7634 rm -f conftest.er1
7635 cat conftest.err >&5
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); } &&
7638 { ac_try='test -z "$ac_c_werror_flag"
7639 || test ! -s conftest.err'
7640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7641 (eval $ac_try) 2>&5
7642 ac_status=$?
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); }; } &&
7645 { ac_try='test -s conftest.$ac_objext'
7646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7647 (eval $ac_try) 2>&5
7648 ac_status=$?
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); }; }; then
7651 ac_hi=-1 ac_mid=-1
7652 while :; do
7653 cat >conftest.$ac_ext <<_ACEOF
7654 /* confdefs.h. */
7655 _ACEOF
7656 cat confdefs.h >>conftest.$ac_ext
7657 cat >>conftest.$ac_ext <<_ACEOF
7658 /* end confdefs.h. */
7659 $ac_includes_default
7661 main ()
7663 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7664 test_array [0] = 0
7667 return 0;
7669 _ACEOF
7670 rm -f conftest.$ac_objext
7671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7672 (eval $ac_compile) 2>conftest.er1
7673 ac_status=$?
7674 grep -v '^ *+' conftest.er1 >conftest.err
7675 rm -f conftest.er1
7676 cat conftest.err >&5
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); } &&
7679 { ac_try='test -z "$ac_c_werror_flag"
7680 || test ! -s conftest.err'
7681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7682 (eval $ac_try) 2>&5
7683 ac_status=$?
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); }; } &&
7686 { ac_try='test -s conftest.$ac_objext'
7687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7688 (eval $ac_try) 2>&5
7689 ac_status=$?
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); }; }; then
7692 ac_lo=$ac_mid; break
7693 else
7694 echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.$ac_ext >&5
7697 ac_hi=`expr '(' $ac_mid ')' - 1`
7698 if test $ac_mid -le $ac_hi; then
7699 ac_lo= ac_hi=
7700 break
7702 ac_mid=`expr 2 '*' $ac_mid`
7704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7705 done
7706 else
7707 echo "$as_me: failed program was:" >&5
7708 sed 's/^/| /' conftest.$ac_ext >&5
7710 ac_lo= ac_hi=
7712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7715 # Binary search between lo and hi bounds.
7716 while test "x$ac_lo" != "x$ac_hi"; do
7717 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7718 cat >conftest.$ac_ext <<_ACEOF
7719 /* confdefs.h. */
7720 _ACEOF
7721 cat confdefs.h >>conftest.$ac_ext
7722 cat >>conftest.$ac_ext <<_ACEOF
7723 /* end confdefs.h. */
7724 $ac_includes_default
7726 main ()
7728 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7729 test_array [0] = 0
7732 return 0;
7734 _ACEOF
7735 rm -f conftest.$ac_objext
7736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7737 (eval $ac_compile) 2>conftest.er1
7738 ac_status=$?
7739 grep -v '^ *+' conftest.er1 >conftest.err
7740 rm -f conftest.er1
7741 cat conftest.err >&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } &&
7744 { ac_try='test -z "$ac_c_werror_flag"
7745 || test ! -s conftest.err'
7746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7747 (eval $ac_try) 2>&5
7748 ac_status=$?
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); }; } &&
7751 { ac_try='test -s conftest.$ac_objext'
7752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7753 (eval $ac_try) 2>&5
7754 ac_status=$?
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); }; }; then
7757 ac_hi=$ac_mid
7758 else
7759 echo "$as_me: failed program was:" >&5
7760 sed 's/^/| /' conftest.$ac_ext >&5
7762 ac_lo=`expr '(' $ac_mid ')' + 1`
7764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7765 done
7766 case $ac_lo in
7767 ?*) ac_cv_sizeof_short=$ac_lo;;
7768 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7769 See \`config.log' for more details." >&5
7770 echo "$as_me: error: cannot compute sizeof (short), 77
7771 See \`config.log' for more details." >&2;}
7772 { (exit 1); exit 1; }; } ;;
7773 esac
7774 else
7775 if test "$cross_compiling" = yes; then
7776 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7777 See \`config.log' for more details." >&5
7778 echo "$as_me: error: cannot run test program while cross compiling
7779 See \`config.log' for more details." >&2;}
7780 { (exit 1); exit 1; }; }
7781 else
7782 cat >conftest.$ac_ext <<_ACEOF
7783 /* confdefs.h. */
7784 _ACEOF
7785 cat confdefs.h >>conftest.$ac_ext
7786 cat >>conftest.$ac_ext <<_ACEOF
7787 /* end confdefs.h. */
7788 $ac_includes_default
7789 long longval () { return (long) (sizeof (short)); }
7790 unsigned long ulongval () { return (long) (sizeof (short)); }
7791 #include <stdio.h>
7792 #include <stdlib.h>
7794 main ()
7797 FILE *f = fopen ("conftest.val", "w");
7798 if (! f)
7799 exit (1);
7800 if (((long) (sizeof (short))) < 0)
7802 long i = longval ();
7803 if (i != ((long) (sizeof (short))))
7804 exit (1);
7805 fprintf (f, "%ld\n", i);
7807 else
7809 unsigned long i = ulongval ();
7810 if (i != ((long) (sizeof (short))))
7811 exit (1);
7812 fprintf (f, "%lu\n", i);
7814 exit (ferror (f) || fclose (f) != 0);
7817 return 0;
7819 _ACEOF
7820 rm -f conftest$ac_exeext
7821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7822 (eval $ac_link) 2>&5
7823 ac_status=$?
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7827 (eval $ac_try) 2>&5
7828 ac_status=$?
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); }; }; then
7831 ac_cv_sizeof_short=`cat conftest.val`
7832 else
7833 echo "$as_me: program exited with status $ac_status" >&5
7834 echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.$ac_ext >&5
7837 ( exit $ac_status )
7838 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7839 See \`config.log' for more details." >&5
7840 echo "$as_me: error: cannot compute sizeof (short), 77
7841 See \`config.log' for more details." >&2;}
7842 { (exit 1); exit 1; }; }
7844 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7847 rm -f conftest.val
7848 else
7849 ac_cv_sizeof_short=0
7852 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7853 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7854 cat >>confdefs.h <<_ACEOF
7855 #define SIZEOF_SHORT $ac_cv_sizeof_short
7856 _ACEOF
7859 echo "$as_me:$LINENO: checking for float" >&5
7860 echo $ECHO_N "checking for float... $ECHO_C" >&6
7861 if test "${ac_cv_type_float+set}" = set; then
7862 echo $ECHO_N "(cached) $ECHO_C" >&6
7863 else
7864 cat >conftest.$ac_ext <<_ACEOF
7865 /* confdefs.h. */
7866 _ACEOF
7867 cat confdefs.h >>conftest.$ac_ext
7868 cat >>conftest.$ac_ext <<_ACEOF
7869 /* end confdefs.h. */
7870 $ac_includes_default
7872 main ()
7874 if ((float *) 0)
7875 return 0;
7876 if (sizeof (float))
7877 return 0;
7879 return 0;
7881 _ACEOF
7882 rm -f conftest.$ac_objext
7883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7884 (eval $ac_compile) 2>conftest.er1
7885 ac_status=$?
7886 grep -v '^ *+' conftest.er1 >conftest.err
7887 rm -f conftest.er1
7888 cat conftest.err >&5
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); } &&
7891 { ac_try='test -z "$ac_c_werror_flag"
7892 || test ! -s conftest.err'
7893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7894 (eval $ac_try) 2>&5
7895 ac_status=$?
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); }; } &&
7898 { ac_try='test -s conftest.$ac_objext'
7899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7900 (eval $ac_try) 2>&5
7901 ac_status=$?
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); }; }; then
7904 ac_cv_type_float=yes
7905 else
7906 echo "$as_me: failed program was:" >&5
7907 sed 's/^/| /' conftest.$ac_ext >&5
7909 ac_cv_type_float=no
7911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7913 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
7914 echo "${ECHO_T}$ac_cv_type_float" >&6
7916 echo "$as_me:$LINENO: checking size of float" >&5
7917 echo $ECHO_N "checking size of float... $ECHO_C" >&6
7918 if test "${ac_cv_sizeof_float+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 else
7921 if test "$ac_cv_type_float" = yes; then
7922 # The cast to unsigned long works around a bug in the HP C Compiler
7923 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7924 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7925 # This bug is HP SR number 8606223364.
7926 if test "$cross_compiling" = yes; then
7927 # Depending upon the size, compute the lo and hi bounds.
7928 cat >conftest.$ac_ext <<_ACEOF
7929 /* confdefs.h. */
7930 _ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h. */
7934 $ac_includes_default
7936 main ()
7938 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
7939 test_array [0] = 0
7942 return 0;
7944 _ACEOF
7945 rm -f conftest.$ac_objext
7946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7947 (eval $ac_compile) 2>conftest.er1
7948 ac_status=$?
7949 grep -v '^ *+' conftest.er1 >conftest.err
7950 rm -f conftest.er1
7951 cat conftest.err >&5
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); } &&
7954 { ac_try='test -z "$ac_c_werror_flag"
7955 || test ! -s conftest.err'
7956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7957 (eval $ac_try) 2>&5
7958 ac_status=$?
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); }; } &&
7961 { ac_try='test -s conftest.$ac_objext'
7962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7963 (eval $ac_try) 2>&5
7964 ac_status=$?
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); }; }; then
7967 ac_lo=0 ac_mid=0
7968 while :; do
7969 cat >conftest.$ac_ext <<_ACEOF
7970 /* confdefs.h. */
7971 _ACEOF
7972 cat confdefs.h >>conftest.$ac_ext
7973 cat >>conftest.$ac_ext <<_ACEOF
7974 /* end confdefs.h. */
7975 $ac_includes_default
7977 main ()
7979 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
7980 test_array [0] = 0
7983 return 0;
7985 _ACEOF
7986 rm -f conftest.$ac_objext
7987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7988 (eval $ac_compile) 2>conftest.er1
7989 ac_status=$?
7990 grep -v '^ *+' conftest.er1 >conftest.err
7991 rm -f conftest.er1
7992 cat conftest.err >&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); } &&
7995 { ac_try='test -z "$ac_c_werror_flag"
7996 || test ! -s conftest.err'
7997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7998 (eval $ac_try) 2>&5
7999 ac_status=$?
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); }; } &&
8002 { ac_try='test -s conftest.$ac_objext'
8003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8004 (eval $ac_try) 2>&5
8005 ac_status=$?
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); }; }; then
8008 ac_hi=$ac_mid; break
8009 else
8010 echo "$as_me: failed program was:" >&5
8011 sed 's/^/| /' conftest.$ac_ext >&5
8013 ac_lo=`expr $ac_mid + 1`
8014 if test $ac_lo -le $ac_mid; then
8015 ac_lo= ac_hi=
8016 break
8018 ac_mid=`expr 2 '*' $ac_mid + 1`
8020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8021 done
8022 else
8023 echo "$as_me: failed program was:" >&5
8024 sed 's/^/| /' conftest.$ac_ext >&5
8026 cat >conftest.$ac_ext <<_ACEOF
8027 /* confdefs.h. */
8028 _ACEOF
8029 cat confdefs.h >>conftest.$ac_ext
8030 cat >>conftest.$ac_ext <<_ACEOF
8031 /* end confdefs.h. */
8032 $ac_includes_default
8034 main ()
8036 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
8037 test_array [0] = 0
8040 return 0;
8042 _ACEOF
8043 rm -f conftest.$ac_objext
8044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8045 (eval $ac_compile) 2>conftest.er1
8046 ac_status=$?
8047 grep -v '^ *+' conftest.er1 >conftest.err
8048 rm -f conftest.er1
8049 cat conftest.err >&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } &&
8052 { ac_try='test -z "$ac_c_werror_flag"
8053 || test ! -s conftest.err'
8054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8055 (eval $ac_try) 2>&5
8056 ac_status=$?
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); }; } &&
8059 { ac_try='test -s conftest.$ac_objext'
8060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8061 (eval $ac_try) 2>&5
8062 ac_status=$?
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); }; }; then
8065 ac_hi=-1 ac_mid=-1
8066 while :; do
8067 cat >conftest.$ac_ext <<_ACEOF
8068 /* confdefs.h. */
8069 _ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h. */
8073 $ac_includes_default
8075 main ()
8077 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
8078 test_array [0] = 0
8081 return 0;
8083 _ACEOF
8084 rm -f conftest.$ac_objext
8085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8086 (eval $ac_compile) 2>conftest.er1
8087 ac_status=$?
8088 grep -v '^ *+' conftest.er1 >conftest.err
8089 rm -f conftest.er1
8090 cat conftest.err >&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); } &&
8093 { ac_try='test -z "$ac_c_werror_flag"
8094 || test ! -s conftest.err'
8095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8096 (eval $ac_try) 2>&5
8097 ac_status=$?
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); }; } &&
8100 { ac_try='test -s conftest.$ac_objext'
8101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8102 (eval $ac_try) 2>&5
8103 ac_status=$?
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); }; }; then
8106 ac_lo=$ac_mid; break
8107 else
8108 echo "$as_me: failed program was:" >&5
8109 sed 's/^/| /' conftest.$ac_ext >&5
8111 ac_hi=`expr '(' $ac_mid ')' - 1`
8112 if test $ac_mid -le $ac_hi; then
8113 ac_lo= ac_hi=
8114 break
8116 ac_mid=`expr 2 '*' $ac_mid`
8118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8119 done
8120 else
8121 echo "$as_me: failed program was:" >&5
8122 sed 's/^/| /' conftest.$ac_ext >&5
8124 ac_lo= ac_hi=
8126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8129 # Binary search between lo and hi bounds.
8130 while test "x$ac_lo" != "x$ac_hi"; do
8131 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8132 cat >conftest.$ac_ext <<_ACEOF
8133 /* confdefs.h. */
8134 _ACEOF
8135 cat confdefs.h >>conftest.$ac_ext
8136 cat >>conftest.$ac_ext <<_ACEOF
8137 /* end confdefs.h. */
8138 $ac_includes_default
8140 main ()
8142 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8143 test_array [0] = 0
8146 return 0;
8148 _ACEOF
8149 rm -f conftest.$ac_objext
8150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8151 (eval $ac_compile) 2>conftest.er1
8152 ac_status=$?
8153 grep -v '^ *+' conftest.er1 >conftest.err
8154 rm -f conftest.er1
8155 cat conftest.err >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); } &&
8158 { ac_try='test -z "$ac_c_werror_flag"
8159 || test ! -s conftest.err'
8160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8161 (eval $ac_try) 2>&5
8162 ac_status=$?
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); }; } &&
8165 { ac_try='test -s conftest.$ac_objext'
8166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8167 (eval $ac_try) 2>&5
8168 ac_status=$?
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); }; }; then
8171 ac_hi=$ac_mid
8172 else
8173 echo "$as_me: failed program was:" >&5
8174 sed 's/^/| /' conftest.$ac_ext >&5
8176 ac_lo=`expr '(' $ac_mid ')' + 1`
8178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8179 done
8180 case $ac_lo in
8181 ?*) ac_cv_sizeof_float=$ac_lo;;
8182 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8183 See \`config.log' for more details." >&5
8184 echo "$as_me: error: cannot compute sizeof (float), 77
8185 See \`config.log' for more details." >&2;}
8186 { (exit 1); exit 1; }; } ;;
8187 esac
8188 else
8189 if test "$cross_compiling" = yes; then
8190 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8191 See \`config.log' for more details." >&5
8192 echo "$as_me: error: cannot run test program while cross compiling
8193 See \`config.log' for more details." >&2;}
8194 { (exit 1); exit 1; }; }
8195 else
8196 cat >conftest.$ac_ext <<_ACEOF
8197 /* confdefs.h. */
8198 _ACEOF
8199 cat confdefs.h >>conftest.$ac_ext
8200 cat >>conftest.$ac_ext <<_ACEOF
8201 /* end confdefs.h. */
8202 $ac_includes_default
8203 long longval () { return (long) (sizeof (float)); }
8204 unsigned long ulongval () { return (long) (sizeof (float)); }
8205 #include <stdio.h>
8206 #include <stdlib.h>
8208 main ()
8211 FILE *f = fopen ("conftest.val", "w");
8212 if (! f)
8213 exit (1);
8214 if (((long) (sizeof (float))) < 0)
8216 long i = longval ();
8217 if (i != ((long) (sizeof (float))))
8218 exit (1);
8219 fprintf (f, "%ld\n", i);
8221 else
8223 unsigned long i = ulongval ();
8224 if (i != ((long) (sizeof (float))))
8225 exit (1);
8226 fprintf (f, "%lu\n", i);
8228 exit (ferror (f) || fclose (f) != 0);
8231 return 0;
8233 _ACEOF
8234 rm -f conftest$ac_exeext
8235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8236 (eval $ac_link) 2>&5
8237 ac_status=$?
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8241 (eval $ac_try) 2>&5
8242 ac_status=$?
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); }; }; then
8245 ac_cv_sizeof_float=`cat conftest.val`
8246 else
8247 echo "$as_me: program exited with status $ac_status" >&5
8248 echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.$ac_ext >&5
8251 ( exit $ac_status )
8252 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8253 See \`config.log' for more details." >&5
8254 echo "$as_me: error: cannot compute sizeof (float), 77
8255 See \`config.log' for more details." >&2;}
8256 { (exit 1); exit 1; }; }
8258 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8261 rm -f conftest.val
8262 else
8263 ac_cv_sizeof_float=0
8266 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8267 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
8268 cat >>confdefs.h <<_ACEOF
8269 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8270 _ACEOF
8273 echo "$as_me:$LINENO: checking for double" >&5
8274 echo $ECHO_N "checking for double... $ECHO_C" >&6
8275 if test "${ac_cv_type_double+set}" = set; then
8276 echo $ECHO_N "(cached) $ECHO_C" >&6
8277 else
8278 cat >conftest.$ac_ext <<_ACEOF
8279 /* confdefs.h. */
8280 _ACEOF
8281 cat confdefs.h >>conftest.$ac_ext
8282 cat >>conftest.$ac_ext <<_ACEOF
8283 /* end confdefs.h. */
8284 $ac_includes_default
8286 main ()
8288 if ((double *) 0)
8289 return 0;
8290 if (sizeof (double))
8291 return 0;
8293 return 0;
8295 _ACEOF
8296 rm -f conftest.$ac_objext
8297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8298 (eval $ac_compile) 2>conftest.er1
8299 ac_status=$?
8300 grep -v '^ *+' conftest.er1 >conftest.err
8301 rm -f conftest.er1
8302 cat conftest.err >&5
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); } &&
8305 { ac_try='test -z "$ac_c_werror_flag"
8306 || test ! -s conftest.err'
8307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8308 (eval $ac_try) 2>&5
8309 ac_status=$?
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); }; } &&
8312 { ac_try='test -s conftest.$ac_objext'
8313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8314 (eval $ac_try) 2>&5
8315 ac_status=$?
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); }; }; then
8318 ac_cv_type_double=yes
8319 else
8320 echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8323 ac_cv_type_double=no
8325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8327 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8328 echo "${ECHO_T}$ac_cv_type_double" >&6
8330 echo "$as_me:$LINENO: checking size of double" >&5
8331 echo $ECHO_N "checking size of double... $ECHO_C" >&6
8332 if test "${ac_cv_sizeof_double+set}" = set; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
8334 else
8335 if test "$ac_cv_type_double" = yes; then
8336 # The cast to unsigned long works around a bug in the HP C Compiler
8337 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8338 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8339 # This bug is HP SR number 8606223364.
8340 if test "$cross_compiling" = yes; then
8341 # Depending upon the size, compute the lo and hi bounds.
8342 cat >conftest.$ac_ext <<_ACEOF
8343 /* confdefs.h. */
8344 _ACEOF
8345 cat confdefs.h >>conftest.$ac_ext
8346 cat >>conftest.$ac_ext <<_ACEOF
8347 /* end confdefs.h. */
8348 $ac_includes_default
8350 main ()
8352 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
8353 test_array [0] = 0
8356 return 0;
8358 _ACEOF
8359 rm -f conftest.$ac_objext
8360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8361 (eval $ac_compile) 2>conftest.er1
8362 ac_status=$?
8363 grep -v '^ *+' conftest.er1 >conftest.err
8364 rm -f conftest.er1
8365 cat conftest.err >&5
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); } &&
8368 { ac_try='test -z "$ac_c_werror_flag"
8369 || test ! -s conftest.err'
8370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8371 (eval $ac_try) 2>&5
8372 ac_status=$?
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); }; } &&
8375 { ac_try='test -s conftest.$ac_objext'
8376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8377 (eval $ac_try) 2>&5
8378 ac_status=$?
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); }; }; then
8381 ac_lo=0 ac_mid=0
8382 while :; do
8383 cat >conftest.$ac_ext <<_ACEOF
8384 /* confdefs.h. */
8385 _ACEOF
8386 cat confdefs.h >>conftest.$ac_ext
8387 cat >>conftest.$ac_ext <<_ACEOF
8388 /* end confdefs.h. */
8389 $ac_includes_default
8391 main ()
8393 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8394 test_array [0] = 0
8397 return 0;
8399 _ACEOF
8400 rm -f conftest.$ac_objext
8401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8402 (eval $ac_compile) 2>conftest.er1
8403 ac_status=$?
8404 grep -v '^ *+' conftest.er1 >conftest.err
8405 rm -f conftest.er1
8406 cat conftest.err >&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); } &&
8409 { ac_try='test -z "$ac_c_werror_flag"
8410 || test ! -s conftest.err'
8411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8412 (eval $ac_try) 2>&5
8413 ac_status=$?
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; } &&
8416 { ac_try='test -s conftest.$ac_objext'
8417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8418 (eval $ac_try) 2>&5
8419 ac_status=$?
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); }; }; then
8422 ac_hi=$ac_mid; break
8423 else
8424 echo "$as_me: failed program was:" >&5
8425 sed 's/^/| /' conftest.$ac_ext >&5
8427 ac_lo=`expr $ac_mid + 1`
8428 if test $ac_lo -le $ac_mid; then
8429 ac_lo= ac_hi=
8430 break
8432 ac_mid=`expr 2 '*' $ac_mid + 1`
8434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8435 done
8436 else
8437 echo "$as_me: failed program was:" >&5
8438 sed 's/^/| /' conftest.$ac_ext >&5
8440 cat >conftest.$ac_ext <<_ACEOF
8441 /* confdefs.h. */
8442 _ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8446 $ac_includes_default
8448 main ()
8450 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
8451 test_array [0] = 0
8454 return 0;
8456 _ACEOF
8457 rm -f conftest.$ac_objext
8458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8459 (eval $ac_compile) 2>conftest.er1
8460 ac_status=$?
8461 grep -v '^ *+' conftest.er1 >conftest.err
8462 rm -f conftest.er1
8463 cat conftest.err >&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); } &&
8466 { ac_try='test -z "$ac_c_werror_flag"
8467 || test ! -s conftest.err'
8468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8469 (eval $ac_try) 2>&5
8470 ac_status=$?
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }; } &&
8473 { ac_try='test -s conftest.$ac_objext'
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_hi=-1 ac_mid=-1
8480 while :; do
8481 cat >conftest.$ac_ext <<_ACEOF
8482 /* confdefs.h. */
8483 _ACEOF
8484 cat confdefs.h >>conftest.$ac_ext
8485 cat >>conftest.$ac_ext <<_ACEOF
8486 /* end confdefs.h. */
8487 $ac_includes_default
8489 main ()
8491 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
8492 test_array [0] = 0
8495 return 0;
8497 _ACEOF
8498 rm -f conftest.$ac_objext
8499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8500 (eval $ac_compile) 2>conftest.er1
8501 ac_status=$?
8502 grep -v '^ *+' conftest.er1 >conftest.err
8503 rm -f conftest.er1
8504 cat conftest.err >&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } &&
8507 { ac_try='test -z "$ac_c_werror_flag"
8508 || test ! -s conftest.err'
8509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8510 (eval $ac_try) 2>&5
8511 ac_status=$?
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); }; } &&
8514 { ac_try='test -s conftest.$ac_objext'
8515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8516 (eval $ac_try) 2>&5
8517 ac_status=$?
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); }; }; then
8520 ac_lo=$ac_mid; break
8521 else
8522 echo "$as_me: failed program was:" >&5
8523 sed 's/^/| /' conftest.$ac_ext >&5
8525 ac_hi=`expr '(' $ac_mid ')' - 1`
8526 if test $ac_mid -le $ac_hi; then
8527 ac_lo= ac_hi=
8528 break
8530 ac_mid=`expr 2 '*' $ac_mid`
8532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8533 done
8534 else
8535 echo "$as_me: failed program was:" >&5
8536 sed 's/^/| /' conftest.$ac_ext >&5
8538 ac_lo= ac_hi=
8540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8543 # Binary search between lo and hi bounds.
8544 while test "x$ac_lo" != "x$ac_hi"; do
8545 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8546 cat >conftest.$ac_ext <<_ACEOF
8547 /* confdefs.h. */
8548 _ACEOF
8549 cat confdefs.h >>conftest.$ac_ext
8550 cat >>conftest.$ac_ext <<_ACEOF
8551 /* end confdefs.h. */
8552 $ac_includes_default
8554 main ()
8556 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8557 test_array [0] = 0
8560 return 0;
8562 _ACEOF
8563 rm -f conftest.$ac_objext
8564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8565 (eval $ac_compile) 2>conftest.er1
8566 ac_status=$?
8567 grep -v '^ *+' conftest.er1 >conftest.err
8568 rm -f conftest.er1
8569 cat conftest.err >&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); } &&
8572 { ac_try='test -z "$ac_c_werror_flag"
8573 || test ! -s conftest.err'
8574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8575 (eval $ac_try) 2>&5
8576 ac_status=$?
8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); }; } &&
8579 { ac_try='test -s conftest.$ac_objext'
8580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8581 (eval $ac_try) 2>&5
8582 ac_status=$?
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); }; }; then
8585 ac_hi=$ac_mid
8586 else
8587 echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.$ac_ext >&5
8590 ac_lo=`expr '(' $ac_mid ')' + 1`
8592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8593 done
8594 case $ac_lo in
8595 ?*) ac_cv_sizeof_double=$ac_lo;;
8596 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8597 See \`config.log' for more details." >&5
8598 echo "$as_me: error: cannot compute sizeof (double), 77
8599 See \`config.log' for more details." >&2;}
8600 { (exit 1); exit 1; }; } ;;
8601 esac
8602 else
8603 if test "$cross_compiling" = yes; then
8604 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8605 See \`config.log' for more details." >&5
8606 echo "$as_me: error: cannot run test program while cross compiling
8607 See \`config.log' for more details." >&2;}
8608 { (exit 1); exit 1; }; }
8609 else
8610 cat >conftest.$ac_ext <<_ACEOF
8611 /* confdefs.h. */
8612 _ACEOF
8613 cat confdefs.h >>conftest.$ac_ext
8614 cat >>conftest.$ac_ext <<_ACEOF
8615 /* end confdefs.h. */
8616 $ac_includes_default
8617 long longval () { return (long) (sizeof (double)); }
8618 unsigned long ulongval () { return (long) (sizeof (double)); }
8619 #include <stdio.h>
8620 #include <stdlib.h>
8622 main ()
8625 FILE *f = fopen ("conftest.val", "w");
8626 if (! f)
8627 exit (1);
8628 if (((long) (sizeof (double))) < 0)
8630 long i = longval ();
8631 if (i != ((long) (sizeof (double))))
8632 exit (1);
8633 fprintf (f, "%ld\n", i);
8635 else
8637 unsigned long i = ulongval ();
8638 if (i != ((long) (sizeof (double))))
8639 exit (1);
8640 fprintf (f, "%lu\n", i);
8642 exit (ferror (f) || fclose (f) != 0);
8645 return 0;
8647 _ACEOF
8648 rm -f conftest$ac_exeext
8649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8650 (eval $ac_link) 2>&5
8651 ac_status=$?
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8655 (eval $ac_try) 2>&5
8656 ac_status=$?
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); }; }; then
8659 ac_cv_sizeof_double=`cat conftest.val`
8660 else
8661 echo "$as_me: program exited with status $ac_status" >&5
8662 echo "$as_me: failed program was:" >&5
8663 sed 's/^/| /' conftest.$ac_ext >&5
8665 ( exit $ac_status )
8666 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8667 See \`config.log' for more details." >&5
8668 echo "$as_me: error: cannot compute sizeof (double), 77
8669 See \`config.log' for more details." >&2;}
8670 { (exit 1); exit 1; }; }
8672 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8675 rm -f conftest.val
8676 else
8677 ac_cv_sizeof_double=0
8680 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
8681 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
8682 cat >>confdefs.h <<_ACEOF
8683 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8684 _ACEOF
8687 echo "$as_me:$LINENO: checking for fpos_t" >&5
8688 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
8689 if test "${ac_cv_type_fpos_t+set}" = set; then
8690 echo $ECHO_N "(cached) $ECHO_C" >&6
8691 else
8692 cat >conftest.$ac_ext <<_ACEOF
8693 /* confdefs.h. */
8694 _ACEOF
8695 cat confdefs.h >>conftest.$ac_ext
8696 cat >>conftest.$ac_ext <<_ACEOF
8697 /* end confdefs.h. */
8698 $ac_includes_default
8700 main ()
8702 if ((fpos_t *) 0)
8703 return 0;
8704 if (sizeof (fpos_t))
8705 return 0;
8707 return 0;
8709 _ACEOF
8710 rm -f conftest.$ac_objext
8711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8712 (eval $ac_compile) 2>conftest.er1
8713 ac_status=$?
8714 grep -v '^ *+' conftest.er1 >conftest.err
8715 rm -f conftest.er1
8716 cat conftest.err >&5
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); } &&
8719 { ac_try='test -z "$ac_c_werror_flag"
8720 || test ! -s conftest.err'
8721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722 (eval $ac_try) 2>&5
8723 ac_status=$?
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; } &&
8726 { ac_try='test -s conftest.$ac_objext'
8727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8728 (eval $ac_try) 2>&5
8729 ac_status=$?
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); }; }; then
8732 ac_cv_type_fpos_t=yes
8733 else
8734 echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.$ac_ext >&5
8737 ac_cv_type_fpos_t=no
8739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8741 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
8742 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
8744 echo "$as_me:$LINENO: checking size of fpos_t" >&5
8745 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8746 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8747 echo $ECHO_N "(cached) $ECHO_C" >&6
8748 else
8749 if test "$ac_cv_type_fpos_t" = yes; then
8750 # The cast to unsigned long works around a bug in the HP C Compiler
8751 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8752 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8753 # This bug is HP SR number 8606223364.
8754 if test "$cross_compiling" = yes; then
8755 # Depending upon the size, compute the lo and hi bounds.
8756 cat >conftest.$ac_ext <<_ACEOF
8757 /* confdefs.h. */
8758 _ACEOF
8759 cat confdefs.h >>conftest.$ac_ext
8760 cat >>conftest.$ac_ext <<_ACEOF
8761 /* end confdefs.h. */
8762 $ac_includes_default
8764 main ()
8766 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8767 test_array [0] = 0
8770 return 0;
8772 _ACEOF
8773 rm -f conftest.$ac_objext
8774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8775 (eval $ac_compile) 2>conftest.er1
8776 ac_status=$?
8777 grep -v '^ *+' conftest.er1 >conftest.err
8778 rm -f conftest.er1
8779 cat conftest.err >&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); } &&
8782 { ac_try='test -z "$ac_c_werror_flag"
8783 || test ! -s conftest.err'
8784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8785 (eval $ac_try) 2>&5
8786 ac_status=$?
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); }; } &&
8789 { ac_try='test -s conftest.$ac_objext'
8790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8791 (eval $ac_try) 2>&5
8792 ac_status=$?
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); }; }; then
8795 ac_lo=0 ac_mid=0
8796 while :; do
8797 cat >conftest.$ac_ext <<_ACEOF
8798 /* confdefs.h. */
8799 _ACEOF
8800 cat confdefs.h >>conftest.$ac_ext
8801 cat >>conftest.$ac_ext <<_ACEOF
8802 /* end confdefs.h. */
8803 $ac_includes_default
8805 main ()
8807 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8808 test_array [0] = 0
8811 return 0;
8813 _ACEOF
8814 rm -f conftest.$ac_objext
8815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8816 (eval $ac_compile) 2>conftest.er1
8817 ac_status=$?
8818 grep -v '^ *+' conftest.er1 >conftest.err
8819 rm -f conftest.er1
8820 cat conftest.err >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } &&
8823 { ac_try='test -z "$ac_c_werror_flag"
8824 || test ! -s conftest.err'
8825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8826 (eval $ac_try) 2>&5
8827 ac_status=$?
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); }; } &&
8830 { ac_try='test -s conftest.$ac_objext'
8831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8832 (eval $ac_try) 2>&5
8833 ac_status=$?
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); }; }; then
8836 ac_hi=$ac_mid; break
8837 else
8838 echo "$as_me: failed program was:" >&5
8839 sed 's/^/| /' conftest.$ac_ext >&5
8841 ac_lo=`expr $ac_mid + 1`
8842 if test $ac_lo -le $ac_mid; then
8843 ac_lo= ac_hi=
8844 break
8846 ac_mid=`expr 2 '*' $ac_mid + 1`
8848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8849 done
8850 else
8851 echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8854 cat >conftest.$ac_ext <<_ACEOF
8855 /* confdefs.h. */
8856 _ACEOF
8857 cat confdefs.h >>conftest.$ac_ext
8858 cat >>conftest.$ac_ext <<_ACEOF
8859 /* end confdefs.h. */
8860 $ac_includes_default
8862 main ()
8864 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
8865 test_array [0] = 0
8868 return 0;
8870 _ACEOF
8871 rm -f conftest.$ac_objext
8872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8873 (eval $ac_compile) 2>conftest.er1
8874 ac_status=$?
8875 grep -v '^ *+' conftest.er1 >conftest.err
8876 rm -f conftest.er1
8877 cat conftest.err >&5
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); } &&
8880 { ac_try='test -z "$ac_c_werror_flag"
8881 || test ! -s conftest.err'
8882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8883 (eval $ac_try) 2>&5
8884 ac_status=$?
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); }; } &&
8887 { ac_try='test -s conftest.$ac_objext'
8888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8889 (eval $ac_try) 2>&5
8890 ac_status=$?
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); }; }; then
8893 ac_hi=-1 ac_mid=-1
8894 while :; do
8895 cat >conftest.$ac_ext <<_ACEOF
8896 /* confdefs.h. */
8897 _ACEOF
8898 cat confdefs.h >>conftest.$ac_ext
8899 cat >>conftest.$ac_ext <<_ACEOF
8900 /* end confdefs.h. */
8901 $ac_includes_default
8903 main ()
8905 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
8906 test_array [0] = 0
8909 return 0;
8911 _ACEOF
8912 rm -f conftest.$ac_objext
8913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8914 (eval $ac_compile) 2>conftest.er1
8915 ac_status=$?
8916 grep -v '^ *+' conftest.er1 >conftest.err
8917 rm -f conftest.er1
8918 cat conftest.err >&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); } &&
8921 { ac_try='test -z "$ac_c_werror_flag"
8922 || test ! -s conftest.err'
8923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8924 (eval $ac_try) 2>&5
8925 ac_status=$?
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); }; } &&
8928 { ac_try='test -s conftest.$ac_objext'
8929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930 (eval $ac_try) 2>&5
8931 ac_status=$?
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); }; }; then
8934 ac_lo=$ac_mid; break
8935 else
8936 echo "$as_me: failed program was:" >&5
8937 sed 's/^/| /' conftest.$ac_ext >&5
8939 ac_hi=`expr '(' $ac_mid ')' - 1`
8940 if test $ac_mid -le $ac_hi; then
8941 ac_lo= ac_hi=
8942 break
8944 ac_mid=`expr 2 '*' $ac_mid`
8946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8947 done
8948 else
8949 echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.$ac_ext >&5
8952 ac_lo= ac_hi=
8954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8957 # Binary search between lo and hi bounds.
8958 while test "x$ac_lo" != "x$ac_hi"; do
8959 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8960 cat >conftest.$ac_ext <<_ACEOF
8961 /* confdefs.h. */
8962 _ACEOF
8963 cat confdefs.h >>conftest.$ac_ext
8964 cat >>conftest.$ac_ext <<_ACEOF
8965 /* end confdefs.h. */
8966 $ac_includes_default
8968 main ()
8970 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8971 test_array [0] = 0
8974 return 0;
8976 _ACEOF
8977 rm -f conftest.$ac_objext
8978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8979 (eval $ac_compile) 2>conftest.er1
8980 ac_status=$?
8981 grep -v '^ *+' conftest.er1 >conftest.err
8982 rm -f conftest.er1
8983 cat conftest.err >&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } &&
8986 { ac_try='test -z "$ac_c_werror_flag"
8987 || test ! -s conftest.err'
8988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8989 (eval $ac_try) 2>&5
8990 ac_status=$?
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); }; } &&
8993 { ac_try='test -s conftest.$ac_objext'
8994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8995 (eval $ac_try) 2>&5
8996 ac_status=$?
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); }; }; then
8999 ac_hi=$ac_mid
9000 else
9001 echo "$as_me: failed program was:" >&5
9002 sed 's/^/| /' conftest.$ac_ext >&5
9004 ac_lo=`expr '(' $ac_mid ')' + 1`
9006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9007 done
9008 case $ac_lo in
9009 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9010 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9011 See \`config.log' for more details." >&5
9012 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9013 See \`config.log' for more details." >&2;}
9014 { (exit 1); exit 1; }; } ;;
9015 esac
9016 else
9017 if test "$cross_compiling" = yes; then
9018 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9019 See \`config.log' for more details." >&5
9020 echo "$as_me: error: cannot run test program while cross compiling
9021 See \`config.log' for more details." >&2;}
9022 { (exit 1); exit 1; }; }
9023 else
9024 cat >conftest.$ac_ext <<_ACEOF
9025 /* confdefs.h. */
9026 _ACEOF
9027 cat confdefs.h >>conftest.$ac_ext
9028 cat >>conftest.$ac_ext <<_ACEOF
9029 /* end confdefs.h. */
9030 $ac_includes_default
9031 long longval () { return (long) (sizeof (fpos_t)); }
9032 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
9033 #include <stdio.h>
9034 #include <stdlib.h>
9036 main ()
9039 FILE *f = fopen ("conftest.val", "w");
9040 if (! f)
9041 exit (1);
9042 if (((long) (sizeof (fpos_t))) < 0)
9044 long i = longval ();
9045 if (i != ((long) (sizeof (fpos_t))))
9046 exit (1);
9047 fprintf (f, "%ld\n", i);
9049 else
9051 unsigned long i = ulongval ();
9052 if (i != ((long) (sizeof (fpos_t))))
9053 exit (1);
9054 fprintf (f, "%lu\n", i);
9056 exit (ferror (f) || fclose (f) != 0);
9059 return 0;
9061 _ACEOF
9062 rm -f conftest$ac_exeext
9063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9064 (eval $ac_link) 2>&5
9065 ac_status=$?
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9069 (eval $ac_try) 2>&5
9070 ac_status=$?
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); }; }; then
9073 ac_cv_sizeof_fpos_t=`cat conftest.val`
9074 else
9075 echo "$as_me: program exited with status $ac_status" >&5
9076 echo "$as_me: failed program was:" >&5
9077 sed 's/^/| /' conftest.$ac_ext >&5
9079 ( exit $ac_status )
9080 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9081 See \`config.log' for more details." >&5
9082 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9083 See \`config.log' for more details." >&2;}
9084 { (exit 1); exit 1; }; }
9086 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9089 rm -f conftest.val
9090 else
9091 ac_cv_sizeof_fpos_t=0
9094 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9095 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
9096 cat >>confdefs.h <<_ACEOF
9097 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9098 _ACEOF
9102 echo "$as_me:$LINENO: checking for long long support" >&5
9103 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
9104 have_long_long=no
9105 cat >conftest.$ac_ext <<_ACEOF
9106 /* confdefs.h. */
9107 _ACEOF
9108 cat confdefs.h >>conftest.$ac_ext
9109 cat >>conftest.$ac_ext <<_ACEOF
9110 /* end confdefs.h. */
9113 main ()
9115 long long x; x = (long long)0;
9117 return 0;
9119 _ACEOF
9120 rm -f conftest.$ac_objext
9121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9122 (eval $ac_compile) 2>conftest.er1
9123 ac_status=$?
9124 grep -v '^ *+' conftest.er1 >conftest.err
9125 rm -f conftest.er1
9126 cat conftest.err >&5
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); } &&
9129 { ac_try='test -z "$ac_c_werror_flag"
9130 || test ! -s conftest.err'
9131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9132 (eval $ac_try) 2>&5
9133 ac_status=$?
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); }; } &&
9136 { ac_try='test -s conftest.$ac_objext'
9137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9138 (eval $ac_try) 2>&5
9139 ac_status=$?
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); }; }; then
9144 cat >>confdefs.h <<\_ACEOF
9145 #define HAVE_LONG_LONG 1
9146 _ACEOF
9148 have_long_long=yes
9150 else
9151 echo "$as_me: failed program was:" >&5
9152 sed 's/^/| /' conftest.$ac_ext >&5
9155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9156 echo "$as_me:$LINENO: result: $have_long_long" >&5
9157 echo "${ECHO_T}$have_long_long" >&6
9158 if test "$have_long_long" = yes ; then
9159 echo "$as_me:$LINENO: checking for long long" >&5
9160 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9161 if test "${ac_cv_type_long_long+set}" = set; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
9163 else
9164 cat >conftest.$ac_ext <<_ACEOF
9165 /* confdefs.h. */
9166 _ACEOF
9167 cat confdefs.h >>conftest.$ac_ext
9168 cat >>conftest.$ac_ext <<_ACEOF
9169 /* end confdefs.h. */
9170 $ac_includes_default
9172 main ()
9174 if ((long long *) 0)
9175 return 0;
9176 if (sizeof (long long))
9177 return 0;
9179 return 0;
9181 _ACEOF
9182 rm -f conftest.$ac_objext
9183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9184 (eval $ac_compile) 2>conftest.er1
9185 ac_status=$?
9186 grep -v '^ *+' conftest.er1 >conftest.err
9187 rm -f conftest.er1
9188 cat conftest.err >&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); } &&
9191 { ac_try='test -z "$ac_c_werror_flag"
9192 || test ! -s conftest.err'
9193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9194 (eval $ac_try) 2>&5
9195 ac_status=$?
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); }; } &&
9198 { ac_try='test -s conftest.$ac_objext'
9199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9200 (eval $ac_try) 2>&5
9201 ac_status=$?
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); }; }; then
9204 ac_cv_type_long_long=yes
9205 else
9206 echo "$as_me: failed program was:" >&5
9207 sed 's/^/| /' conftest.$ac_ext >&5
9209 ac_cv_type_long_long=no
9211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9213 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9214 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9216 echo "$as_me:$LINENO: checking size of long long" >&5
9217 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9218 if test "${ac_cv_sizeof_long_long+set}" = set; then
9219 echo $ECHO_N "(cached) $ECHO_C" >&6
9220 else
9221 if test "$ac_cv_type_long_long" = yes; then
9222 # The cast to unsigned long works around a bug in the HP C Compiler
9223 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9224 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9225 # This bug is HP SR number 8606223364.
9226 if test "$cross_compiling" = yes; then
9227 # Depending upon the size, compute the lo and hi bounds.
9228 cat >conftest.$ac_ext <<_ACEOF
9229 /* confdefs.h. */
9230 _ACEOF
9231 cat confdefs.h >>conftest.$ac_ext
9232 cat >>conftest.$ac_ext <<_ACEOF
9233 /* end confdefs.h. */
9234 $ac_includes_default
9236 main ()
9238 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9239 test_array [0] = 0
9242 return 0;
9244 _ACEOF
9245 rm -f conftest.$ac_objext
9246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9247 (eval $ac_compile) 2>conftest.er1
9248 ac_status=$?
9249 grep -v '^ *+' conftest.er1 >conftest.err
9250 rm -f conftest.er1
9251 cat conftest.err >&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); } &&
9254 { ac_try='test -z "$ac_c_werror_flag"
9255 || test ! -s conftest.err'
9256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9257 (eval $ac_try) 2>&5
9258 ac_status=$?
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); }; } &&
9261 { ac_try='test -s conftest.$ac_objext'
9262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9263 (eval $ac_try) 2>&5
9264 ac_status=$?
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); }; }; then
9267 ac_lo=0 ac_mid=0
9268 while :; do
9269 cat >conftest.$ac_ext <<_ACEOF
9270 /* confdefs.h. */
9271 _ACEOF
9272 cat confdefs.h >>conftest.$ac_ext
9273 cat >>conftest.$ac_ext <<_ACEOF
9274 /* end confdefs.h. */
9275 $ac_includes_default
9277 main ()
9279 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9280 test_array [0] = 0
9283 return 0;
9285 _ACEOF
9286 rm -f conftest.$ac_objext
9287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9288 (eval $ac_compile) 2>conftest.er1
9289 ac_status=$?
9290 grep -v '^ *+' conftest.er1 >conftest.err
9291 rm -f conftest.er1
9292 cat conftest.err >&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); } &&
9295 { ac_try='test -z "$ac_c_werror_flag"
9296 || test ! -s conftest.err'
9297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9298 (eval $ac_try) 2>&5
9299 ac_status=$?
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); }; } &&
9302 { ac_try='test -s conftest.$ac_objext'
9303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9304 (eval $ac_try) 2>&5
9305 ac_status=$?
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); }; }; then
9308 ac_hi=$ac_mid; break
9309 else
9310 echo "$as_me: failed program was:" >&5
9311 sed 's/^/| /' conftest.$ac_ext >&5
9313 ac_lo=`expr $ac_mid + 1`
9314 if test $ac_lo -le $ac_mid; then
9315 ac_lo= ac_hi=
9316 break
9318 ac_mid=`expr 2 '*' $ac_mid + 1`
9320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9321 done
9322 else
9323 echo "$as_me: failed program was:" >&5
9324 sed 's/^/| /' conftest.$ac_ext >&5
9326 cat >conftest.$ac_ext <<_ACEOF
9327 /* confdefs.h. */
9328 _ACEOF
9329 cat confdefs.h >>conftest.$ac_ext
9330 cat >>conftest.$ac_ext <<_ACEOF
9331 /* end confdefs.h. */
9332 $ac_includes_default
9334 main ()
9336 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9337 test_array [0] = 0
9340 return 0;
9342 _ACEOF
9343 rm -f conftest.$ac_objext
9344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9345 (eval $ac_compile) 2>conftest.er1
9346 ac_status=$?
9347 grep -v '^ *+' conftest.er1 >conftest.err
9348 rm -f conftest.er1
9349 cat conftest.err >&5
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); } &&
9352 { ac_try='test -z "$ac_c_werror_flag"
9353 || test ! -s conftest.err'
9354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9355 (eval $ac_try) 2>&5
9356 ac_status=$?
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); }; } &&
9359 { ac_try='test -s conftest.$ac_objext'
9360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361 (eval $ac_try) 2>&5
9362 ac_status=$?
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; }; then
9365 ac_hi=-1 ac_mid=-1
9366 while :; do
9367 cat >conftest.$ac_ext <<_ACEOF
9368 /* confdefs.h. */
9369 _ACEOF
9370 cat confdefs.h >>conftest.$ac_ext
9371 cat >>conftest.$ac_ext <<_ACEOF
9372 /* end confdefs.h. */
9373 $ac_includes_default
9375 main ()
9377 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9378 test_array [0] = 0
9381 return 0;
9383 _ACEOF
9384 rm -f conftest.$ac_objext
9385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9386 (eval $ac_compile) 2>conftest.er1
9387 ac_status=$?
9388 grep -v '^ *+' conftest.er1 >conftest.err
9389 rm -f conftest.er1
9390 cat conftest.err >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } &&
9393 { ac_try='test -z "$ac_c_werror_flag"
9394 || test ! -s conftest.err'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396 (eval $ac_try) 2>&5
9397 ac_status=$?
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; } &&
9400 { ac_try='test -s conftest.$ac_objext'
9401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9402 (eval $ac_try) 2>&5
9403 ac_status=$?
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); }; }; then
9406 ac_lo=$ac_mid; break
9407 else
9408 echo "$as_me: failed program was:" >&5
9409 sed 's/^/| /' conftest.$ac_ext >&5
9411 ac_hi=`expr '(' $ac_mid ')' - 1`
9412 if test $ac_mid -le $ac_hi; then
9413 ac_lo= ac_hi=
9414 break
9416 ac_mid=`expr 2 '*' $ac_mid`
9418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9419 done
9420 else
9421 echo "$as_me: failed program was:" >&5
9422 sed 's/^/| /' conftest.$ac_ext >&5
9424 ac_lo= ac_hi=
9426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9429 # Binary search between lo and hi bounds.
9430 while test "x$ac_lo" != "x$ac_hi"; do
9431 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9432 cat >conftest.$ac_ext <<_ACEOF
9433 /* confdefs.h. */
9434 _ACEOF
9435 cat confdefs.h >>conftest.$ac_ext
9436 cat >>conftest.$ac_ext <<_ACEOF
9437 /* end confdefs.h. */
9438 $ac_includes_default
9440 main ()
9442 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9443 test_array [0] = 0
9446 return 0;
9448 _ACEOF
9449 rm -f conftest.$ac_objext
9450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9451 (eval $ac_compile) 2>conftest.er1
9452 ac_status=$?
9453 grep -v '^ *+' conftest.er1 >conftest.err
9454 rm -f conftest.er1
9455 cat conftest.err >&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); } &&
9458 { ac_try='test -z "$ac_c_werror_flag"
9459 || test ! -s conftest.err'
9460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9461 (eval $ac_try) 2>&5
9462 ac_status=$?
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); }; } &&
9465 { ac_try='test -s conftest.$ac_objext'
9466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9467 (eval $ac_try) 2>&5
9468 ac_status=$?
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); }; }; then
9471 ac_hi=$ac_mid
9472 else
9473 echo "$as_me: failed program was:" >&5
9474 sed 's/^/| /' conftest.$ac_ext >&5
9476 ac_lo=`expr '(' $ac_mid ')' + 1`
9478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9479 done
9480 case $ac_lo in
9481 ?*) ac_cv_sizeof_long_long=$ac_lo;;
9482 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9483 See \`config.log' for more details." >&5
9484 echo "$as_me: error: cannot compute sizeof (long long), 77
9485 See \`config.log' for more details." >&2;}
9486 { (exit 1); exit 1; }; } ;;
9487 esac
9488 else
9489 if test "$cross_compiling" = yes; then
9490 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9491 See \`config.log' for more details." >&5
9492 echo "$as_me: error: cannot run test program while cross compiling
9493 See \`config.log' for more details." >&2;}
9494 { (exit 1); exit 1; }; }
9495 else
9496 cat >conftest.$ac_ext <<_ACEOF
9497 /* confdefs.h. */
9498 _ACEOF
9499 cat confdefs.h >>conftest.$ac_ext
9500 cat >>conftest.$ac_ext <<_ACEOF
9501 /* end confdefs.h. */
9502 $ac_includes_default
9503 long longval () { return (long) (sizeof (long long)); }
9504 unsigned long ulongval () { return (long) (sizeof (long long)); }
9505 #include <stdio.h>
9506 #include <stdlib.h>
9508 main ()
9511 FILE *f = fopen ("conftest.val", "w");
9512 if (! f)
9513 exit (1);
9514 if (((long) (sizeof (long long))) < 0)
9516 long i = longval ();
9517 if (i != ((long) (sizeof (long long))))
9518 exit (1);
9519 fprintf (f, "%ld\n", i);
9521 else
9523 unsigned long i = ulongval ();
9524 if (i != ((long) (sizeof (long long))))
9525 exit (1);
9526 fprintf (f, "%lu\n", i);
9528 exit (ferror (f) || fclose (f) != 0);
9531 return 0;
9533 _ACEOF
9534 rm -f conftest$ac_exeext
9535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9536 (eval $ac_link) 2>&5
9537 ac_status=$?
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9541 (eval $ac_try) 2>&5
9542 ac_status=$?
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); }; }; then
9545 ac_cv_sizeof_long_long=`cat conftest.val`
9546 else
9547 echo "$as_me: program exited with status $ac_status" >&5
9548 echo "$as_me: failed program was:" >&5
9549 sed 's/^/| /' conftest.$ac_ext >&5
9551 ( exit $ac_status )
9552 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9553 See \`config.log' for more details." >&5
9554 echo "$as_me: error: cannot compute sizeof (long long), 77
9555 See \`config.log' for more details." >&2;}
9556 { (exit 1); exit 1; }; }
9558 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9561 rm -f conftest.val
9562 else
9563 ac_cv_sizeof_long_long=0
9566 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9567 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
9568 cat >>confdefs.h <<_ACEOF
9569 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9570 _ACEOF
9575 echo "$as_me:$LINENO: checking for uintptr_t support" >&5
9576 echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6
9577 have_uintptr_t=no
9578 cat >conftest.$ac_ext <<_ACEOF
9579 /* confdefs.h. */
9580 _ACEOF
9581 cat confdefs.h >>conftest.$ac_ext
9582 cat >>conftest.$ac_ext <<_ACEOF
9583 /* end confdefs.h. */
9586 main ()
9588 uintptr_t x; x = (uintptr_t)0;
9590 return 0;
9592 _ACEOF
9593 rm -f conftest.$ac_objext
9594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9595 (eval $ac_compile) 2>conftest.er1
9596 ac_status=$?
9597 grep -v '^ *+' conftest.er1 >conftest.err
9598 rm -f conftest.er1
9599 cat conftest.err >&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); } &&
9602 { ac_try='test -z "$ac_c_werror_flag"
9603 || test ! -s conftest.err'
9604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9605 (eval $ac_try) 2>&5
9606 ac_status=$?
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); }; } &&
9609 { ac_try='test -s conftest.$ac_objext'
9610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9611 (eval $ac_try) 2>&5
9612 ac_status=$?
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); }; }; then
9617 cat >>confdefs.h <<\_ACEOF
9618 #define HAVE_UINTPTR_T 1
9619 _ACEOF
9621 have_uintptr_t=yes
9623 else
9624 echo "$as_me: failed program was:" >&5
9625 sed 's/^/| /' conftest.$ac_ext >&5
9628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9629 echo "$as_me:$LINENO: result: $have_uintptr_t" >&5
9630 echo "${ECHO_T}$have_uintptr_t" >&6
9631 if test "$have_uintptr_t" = yes ; then
9632 echo "$as_me:$LINENO: checking for uintptr_t" >&5
9633 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
9634 if test "${ac_cv_type_uintptr_t+set}" = set; then
9635 echo $ECHO_N "(cached) $ECHO_C" >&6
9636 else
9637 cat >conftest.$ac_ext <<_ACEOF
9638 /* confdefs.h. */
9639 _ACEOF
9640 cat confdefs.h >>conftest.$ac_ext
9641 cat >>conftest.$ac_ext <<_ACEOF
9642 /* end confdefs.h. */
9643 $ac_includes_default
9645 main ()
9647 if ((uintptr_t *) 0)
9648 return 0;
9649 if (sizeof (uintptr_t))
9650 return 0;
9652 return 0;
9654 _ACEOF
9655 rm -f conftest.$ac_objext
9656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9657 (eval $ac_compile) 2>conftest.er1
9658 ac_status=$?
9659 grep -v '^ *+' conftest.er1 >conftest.err
9660 rm -f conftest.er1
9661 cat conftest.err >&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); } &&
9664 { ac_try='test -z "$ac_c_werror_flag"
9665 || test ! -s conftest.err'
9666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9667 (eval $ac_try) 2>&5
9668 ac_status=$?
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); }; } &&
9671 { ac_try='test -s conftest.$ac_objext'
9672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673 (eval $ac_try) 2>&5
9674 ac_status=$?
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); }; }; then
9677 ac_cv_type_uintptr_t=yes
9678 else
9679 echo "$as_me: failed program was:" >&5
9680 sed 's/^/| /' conftest.$ac_ext >&5
9682 ac_cv_type_uintptr_t=no
9684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9686 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
9687 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
9689 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
9690 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
9691 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9693 else
9694 if test "$ac_cv_type_uintptr_t" = yes; then
9695 # The cast to unsigned long works around a bug in the HP C Compiler
9696 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9697 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9698 # This bug is HP SR number 8606223364.
9699 if test "$cross_compiling" = yes; then
9700 # Depending upon the size, compute the lo and hi bounds.
9701 cat >conftest.$ac_ext <<_ACEOF
9702 /* confdefs.h. */
9703 _ACEOF
9704 cat confdefs.h >>conftest.$ac_ext
9705 cat >>conftest.$ac_ext <<_ACEOF
9706 /* end confdefs.h. */
9707 $ac_includes_default
9709 main ()
9711 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
9712 test_array [0] = 0
9715 return 0;
9717 _ACEOF
9718 rm -f conftest.$ac_objext
9719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9720 (eval $ac_compile) 2>conftest.er1
9721 ac_status=$?
9722 grep -v '^ *+' conftest.er1 >conftest.err
9723 rm -f conftest.er1
9724 cat conftest.err >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } &&
9727 { ac_try='test -z "$ac_c_werror_flag"
9728 || test ! -s conftest.err'
9729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730 (eval $ac_try) 2>&5
9731 ac_status=$?
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; } &&
9734 { ac_try='test -s conftest.$ac_objext'
9735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736 (eval $ac_try) 2>&5
9737 ac_status=$?
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); }; }; then
9740 ac_lo=0 ac_mid=0
9741 while :; do
9742 cat >conftest.$ac_ext <<_ACEOF
9743 /* confdefs.h. */
9744 _ACEOF
9745 cat confdefs.h >>conftest.$ac_ext
9746 cat >>conftest.$ac_ext <<_ACEOF
9747 /* end confdefs.h. */
9748 $ac_includes_default
9750 main ()
9752 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
9753 test_array [0] = 0
9756 return 0;
9758 _ACEOF
9759 rm -f conftest.$ac_objext
9760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9761 (eval $ac_compile) 2>conftest.er1
9762 ac_status=$?
9763 grep -v '^ *+' conftest.er1 >conftest.err
9764 rm -f conftest.er1
9765 cat conftest.err >&5
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); } &&
9768 { ac_try='test -z "$ac_c_werror_flag"
9769 || test ! -s conftest.err'
9770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9771 (eval $ac_try) 2>&5
9772 ac_status=$?
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); }; } &&
9775 { ac_try='test -s conftest.$ac_objext'
9776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9777 (eval $ac_try) 2>&5
9778 ac_status=$?
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); }; }; then
9781 ac_hi=$ac_mid; break
9782 else
9783 echo "$as_me: failed program was:" >&5
9784 sed 's/^/| /' conftest.$ac_ext >&5
9786 ac_lo=`expr $ac_mid + 1`
9787 if test $ac_lo -le $ac_mid; then
9788 ac_lo= ac_hi=
9789 break
9791 ac_mid=`expr 2 '*' $ac_mid + 1`
9793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9794 done
9795 else
9796 echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.$ac_ext >&5
9799 cat >conftest.$ac_ext <<_ACEOF
9800 /* confdefs.h. */
9801 _ACEOF
9802 cat confdefs.h >>conftest.$ac_ext
9803 cat >>conftest.$ac_ext <<_ACEOF
9804 /* end confdefs.h. */
9805 $ac_includes_default
9807 main ()
9809 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
9810 test_array [0] = 0
9813 return 0;
9815 _ACEOF
9816 rm -f conftest.$ac_objext
9817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9818 (eval $ac_compile) 2>conftest.er1
9819 ac_status=$?
9820 grep -v '^ *+' conftest.er1 >conftest.err
9821 rm -f conftest.er1
9822 cat conftest.err >&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); } &&
9825 { ac_try='test -z "$ac_c_werror_flag"
9826 || test ! -s conftest.err'
9827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828 (eval $ac_try) 2>&5
9829 ac_status=$?
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; } &&
9832 { ac_try='test -s conftest.$ac_objext'
9833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9834 (eval $ac_try) 2>&5
9835 ac_status=$?
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); }; }; then
9838 ac_hi=-1 ac_mid=-1
9839 while :; do
9840 cat >conftest.$ac_ext <<_ACEOF
9841 /* confdefs.h. */
9842 _ACEOF
9843 cat confdefs.h >>conftest.$ac_ext
9844 cat >>conftest.$ac_ext <<_ACEOF
9845 /* end confdefs.h. */
9846 $ac_includes_default
9848 main ()
9850 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
9851 test_array [0] = 0
9854 return 0;
9856 _ACEOF
9857 rm -f conftest.$ac_objext
9858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9859 (eval $ac_compile) 2>conftest.er1
9860 ac_status=$?
9861 grep -v '^ *+' conftest.er1 >conftest.err
9862 rm -f conftest.er1
9863 cat conftest.err >&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); } &&
9866 { ac_try='test -z "$ac_c_werror_flag"
9867 || test ! -s conftest.err'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 (eval $ac_try) 2>&5
9870 ac_status=$?
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; } &&
9873 { ac_try='test -s conftest.$ac_objext'
9874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875 (eval $ac_try) 2>&5
9876 ac_status=$?
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; }; then
9879 ac_lo=$ac_mid; break
9880 else
9881 echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.$ac_ext >&5
9884 ac_hi=`expr '(' $ac_mid ')' - 1`
9885 if test $ac_mid -le $ac_hi; then
9886 ac_lo= ac_hi=
9887 break
9889 ac_mid=`expr 2 '*' $ac_mid`
9891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9892 done
9893 else
9894 echo "$as_me: failed program was:" >&5
9895 sed 's/^/| /' conftest.$ac_ext >&5
9897 ac_lo= ac_hi=
9899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9902 # Binary search between lo and hi bounds.
9903 while test "x$ac_lo" != "x$ac_hi"; do
9904 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9905 cat >conftest.$ac_ext <<_ACEOF
9906 /* confdefs.h. */
9907 _ACEOF
9908 cat confdefs.h >>conftest.$ac_ext
9909 cat >>conftest.$ac_ext <<_ACEOF
9910 /* end confdefs.h. */
9911 $ac_includes_default
9913 main ()
9915 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
9916 test_array [0] = 0
9919 return 0;
9921 _ACEOF
9922 rm -f conftest.$ac_objext
9923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9924 (eval $ac_compile) 2>conftest.er1
9925 ac_status=$?
9926 grep -v '^ *+' conftest.er1 >conftest.err
9927 rm -f conftest.er1
9928 cat conftest.err >&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); } &&
9931 { ac_try='test -z "$ac_c_werror_flag"
9932 || test ! -s conftest.err'
9933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9934 (eval $ac_try) 2>&5
9935 ac_status=$?
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); }; } &&
9938 { ac_try='test -s conftest.$ac_objext'
9939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9940 (eval $ac_try) 2>&5
9941 ac_status=$?
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); }; }; then
9944 ac_hi=$ac_mid
9945 else
9946 echo "$as_me: failed program was:" >&5
9947 sed 's/^/| /' conftest.$ac_ext >&5
9949 ac_lo=`expr '(' $ac_mid ')' + 1`
9951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9952 done
9953 case $ac_lo in
9954 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
9955 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
9956 See \`config.log' for more details." >&5
9957 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
9958 See \`config.log' for more details." >&2;}
9959 { (exit 1); exit 1; }; } ;;
9960 esac
9961 else
9962 if test "$cross_compiling" = yes; then
9963 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9964 See \`config.log' for more details." >&5
9965 echo "$as_me: error: cannot run test program while cross compiling
9966 See \`config.log' for more details." >&2;}
9967 { (exit 1); exit 1; }; }
9968 else
9969 cat >conftest.$ac_ext <<_ACEOF
9970 /* confdefs.h. */
9971 _ACEOF
9972 cat confdefs.h >>conftest.$ac_ext
9973 cat >>conftest.$ac_ext <<_ACEOF
9974 /* end confdefs.h. */
9975 $ac_includes_default
9976 long longval () { return (long) (sizeof (uintptr_t)); }
9977 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
9978 #include <stdio.h>
9979 #include <stdlib.h>
9981 main ()
9984 FILE *f = fopen ("conftest.val", "w");
9985 if (! f)
9986 exit (1);
9987 if (((long) (sizeof (uintptr_t))) < 0)
9989 long i = longval ();
9990 if (i != ((long) (sizeof (uintptr_t))))
9991 exit (1);
9992 fprintf (f, "%ld\n", i);
9994 else
9996 unsigned long i = ulongval ();
9997 if (i != ((long) (sizeof (uintptr_t))))
9998 exit (1);
9999 fprintf (f, "%lu\n", i);
10001 exit (ferror (f) || fclose (f) != 0);
10004 return 0;
10006 _ACEOF
10007 rm -f conftest$ac_exeext
10008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10009 (eval $ac_link) 2>&5
10010 ac_status=$?
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10014 (eval $ac_try) 2>&5
10015 ac_status=$?
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); }; }; then
10018 ac_cv_sizeof_uintptr_t=`cat conftest.val`
10019 else
10020 echo "$as_me: program exited with status $ac_status" >&5
10021 echo "$as_me: failed program was:" >&5
10022 sed 's/^/| /' conftest.$ac_ext >&5
10024 ( exit $ac_status )
10025 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10026 See \`config.log' for more details." >&5
10027 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10028 See \`config.log' for more details." >&2;}
10029 { (exit 1); exit 1; }; }
10031 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10034 rm -f conftest.val
10035 else
10036 ac_cv_sizeof_uintptr_t=0
10039 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
10040 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
10041 cat >>confdefs.h <<_ACEOF
10042 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
10043 _ACEOF
10048 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
10049 echo "$as_me:$LINENO: checking size of off_t" >&5
10050 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
10051 if test "${ac_cv_sizeof_off_t+set}" = set; then
10052 echo $ECHO_N "(cached) $ECHO_C" >&6
10053 else
10054 if test "$cross_compiling" = yes; then
10055 ac_cv_sizeof_off_t=4
10056 else
10057 cat >conftest.$ac_ext <<_ACEOF
10058 /* confdefs.h. */
10059 _ACEOF
10060 cat confdefs.h >>conftest.$ac_ext
10061 cat >>conftest.$ac_ext <<_ACEOF
10062 /* end confdefs.h. */
10063 #include <stdio.h>
10064 #include <sys/types.h>
10065 main()
10067 FILE *f=fopen("conftestval", "w");
10068 if (!f) exit(1);
10069 fprintf(f, "%d\n", sizeof(off_t));
10070 exit(0);
10072 _ACEOF
10073 rm -f conftest$ac_exeext
10074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10075 (eval $ac_link) 2>&5
10076 ac_status=$?
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10080 (eval $ac_try) 2>&5
10081 ac_status=$?
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); }; }; then
10084 ac_cv_sizeof_off_t=`cat conftestval`
10085 else
10086 echo "$as_me: program exited with status $ac_status" >&5
10087 echo "$as_me: failed program was:" >&5
10088 sed 's/^/| /' conftest.$ac_ext >&5
10090 ( exit $ac_status )
10091 ac_cv_sizeof_off_t=0
10093 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10098 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
10099 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
10101 cat >>confdefs.h <<_ACEOF
10102 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10103 _ACEOF
10106 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
10107 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
10108 if test "$have_long_long" = yes -a \
10109 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
10110 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
10112 cat >>confdefs.h <<\_ACEOF
10113 #define HAVE_LARGEFILE_SUPPORT 1
10114 _ACEOF
10116 echo "$as_me:$LINENO: result: yes" >&5
10117 echo "${ECHO_T}yes" >&6
10118 else
10119 echo "$as_me:$LINENO: result: no" >&5
10120 echo "${ECHO_T}no" >&6
10123 # AC_CHECK_SIZEOF() doesn't include <time.h>.
10124 echo "$as_me:$LINENO: checking size of time_t" >&5
10125 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
10126 if test "${ac_cv_sizeof_time_t+set}" = set; then
10127 echo $ECHO_N "(cached) $ECHO_C" >&6
10128 else
10129 if test "$cross_compiling" = yes; then
10130 ac_cv_sizeof_time_t=4
10131 else
10132 cat >conftest.$ac_ext <<_ACEOF
10133 /* confdefs.h. */
10134 _ACEOF
10135 cat confdefs.h >>conftest.$ac_ext
10136 cat >>conftest.$ac_ext <<_ACEOF
10137 /* end confdefs.h. */
10138 #include <stdio.h>
10139 #include <time.h>
10140 main()
10142 FILE *f=fopen("conftestval", "w");
10143 if (!f) exit(1);
10144 fprintf(f, "%d\n", sizeof(time_t));
10145 exit(0);
10147 _ACEOF
10148 rm -f conftest$ac_exeext
10149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10150 (eval $ac_link) 2>&5
10151 ac_status=$?
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10155 (eval $ac_try) 2>&5
10156 ac_status=$?
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); }; }; then
10159 ac_cv_sizeof_time_t=`cat conftestval`
10160 else
10161 echo "$as_me: program exited with status $ac_status" >&5
10162 echo "$as_me: failed program was:" >&5
10163 sed 's/^/| /' conftest.$ac_ext >&5
10165 ( exit $ac_status )
10166 ac_cv_sizeof_time_t=0
10168 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10173 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
10174 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
10176 cat >>confdefs.h <<_ACEOF
10177 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10178 _ACEOF
10182 # if have pthread_t then define SIZEOF_PTHREAD_T
10183 ac_save_cc="$CC"
10184 if test "$ac_cv_kpthread" = "yes"
10185 then CC="$CC -Kpthread"
10186 elif test "$ac_cv_kthread" = "yes"
10187 then CC="$CC -Kthread"
10188 elif test "$ac_cv_pthread" = "yes"
10189 then CC="$CC -pthread"
10191 echo "$as_me:$LINENO: checking for pthread_t" >&5
10192 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
10193 have_pthread_t=no
10194 cat >conftest.$ac_ext <<_ACEOF
10195 /* confdefs.h. */
10196 _ACEOF
10197 cat confdefs.h >>conftest.$ac_ext
10198 cat >>conftest.$ac_ext <<_ACEOF
10199 /* end confdefs.h. */
10200 #include <pthread.h>
10202 main ()
10204 pthread_t x; x = *(pthread_t*)0;
10206 return 0;
10208 _ACEOF
10209 rm -f conftest.$ac_objext
10210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10211 (eval $ac_compile) 2>conftest.er1
10212 ac_status=$?
10213 grep -v '^ *+' conftest.er1 >conftest.err
10214 rm -f conftest.er1
10215 cat conftest.err >&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } &&
10218 { ac_try='test -z "$ac_c_werror_flag"
10219 || test ! -s conftest.err'
10220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221 (eval $ac_try) 2>&5
10222 ac_status=$?
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; } &&
10225 { ac_try='test -s conftest.$ac_objext'
10226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10227 (eval $ac_try) 2>&5
10228 ac_status=$?
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); }; }; then
10231 have_pthread_t=yes
10232 else
10233 echo "$as_me: failed program was:" >&5
10234 sed 's/^/| /' conftest.$ac_ext >&5
10237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10238 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
10239 echo "${ECHO_T}$have_pthread_t" >&6
10240 if test "$have_pthread_t" = yes ; then
10241 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
10242 echo "$as_me:$LINENO: checking size of pthread_t" >&5
10243 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
10244 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
10245 echo $ECHO_N "(cached) $ECHO_C" >&6
10246 else
10247 if test "$cross_compiling" = yes; then
10248 ac_cv_sizeof_pthread_t=4
10249 else
10250 cat >conftest.$ac_ext <<_ACEOF
10251 /* confdefs.h. */
10252 _ACEOF
10253 cat confdefs.h >>conftest.$ac_ext
10254 cat >>conftest.$ac_ext <<_ACEOF
10255 /* end confdefs.h. */
10256 #include <stdio.h>
10257 #include <pthread.h>
10258 main()
10260 FILE *f=fopen("conftestval", "w");
10261 if (!f) exit(1);
10262 fprintf(f, "%d\n", sizeof(pthread_t));
10263 exit(0);
10265 _ACEOF
10266 rm -f conftest$ac_exeext
10267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10268 (eval $ac_link) 2>&5
10269 ac_status=$?
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10273 (eval $ac_try) 2>&5
10274 ac_status=$?
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); }; }; then
10277 ac_cv_sizeof_pthread_t=`cat conftestval`
10278 else
10279 echo "$as_me: program exited with status $ac_status" >&5
10280 echo "$as_me: failed program was:" >&5
10281 sed 's/^/| /' conftest.$ac_ext >&5
10283 ( exit $ac_status )
10284 ac_cv_sizeof_pthread_t=0
10286 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10291 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
10292 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
10294 cat >>confdefs.h <<_ACEOF
10295 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
10296 _ACEOF
10299 CC="$ac_save_cc"
10301 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
10302 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
10303 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
10304 if test "${enable_toolbox_glue+set}" = set; then
10305 enableval="$enable_toolbox_glue"
10309 if test -z "$enable_toolbox_glue"
10310 then
10311 case $ac_sys_system/$ac_sys_release in
10312 Darwin/*)
10313 enable_toolbox_glue="yes";;
10315 enable_toolbox_glue="no";;
10316 esac
10318 case "$enable_toolbox_glue" in
10319 yes)
10320 extra_machdep_objs="Python/mactoolboxglue.o"
10321 extra_undefs="-u _PyMac_Error"
10323 cat >>confdefs.h <<\_ACEOF
10324 #define USE_TOOLBOX_OBJECT_GLUE 1
10325 _ACEOF
10329 extra_machdep_objs=""
10330 extra_undefs=""
10332 esac
10333 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
10334 echo "${ECHO_T}$enable_toolbox_glue" >&6
10337 case $ac_sys_system/$ac_sys_release in
10338 Darwin/[01234567].*)
10339 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
10341 Darwin/*)
10342 OTHER_LIBTOOL_OPT=""
10344 esac
10347 case $ac_sys_system/$ac_sys_release in
10348 Darwin/[01234567].*)
10349 LIBTOOL_CRUFT="-framework System -lcc_dynamic -arch_only ppc"
10350 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10351 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10352 Darwin/*)
10353 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
10354 if test ${gcc_version} '<' 4.0
10355 then
10356 LIBTOOL_CRUFT="-lcc_dynamic"
10357 else
10358 LIBTOOL_CRUFT=""
10360 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -lSystem -lSystemStubs -arch_only ppc'
10361 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10362 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10363 esac
10365 echo "$as_me:$LINENO: checking for --enable-framework" >&5
10366 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
10367 if test "$enable_framework"
10368 then
10369 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
10370 # -F. is needed to allow linking to the framework while
10371 # in the build location.
10373 cat >>confdefs.h <<\_ACEOF
10374 #define WITH_NEXT_FRAMEWORK 1
10375 _ACEOF
10377 echo "$as_me:$LINENO: result: yes" >&5
10378 echo "${ECHO_T}yes" >&6
10379 else
10380 echo "$as_me:$LINENO: result: no" >&5
10381 echo "${ECHO_T}no" >&6
10384 echo "$as_me:$LINENO: checking for dyld" >&5
10385 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
10386 case $ac_sys_system/$ac_sys_release in
10387 Darwin/*)
10389 cat >>confdefs.h <<\_ACEOF
10390 #define WITH_DYLD 1
10391 _ACEOF
10393 echo "$as_me:$LINENO: result: always on for Darwin" >&5
10394 echo "${ECHO_T}always on for Darwin" >&6
10397 echo "$as_me:$LINENO: result: no" >&5
10398 echo "${ECHO_T}no" >&6
10400 esac
10402 # Set info about shared libraries.
10408 # SO is the extension of shared libraries `(including the dot!)
10409 # -- usually .so, .sl on HP-UX, .dll on Cygwin
10410 echo "$as_me:$LINENO: checking SO" >&5
10411 echo $ECHO_N "checking SO... $ECHO_C" >&6
10412 if test -z "$SO"
10413 then
10414 case $ac_sys_system in
10415 hp*|HP*) SO=.sl;;
10416 CYGWIN*) SO=.dll;;
10417 *) SO=.so;;
10418 esac
10419 else
10420 # this might also be a termcap variable, see #610332
10421 echo
10422 echo '====================================================================='
10423 echo '+ +'
10424 echo '+ WARNING: You have set SO in your environment. +'
10425 echo '+ Do you really mean to change the extension for shared libraries? +'
10426 echo '+ Continuing in 10 seconds to let you to ponder. +'
10427 echo '+ +'
10428 echo '====================================================================='
10429 sleep 10
10431 echo "$as_me:$LINENO: result: $SO" >&5
10432 echo "${ECHO_T}$SO" >&6
10433 # LDSHARED is the ld *command* used to create shared library
10434 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
10435 # (Shared libraries in this instance are shared modules to be loaded into
10436 # Python, as opposed to building Python itself as a shared library.)
10437 echo "$as_me:$LINENO: checking LDSHARED" >&5
10438 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
10439 if test -z "$LDSHARED"
10440 then
10441 case $ac_sys_system/$ac_sys_release in
10442 AIX*)
10443 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
10444 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
10446 BeOS*)
10447 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
10448 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
10450 IRIX/5*) LDSHARED="ld -shared";;
10451 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
10452 SunOS/5*)
10453 if test "$GCC" = "yes"
10454 then LDSHARED='$(CC) -shared'
10455 else LDSHARED='$(CC) -G';
10456 fi ;;
10457 hp*|HP*) LDSHARED="ld -b";;
10458 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
10459 Darwin/1.3*)
10460 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10461 if test "$enable_framework" ; then
10462 # Link against the framework. All externals should be defined.
10463 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10464 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10465 else
10466 # No framework. Ignore undefined symbols, assuming they come from Python
10467 LDSHARED="$LDSHARED -undefined suppress"
10468 fi ;;
10469 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
10470 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10471 if test "$enable_framework" ; then
10472 # Link against the framework. All externals should be defined.
10473 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10474 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10475 else
10476 # No framework, use the Python app as bundle-loader
10477 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10478 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10479 fi ;;
10480 Darwin/*)
10481 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
10482 # This allows an extension to be used in any Python
10483 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
10484 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
10485 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
10486 then
10487 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
10488 BLDSHARED="$LDSHARED"
10489 else
10490 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10491 if test "$enable_framework" ; then
10492 # Link against the framework. All externals should be defined.
10493 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10494 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10495 else
10496 # No framework, use the Python app as bundle-loader
10497 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10498 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10502 Linux*|GNU*) LDSHARED='$(CC) -shared';;
10503 BSD/OS*/4*) LDSHARED="gcc -shared";;
10504 OpenBSD*|FreeBSD*)
10505 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
10506 then
10507 LDSHARED="$CC -shared ${LDFLAGS}"
10508 else
10509 LDSHARED="ld -Bshareable ${LDFLAGS}"
10510 fi;;
10511 NetBSD*) LDSHARED="cc -shared ${LDFLAGS}";;
10512 OpenUNIX*|UnixWare*)
10513 if test "$GCC" = "yes"
10514 then LDSHARED='$(CC) -shared'
10515 else LDSHARED='$(CC) -G'
10516 fi;;
10517 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
10518 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
10519 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
10520 atheos*) LDSHARED="gcc -shared";;
10521 *) LDSHARED="ld";;
10522 esac
10524 echo "$as_me:$LINENO: result: $LDSHARED" >&5
10525 echo "${ECHO_T}$LDSHARED" >&6
10526 BLDSHARED=${BLDSHARED-$LDSHARED}
10527 # CCSHARED are the C *flags* used to create objects to go into a shared
10528 # library (module) -- this is only needed for a few systems
10529 echo "$as_me:$LINENO: checking CCSHARED" >&5
10530 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
10531 if test -z "$CCSHARED"
10532 then
10533 case $ac_sys_system/$ac_sys_release in
10534 SunOS*) if test "$GCC" = yes;
10535 then CCSHARED="-fPIC";
10536 else CCSHARED="-xcode=pic32";
10537 fi;;
10538 hp*|HP*) if test "$GCC" = yes;
10539 then CCSHARED="-fPIC";
10540 else CCSHARED="+z";
10541 fi;;
10542 Linux*|GNU*) CCSHARED="-fPIC";;
10543 BSD/OS*/4*) CCSHARED="-fpic";;
10544 FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";;
10545 OpenUNIX*|UnixWare*)
10546 if test "$GCC" = "yes"
10547 then CCSHARED="-fPIC"
10548 else CCSHARED="-KPIC"
10549 fi;;
10550 SCO_SV*)
10551 if test "$GCC" = "yes"
10552 then CCSHARED="-fPIC"
10553 else CCSHARED="-Kpic -belf"
10554 fi;;
10555 Monterey*) CCSHARED="-G";;
10556 IRIX*/6*) case $CC in
10557 *gcc*) CCSHARED="-shared";;
10558 *) CCSHARED="";;
10559 esac;;
10560 atheos*) CCSHARED="-fPIC";;
10561 esac
10563 echo "$as_me:$LINENO: result: $CCSHARED" >&5
10564 echo "${ECHO_T}$CCSHARED" >&6
10565 # LINKFORSHARED are the flags passed to the $(CC) command that links
10566 # the python executable -- this is only needed for a few systems
10567 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
10568 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
10569 if test -z "$LINKFORSHARED"
10570 then
10571 case $ac_sys_system/$ac_sys_release in
10572 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
10573 hp*|HP*)
10574 LINKFORSHARED="-Wl,-E -Wl,+s";;
10575 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
10576 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
10577 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
10578 # -u libsys_s pulls in all symbols in libsys
10579 Darwin/*)
10580 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
10581 # which is
10582 # not used by the core itself but which needs to be in the core so
10583 # that dynamically loaded extension modules have access to it.
10584 # -prebind is no longer used, because it actually seems to give a
10585 # slowdown in stead of a speedup, maybe due to the large number of
10586 # dynamic loads Python does.
10588 LINKFORSHARED="$extra_undefs"
10589 if test "$enable_framework"
10590 then
10591 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10593 LINKFORSHARED="$LINKFORSHARED";;
10594 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
10595 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
10596 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
10597 FreeBSD*|NetBSD*|OpenBSD*)
10598 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
10599 then
10600 LINKFORSHARED="-Wl,--export-dynamic"
10601 fi;;
10602 SunOS/5*) case $CC in
10603 *gcc*)
10604 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
10605 then
10606 LINKFORSHARED="-Xlinker --export-dynamic"
10607 fi;;
10608 esac;;
10609 CYGWIN*)
10610 if test $enable_shared = "no"
10611 then
10612 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
10613 fi;;
10614 esac
10616 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
10617 echo "${ECHO_T}$LINKFORSHARED" >&6
10620 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
10621 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
10622 if test ! "$LIBRARY" = "$LDLIBRARY"
10623 then
10624 case $ac_sys_system in
10625 CYGWIN*)
10626 # Cygwin needs CCSHARED when building extension DLLs
10627 # but not when building the interpreter DLL.
10628 CFLAGSFORSHARED='';;
10630 CFLAGSFORSHARED='$(CCSHARED)'
10631 esac
10633 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
10634 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
10636 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
10637 # library (with --enable-shared).
10638 # For platforms on which shared libraries are not allowed to have unresolved
10639 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
10640 # if it is not required, since it creates a dependency of the shared library
10641 # to LIBS. This, in turn, means that applications linking the shared libpython
10642 # don't need to link LIBS explicitly. The default should be only changed
10643 # on systems where this approach causes problems.
10645 echo "$as_me:$LINENO: checking SHLIBS" >&5
10646 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
10647 case "$ac_sys_system" in
10649 SHLIBS='$(LIBS)';;
10650 esac
10651 echo "$as_me:$LINENO: result: $SHLIBS" >&5
10652 echo "${ECHO_T}$SHLIBS" >&6
10655 # checks for libraries
10657 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10658 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10659 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10660 echo $ECHO_N "(cached) $ECHO_C" >&6
10661 else
10662 ac_check_lib_save_LIBS=$LIBS
10663 LIBS="-ldl $LIBS"
10664 cat >conftest.$ac_ext <<_ACEOF
10665 /* confdefs.h. */
10666 _ACEOF
10667 cat confdefs.h >>conftest.$ac_ext
10668 cat >>conftest.$ac_ext <<_ACEOF
10669 /* end confdefs.h. */
10671 /* Override any gcc2 internal prototype to avoid an error. */
10672 #ifdef __cplusplus
10673 extern "C"
10674 #endif
10675 /* We use char because int might match the return type of a gcc2
10676 builtin and then its argument prototype would still apply. */
10677 char dlopen ();
10679 main ()
10681 dlopen ();
10683 return 0;
10685 _ACEOF
10686 rm -f conftest.$ac_objext conftest$ac_exeext
10687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10688 (eval $ac_link) 2>conftest.er1
10689 ac_status=$?
10690 grep -v '^ *+' conftest.er1 >conftest.err
10691 rm -f conftest.er1
10692 cat conftest.err >&5
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); } &&
10695 { ac_try='test -z "$ac_c_werror_flag"
10696 || test ! -s conftest.err'
10697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10698 (eval $ac_try) 2>&5
10699 ac_status=$?
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); }; } &&
10702 { ac_try='test -s conftest$ac_exeext'
10703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10704 (eval $ac_try) 2>&5
10705 ac_status=$?
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); }; }; then
10708 ac_cv_lib_dl_dlopen=yes
10709 else
10710 echo "$as_me: failed program was:" >&5
10711 sed 's/^/| /' conftest.$ac_ext >&5
10713 ac_cv_lib_dl_dlopen=no
10715 rm -f conftest.err conftest.$ac_objext \
10716 conftest$ac_exeext conftest.$ac_ext
10717 LIBS=$ac_check_lib_save_LIBS
10719 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10720 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10721 if test $ac_cv_lib_dl_dlopen = yes; then
10722 cat >>confdefs.h <<_ACEOF
10723 #define HAVE_LIBDL 1
10724 _ACEOF
10726 LIBS="-ldl $LIBS"
10729 # Dynamic linking for SunOS/Solaris and SYSV
10731 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10732 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10733 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10734 echo $ECHO_N "(cached) $ECHO_C" >&6
10735 else
10736 ac_check_lib_save_LIBS=$LIBS
10737 LIBS="-ldld $LIBS"
10738 cat >conftest.$ac_ext <<_ACEOF
10739 /* confdefs.h. */
10740 _ACEOF
10741 cat confdefs.h >>conftest.$ac_ext
10742 cat >>conftest.$ac_ext <<_ACEOF
10743 /* end confdefs.h. */
10745 /* Override any gcc2 internal prototype to avoid an error. */
10746 #ifdef __cplusplus
10747 extern "C"
10748 #endif
10749 /* We use char because int might match the return type of a gcc2
10750 builtin and then its argument prototype would still apply. */
10751 char shl_load ();
10753 main ()
10755 shl_load ();
10757 return 0;
10759 _ACEOF
10760 rm -f conftest.$ac_objext conftest$ac_exeext
10761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10762 (eval $ac_link) 2>conftest.er1
10763 ac_status=$?
10764 grep -v '^ *+' conftest.er1 >conftest.err
10765 rm -f conftest.er1
10766 cat conftest.err >&5
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); } &&
10769 { ac_try='test -z "$ac_c_werror_flag"
10770 || test ! -s conftest.err'
10771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10772 (eval $ac_try) 2>&5
10773 ac_status=$?
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); }; } &&
10776 { ac_try='test -s conftest$ac_exeext'
10777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10778 (eval $ac_try) 2>&5
10779 ac_status=$?
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); }; }; then
10782 ac_cv_lib_dld_shl_load=yes
10783 else
10784 echo "$as_me: failed program was:" >&5
10785 sed 's/^/| /' conftest.$ac_ext >&5
10787 ac_cv_lib_dld_shl_load=no
10789 rm -f conftest.err conftest.$ac_objext \
10790 conftest$ac_exeext conftest.$ac_ext
10791 LIBS=$ac_check_lib_save_LIBS
10793 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10794 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10795 if test $ac_cv_lib_dld_shl_load = yes; then
10796 cat >>confdefs.h <<_ACEOF
10797 #define HAVE_LIBDLD 1
10798 _ACEOF
10800 LIBS="-ldld $LIBS"
10803 # Dynamic linking for HP-UX
10805 # only check for sem_ini if thread support is requested
10806 if test "$with_threads" = "yes" -o -z "$with_threads"; then
10807 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
10808 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
10809 if test "${ac_cv_search_sem_init+set}" = set; then
10810 echo $ECHO_N "(cached) $ECHO_C" >&6
10811 else
10812 ac_func_search_save_LIBS=$LIBS
10813 ac_cv_search_sem_init=no
10814 cat >conftest.$ac_ext <<_ACEOF
10815 /* confdefs.h. */
10816 _ACEOF
10817 cat confdefs.h >>conftest.$ac_ext
10818 cat >>conftest.$ac_ext <<_ACEOF
10819 /* end confdefs.h. */
10821 /* Override any gcc2 internal prototype to avoid an error. */
10822 #ifdef __cplusplus
10823 extern "C"
10824 #endif
10825 /* We use char because int might match the return type of a gcc2
10826 builtin and then its argument prototype would still apply. */
10827 char sem_init ();
10829 main ()
10831 sem_init ();
10833 return 0;
10835 _ACEOF
10836 rm -f conftest.$ac_objext conftest$ac_exeext
10837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10838 (eval $ac_link) 2>conftest.er1
10839 ac_status=$?
10840 grep -v '^ *+' conftest.er1 >conftest.err
10841 rm -f conftest.er1
10842 cat conftest.err >&5
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); } &&
10845 { ac_try='test -z "$ac_c_werror_flag"
10846 || test ! -s conftest.err'
10847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10848 (eval $ac_try) 2>&5
10849 ac_status=$?
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); }; } &&
10852 { ac_try='test -s conftest$ac_exeext'
10853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10854 (eval $ac_try) 2>&5
10855 ac_status=$?
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); }; }; then
10858 ac_cv_search_sem_init="none required"
10859 else
10860 echo "$as_me: failed program was:" >&5
10861 sed 's/^/| /' conftest.$ac_ext >&5
10864 rm -f conftest.err conftest.$ac_objext \
10865 conftest$ac_exeext conftest.$ac_ext
10866 if test "$ac_cv_search_sem_init" = no; then
10867 for ac_lib in pthread rt posix4; do
10868 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10869 cat >conftest.$ac_ext <<_ACEOF
10870 /* confdefs.h. */
10871 _ACEOF
10872 cat confdefs.h >>conftest.$ac_ext
10873 cat >>conftest.$ac_ext <<_ACEOF
10874 /* end confdefs.h. */
10876 /* Override any gcc2 internal prototype to avoid an error. */
10877 #ifdef __cplusplus
10878 extern "C"
10879 #endif
10880 /* We use char because int might match the return type of a gcc2
10881 builtin and then its argument prototype would still apply. */
10882 char sem_init ();
10884 main ()
10886 sem_init ();
10888 return 0;
10890 _ACEOF
10891 rm -f conftest.$ac_objext conftest$ac_exeext
10892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10893 (eval $ac_link) 2>conftest.er1
10894 ac_status=$?
10895 grep -v '^ *+' conftest.er1 >conftest.err
10896 rm -f conftest.er1
10897 cat conftest.err >&5
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); } &&
10900 { ac_try='test -z "$ac_c_werror_flag"
10901 || test ! -s conftest.err'
10902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10903 (eval $ac_try) 2>&5
10904 ac_status=$?
10905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906 (exit $ac_status); }; } &&
10907 { ac_try='test -s conftest$ac_exeext'
10908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10909 (eval $ac_try) 2>&5
10910 ac_status=$?
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); }; }; then
10913 ac_cv_search_sem_init="-l$ac_lib"
10914 break
10915 else
10916 echo "$as_me: failed program was:" >&5
10917 sed 's/^/| /' conftest.$ac_ext >&5
10920 rm -f conftest.err conftest.$ac_objext \
10921 conftest$ac_exeext conftest.$ac_ext
10922 done
10924 LIBS=$ac_func_search_save_LIBS
10926 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
10927 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
10928 if test "$ac_cv_search_sem_init" != no; then
10929 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
10932 # 'Real Time' functions on Solaris
10933 # posix4 on Solaris 2.6
10934 # pthread (first!) on Linux
10937 # check if we need libintl for locale functions
10938 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
10939 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
10940 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
10941 echo $ECHO_N "(cached) $ECHO_C" >&6
10942 else
10943 ac_check_lib_save_LIBS=$LIBS
10944 LIBS="-lintl $LIBS"
10945 cat >conftest.$ac_ext <<_ACEOF
10946 /* confdefs.h. */
10947 _ACEOF
10948 cat confdefs.h >>conftest.$ac_ext
10949 cat >>conftest.$ac_ext <<_ACEOF
10950 /* end confdefs.h. */
10952 /* Override any gcc2 internal prototype to avoid an error. */
10953 #ifdef __cplusplus
10954 extern "C"
10955 #endif
10956 /* We use char because int might match the return type of a gcc2
10957 builtin and then its argument prototype would still apply. */
10958 char textdomain ();
10960 main ()
10962 textdomain ();
10964 return 0;
10966 _ACEOF
10967 rm -f conftest.$ac_objext conftest$ac_exeext
10968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10969 (eval $ac_link) 2>conftest.er1
10970 ac_status=$?
10971 grep -v '^ *+' conftest.er1 >conftest.err
10972 rm -f conftest.er1
10973 cat conftest.err >&5
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); } &&
10976 { ac_try='test -z "$ac_c_werror_flag"
10977 || test ! -s conftest.err'
10978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10979 (eval $ac_try) 2>&5
10980 ac_status=$?
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); }; } &&
10983 { ac_try='test -s conftest$ac_exeext'
10984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10985 (eval $ac_try) 2>&5
10986 ac_status=$?
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); }; }; then
10989 ac_cv_lib_intl_textdomain=yes
10990 else
10991 echo "$as_me: failed program was:" >&5
10992 sed 's/^/| /' conftest.$ac_ext >&5
10994 ac_cv_lib_intl_textdomain=no
10996 rm -f conftest.err conftest.$ac_objext \
10997 conftest$ac_exeext conftest.$ac_ext
10998 LIBS=$ac_check_lib_save_LIBS
11000 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
11001 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
11002 if test $ac_cv_lib_intl_textdomain = yes; then
11004 cat >>confdefs.h <<\_ACEOF
11005 #define WITH_LIBINTL 1
11006 _ACEOF
11011 # checks for system dependent C++ extensions support
11012 case "$ac_sys_system" in
11013 AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
11014 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
11015 cat >conftest.$ac_ext <<_ACEOF
11016 /* confdefs.h. */
11017 _ACEOF
11018 cat confdefs.h >>conftest.$ac_ext
11019 cat >>conftest.$ac_ext <<_ACEOF
11020 /* end confdefs.h. */
11021 #include "/usr/lpp/xlC/include/load.h"
11023 main ()
11025 loadAndInit("", 0, "")
11027 return 0;
11029 _ACEOF
11030 rm -f conftest.$ac_objext conftest$ac_exeext
11031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11032 (eval $ac_link) 2>conftest.er1
11033 ac_status=$?
11034 grep -v '^ *+' conftest.er1 >conftest.err
11035 rm -f conftest.er1
11036 cat conftest.err >&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } &&
11039 { ac_try='test -z "$ac_c_werror_flag"
11040 || test ! -s conftest.err'
11041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042 (eval $ac_try) 2>&5
11043 ac_status=$?
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }; } &&
11046 { ac_try='test -s conftest$ac_exeext'
11047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11048 (eval $ac_try) 2>&5
11049 ac_status=$?
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); }; }; then
11053 cat >>confdefs.h <<\_ACEOF
11054 #define AIX_GENUINE_CPLUSPLUS 1
11055 _ACEOF
11057 echo "$as_me:$LINENO: result: yes" >&5
11058 echo "${ECHO_T}yes" >&6
11059 else
11060 echo "$as_me: failed program was:" >&5
11061 sed 's/^/| /' conftest.$ac_ext >&5
11063 echo "$as_me:$LINENO: result: no" >&5
11064 echo "${ECHO_T}no" >&6
11066 rm -f conftest.err conftest.$ac_objext \
11067 conftest$ac_exeext conftest.$ac_ext;;
11068 *) ;;
11069 esac
11071 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
11072 # BeOS' sockets are stashed in libnet.
11073 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
11074 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
11075 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
11076 echo $ECHO_N "(cached) $ECHO_C" >&6
11077 else
11078 ac_check_lib_save_LIBS=$LIBS
11079 LIBS="-lnsl $LIBS"
11080 cat >conftest.$ac_ext <<_ACEOF
11081 /* confdefs.h. */
11082 _ACEOF
11083 cat confdefs.h >>conftest.$ac_ext
11084 cat >>conftest.$ac_ext <<_ACEOF
11085 /* end confdefs.h. */
11087 /* Override any gcc2 internal prototype to avoid an error. */
11088 #ifdef __cplusplus
11089 extern "C"
11090 #endif
11091 /* We use char because int might match the return type of a gcc2
11092 builtin and then its argument prototype would still apply. */
11093 char t_open ();
11095 main ()
11097 t_open ();
11099 return 0;
11101 _ACEOF
11102 rm -f conftest.$ac_objext conftest$ac_exeext
11103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11104 (eval $ac_link) 2>conftest.er1
11105 ac_status=$?
11106 grep -v '^ *+' conftest.er1 >conftest.err
11107 rm -f conftest.er1
11108 cat conftest.err >&5
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); } &&
11111 { ac_try='test -z "$ac_c_werror_flag"
11112 || test ! -s conftest.err'
11113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11114 (eval $ac_try) 2>&5
11115 ac_status=$?
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); }; } &&
11118 { ac_try='test -s conftest$ac_exeext'
11119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11120 (eval $ac_try) 2>&5
11121 ac_status=$?
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); }; }; then
11124 ac_cv_lib_nsl_t_open=yes
11125 else
11126 echo "$as_me: failed program was:" >&5
11127 sed 's/^/| /' conftest.$ac_ext >&5
11129 ac_cv_lib_nsl_t_open=no
11131 rm -f conftest.err conftest.$ac_objext \
11132 conftest$ac_exeext conftest.$ac_ext
11133 LIBS=$ac_check_lib_save_LIBS
11135 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
11136 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
11137 if test $ac_cv_lib_nsl_t_open = yes; then
11138 LIBS="-lnsl $LIBS"
11140 # SVR4
11141 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
11142 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
11143 if test "${ac_cv_lib_socket_socket+set}" = set; then
11144 echo $ECHO_N "(cached) $ECHO_C" >&6
11145 else
11146 ac_check_lib_save_LIBS=$LIBS
11147 LIBS="-lsocket $LIBS $LIBS"
11148 cat >conftest.$ac_ext <<_ACEOF
11149 /* confdefs.h. */
11150 _ACEOF
11151 cat confdefs.h >>conftest.$ac_ext
11152 cat >>conftest.$ac_ext <<_ACEOF
11153 /* end confdefs.h. */
11155 /* Override any gcc2 internal prototype to avoid an error. */
11156 #ifdef __cplusplus
11157 extern "C"
11158 #endif
11159 /* We use char because int might match the return type of a gcc2
11160 builtin and then its argument prototype would still apply. */
11161 char socket ();
11163 main ()
11165 socket ();
11167 return 0;
11169 _ACEOF
11170 rm -f conftest.$ac_objext conftest$ac_exeext
11171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11172 (eval $ac_link) 2>conftest.er1
11173 ac_status=$?
11174 grep -v '^ *+' conftest.er1 >conftest.err
11175 rm -f conftest.er1
11176 cat conftest.err >&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); } &&
11179 { ac_try='test -z "$ac_c_werror_flag"
11180 || test ! -s conftest.err'
11181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11182 (eval $ac_try) 2>&5
11183 ac_status=$?
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); }; } &&
11186 { ac_try='test -s conftest$ac_exeext'
11187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11188 (eval $ac_try) 2>&5
11189 ac_status=$?
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); }; }; then
11192 ac_cv_lib_socket_socket=yes
11193 else
11194 echo "$as_me: failed program was:" >&5
11195 sed 's/^/| /' conftest.$ac_ext >&5
11197 ac_cv_lib_socket_socket=no
11199 rm -f conftest.err conftest.$ac_objext \
11200 conftest$ac_exeext conftest.$ac_ext
11201 LIBS=$ac_check_lib_save_LIBS
11203 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
11204 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
11205 if test $ac_cv_lib_socket_socket = yes; then
11206 LIBS="-lsocket $LIBS"
11208 # SVR4 sockets
11210 case "$ac_sys_system" in
11211 BeOS*)
11212 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
11213 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
11214 if test "${ac_cv_lib_net_socket+set}" = set; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
11216 else
11217 ac_check_lib_save_LIBS=$LIBS
11218 LIBS="-lnet $LIBS $LIBS"
11219 cat >conftest.$ac_ext <<_ACEOF
11220 /* confdefs.h. */
11221 _ACEOF
11222 cat confdefs.h >>conftest.$ac_ext
11223 cat >>conftest.$ac_ext <<_ACEOF
11224 /* end confdefs.h. */
11226 /* Override any gcc2 internal prototype to avoid an error. */
11227 #ifdef __cplusplus
11228 extern "C"
11229 #endif
11230 /* We use char because int might match the return type of a gcc2
11231 builtin and then its argument prototype would still apply. */
11232 char socket ();
11234 main ()
11236 socket ();
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>conftest.er1
11244 ac_status=$?
11245 grep -v '^ *+' conftest.er1 >conftest.err
11246 rm -f conftest.er1
11247 cat conftest.err >&5
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); } &&
11250 { ac_try='test -z "$ac_c_werror_flag"
11251 || test ! -s conftest.err'
11252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11253 (eval $ac_try) 2>&5
11254 ac_status=$?
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); }; } &&
11257 { ac_try='test -s conftest$ac_exeext'
11258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11259 (eval $ac_try) 2>&5
11260 ac_status=$?
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); }; }; then
11263 ac_cv_lib_net_socket=yes
11264 else
11265 echo "$as_me: failed program was:" >&5
11266 sed 's/^/| /' conftest.$ac_ext >&5
11268 ac_cv_lib_net_socket=no
11270 rm -f conftest.err conftest.$ac_objext \
11271 conftest$ac_exeext conftest.$ac_ext
11272 LIBS=$ac_check_lib_save_LIBS
11274 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
11275 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
11276 if test $ac_cv_lib_net_socket = yes; then
11277 LIBS="-lnet $LIBS"
11279 # BeOS
11281 esac
11283 echo "$as_me:$LINENO: checking for --with-libs" >&5
11284 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
11286 # Check whether --with-libs or --without-libs was given.
11287 if test "${with_libs+set}" = set; then
11288 withval="$with_libs"
11290 echo "$as_me:$LINENO: result: $withval" >&5
11291 echo "${ECHO_T}$withval" >&6
11292 LIBS="$withval $LIBS"
11294 else
11295 echo "$as_me:$LINENO: result: no" >&5
11296 echo "${ECHO_T}no" >&6
11299 # Determine if signalmodule should be used.
11302 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
11303 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
11305 # Check whether --with-signal-module or --without-signal-module was given.
11306 if test "${with_signal_module+set}" = set; then
11307 withval="$with_signal_module"
11311 if test -z "$with_signal_module"
11312 then with_signal_module="yes"
11314 echo "$as_me:$LINENO: result: $with_signal_module" >&5
11315 echo "${ECHO_T}$with_signal_module" >&6
11317 if test "${with_signal_module}" = "yes"; then
11318 USE_SIGNAL_MODULE=""
11319 SIGNAL_OBJS=""
11320 else
11321 USE_SIGNAL_MODULE="#"
11322 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
11325 # This is used to generate Setup.config
11327 USE_THREAD_MODULE=""
11329 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
11330 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
11333 # Check whether --with-dec-threads or --without-dec-threads was given.
11334 if test "${with_dec_threads+set}" = set; then
11335 withval="$with_dec_threads"
11337 echo "$as_me:$LINENO: result: $withval" >&5
11338 echo "${ECHO_T}$withval" >&6
11339 LDLAST=-threads
11340 if test "${with_thread+set}" != set; then
11341 with_thread="$withval";
11343 else
11344 echo "$as_me:$LINENO: result: no" >&5
11345 echo "${ECHO_T}no" >&6
11348 # Templates for things AC_DEFINEd more than once.
11349 # For a single AC_DEFINE, no template is needed.
11357 echo "$as_me:$LINENO: checking for --with-threads" >&5
11358 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
11360 # Check whether --with-threads or --without-threads was given.
11361 if test "${with_threads+set}" = set; then
11362 withval="$with_threads"
11366 # --with-thread is deprecated, but check for it anyway
11368 # Check whether --with-thread or --without-thread was given.
11369 if test "${with_thread+set}" = set; then
11370 withval="$with_thread"
11371 with_threads=$with_thread
11374 if test -z "$with_threads"
11375 then with_threads="yes"
11377 echo "$as_me:$LINENO: result: $with_threads" >&5
11378 echo "${ECHO_T}$with_threads" >&6
11381 if test "$with_threads" = "no"
11382 then
11383 USE_THREAD_MODULE="#"
11384 elif test "$ac_cv_pthread_is_default" = yes
11385 then
11386 cat >>confdefs.h <<\_ACEOF
11387 #define WITH_THREAD 1
11388 _ACEOF
11390 # Defining _REENTRANT on system with POSIX threads should not hurt.
11391 cat >>confdefs.h <<\_ACEOF
11392 #define _REENTRANT 1
11393 _ACEOF
11395 posix_threads=yes
11396 THREADOBJ="Python/thread.o"
11397 elif test "$ac_cv_kpthread" = "yes"
11398 then
11399 CC="$CC -Kpthread"
11400 if test "$ac_cv_cxx_thread" = "yes"; then
11401 CXX="$CXX -Kpthread"
11403 cat >>confdefs.h <<\_ACEOF
11404 #define WITH_THREAD 1
11405 _ACEOF
11407 posix_threads=yes
11408 THREADOBJ="Python/thread.o"
11409 elif test "$ac_cv_kthread" = "yes"
11410 then
11411 CC="$CC -Kthread"
11412 if test "$ac_cv_cxx_thread" = "yes"; then
11413 CXX="$CXX -Kthread"
11415 cat >>confdefs.h <<\_ACEOF
11416 #define WITH_THREAD 1
11417 _ACEOF
11419 posix_threads=yes
11420 THREADOBJ="Python/thread.o"
11421 elif test "$ac_cv_pthread" = "yes"
11422 then
11423 CC="$CC -pthread"
11424 if test "$ac_cv_cxx_thread" = "yes"; then
11425 CXX="$CXX -pthread"
11427 cat >>confdefs.h <<\_ACEOF
11428 #define WITH_THREAD 1
11429 _ACEOF
11431 posix_threads=yes
11432 THREADOBJ="Python/thread.o"
11433 else
11434 if test ! -z "$with_threads" -a -d "$with_threads"
11435 then LDFLAGS="$LDFLAGS -L$with_threads"
11437 if test ! -z "$withval" -a -d "$withval"
11438 then LDFLAGS="$LDFLAGS -L$withval"
11441 # According to the POSIX spec, a pthreads implementation must
11442 # define _POSIX_THREADS in unistd.h. Some apparently don't
11443 # (e.g. gnu pth with pthread emulation)
11444 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
11445 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
11446 cat >conftest.$ac_ext <<_ACEOF
11447 /* confdefs.h. */
11448 _ACEOF
11449 cat confdefs.h >>conftest.$ac_ext
11450 cat >>conftest.$ac_ext <<_ACEOF
11451 /* end confdefs.h. */
11453 #include <unistd.h>
11454 #ifdef _POSIX_THREADS
11456 #endif
11458 _ACEOF
11459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11460 $EGREP "yes" >/dev/null 2>&1; then
11461 unistd_defines_pthreads=yes
11462 else
11463 unistd_defines_pthreads=no
11465 rm -f conftest*
11467 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
11468 echo "${ECHO_T}$unistd_defines_pthreads" >&6
11470 cat >>confdefs.h <<\_ACEOF
11471 #define _REENTRANT 1
11472 _ACEOF
11474 if test "${ac_cv_header_cthreads_h+set}" = set; then
11475 echo "$as_me:$LINENO: checking for cthreads.h" >&5
11476 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
11477 if test "${ac_cv_header_cthreads_h+set}" = set; then
11478 echo $ECHO_N "(cached) $ECHO_C" >&6
11480 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
11481 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
11482 else
11483 # Is the header compilable?
11484 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
11485 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
11486 cat >conftest.$ac_ext <<_ACEOF
11487 /* confdefs.h. */
11488 _ACEOF
11489 cat confdefs.h >>conftest.$ac_ext
11490 cat >>conftest.$ac_ext <<_ACEOF
11491 /* end confdefs.h. */
11492 $ac_includes_default
11493 #include <cthreads.h>
11494 _ACEOF
11495 rm -f conftest.$ac_objext
11496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11497 (eval $ac_compile) 2>conftest.er1
11498 ac_status=$?
11499 grep -v '^ *+' conftest.er1 >conftest.err
11500 rm -f conftest.er1
11501 cat conftest.err >&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); } &&
11504 { ac_try='test -z "$ac_c_werror_flag"
11505 || test ! -s conftest.err'
11506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507 (eval $ac_try) 2>&5
11508 ac_status=$?
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; } &&
11511 { ac_try='test -s conftest.$ac_objext'
11512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11513 (eval $ac_try) 2>&5
11514 ac_status=$?
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); }; }; then
11517 ac_header_compiler=yes
11518 else
11519 echo "$as_me: failed program was:" >&5
11520 sed 's/^/| /' conftest.$ac_ext >&5
11522 ac_header_compiler=no
11524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11525 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11526 echo "${ECHO_T}$ac_header_compiler" >&6
11528 # Is the header present?
11529 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
11530 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
11531 cat >conftest.$ac_ext <<_ACEOF
11532 /* confdefs.h. */
11533 _ACEOF
11534 cat confdefs.h >>conftest.$ac_ext
11535 cat >>conftest.$ac_ext <<_ACEOF
11536 /* end confdefs.h. */
11537 #include <cthreads.h>
11538 _ACEOF
11539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11541 ac_status=$?
11542 grep -v '^ *+' conftest.er1 >conftest.err
11543 rm -f conftest.er1
11544 cat conftest.err >&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); } >/dev/null; then
11547 if test -s conftest.err; then
11548 ac_cpp_err=$ac_c_preproc_warn_flag
11549 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11550 else
11551 ac_cpp_err=
11553 else
11554 ac_cpp_err=yes
11556 if test -z "$ac_cpp_err"; then
11557 ac_header_preproc=yes
11558 else
11559 echo "$as_me: failed program was:" >&5
11560 sed 's/^/| /' conftest.$ac_ext >&5
11562 ac_header_preproc=no
11564 rm -f conftest.err conftest.$ac_ext
11565 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11566 echo "${ECHO_T}$ac_header_preproc" >&6
11568 # So? What about this header?
11569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11570 yes:no: )
11571 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
11572 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11573 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
11574 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
11575 ac_header_preproc=yes
11577 no:yes:* )
11578 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
11579 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
11580 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
11581 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
11582 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
11583 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
11584 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
11585 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
11586 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
11587 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
11588 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
11589 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
11591 cat <<\_ASBOX
11592 ## ------------------------------------------------ ##
11593 ## Report this to http://www.python.org/python-bugs ##
11594 ## ------------------------------------------------ ##
11595 _ASBOX
11597 sed "s/^/$as_me: WARNING: /" >&2
11599 esac
11600 echo "$as_me:$LINENO: checking for cthreads.h" >&5
11601 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
11602 if test "${ac_cv_header_cthreads_h+set}" = set; then
11603 echo $ECHO_N "(cached) $ECHO_C" >&6
11604 else
11605 ac_cv_header_cthreads_h=$ac_header_preproc
11607 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
11608 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
11611 if test $ac_cv_header_cthreads_h = yes; then
11612 cat >>confdefs.h <<\_ACEOF
11613 #define WITH_THREAD 1
11614 _ACEOF
11616 cat >>confdefs.h <<\_ACEOF
11617 #define C_THREADS 1
11618 _ACEOF
11621 cat >>confdefs.h <<\_ACEOF
11622 #define HURD_C_THREADS 1
11623 _ACEOF
11625 LIBS="$LIBS -lthreads"
11626 THREADOBJ="Python/thread.o"
11627 else
11629 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
11630 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
11631 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
11632 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11635 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
11636 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
11637 else
11638 # Is the header compilable?
11639 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
11640 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
11641 cat >conftest.$ac_ext <<_ACEOF
11642 /* confdefs.h. */
11643 _ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h. */
11647 $ac_includes_default
11648 #include <mach/cthreads.h>
11649 _ACEOF
11650 rm -f conftest.$ac_objext
11651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11652 (eval $ac_compile) 2>conftest.er1
11653 ac_status=$?
11654 grep -v '^ *+' conftest.er1 >conftest.err
11655 rm -f conftest.er1
11656 cat conftest.err >&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } &&
11659 { ac_try='test -z "$ac_c_werror_flag"
11660 || test ! -s conftest.err'
11661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11662 (eval $ac_try) 2>&5
11663 ac_status=$?
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); }; } &&
11666 { ac_try='test -s conftest.$ac_objext'
11667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11668 (eval $ac_try) 2>&5
11669 ac_status=$?
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); }; }; then
11672 ac_header_compiler=yes
11673 else
11674 echo "$as_me: failed program was:" >&5
11675 sed 's/^/| /' conftest.$ac_ext >&5
11677 ac_header_compiler=no
11679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11680 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11681 echo "${ECHO_T}$ac_header_compiler" >&6
11683 # Is the header present?
11684 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
11685 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
11686 cat >conftest.$ac_ext <<_ACEOF
11687 /* confdefs.h. */
11688 _ACEOF
11689 cat confdefs.h >>conftest.$ac_ext
11690 cat >>conftest.$ac_ext <<_ACEOF
11691 /* end confdefs.h. */
11692 #include <mach/cthreads.h>
11693 _ACEOF
11694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11696 ac_status=$?
11697 grep -v '^ *+' conftest.er1 >conftest.err
11698 rm -f conftest.er1
11699 cat conftest.err >&5
11700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); } >/dev/null; then
11702 if test -s conftest.err; then
11703 ac_cpp_err=$ac_c_preproc_warn_flag
11704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11705 else
11706 ac_cpp_err=
11708 else
11709 ac_cpp_err=yes
11711 if test -z "$ac_cpp_err"; then
11712 ac_header_preproc=yes
11713 else
11714 echo "$as_me: failed program was:" >&5
11715 sed 's/^/| /' conftest.$ac_ext >&5
11717 ac_header_preproc=no
11719 rm -f conftest.err conftest.$ac_ext
11720 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11721 echo "${ECHO_T}$ac_header_preproc" >&6
11723 # So? What about this header?
11724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11725 yes:no: )
11726 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
11727 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11728 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
11729 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
11730 ac_header_preproc=yes
11732 no:yes:* )
11733 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
11734 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
11735 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
11736 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
11737 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
11738 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
11739 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
11740 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
11741 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
11742 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
11743 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
11744 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
11746 cat <<\_ASBOX
11747 ## ------------------------------------------------ ##
11748 ## Report this to http://www.python.org/python-bugs ##
11749 ## ------------------------------------------------ ##
11750 _ASBOX
11752 sed "s/^/$as_me: WARNING: /" >&2
11754 esac
11755 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
11756 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
11757 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
11758 echo $ECHO_N "(cached) $ECHO_C" >&6
11759 else
11760 ac_cv_header_mach_cthreads_h=$ac_header_preproc
11762 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
11763 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
11766 if test $ac_cv_header_mach_cthreads_h = yes; then
11767 cat >>confdefs.h <<\_ACEOF
11768 #define WITH_THREAD 1
11769 _ACEOF
11771 cat >>confdefs.h <<\_ACEOF
11772 #define C_THREADS 1
11773 _ACEOF
11776 cat >>confdefs.h <<\_ACEOF
11777 #define MACH_C_THREADS 1
11778 _ACEOF
11780 THREADOBJ="Python/thread.o"
11781 else
11783 echo "$as_me:$LINENO: checking for --with-pth" >&5
11784 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
11786 # Check whether --with-pth or --without-pth was given.
11787 if test "${with_pth+set}" = set; then
11788 withval="$with_pth"
11789 echo "$as_me:$LINENO: result: $withval" >&5
11790 echo "${ECHO_T}$withval" >&6
11791 cat >>confdefs.h <<\_ACEOF
11792 #define WITH_THREAD 1
11793 _ACEOF
11796 cat >>confdefs.h <<\_ACEOF
11797 #define HAVE_PTH 1
11798 _ACEOF
11800 LIBS="-lpth $LIBS"
11801 THREADOBJ="Python/thread.o"
11802 else
11803 echo "$as_me:$LINENO: result: no" >&5
11804 echo "${ECHO_T}no" >&6
11806 # Just looking for pthread_create in libpthread is not enough:
11807 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
11808 # So we really have to include pthread.h, and then link.
11809 _libs=$LIBS
11810 LIBS="$LIBS -lpthread"
11811 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
11812 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
11813 cat >conftest.$ac_ext <<_ACEOF
11814 /* confdefs.h. */
11815 _ACEOF
11816 cat confdefs.h >>conftest.$ac_ext
11817 cat >>conftest.$ac_ext <<_ACEOF
11818 /* end confdefs.h. */
11819 #include <pthread.h>
11821 void * start_routine (void *arg) { exit (0); }
11823 main ()
11826 pthread_create (NULL, NULL, start_routine, NULL)
11828 return 0;
11830 _ACEOF
11831 rm -f conftest.$ac_objext conftest$ac_exeext
11832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11833 (eval $ac_link) 2>conftest.er1
11834 ac_status=$?
11835 grep -v '^ *+' conftest.er1 >conftest.err
11836 rm -f conftest.er1
11837 cat conftest.err >&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } &&
11840 { ac_try='test -z "$ac_c_werror_flag"
11841 || test ! -s conftest.err'
11842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11843 (eval $ac_try) 2>&5
11844 ac_status=$?
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); }; } &&
11847 { ac_try='test -s conftest$ac_exeext'
11848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11849 (eval $ac_try) 2>&5
11850 ac_status=$?
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); }; }; then
11854 echo "$as_me:$LINENO: result: yes" >&5
11855 echo "${ECHO_T}yes" >&6
11856 cat >>confdefs.h <<\_ACEOF
11857 #define WITH_THREAD 1
11858 _ACEOF
11860 posix_threads=yes
11861 THREADOBJ="Python/thread.o"
11862 else
11863 echo "$as_me: failed program was:" >&5
11864 sed 's/^/| /' conftest.$ac_ext >&5
11867 LIBS=$_libs
11868 echo "$as_me:$LINENO: checking for pthread_detach" >&5
11869 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
11870 if test "${ac_cv_func_pthread_detach+set}" = set; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11872 else
11873 cat >conftest.$ac_ext <<_ACEOF
11874 /* confdefs.h. */
11875 _ACEOF
11876 cat confdefs.h >>conftest.$ac_ext
11877 cat >>conftest.$ac_ext <<_ACEOF
11878 /* end confdefs.h. */
11879 /* System header to define __stub macros and hopefully few prototypes,
11880 which can conflict with char pthread_detach (); below.
11881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11882 <limits.h> exists even on freestanding compilers. Under hpux,
11883 including <limits.h> includes <sys/time.h> and causes problems
11884 checking for functions defined therein. */
11885 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
11886 # include <limits.h>
11887 #else
11888 # include <assert.h>
11889 #endif
11890 /* Override any gcc2 internal prototype to avoid an error. */
11891 #ifdef __cplusplus
11892 extern "C"
11894 #endif
11895 /* We use char because int might match the return type of a gcc2
11896 builtin and then its argument prototype would still apply. */
11897 char pthread_detach ();
11898 /* The GNU C library defines this for functions which it implements
11899 to always fail with ENOSYS. Some functions are actually named
11900 something starting with __ and the normal name is an alias. */
11901 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
11902 choke me
11903 #else
11904 char (*f) () = pthread_detach;
11905 #endif
11906 #ifdef __cplusplus
11908 #endif
11911 main ()
11913 return f != pthread_detach;
11915 return 0;
11917 _ACEOF
11918 rm -f conftest.$ac_objext conftest$ac_exeext
11919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11920 (eval $ac_link) 2>conftest.er1
11921 ac_status=$?
11922 grep -v '^ *+' conftest.er1 >conftest.err
11923 rm -f conftest.er1
11924 cat conftest.err >&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); } &&
11927 { ac_try='test -z "$ac_c_werror_flag"
11928 || test ! -s conftest.err'
11929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930 (eval $ac_try) 2>&5
11931 ac_status=$?
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; } &&
11934 { ac_try='test -s conftest$ac_exeext'
11935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11936 (eval $ac_try) 2>&5
11937 ac_status=$?
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); }; }; then
11940 ac_cv_func_pthread_detach=yes
11941 else
11942 echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.$ac_ext >&5
11945 ac_cv_func_pthread_detach=no
11947 rm -f conftest.err conftest.$ac_objext \
11948 conftest$ac_exeext conftest.$ac_ext
11950 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
11951 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
11952 if test $ac_cv_func_pthread_detach = yes; then
11953 cat >>confdefs.h <<\_ACEOF
11954 #define WITH_THREAD 1
11955 _ACEOF
11957 posix_threads=yes
11958 THREADOBJ="Python/thread.o"
11959 else
11961 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
11962 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
11963 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
11964 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
11965 echo $ECHO_N "(cached) $ECHO_C" >&6
11967 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
11968 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
11969 else
11970 # Is the header compilable?
11971 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
11972 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
11973 cat >conftest.$ac_ext <<_ACEOF
11974 /* confdefs.h. */
11975 _ACEOF
11976 cat confdefs.h >>conftest.$ac_ext
11977 cat >>conftest.$ac_ext <<_ACEOF
11978 /* end confdefs.h. */
11979 $ac_includes_default
11980 #include <atheos/threads.h>
11981 _ACEOF
11982 rm -f conftest.$ac_objext
11983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11984 (eval $ac_compile) 2>conftest.er1
11985 ac_status=$?
11986 grep -v '^ *+' conftest.er1 >conftest.err
11987 rm -f conftest.er1
11988 cat conftest.err >&5
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); } &&
11991 { ac_try='test -z "$ac_c_werror_flag"
11992 || test ! -s conftest.err'
11993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11994 (eval $ac_try) 2>&5
11995 ac_status=$?
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); }; } &&
11998 { ac_try='test -s conftest.$ac_objext'
11999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12000 (eval $ac_try) 2>&5
12001 ac_status=$?
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); }; }; then
12004 ac_header_compiler=yes
12005 else
12006 echo "$as_me: failed program was:" >&5
12007 sed 's/^/| /' conftest.$ac_ext >&5
12009 ac_header_compiler=no
12011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12012 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12013 echo "${ECHO_T}$ac_header_compiler" >&6
12015 # Is the header present?
12016 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
12017 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
12018 cat >conftest.$ac_ext <<_ACEOF
12019 /* confdefs.h. */
12020 _ACEOF
12021 cat confdefs.h >>conftest.$ac_ext
12022 cat >>conftest.$ac_ext <<_ACEOF
12023 /* end confdefs.h. */
12024 #include <atheos/threads.h>
12025 _ACEOF
12026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12028 ac_status=$?
12029 grep -v '^ *+' conftest.er1 >conftest.err
12030 rm -f conftest.er1
12031 cat conftest.err >&5
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); } >/dev/null; then
12034 if test -s conftest.err; then
12035 ac_cpp_err=$ac_c_preproc_warn_flag
12036 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12037 else
12038 ac_cpp_err=
12040 else
12041 ac_cpp_err=yes
12043 if test -z "$ac_cpp_err"; then
12044 ac_header_preproc=yes
12045 else
12046 echo "$as_me: failed program was:" >&5
12047 sed 's/^/| /' conftest.$ac_ext >&5
12049 ac_header_preproc=no
12051 rm -f conftest.err conftest.$ac_ext
12052 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12053 echo "${ECHO_T}$ac_header_preproc" >&6
12055 # So? What about this header?
12056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12057 yes:no: )
12058 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12059 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12060 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
12061 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
12062 ac_header_preproc=yes
12064 no:yes:* )
12065 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
12066 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
12067 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
12068 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
12069 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
12070 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
12071 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
12072 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12073 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
12074 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
12075 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
12076 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
12078 cat <<\_ASBOX
12079 ## ------------------------------------------------ ##
12080 ## Report this to http://www.python.org/python-bugs ##
12081 ## ------------------------------------------------ ##
12082 _ASBOX
12084 sed "s/^/$as_me: WARNING: /" >&2
12086 esac
12087 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12088 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12089 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12090 echo $ECHO_N "(cached) $ECHO_C" >&6
12091 else
12092 ac_cv_header_atheos_threads_h=$ac_header_preproc
12094 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12095 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12098 if test $ac_cv_header_atheos_threads_h = yes; then
12099 cat >>confdefs.h <<\_ACEOF
12100 #define WITH_THREAD 1
12101 _ACEOF
12104 cat >>confdefs.h <<\_ACEOF
12105 #define ATHEOS_THREADS 1
12106 _ACEOF
12108 THREADOBJ="Python/thread.o"
12109 else
12111 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12112 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12113 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12114 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12115 echo $ECHO_N "(cached) $ECHO_C" >&6
12117 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12118 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12119 else
12120 # Is the header compilable?
12121 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
12122 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
12123 cat >conftest.$ac_ext <<_ACEOF
12124 /* confdefs.h. */
12125 _ACEOF
12126 cat confdefs.h >>conftest.$ac_ext
12127 cat >>conftest.$ac_ext <<_ACEOF
12128 /* end confdefs.h. */
12129 $ac_includes_default
12130 #include <kernel/OS.h>
12131 _ACEOF
12132 rm -f conftest.$ac_objext
12133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12134 (eval $ac_compile) 2>conftest.er1
12135 ac_status=$?
12136 grep -v '^ *+' conftest.er1 >conftest.err
12137 rm -f conftest.er1
12138 cat conftest.err >&5
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); } &&
12141 { ac_try='test -z "$ac_c_werror_flag"
12142 || test ! -s conftest.err'
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); }; } &&
12148 { ac_try='test -s conftest.$ac_objext'
12149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12150 (eval $ac_try) 2>&5
12151 ac_status=$?
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); }; }; then
12154 ac_header_compiler=yes
12155 else
12156 echo "$as_me: failed program was:" >&5
12157 sed 's/^/| /' conftest.$ac_ext >&5
12159 ac_header_compiler=no
12161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12162 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12163 echo "${ECHO_T}$ac_header_compiler" >&6
12165 # Is the header present?
12166 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
12167 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
12168 cat >conftest.$ac_ext <<_ACEOF
12169 /* confdefs.h. */
12170 _ACEOF
12171 cat confdefs.h >>conftest.$ac_ext
12172 cat >>conftest.$ac_ext <<_ACEOF
12173 /* end confdefs.h. */
12174 #include <kernel/OS.h>
12175 _ACEOF
12176 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12177 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12178 ac_status=$?
12179 grep -v '^ *+' conftest.er1 >conftest.err
12180 rm -f conftest.er1
12181 cat conftest.err >&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); } >/dev/null; then
12184 if test -s conftest.err; then
12185 ac_cpp_err=$ac_c_preproc_warn_flag
12186 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12187 else
12188 ac_cpp_err=
12190 else
12191 ac_cpp_err=yes
12193 if test -z "$ac_cpp_err"; then
12194 ac_header_preproc=yes
12195 else
12196 echo "$as_me: failed program was:" >&5
12197 sed 's/^/| /' conftest.$ac_ext >&5
12199 ac_header_preproc=no
12201 rm -f conftest.err conftest.$ac_ext
12202 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12203 echo "${ECHO_T}$ac_header_preproc" >&6
12205 # So? What about this header?
12206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12207 yes:no: )
12208 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
12209 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12210 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
12211 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
12212 ac_header_preproc=yes
12214 no:yes:* )
12215 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
12216 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
12217 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
12218 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
12219 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
12220 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
12221 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
12222 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
12223 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
12224 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
12225 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
12226 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
12228 cat <<\_ASBOX
12229 ## ------------------------------------------------ ##
12230 ## Report this to http://www.python.org/python-bugs ##
12231 ## ------------------------------------------------ ##
12232 _ASBOX
12234 sed "s/^/$as_me: WARNING: /" >&2
12236 esac
12237 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12238 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12239 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12240 echo $ECHO_N "(cached) $ECHO_C" >&6
12241 else
12242 ac_cv_header_kernel_OS_h=$ac_header_preproc
12244 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12245 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12248 if test $ac_cv_header_kernel_OS_h = yes; then
12249 cat >>confdefs.h <<\_ACEOF
12250 #define WITH_THREAD 1
12251 _ACEOF
12254 cat >>confdefs.h <<\_ACEOF
12255 #define BEOS_THREADS 1
12256 _ACEOF
12258 THREADOBJ="Python/thread.o"
12259 else
12261 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
12262 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
12263 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
12264 echo $ECHO_N "(cached) $ECHO_C" >&6
12265 else
12266 ac_check_lib_save_LIBS=$LIBS
12267 LIBS="-lpthreads $LIBS"
12268 cat >conftest.$ac_ext <<_ACEOF
12269 /* confdefs.h. */
12270 _ACEOF
12271 cat confdefs.h >>conftest.$ac_ext
12272 cat >>conftest.$ac_ext <<_ACEOF
12273 /* end confdefs.h. */
12275 /* Override any gcc2 internal prototype to avoid an error. */
12276 #ifdef __cplusplus
12277 extern "C"
12278 #endif
12279 /* We use char because int might match the return type of a gcc2
12280 builtin and then its argument prototype would still apply. */
12281 char pthread_create ();
12283 main ()
12285 pthread_create ();
12287 return 0;
12289 _ACEOF
12290 rm -f conftest.$ac_objext conftest$ac_exeext
12291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12292 (eval $ac_link) 2>conftest.er1
12293 ac_status=$?
12294 grep -v '^ *+' conftest.er1 >conftest.err
12295 rm -f conftest.er1
12296 cat conftest.err >&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); } &&
12299 { ac_try='test -z "$ac_c_werror_flag"
12300 || test ! -s conftest.err'
12301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12302 (eval $ac_try) 2>&5
12303 ac_status=$?
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); }; } &&
12306 { ac_try='test -s conftest$ac_exeext'
12307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12308 (eval $ac_try) 2>&5
12309 ac_status=$?
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); }; }; then
12312 ac_cv_lib_pthreads_pthread_create=yes
12313 else
12314 echo "$as_me: failed program was:" >&5
12315 sed 's/^/| /' conftest.$ac_ext >&5
12317 ac_cv_lib_pthreads_pthread_create=no
12319 rm -f conftest.err conftest.$ac_objext \
12320 conftest$ac_exeext conftest.$ac_ext
12321 LIBS=$ac_check_lib_save_LIBS
12323 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
12324 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
12325 if test $ac_cv_lib_pthreads_pthread_create = yes; then
12326 cat >>confdefs.h <<\_ACEOF
12327 #define WITH_THREAD 1
12328 _ACEOF
12330 posix_threads=yes
12331 LIBS="$LIBS -lpthreads"
12332 THREADOBJ="Python/thread.o"
12333 else
12335 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
12336 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
12337 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
12338 echo $ECHO_N "(cached) $ECHO_C" >&6
12339 else
12340 ac_check_lib_save_LIBS=$LIBS
12341 LIBS="-lc_r $LIBS"
12342 cat >conftest.$ac_ext <<_ACEOF
12343 /* confdefs.h. */
12344 _ACEOF
12345 cat confdefs.h >>conftest.$ac_ext
12346 cat >>conftest.$ac_ext <<_ACEOF
12347 /* end confdefs.h. */
12349 /* Override any gcc2 internal prototype to avoid an error. */
12350 #ifdef __cplusplus
12351 extern "C"
12352 #endif
12353 /* We use char because int might match the return type of a gcc2
12354 builtin and then its argument prototype would still apply. */
12355 char pthread_create ();
12357 main ()
12359 pthread_create ();
12361 return 0;
12363 _ACEOF
12364 rm -f conftest.$ac_objext conftest$ac_exeext
12365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12366 (eval $ac_link) 2>conftest.er1
12367 ac_status=$?
12368 grep -v '^ *+' conftest.er1 >conftest.err
12369 rm -f conftest.er1
12370 cat conftest.err >&5
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); } &&
12373 { ac_try='test -z "$ac_c_werror_flag"
12374 || test ! -s conftest.err'
12375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376 (eval $ac_try) 2>&5
12377 ac_status=$?
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); }; } &&
12380 { ac_try='test -s conftest$ac_exeext'
12381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12382 (eval $ac_try) 2>&5
12383 ac_status=$?
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); }; }; then
12386 ac_cv_lib_c_r_pthread_create=yes
12387 else
12388 echo "$as_me: failed program was:" >&5
12389 sed 's/^/| /' conftest.$ac_ext >&5
12391 ac_cv_lib_c_r_pthread_create=no
12393 rm -f conftest.err conftest.$ac_objext \
12394 conftest$ac_exeext conftest.$ac_ext
12395 LIBS=$ac_check_lib_save_LIBS
12397 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
12398 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
12399 if test $ac_cv_lib_c_r_pthread_create = yes; then
12400 cat >>confdefs.h <<\_ACEOF
12401 #define WITH_THREAD 1
12402 _ACEOF
12404 posix_threads=yes
12405 LIBS="$LIBS -lc_r"
12406 THREADOBJ="Python/thread.o"
12407 else
12409 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
12410 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
12411 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
12412 echo $ECHO_N "(cached) $ECHO_C" >&6
12413 else
12414 ac_check_lib_save_LIBS=$LIBS
12415 LIBS="-lpthread $LIBS"
12416 cat >conftest.$ac_ext <<_ACEOF
12417 /* confdefs.h. */
12418 _ACEOF
12419 cat confdefs.h >>conftest.$ac_ext
12420 cat >>conftest.$ac_ext <<_ACEOF
12421 /* end confdefs.h. */
12423 /* Override any gcc2 internal prototype to avoid an error. */
12424 #ifdef __cplusplus
12425 extern "C"
12426 #endif
12427 /* We use char because int might match the return type of a gcc2
12428 builtin and then its argument prototype would still apply. */
12429 char __pthread_create_system ();
12431 main ()
12433 __pthread_create_system ();
12435 return 0;
12437 _ACEOF
12438 rm -f conftest.$ac_objext conftest$ac_exeext
12439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12440 (eval $ac_link) 2>conftest.er1
12441 ac_status=$?
12442 grep -v '^ *+' conftest.er1 >conftest.err
12443 rm -f conftest.er1
12444 cat conftest.err >&5
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); } &&
12447 { ac_try='test -z "$ac_c_werror_flag"
12448 || test ! -s conftest.err'
12449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450 (eval $ac_try) 2>&5
12451 ac_status=$?
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; } &&
12454 { ac_try='test -s conftest$ac_exeext'
12455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456 (eval $ac_try) 2>&5
12457 ac_status=$?
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); }; }; then
12460 ac_cv_lib_pthread___pthread_create_system=yes
12461 else
12462 echo "$as_me: failed program was:" >&5
12463 sed 's/^/| /' conftest.$ac_ext >&5
12465 ac_cv_lib_pthread___pthread_create_system=no
12467 rm -f conftest.err conftest.$ac_objext \
12468 conftest$ac_exeext conftest.$ac_ext
12469 LIBS=$ac_check_lib_save_LIBS
12471 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
12472 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
12473 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
12474 cat >>confdefs.h <<\_ACEOF
12475 #define WITH_THREAD 1
12476 _ACEOF
12478 posix_threads=yes
12479 LIBS="$LIBS -lpthread"
12480 THREADOBJ="Python/thread.o"
12481 else
12483 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
12484 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
12485 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
12486 echo $ECHO_N "(cached) $ECHO_C" >&6
12487 else
12488 ac_check_lib_save_LIBS=$LIBS
12489 LIBS="-lcma $LIBS"
12490 cat >conftest.$ac_ext <<_ACEOF
12491 /* confdefs.h. */
12492 _ACEOF
12493 cat confdefs.h >>conftest.$ac_ext
12494 cat >>conftest.$ac_ext <<_ACEOF
12495 /* end confdefs.h. */
12497 /* Override any gcc2 internal prototype to avoid an error. */
12498 #ifdef __cplusplus
12499 extern "C"
12500 #endif
12501 /* We use char because int might match the return type of a gcc2
12502 builtin and then its argument prototype would still apply. */
12503 char pthread_create ();
12505 main ()
12507 pthread_create ();
12509 return 0;
12511 _ACEOF
12512 rm -f conftest.$ac_objext conftest$ac_exeext
12513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12514 (eval $ac_link) 2>conftest.er1
12515 ac_status=$?
12516 grep -v '^ *+' conftest.er1 >conftest.err
12517 rm -f conftest.er1
12518 cat conftest.err >&5
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); } &&
12521 { ac_try='test -z "$ac_c_werror_flag"
12522 || test ! -s conftest.err'
12523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12524 (eval $ac_try) 2>&5
12525 ac_status=$?
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); }; } &&
12528 { ac_try='test -s conftest$ac_exeext'
12529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12530 (eval $ac_try) 2>&5
12531 ac_status=$?
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); }; }; then
12534 ac_cv_lib_cma_pthread_create=yes
12535 else
12536 echo "$as_me: failed program was:" >&5
12537 sed 's/^/| /' conftest.$ac_ext >&5
12539 ac_cv_lib_cma_pthread_create=no
12541 rm -f conftest.err conftest.$ac_objext \
12542 conftest$ac_exeext conftest.$ac_ext
12543 LIBS=$ac_check_lib_save_LIBS
12545 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
12546 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
12547 if test $ac_cv_lib_cma_pthread_create = yes; then
12548 cat >>confdefs.h <<\_ACEOF
12549 #define WITH_THREAD 1
12550 _ACEOF
12552 posix_threads=yes
12553 LIBS="$LIBS -lcma"
12554 THREADOBJ="Python/thread.o"
12555 else
12557 USE_THREAD_MODULE="#"
12576 rm -f conftest.err conftest.$ac_objext \
12577 conftest$ac_exeext conftest.$ac_ext
12586 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
12587 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
12588 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
12589 echo $ECHO_N "(cached) $ECHO_C" >&6
12590 else
12591 ac_check_lib_save_LIBS=$LIBS
12592 LIBS="-lmpc $LIBS"
12593 cat >conftest.$ac_ext <<_ACEOF
12594 /* confdefs.h. */
12595 _ACEOF
12596 cat confdefs.h >>conftest.$ac_ext
12597 cat >>conftest.$ac_ext <<_ACEOF
12598 /* end confdefs.h. */
12600 /* Override any gcc2 internal prototype to avoid an error. */
12601 #ifdef __cplusplus
12602 extern "C"
12603 #endif
12604 /* We use char because int might match the return type of a gcc2
12605 builtin and then its argument prototype would still apply. */
12606 char usconfig ();
12608 main ()
12610 usconfig ();
12612 return 0;
12614 _ACEOF
12615 rm -f conftest.$ac_objext conftest$ac_exeext
12616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12617 (eval $ac_link) 2>conftest.er1
12618 ac_status=$?
12619 grep -v '^ *+' conftest.er1 >conftest.err
12620 rm -f conftest.er1
12621 cat conftest.err >&5
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } &&
12624 { ac_try='test -z "$ac_c_werror_flag"
12625 || test ! -s conftest.err'
12626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12627 (eval $ac_try) 2>&5
12628 ac_status=$?
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); }; } &&
12631 { ac_try='test -s conftest$ac_exeext'
12632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12633 (eval $ac_try) 2>&5
12634 ac_status=$?
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; }; then
12637 ac_cv_lib_mpc_usconfig=yes
12638 else
12639 echo "$as_me: failed program was:" >&5
12640 sed 's/^/| /' conftest.$ac_ext >&5
12642 ac_cv_lib_mpc_usconfig=no
12644 rm -f conftest.err conftest.$ac_objext \
12645 conftest$ac_exeext conftest.$ac_ext
12646 LIBS=$ac_check_lib_save_LIBS
12648 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
12649 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
12650 if test $ac_cv_lib_mpc_usconfig = yes; then
12651 cat >>confdefs.h <<\_ACEOF
12652 #define WITH_THREAD 1
12653 _ACEOF
12655 LIBS="$LIBS -lmpc"
12656 THREADOBJ="Python/thread.o"
12657 USE_THREAD_MODULE=""
12661 if test "$posix_threads" != "yes"; then
12662 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
12663 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
12664 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
12665 echo $ECHO_N "(cached) $ECHO_C" >&6
12666 else
12667 ac_check_lib_save_LIBS=$LIBS
12668 LIBS="-lthread $LIBS"
12669 cat >conftest.$ac_ext <<_ACEOF
12670 /* confdefs.h. */
12671 _ACEOF
12672 cat confdefs.h >>conftest.$ac_ext
12673 cat >>conftest.$ac_ext <<_ACEOF
12674 /* end confdefs.h. */
12676 /* Override any gcc2 internal prototype to avoid an error. */
12677 #ifdef __cplusplus
12678 extern "C"
12679 #endif
12680 /* We use char because int might match the return type of a gcc2
12681 builtin and then its argument prototype would still apply. */
12682 char thr_create ();
12684 main ()
12686 thr_create ();
12688 return 0;
12690 _ACEOF
12691 rm -f conftest.$ac_objext conftest$ac_exeext
12692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12693 (eval $ac_link) 2>conftest.er1
12694 ac_status=$?
12695 grep -v '^ *+' conftest.er1 >conftest.err
12696 rm -f conftest.er1
12697 cat conftest.err >&5
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); } &&
12700 { ac_try='test -z "$ac_c_werror_flag"
12701 || test ! -s conftest.err'
12702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12703 (eval $ac_try) 2>&5
12704 ac_status=$?
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); }; } &&
12707 { ac_try='test -s conftest$ac_exeext'
12708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12709 (eval $ac_try) 2>&5
12710 ac_status=$?
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; }; then
12713 ac_cv_lib_thread_thr_create=yes
12714 else
12715 echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.$ac_ext >&5
12718 ac_cv_lib_thread_thr_create=no
12720 rm -f conftest.err conftest.$ac_objext \
12721 conftest$ac_exeext conftest.$ac_ext
12722 LIBS=$ac_check_lib_save_LIBS
12724 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
12725 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
12726 if test $ac_cv_lib_thread_thr_create = yes; then
12727 cat >>confdefs.h <<\_ACEOF
12728 #define WITH_THREAD 1
12729 _ACEOF
12731 LIBS="$LIBS -lthread"
12732 THREADOBJ="Python/thread.o"
12733 USE_THREAD_MODULE=""
12738 if test "$USE_THREAD_MODULE" != "#"
12739 then
12740 # If the above checks didn't disable threads, (at least) OSF1
12741 # needs this '-threads' argument during linking.
12742 case $ac_sys_system in
12743 OSF1) LDLAST=-threads;;
12744 esac
12748 if test "$posix_threads" = "yes"; then
12749 if test "$unistd_defines_pthreads" = "no"; then
12751 cat >>confdefs.h <<\_ACEOF
12752 #define _POSIX_THREADS 1
12753 _ACEOF
12757 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
12758 case $ac_sys_system/$ac_sys_release in
12759 SunOS/5.6)
12760 cat >>confdefs.h <<\_ACEOF
12761 #define HAVE_PTHREAD_DESTRUCTOR 1
12762 _ACEOF
12765 SunOS/5.8)
12766 cat >>confdefs.h <<\_ACEOF
12767 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
12768 _ACEOF
12771 esac
12773 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
12774 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
12775 if test "${ac_cv_pthread_system_supported+set}" = set; then
12776 echo $ECHO_N "(cached) $ECHO_C" >&6
12777 else
12778 if test "$cross_compiling" = yes; then
12779 ac_cv_pthread_system_supported=no
12780 else
12781 cat >conftest.$ac_ext <<_ACEOF
12782 /* confdefs.h. */
12783 _ACEOF
12784 cat confdefs.h >>conftest.$ac_ext
12785 cat >>conftest.$ac_ext <<_ACEOF
12786 /* end confdefs.h. */
12787 #include <pthread.h>
12788 void *foo(void *parm) {
12789 return NULL;
12791 main() {
12792 pthread_attr_t attr;
12793 pthread_t id;
12794 if (pthread_attr_init(&attr)) exit(-1);
12795 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
12796 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
12797 exit(0);
12799 _ACEOF
12800 rm -f conftest$ac_exeext
12801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12802 (eval $ac_link) 2>&5
12803 ac_status=$?
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12807 (eval $ac_try) 2>&5
12808 ac_status=$?
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); }; }; then
12811 ac_cv_pthread_system_supported=yes
12812 else
12813 echo "$as_me: program exited with status $ac_status" >&5
12814 echo "$as_me: failed program was:" >&5
12815 sed 's/^/| /' conftest.$ac_ext >&5
12817 ( exit $ac_status )
12818 ac_cv_pthread_system_supported=no
12820 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12825 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
12826 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
12827 if test "$ac_cv_pthread_system_supported" = "yes"; then
12829 cat >>confdefs.h <<\_ACEOF
12830 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
12831 _ACEOF
12835 for ac_func in pthread_sigmask
12837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12838 echo "$as_me:$LINENO: checking for $ac_func" >&5
12839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12840 if eval "test \"\${$as_ac_var+set}\" = set"; then
12841 echo $ECHO_N "(cached) $ECHO_C" >&6
12842 else
12843 cat >conftest.$ac_ext <<_ACEOF
12844 /* confdefs.h. */
12845 _ACEOF
12846 cat confdefs.h >>conftest.$ac_ext
12847 cat >>conftest.$ac_ext <<_ACEOF
12848 /* end confdefs.h. */
12849 /* System header to define __stub macros and hopefully few prototypes,
12850 which can conflict with char $ac_func (); below.
12851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12852 <limits.h> exists even on freestanding compilers. Under hpux,
12853 including <limits.h> includes <sys/time.h> and causes problems
12854 checking for functions defined therein. */
12855 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
12856 # include <limits.h>
12857 #else
12858 # include <assert.h>
12859 #endif
12860 /* Override any gcc2 internal prototype to avoid an error. */
12861 #ifdef __cplusplus
12862 extern "C"
12864 #endif
12865 /* We use char because int might match the return type of a gcc2
12866 builtin and then its argument prototype would still apply. */
12867 char $ac_func ();
12868 /* The GNU C library defines this for functions which it implements
12869 to always fail with ENOSYS. Some functions are actually named
12870 something starting with __ and the normal name is an alias. */
12871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12872 choke me
12873 #else
12874 char (*f) () = $ac_func;
12875 #endif
12876 #ifdef __cplusplus
12878 #endif
12881 main ()
12883 return f != $ac_func;
12885 return 0;
12887 _ACEOF
12888 rm -f conftest.$ac_objext conftest$ac_exeext
12889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12890 (eval $ac_link) 2>conftest.er1
12891 ac_status=$?
12892 grep -v '^ *+' conftest.er1 >conftest.err
12893 rm -f conftest.er1
12894 cat conftest.err >&5
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); } &&
12897 { ac_try='test -z "$ac_c_werror_flag"
12898 || test ! -s conftest.err'
12899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12900 (eval $ac_try) 2>&5
12901 ac_status=$?
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); }; } &&
12904 { ac_try='test -s conftest$ac_exeext'
12905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12906 (eval $ac_try) 2>&5
12907 ac_status=$?
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); }; }; then
12910 eval "$as_ac_var=yes"
12911 else
12912 echo "$as_me: failed program was:" >&5
12913 sed 's/^/| /' conftest.$ac_ext >&5
12915 eval "$as_ac_var=no"
12917 rm -f conftest.err conftest.$ac_objext \
12918 conftest$ac_exeext conftest.$ac_ext
12920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12921 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12922 if test `eval echo '${'$as_ac_var'}'` = yes; then
12923 cat >>confdefs.h <<_ACEOF
12924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12925 _ACEOF
12926 case $ac_sys_system in
12927 CYGWIN*)
12929 cat >>confdefs.h <<\_ACEOF
12930 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
12931 _ACEOF
12934 esac
12936 done
12941 # Check for enable-ipv6
12944 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
12945 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
12946 # Check whether --enable-ipv6 or --disable-ipv6 was given.
12947 if test "${enable_ipv6+set}" = set; then
12948 enableval="$enable_ipv6"
12949 case "$enableval" in
12951 echo "$as_me:$LINENO: result: no" >&5
12952 echo "${ECHO_T}no" >&6
12953 ipv6=no
12955 *) echo "$as_me:$LINENO: result: yes" >&5
12956 echo "${ECHO_T}yes" >&6
12957 cat >>confdefs.h <<\_ACEOF
12958 #define ENABLE_IPV6 1
12959 _ACEOF
12961 ipv6=yes
12963 esac
12964 else
12966 if test "$cross_compiling" = yes; then
12967 echo "$as_me:$LINENO: result: no" >&5
12968 echo "${ECHO_T}no" >&6
12969 ipv6=no
12971 else
12972 cat >conftest.$ac_ext <<_ACEOF
12973 /* confdefs.h. */
12974 _ACEOF
12975 cat confdefs.h >>conftest.$ac_ext
12976 cat >>conftest.$ac_ext <<_ACEOF
12977 /* end confdefs.h. */
12978 /* AF_INET6 available check */
12979 #include <sys/types.h>
12980 #include <sys/socket.h>
12981 main()
12983 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
12984 exit(1);
12985 else
12986 exit(0);
12989 _ACEOF
12990 rm -f conftest$ac_exeext
12991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12992 (eval $ac_link) 2>&5
12993 ac_status=$?
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997 (eval $ac_try) 2>&5
12998 ac_status=$?
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); }; }; then
13001 echo "$as_me:$LINENO: result: yes" >&5
13002 echo "${ECHO_T}yes" >&6
13003 ipv6=yes
13004 else
13005 echo "$as_me: program exited with status $ac_status" >&5
13006 echo "$as_me: failed program was:" >&5
13007 sed 's/^/| /' conftest.$ac_ext >&5
13009 ( exit $ac_status )
13010 echo "$as_me:$LINENO: result: no" >&5
13011 echo "${ECHO_T}no" >&6
13012 ipv6=no
13014 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13017 if test "$ipv6" = "yes"; then
13018 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
13019 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
13020 cat >conftest.$ac_ext <<_ACEOF
13021 /* confdefs.h. */
13022 _ACEOF
13023 cat confdefs.h >>conftest.$ac_ext
13024 cat >>conftest.$ac_ext <<_ACEOF
13025 /* end confdefs.h. */
13026 #include <sys/types.h>
13027 #include <netinet/in.h>
13029 main ()
13031 struct sockaddr_in6 x;
13032 x.sin6_scope_id;
13034 return 0;
13036 _ACEOF
13037 rm -f conftest.$ac_objext
13038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13039 (eval $ac_compile) 2>conftest.er1
13040 ac_status=$?
13041 grep -v '^ *+' conftest.er1 >conftest.err
13042 rm -f conftest.er1
13043 cat conftest.err >&5
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); } &&
13046 { ac_try='test -z "$ac_c_werror_flag"
13047 || test ! -s conftest.err'
13048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13049 (eval $ac_try) 2>&5
13050 ac_status=$?
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); }; } &&
13053 { ac_try='test -s conftest.$ac_objext'
13054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13055 (eval $ac_try) 2>&5
13056 ac_status=$?
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); }; }; then
13059 echo "$as_me:$LINENO: result: yes" >&5
13060 echo "${ECHO_T}yes" >&6
13061 ipv6=yes
13062 else
13063 echo "$as_me: failed program was:" >&5
13064 sed 's/^/| /' conftest.$ac_ext >&5
13066 echo "$as_me:$LINENO: result: no" >&5
13067 echo "${ECHO_T}no" >&6
13068 ipv6=no
13070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13073 if test "$ipv6" = "yes"; then
13074 cat >>confdefs.h <<\_ACEOF
13075 #define ENABLE_IPV6 1
13076 _ACEOF
13082 ipv6type=unknown
13083 ipv6lib=none
13084 ipv6trylibc=no
13086 if test "$ipv6" = "yes"; then
13087 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
13088 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
13089 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
13091 case $i in
13092 inria)
13093 cat >conftest.$ac_ext <<_ACEOF
13094 /* confdefs.h. */
13095 _ACEOF
13096 cat confdefs.h >>conftest.$ac_ext
13097 cat >>conftest.$ac_ext <<_ACEOF
13098 /* end confdefs.h. */
13100 #include <netinet/in.h>
13101 #ifdef IPV6_INRIA_VERSION
13103 #endif
13104 _ACEOF
13105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13106 $EGREP "yes" >/dev/null 2>&1; then
13107 ipv6type=$i
13109 rm -f conftest*
13112 kame)
13113 cat >conftest.$ac_ext <<_ACEOF
13114 /* confdefs.h. */
13115 _ACEOF
13116 cat confdefs.h >>conftest.$ac_ext
13117 cat >>conftest.$ac_ext <<_ACEOF
13118 /* end confdefs.h. */
13120 #include <netinet/in.h>
13121 #ifdef __KAME__
13123 #endif
13124 _ACEOF
13125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13126 $EGREP "yes" >/dev/null 2>&1; then
13127 ipv6type=$i;
13128 ipv6lib=inet6
13129 ipv6libdir=/usr/local/v6/lib
13130 ipv6trylibc=yes
13132 rm -f conftest*
13135 linux-glibc)
13136 cat >conftest.$ac_ext <<_ACEOF
13137 /* confdefs.h. */
13138 _ACEOF
13139 cat confdefs.h >>conftest.$ac_ext
13140 cat >>conftest.$ac_ext <<_ACEOF
13141 /* end confdefs.h. */
13143 #include <features.h>
13144 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
13146 #endif
13147 _ACEOF
13148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13149 $EGREP "yes" >/dev/null 2>&1; then
13150 ipv6type=$i;
13151 ipv6trylibc=yes
13153 rm -f conftest*
13156 linux-inet6)
13157 if test -d /usr/inet6; then
13158 ipv6type=$i
13159 ipv6lib=inet6
13160 ipv6libdir=/usr/inet6/lib
13161 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
13164 solaris)
13165 if test -f /etc/netconfig; then
13166 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
13167 ipv6type=$i
13168 ipv6trylibc=yes
13172 toshiba)
13173 cat >conftest.$ac_ext <<_ACEOF
13174 /* confdefs.h. */
13175 _ACEOF
13176 cat confdefs.h >>conftest.$ac_ext
13177 cat >>conftest.$ac_ext <<_ACEOF
13178 /* end confdefs.h. */
13180 #include <sys/param.h>
13181 #ifdef _TOSHIBA_INET6
13183 #endif
13184 _ACEOF
13185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13186 $EGREP "yes" >/dev/null 2>&1; then
13187 ipv6type=$i;
13188 ipv6lib=inet6;
13189 ipv6libdir=/usr/local/v6/lib
13191 rm -f conftest*
13194 v6d)
13195 cat >conftest.$ac_ext <<_ACEOF
13196 /* confdefs.h. */
13197 _ACEOF
13198 cat confdefs.h >>conftest.$ac_ext
13199 cat >>conftest.$ac_ext <<_ACEOF
13200 /* end confdefs.h. */
13202 #include </usr/local/v6/include/sys/v6config.h>
13203 #ifdef __V6D__
13205 #endif
13206 _ACEOF
13207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13208 $EGREP "yes" >/dev/null 2>&1; then
13209 ipv6type=$i;
13210 ipv6lib=v6;
13211 ipv6libdir=/usr/local/v6/lib;
13212 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
13214 rm -f conftest*
13217 zeta)
13218 cat >conftest.$ac_ext <<_ACEOF
13219 /* confdefs.h. */
13220 _ACEOF
13221 cat confdefs.h >>conftest.$ac_ext
13222 cat >>conftest.$ac_ext <<_ACEOF
13223 /* end confdefs.h. */
13225 #include <sys/param.h>
13226 #ifdef _ZETA_MINAMI_INET6
13228 #endif
13229 _ACEOF
13230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13231 $EGREP "yes" >/dev/null 2>&1; then
13232 ipv6type=$i;
13233 ipv6lib=inet6;
13234 ipv6libdir=/usr/local/v6/lib
13236 rm -f conftest*
13239 esac
13240 if test "$ipv6type" != "unknown"; then
13241 break
13243 done
13244 echo "$as_me:$LINENO: result: $ipv6type" >&5
13245 echo "${ECHO_T}$ipv6type" >&6
13248 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
13249 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
13250 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
13251 echo "using lib$ipv6lib"
13252 else
13253 if test $ipv6trylibc = "yes"; then
13254 echo "using libc"
13255 else
13256 echo 'Fatal: no $ipv6lib library found. cannot continue.'
13257 echo "You need to fetch lib$ipv6lib.a from appropriate"
13258 echo 'ipv6 kit and compile beforehand.'
13259 exit 1
13264 # Check for --with-doc-strings
13265 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
13266 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
13268 # Check whether --with-doc-strings or --without-doc-strings was given.
13269 if test "${with_doc_strings+set}" = set; then
13270 withval="$with_doc_strings"
13274 if test -z "$with_doc_strings"
13275 then with_doc_strings="yes"
13277 if test "$with_doc_strings" != "no"
13278 then
13280 cat >>confdefs.h <<\_ACEOF
13281 #define WITH_DOC_STRINGS 1
13282 _ACEOF
13285 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
13286 echo "${ECHO_T}$with_doc_strings" >&6
13288 # Check for Python-specific malloc support
13289 echo "$as_me:$LINENO: checking for --with-tsc" >&5
13290 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6
13292 # Check whether --with-tsc or --without-tsc was given.
13293 if test "${with_tsc+set}" = set; then
13294 withval="$with_tsc"
13296 if test "$withval" != no
13297 then
13299 cat >>confdefs.h <<\_ACEOF
13300 #define WITH_TSC 1
13301 _ACEOF
13303 echo "$as_me:$LINENO: result: yes" >&5
13304 echo "${ECHO_T}yes" >&6
13305 else echo "$as_me:$LINENO: result: no" >&5
13306 echo "${ECHO_T}no" >&6
13308 else
13309 echo "$as_me:$LINENO: result: no" >&5
13310 echo "${ECHO_T}no" >&6
13313 # Check for Python-specific malloc support
13314 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
13315 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
13317 # Check whether --with-pymalloc or --without-pymalloc was given.
13318 if test "${with_pymalloc+set}" = set; then
13319 withval="$with_pymalloc"
13323 if test -z "$with_pymalloc"
13324 then with_pymalloc="yes"
13326 if test "$with_pymalloc" != "no"
13327 then
13329 cat >>confdefs.h <<\_ACEOF
13330 #define WITH_PYMALLOC 1
13331 _ACEOF
13334 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
13335 echo "${ECHO_T}$with_pymalloc" >&6
13337 # Check for --with-wctype-functions
13338 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
13339 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
13341 # Check whether --with-wctype-functions or --without-wctype-functions was given.
13342 if test "${with_wctype_functions+set}" = set; then
13343 withval="$with_wctype_functions"
13345 if test "$withval" != no
13346 then
13348 cat >>confdefs.h <<\_ACEOF
13349 #define WANT_WCTYPE_FUNCTIONS 1
13350 _ACEOF
13352 echo "$as_me:$LINENO: result: yes" >&5
13353 echo "${ECHO_T}yes" >&6
13354 else echo "$as_me:$LINENO: result: no" >&5
13355 echo "${ECHO_T}no" >&6
13357 else
13358 echo "$as_me:$LINENO: result: no" >&5
13359 echo "${ECHO_T}no" >&6
13362 # -I${DLINCLDIR} is added to the compile rule for importdl.o
13364 DLINCLDIR=.
13366 # the dlopen() function means we might want to use dynload_shlib.o. some
13367 # platforms, such as AIX, have dlopen(), but don't want to use it.
13369 for ac_func in dlopen
13371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13372 echo "$as_me:$LINENO: checking for $ac_func" >&5
13373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13374 if eval "test \"\${$as_ac_var+set}\" = set"; then
13375 echo $ECHO_N "(cached) $ECHO_C" >&6
13376 else
13377 cat >conftest.$ac_ext <<_ACEOF
13378 /* confdefs.h. */
13379 _ACEOF
13380 cat confdefs.h >>conftest.$ac_ext
13381 cat >>conftest.$ac_ext <<_ACEOF
13382 /* end confdefs.h. */
13383 /* System header to define __stub macros and hopefully few prototypes,
13384 which can conflict with char $ac_func (); below.
13385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13386 <limits.h> exists even on freestanding compilers. Under hpux,
13387 including <limits.h> includes <sys/time.h> and causes problems
13388 checking for functions defined therein. */
13389 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
13390 # include <limits.h>
13391 #else
13392 # include <assert.h>
13393 #endif
13394 /* Override any gcc2 internal prototype to avoid an error. */
13395 #ifdef __cplusplus
13396 extern "C"
13398 #endif
13399 /* We use char because int might match the return type of a gcc2
13400 builtin and then its argument prototype would still apply. */
13401 char $ac_func ();
13402 /* The GNU C library defines this for functions which it implements
13403 to always fail with ENOSYS. Some functions are actually named
13404 something starting with __ and the normal name is an alias. */
13405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13406 choke me
13407 #else
13408 char (*f) () = $ac_func;
13409 #endif
13410 #ifdef __cplusplus
13412 #endif
13415 main ()
13417 return f != $ac_func;
13419 return 0;
13421 _ACEOF
13422 rm -f conftest.$ac_objext conftest$ac_exeext
13423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13424 (eval $ac_link) 2>conftest.er1
13425 ac_status=$?
13426 grep -v '^ *+' conftest.er1 >conftest.err
13427 rm -f conftest.er1
13428 cat conftest.err >&5
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); } &&
13431 { ac_try='test -z "$ac_c_werror_flag"
13432 || test ! -s conftest.err'
13433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434 (eval $ac_try) 2>&5
13435 ac_status=$?
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; } &&
13438 { ac_try='test -s conftest$ac_exeext'
13439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13440 (eval $ac_try) 2>&5
13441 ac_status=$?
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; }; then
13444 eval "$as_ac_var=yes"
13445 else
13446 echo "$as_me: failed program was:" >&5
13447 sed 's/^/| /' conftest.$ac_ext >&5
13449 eval "$as_ac_var=no"
13451 rm -f conftest.err conftest.$ac_objext \
13452 conftest$ac_exeext conftest.$ac_ext
13454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13455 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13456 if test `eval echo '${'$as_ac_var'}'` = yes; then
13457 cat >>confdefs.h <<_ACEOF
13458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13459 _ACEOF
13462 done
13465 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
13466 # loading of modules.
13468 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
13469 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
13470 if test -z "$DYNLOADFILE"
13471 then
13472 case $ac_sys_system/$ac_sys_release in
13473 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
13474 if test "$ac_cv_func_dlopen" = yes
13475 then DYNLOADFILE="dynload_shlib.o"
13476 else DYNLOADFILE="dynload_aix.o"
13479 BeOS*) DYNLOADFILE="dynload_beos.o";;
13480 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
13481 Darwin/*) DYNLOADFILE="dynload_next.o";;
13482 atheos*) DYNLOADFILE="dynload_atheos.o";;
13484 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
13485 # out any dynamic loading
13486 if test "$ac_cv_func_dlopen" = yes
13487 then DYNLOADFILE="dynload_shlib.o"
13488 else DYNLOADFILE="dynload_stub.o"
13491 esac
13493 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
13494 echo "${ECHO_T}$DYNLOADFILE" >&6
13495 if test "$DYNLOADFILE" != "dynload_stub.o"
13496 then
13498 cat >>confdefs.h <<\_ACEOF
13499 #define HAVE_DYNAMIC_LOADING 1
13500 _ACEOF
13504 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
13507 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
13508 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
13509 if test -z "$MACHDEP_OBJS"
13510 then
13511 MACHDEP_OBJS=$extra_machdep_objs
13512 else
13513 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
13515 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
13516 echo "${ECHO_T}MACHDEP_OBJS" >&6
13518 # checks for library functions
13593 for ac_func in alarm bind_textdomain_codeset chown clock confstr ctermid \
13594 execv fork fpathconf ftime ftruncate \
13595 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
13596 getpriority getpwent getspnam getspent getsid getwd \
13597 kill killpg lchown lstat mkfifo mknod mktime \
13598 mremap nice pathconf pause plock poll pthread_init \
13599 putenv readlink realpath \
13600 select setegid seteuid setgid \
13601 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
13602 sigaction siginterrupt sigrelse strftime \
13603 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
13604 truncate uname unsetenv utimes waitpid wcscoll _getpty
13606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13607 echo "$as_me:$LINENO: checking for $ac_func" >&5
13608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13609 if eval "test \"\${$as_ac_var+set}\" = set"; then
13610 echo $ECHO_N "(cached) $ECHO_C" >&6
13611 else
13612 cat >conftest.$ac_ext <<_ACEOF
13613 /* confdefs.h. */
13614 _ACEOF
13615 cat confdefs.h >>conftest.$ac_ext
13616 cat >>conftest.$ac_ext <<_ACEOF
13617 /* end confdefs.h. */
13618 /* System header to define __stub macros and hopefully few prototypes,
13619 which can conflict with char $ac_func (); below.
13620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13621 <limits.h> exists even on freestanding compilers. Under hpux,
13622 including <limits.h> includes <sys/time.h> and causes problems
13623 checking for functions defined therein. */
13624 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
13625 # include <limits.h>
13626 #else
13627 # include <assert.h>
13628 #endif
13629 /* Override any gcc2 internal prototype to avoid an error. */
13630 #ifdef __cplusplus
13631 extern "C"
13633 #endif
13634 /* We use char because int might match the return type of a gcc2
13635 builtin and then its argument prototype would still apply. */
13636 char $ac_func ();
13637 /* The GNU C library defines this for functions which it implements
13638 to always fail with ENOSYS. Some functions are actually named
13639 something starting with __ and the normal name is an alias. */
13640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13641 choke me
13642 #else
13643 char (*f) () = $ac_func;
13644 #endif
13645 #ifdef __cplusplus
13647 #endif
13650 main ()
13652 return f != $ac_func;
13654 return 0;
13656 _ACEOF
13657 rm -f conftest.$ac_objext conftest$ac_exeext
13658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13659 (eval $ac_link) 2>conftest.er1
13660 ac_status=$?
13661 grep -v '^ *+' conftest.er1 >conftest.err
13662 rm -f conftest.er1
13663 cat conftest.err >&5
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); } &&
13666 { ac_try='test -z "$ac_c_werror_flag"
13667 || test ! -s conftest.err'
13668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13669 (eval $ac_try) 2>&5
13670 ac_status=$?
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); }; } &&
13673 { ac_try='test -s conftest$ac_exeext'
13674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13675 (eval $ac_try) 2>&5
13676 ac_status=$?
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); }; }; then
13679 eval "$as_ac_var=yes"
13680 else
13681 echo "$as_me: failed program was:" >&5
13682 sed 's/^/| /' conftest.$ac_ext >&5
13684 eval "$as_ac_var=no"
13686 rm -f conftest.err conftest.$ac_objext \
13687 conftest$ac_exeext conftest.$ac_ext
13689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13690 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13691 if test `eval echo '${'$as_ac_var'}'` = yes; then
13692 cat >>confdefs.h <<_ACEOF
13693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13694 _ACEOF
13697 done
13700 # For some functions, having a definition is not sufficient, since
13701 # we want to take their address.
13702 echo "$as_me:$LINENO: checking for chroot" >&5
13703 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
13704 cat >conftest.$ac_ext <<_ACEOF
13705 /* confdefs.h. */
13706 _ACEOF
13707 cat confdefs.h >>conftest.$ac_ext
13708 cat >>conftest.$ac_ext <<_ACEOF
13709 /* end confdefs.h. */
13710 #include <unistd.h>
13712 main ()
13714 void *x=chroot
13716 return 0;
13718 _ACEOF
13719 rm -f conftest.$ac_objext
13720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13721 (eval $ac_compile) 2>conftest.er1
13722 ac_status=$?
13723 grep -v '^ *+' conftest.er1 >conftest.err
13724 rm -f conftest.er1
13725 cat conftest.err >&5
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); } &&
13728 { ac_try='test -z "$ac_c_werror_flag"
13729 || test ! -s conftest.err'
13730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13731 (eval $ac_try) 2>&5
13732 ac_status=$?
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); }; } &&
13735 { ac_try='test -s conftest.$ac_objext'
13736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13737 (eval $ac_try) 2>&5
13738 ac_status=$?
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); }; }; then
13742 cat >>confdefs.h <<\_ACEOF
13743 #define HAVE_CHROOT 1
13744 _ACEOF
13746 echo "$as_me:$LINENO: result: yes" >&5
13747 echo "${ECHO_T}yes" >&6
13748 else
13749 echo "$as_me: failed program was:" >&5
13750 sed 's/^/| /' conftest.$ac_ext >&5
13752 echo "$as_me:$LINENO: result: no" >&5
13753 echo "${ECHO_T}no" >&6
13756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13757 echo "$as_me:$LINENO: checking for link" >&5
13758 echo $ECHO_N "checking for link... $ECHO_C" >&6
13759 cat >conftest.$ac_ext <<_ACEOF
13760 /* confdefs.h. */
13761 _ACEOF
13762 cat confdefs.h >>conftest.$ac_ext
13763 cat >>conftest.$ac_ext <<_ACEOF
13764 /* end confdefs.h. */
13765 #include <unistd.h>
13767 main ()
13769 void *x=link
13771 return 0;
13773 _ACEOF
13774 rm -f conftest.$ac_objext
13775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13776 (eval $ac_compile) 2>conftest.er1
13777 ac_status=$?
13778 grep -v '^ *+' conftest.er1 >conftest.err
13779 rm -f conftest.er1
13780 cat conftest.err >&5
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); } &&
13783 { ac_try='test -z "$ac_c_werror_flag"
13784 || test ! -s conftest.err'
13785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786 (eval $ac_try) 2>&5
13787 ac_status=$?
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); }; } &&
13790 { ac_try='test -s conftest.$ac_objext'
13791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13792 (eval $ac_try) 2>&5
13793 ac_status=$?
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); }; }; then
13797 cat >>confdefs.h <<\_ACEOF
13798 #define HAVE_LINK 1
13799 _ACEOF
13801 echo "$as_me:$LINENO: result: yes" >&5
13802 echo "${ECHO_T}yes" >&6
13803 else
13804 echo "$as_me: failed program was:" >&5
13805 sed 's/^/| /' conftest.$ac_ext >&5
13807 echo "$as_me:$LINENO: result: no" >&5
13808 echo "${ECHO_T}no" >&6
13811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13812 echo "$as_me:$LINENO: checking for symlink" >&5
13813 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
13814 cat >conftest.$ac_ext <<_ACEOF
13815 /* confdefs.h. */
13816 _ACEOF
13817 cat confdefs.h >>conftest.$ac_ext
13818 cat >>conftest.$ac_ext <<_ACEOF
13819 /* end confdefs.h. */
13820 #include <unistd.h>
13822 main ()
13824 void *x=symlink
13826 return 0;
13828 _ACEOF
13829 rm -f conftest.$ac_objext
13830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13831 (eval $ac_compile) 2>conftest.er1
13832 ac_status=$?
13833 grep -v '^ *+' conftest.er1 >conftest.err
13834 rm -f conftest.er1
13835 cat conftest.err >&5
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); } &&
13838 { ac_try='test -z "$ac_c_werror_flag"
13839 || test ! -s conftest.err'
13840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13841 (eval $ac_try) 2>&5
13842 ac_status=$?
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); }; } &&
13845 { ac_try='test -s conftest.$ac_objext'
13846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13847 (eval $ac_try) 2>&5
13848 ac_status=$?
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); }; }; then
13852 cat >>confdefs.h <<\_ACEOF
13853 #define HAVE_SYMLINK 1
13854 _ACEOF
13856 echo "$as_me:$LINENO: result: yes" >&5
13857 echo "${ECHO_T}yes" >&6
13858 else
13859 echo "$as_me: failed program was:" >&5
13860 sed 's/^/| /' conftest.$ac_ext >&5
13862 echo "$as_me:$LINENO: result: no" >&5
13863 echo "${ECHO_T}no" >&6
13866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13867 echo "$as_me:$LINENO: checking for fchdir" >&5
13868 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
13869 cat >conftest.$ac_ext <<_ACEOF
13870 /* confdefs.h. */
13871 _ACEOF
13872 cat confdefs.h >>conftest.$ac_ext
13873 cat >>conftest.$ac_ext <<_ACEOF
13874 /* end confdefs.h. */
13875 #include <unistd.h>
13877 main ()
13879 void *x=fchdir
13881 return 0;
13883 _ACEOF
13884 rm -f conftest.$ac_objext
13885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13886 (eval $ac_compile) 2>conftest.er1
13887 ac_status=$?
13888 grep -v '^ *+' conftest.er1 >conftest.err
13889 rm -f conftest.er1
13890 cat conftest.err >&5
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); } &&
13893 { ac_try='test -z "$ac_c_werror_flag"
13894 || test ! -s conftest.err'
13895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896 (eval $ac_try) 2>&5
13897 ac_status=$?
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; } &&
13900 { ac_try='test -s conftest.$ac_objext'
13901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13902 (eval $ac_try) 2>&5
13903 ac_status=$?
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); }; }; then
13907 cat >>confdefs.h <<\_ACEOF
13908 #define HAVE_FCHDIR 1
13909 _ACEOF
13911 echo "$as_me:$LINENO: result: yes" >&5
13912 echo "${ECHO_T}yes" >&6
13913 else
13914 echo "$as_me: failed program was:" >&5
13915 sed 's/^/| /' conftest.$ac_ext >&5
13917 echo "$as_me:$LINENO: result: no" >&5
13918 echo "${ECHO_T}no" >&6
13921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13922 echo "$as_me:$LINENO: checking for fsync" >&5
13923 echo $ECHO_N "checking for fsync... $ECHO_C" >&6
13924 cat >conftest.$ac_ext <<_ACEOF
13925 /* confdefs.h. */
13926 _ACEOF
13927 cat confdefs.h >>conftest.$ac_ext
13928 cat >>conftest.$ac_ext <<_ACEOF
13929 /* end confdefs.h. */
13930 #include <unistd.h>
13932 main ()
13934 void *x=fsync
13936 return 0;
13938 _ACEOF
13939 rm -f conftest.$ac_objext
13940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13941 (eval $ac_compile) 2>conftest.er1
13942 ac_status=$?
13943 grep -v '^ *+' conftest.er1 >conftest.err
13944 rm -f conftest.er1
13945 cat conftest.err >&5
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); } &&
13948 { ac_try='test -z "$ac_c_werror_flag"
13949 || test ! -s conftest.err'
13950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13951 (eval $ac_try) 2>&5
13952 ac_status=$?
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); }; } &&
13955 { ac_try='test -s conftest.$ac_objext'
13956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13957 (eval $ac_try) 2>&5
13958 ac_status=$?
13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); }; }; then
13962 cat >>confdefs.h <<\_ACEOF
13963 #define HAVE_FSYNC 1
13964 _ACEOF
13966 echo "$as_me:$LINENO: result: yes" >&5
13967 echo "${ECHO_T}yes" >&6
13968 else
13969 echo "$as_me: failed program was:" >&5
13970 sed 's/^/| /' conftest.$ac_ext >&5
13972 echo "$as_me:$LINENO: result: no" >&5
13973 echo "${ECHO_T}no" >&6
13976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13977 echo "$as_me:$LINENO: checking for fdatasync" >&5
13978 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
13979 cat >conftest.$ac_ext <<_ACEOF
13980 /* confdefs.h. */
13981 _ACEOF
13982 cat confdefs.h >>conftest.$ac_ext
13983 cat >>conftest.$ac_ext <<_ACEOF
13984 /* end confdefs.h. */
13985 #include <unistd.h>
13987 main ()
13989 void *x=fdatasync
13991 return 0;
13993 _ACEOF
13994 rm -f conftest.$ac_objext
13995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13996 (eval $ac_compile) 2>conftest.er1
13997 ac_status=$?
13998 grep -v '^ *+' conftest.er1 >conftest.err
13999 rm -f conftest.er1
14000 cat conftest.err >&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); } &&
14003 { ac_try='test -z "$ac_c_werror_flag"
14004 || test ! -s conftest.err'
14005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14006 (eval $ac_try) 2>&5
14007 ac_status=$?
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); }; } &&
14010 { ac_try='test -s conftest.$ac_objext'
14011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14012 (eval $ac_try) 2>&5
14013 ac_status=$?
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); }; }; then
14017 cat >>confdefs.h <<\_ACEOF
14018 #define HAVE_FDATASYNC 1
14019 _ACEOF
14021 echo "$as_me:$LINENO: result: yes" >&5
14022 echo "${ECHO_T}yes" >&6
14023 else
14024 echo "$as_me: failed program was:" >&5
14025 sed 's/^/| /' conftest.$ac_ext >&5
14027 echo "$as_me:$LINENO: result: no" >&5
14028 echo "${ECHO_T}no" >&6
14031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14033 # On some systems (eg. FreeBSD 5), we would find a definition of the
14034 # functions ctermid_r, setgroups in the library, but no prototype
14035 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
14036 # address to avoid compiler warnings and potential miscompilations
14037 # because of the missing prototypes.
14039 echo "$as_me:$LINENO: checking for ctermid_r" >&5
14040 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
14041 cat >conftest.$ac_ext <<_ACEOF
14042 /* confdefs.h. */
14043 _ACEOF
14044 cat confdefs.h >>conftest.$ac_ext
14045 cat >>conftest.$ac_ext <<_ACEOF
14046 /* end confdefs.h. */
14048 #include "confdefs.h"
14049 #include <stdio.h>
14052 main ()
14054 void* p = ctermid_r
14056 return 0;
14058 _ACEOF
14059 rm -f conftest.$ac_objext
14060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14061 (eval $ac_compile) 2>conftest.er1
14062 ac_status=$?
14063 grep -v '^ *+' conftest.er1 >conftest.err
14064 rm -f conftest.er1
14065 cat conftest.err >&5
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); } &&
14068 { ac_try='test -z "$ac_c_werror_flag"
14069 || test ! -s conftest.err'
14070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14071 (eval $ac_try) 2>&5
14072 ac_status=$?
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); }; } &&
14075 { ac_try='test -s conftest.$ac_objext'
14076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14077 (eval $ac_try) 2>&5
14078 ac_status=$?
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); }; }; then
14082 cat >>confdefs.h <<\_ACEOF
14083 #define HAVE_CTERMID_R 1
14084 _ACEOF
14086 echo "$as_me:$LINENO: result: yes" >&5
14087 echo "${ECHO_T}yes" >&6
14088 else
14089 echo "$as_me: failed program was:" >&5
14090 sed 's/^/| /' conftest.$ac_ext >&5
14092 echo "$as_me:$LINENO: result: no" >&5
14093 echo "${ECHO_T}no" >&6
14096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14098 echo "$as_me:$LINENO: checking for flock" >&5
14099 echo $ECHO_N "checking for flock... $ECHO_C" >&6
14100 cat >conftest.$ac_ext <<_ACEOF
14101 /* confdefs.h. */
14102 _ACEOF
14103 cat confdefs.h >>conftest.$ac_ext
14104 cat >>conftest.$ac_ext <<_ACEOF
14105 /* end confdefs.h. */
14107 #include "confdefs.h"
14108 #include <sys/file.h>
14111 main ()
14113 void* p = flock
14115 return 0;
14117 _ACEOF
14118 rm -f conftest.$ac_objext
14119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14120 (eval $ac_compile) 2>conftest.er1
14121 ac_status=$?
14122 grep -v '^ *+' conftest.er1 >conftest.err
14123 rm -f conftest.er1
14124 cat conftest.err >&5
14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 (exit $ac_status); } &&
14127 { ac_try='test -z "$ac_c_werror_flag"
14128 || test ! -s conftest.err'
14129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14130 (eval $ac_try) 2>&5
14131 ac_status=$?
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; } &&
14134 { ac_try='test -s conftest.$ac_objext'
14135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14136 (eval $ac_try) 2>&5
14137 ac_status=$?
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); }; }; then
14141 cat >>confdefs.h <<\_ACEOF
14142 #define HAVE_FLOCK 1
14143 _ACEOF
14145 echo "$as_me:$LINENO: result: yes" >&5
14146 echo "${ECHO_T}yes" >&6
14147 else
14148 echo "$as_me: failed program was:" >&5
14149 sed 's/^/| /' conftest.$ac_ext >&5
14151 echo "$as_me:$LINENO: result: no" >&5
14152 echo "${ECHO_T}no" >&6
14155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14157 echo "$as_me:$LINENO: checking for getpagesize" >&5
14158 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
14159 cat >conftest.$ac_ext <<_ACEOF
14160 /* confdefs.h. */
14161 _ACEOF
14162 cat confdefs.h >>conftest.$ac_ext
14163 cat >>conftest.$ac_ext <<_ACEOF
14164 /* end confdefs.h. */
14166 #include "confdefs.h"
14167 #include <unistd.h>
14170 main ()
14172 void* p = getpagesize
14174 return 0;
14176 _ACEOF
14177 rm -f conftest.$ac_objext
14178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14179 (eval $ac_compile) 2>conftest.er1
14180 ac_status=$?
14181 grep -v '^ *+' conftest.er1 >conftest.err
14182 rm -f conftest.er1
14183 cat conftest.err >&5
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); } &&
14186 { ac_try='test -z "$ac_c_werror_flag"
14187 || test ! -s conftest.err'
14188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14189 (eval $ac_try) 2>&5
14190 ac_status=$?
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); }; } &&
14193 { ac_try='test -s conftest.$ac_objext'
14194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14195 (eval $ac_try) 2>&5
14196 ac_status=$?
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); }; }; then
14200 cat >>confdefs.h <<\_ACEOF
14201 #define HAVE_GETPAGESIZE 1
14202 _ACEOF
14204 echo "$as_me:$LINENO: result: yes" >&5
14205 echo "${ECHO_T}yes" >&6
14206 else
14207 echo "$as_me: failed program was:" >&5
14208 sed 's/^/| /' conftest.$ac_ext >&5
14210 echo "$as_me:$LINENO: result: no" >&5
14211 echo "${ECHO_T}no" >&6
14214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14216 for ac_prog in true
14218 # Extract the first word of "$ac_prog", so it can be a program name with args.
14219 set dummy $ac_prog; ac_word=$2
14220 echo "$as_me:$LINENO: checking for $ac_word" >&5
14221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14222 if test "${ac_cv_prog_TRUE+set}" = set; then
14223 echo $ECHO_N "(cached) $ECHO_C" >&6
14224 else
14225 if test -n "$TRUE"; then
14226 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
14227 else
14228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14229 for as_dir in $PATH
14231 IFS=$as_save_IFS
14232 test -z "$as_dir" && as_dir=.
14233 for ac_exec_ext in '' $ac_executable_extensions; do
14234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14235 ac_cv_prog_TRUE="$ac_prog"
14236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14237 break 2
14239 done
14240 done
14244 TRUE=$ac_cv_prog_TRUE
14245 if test -n "$TRUE"; then
14246 echo "$as_me:$LINENO: result: $TRUE" >&5
14247 echo "${ECHO_T}$TRUE" >&6
14248 else
14249 echo "$as_me:$LINENO: result: no" >&5
14250 echo "${ECHO_T}no" >&6
14253 test -n "$TRUE" && break
14254 done
14255 test -n "$TRUE" || TRUE="/bin/true"
14258 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
14259 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
14260 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
14261 echo $ECHO_N "(cached) $ECHO_C" >&6
14262 else
14263 ac_check_lib_save_LIBS=$LIBS
14264 LIBS="-lc $LIBS"
14265 cat >conftest.$ac_ext <<_ACEOF
14266 /* confdefs.h. */
14267 _ACEOF
14268 cat confdefs.h >>conftest.$ac_ext
14269 cat >>conftest.$ac_ext <<_ACEOF
14270 /* end confdefs.h. */
14272 /* Override any gcc2 internal prototype to avoid an error. */
14273 #ifdef __cplusplus
14274 extern "C"
14275 #endif
14276 /* We use char because int might match the return type of a gcc2
14277 builtin and then its argument prototype would still apply. */
14278 char inet_aton ();
14280 main ()
14282 inet_aton ();
14284 return 0;
14286 _ACEOF
14287 rm -f conftest.$ac_objext conftest$ac_exeext
14288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14289 (eval $ac_link) 2>conftest.er1
14290 ac_status=$?
14291 grep -v '^ *+' conftest.er1 >conftest.err
14292 rm -f conftest.er1
14293 cat conftest.err >&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); } &&
14296 { ac_try='test -z "$ac_c_werror_flag"
14297 || test ! -s conftest.err'
14298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14299 (eval $ac_try) 2>&5
14300 ac_status=$?
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); }; } &&
14303 { ac_try='test -s conftest$ac_exeext'
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_lib_c_inet_aton=yes
14310 else
14311 echo "$as_me: failed program was:" >&5
14312 sed 's/^/| /' conftest.$ac_ext >&5
14314 ac_cv_lib_c_inet_aton=no
14316 rm -f conftest.err conftest.$ac_objext \
14317 conftest$ac_exeext conftest.$ac_ext
14318 LIBS=$ac_check_lib_save_LIBS
14320 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
14321 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
14322 if test $ac_cv_lib_c_inet_aton = yes; then
14323 $ac_cv_prog_TRUE
14324 else
14326 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
14327 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
14328 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
14329 echo $ECHO_N "(cached) $ECHO_C" >&6
14330 else
14331 ac_check_lib_save_LIBS=$LIBS
14332 LIBS="-lresolv $LIBS"
14333 cat >conftest.$ac_ext <<_ACEOF
14334 /* confdefs.h. */
14335 _ACEOF
14336 cat confdefs.h >>conftest.$ac_ext
14337 cat >>conftest.$ac_ext <<_ACEOF
14338 /* end confdefs.h. */
14340 /* Override any gcc2 internal prototype to avoid an error. */
14341 #ifdef __cplusplus
14342 extern "C"
14343 #endif
14344 /* We use char because int might match the return type of a gcc2
14345 builtin and then its argument prototype would still apply. */
14346 char inet_aton ();
14348 main ()
14350 inet_aton ();
14352 return 0;
14354 _ACEOF
14355 rm -f conftest.$ac_objext conftest$ac_exeext
14356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14357 (eval $ac_link) 2>conftest.er1
14358 ac_status=$?
14359 grep -v '^ *+' conftest.er1 >conftest.err
14360 rm -f conftest.er1
14361 cat conftest.err >&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); } &&
14364 { ac_try='test -z "$ac_c_werror_flag"
14365 || test ! -s conftest.err'
14366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367 (eval $ac_try) 2>&5
14368 ac_status=$?
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; } &&
14371 { ac_try='test -s conftest$ac_exeext'
14372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373 (eval $ac_try) 2>&5
14374 ac_status=$?
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; }; then
14377 ac_cv_lib_resolv_inet_aton=yes
14378 else
14379 echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.$ac_ext >&5
14382 ac_cv_lib_resolv_inet_aton=no
14384 rm -f conftest.err conftest.$ac_objext \
14385 conftest$ac_exeext conftest.$ac_ext
14386 LIBS=$ac_check_lib_save_LIBS
14388 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
14389 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
14390 if test $ac_cv_lib_resolv_inet_aton = yes; then
14391 cat >>confdefs.h <<_ACEOF
14392 #define HAVE_LIBRESOLV 1
14393 _ACEOF
14395 LIBS="-lresolv $LIBS"
14403 echo "$as_me:$LINENO: checking for hstrerror" >&5
14404 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
14405 cat >conftest.$ac_ext <<_ACEOF
14406 /* confdefs.h. */
14407 _ACEOF
14408 cat confdefs.h >>conftest.$ac_ext
14409 cat >>conftest.$ac_ext <<_ACEOF
14410 /* end confdefs.h. */
14412 #include "confdefs.h"
14413 #include <netdb.h>
14416 main ()
14418 void* p = hstrerror; hstrerror(0)
14420 return 0;
14422 _ACEOF
14423 rm -f conftest.$ac_objext conftest$ac_exeext
14424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14425 (eval $ac_link) 2>conftest.er1
14426 ac_status=$?
14427 grep -v '^ *+' conftest.er1 >conftest.err
14428 rm -f conftest.er1
14429 cat conftest.err >&5
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); } &&
14432 { ac_try='test -z "$ac_c_werror_flag"
14433 || test ! -s conftest.err'
14434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14435 (eval $ac_try) 2>&5
14436 ac_status=$?
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); }; } &&
14439 { ac_try='test -s conftest$ac_exeext'
14440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14441 (eval $ac_try) 2>&5
14442 ac_status=$?
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); }; }; then
14446 cat >>confdefs.h <<\_ACEOF
14447 #define HAVE_HSTRERROR 1
14448 _ACEOF
14450 echo "$as_me:$LINENO: result: yes" >&5
14451 echo "${ECHO_T}yes" >&6
14452 else
14453 echo "$as_me: failed program was:" >&5
14454 sed 's/^/| /' conftest.$ac_ext >&5
14456 echo "$as_me:$LINENO: result: no" >&5
14457 echo "${ECHO_T}no" >&6
14460 rm -f conftest.err conftest.$ac_objext \
14461 conftest$ac_exeext conftest.$ac_ext
14463 echo "$as_me:$LINENO: checking for inet_aton" >&5
14464 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
14465 cat >conftest.$ac_ext <<_ACEOF
14466 /* confdefs.h. */
14467 _ACEOF
14468 cat confdefs.h >>conftest.$ac_ext
14469 cat >>conftest.$ac_ext <<_ACEOF
14470 /* end confdefs.h. */
14472 #include "confdefs.h"
14473 #include <sys/socket.h>
14474 #include <netinet/in.h>
14475 #include <arpa/inet.h>
14478 main ()
14480 void* p = inet_aton;inet_aton(0,0)
14482 return 0;
14484 _ACEOF
14485 rm -f conftest.$ac_objext conftest$ac_exeext
14486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14487 (eval $ac_link) 2>conftest.er1
14488 ac_status=$?
14489 grep -v '^ *+' conftest.er1 >conftest.err
14490 rm -f conftest.er1
14491 cat conftest.err >&5
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); } &&
14494 { ac_try='test -z "$ac_c_werror_flag"
14495 || test ! -s conftest.err'
14496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14497 (eval $ac_try) 2>&5
14498 ac_status=$?
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); }; } &&
14501 { ac_try='test -s conftest$ac_exeext'
14502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14503 (eval $ac_try) 2>&5
14504 ac_status=$?
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); }; }; then
14508 cat >>confdefs.h <<\_ACEOF
14509 #define HAVE_INET_ATON 1
14510 _ACEOF
14512 echo "$as_me:$LINENO: result: yes" >&5
14513 echo "${ECHO_T}yes" >&6
14514 else
14515 echo "$as_me: failed program was:" >&5
14516 sed 's/^/| /' conftest.$ac_ext >&5
14518 echo "$as_me:$LINENO: result: no" >&5
14519 echo "${ECHO_T}no" >&6
14522 rm -f conftest.err conftest.$ac_objext \
14523 conftest$ac_exeext conftest.$ac_ext
14525 echo "$as_me:$LINENO: checking for inet_pton" >&5
14526 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
14527 cat >conftest.$ac_ext <<_ACEOF
14528 /* confdefs.h. */
14529 _ACEOF
14530 cat confdefs.h >>conftest.$ac_ext
14531 cat >>conftest.$ac_ext <<_ACEOF
14532 /* end confdefs.h. */
14534 #include "confdefs.h"
14535 #include <sys/types.h>
14536 #include <sys/socket.h>
14537 #include <netinet/in.h>
14538 #include <arpa/inet.h>
14541 main ()
14543 void* p = inet_pton
14545 return 0;
14547 _ACEOF
14548 rm -f conftest.$ac_objext
14549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14550 (eval $ac_compile) 2>conftest.er1
14551 ac_status=$?
14552 grep -v '^ *+' conftest.er1 >conftest.err
14553 rm -f conftest.er1
14554 cat conftest.err >&5
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); } &&
14557 { ac_try='test -z "$ac_c_werror_flag"
14558 || test ! -s conftest.err'
14559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14560 (eval $ac_try) 2>&5
14561 ac_status=$?
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); }; } &&
14564 { ac_try='test -s conftest.$ac_objext'
14565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14566 (eval $ac_try) 2>&5
14567 ac_status=$?
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); }; }; then
14571 cat >>confdefs.h <<\_ACEOF
14572 #define HAVE_INET_PTON 1
14573 _ACEOF
14575 echo "$as_me:$LINENO: result: yes" >&5
14576 echo "${ECHO_T}yes" >&6
14577 else
14578 echo "$as_me: failed program was:" >&5
14579 sed 's/^/| /' conftest.$ac_ext >&5
14581 echo "$as_me:$LINENO: result: no" >&5
14582 echo "${ECHO_T}no" >&6
14585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14587 # On some systems, setgroups is in unistd.h, on others, in grp.h
14588 echo "$as_me:$LINENO: checking for setgroups" >&5
14589 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
14590 cat >conftest.$ac_ext <<_ACEOF
14591 /* confdefs.h. */
14592 _ACEOF
14593 cat confdefs.h >>conftest.$ac_ext
14594 cat >>conftest.$ac_ext <<_ACEOF
14595 /* end confdefs.h. */
14597 #include "confdefs.h"
14598 #include <unistd.h>
14599 #ifdef HAVE_GRP_H
14600 #include <grp.h>
14601 #endif
14604 main ()
14606 void* p = setgroups
14608 return 0;
14610 _ACEOF
14611 rm -f conftest.$ac_objext
14612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14613 (eval $ac_compile) 2>conftest.er1
14614 ac_status=$?
14615 grep -v '^ *+' conftest.er1 >conftest.err
14616 rm -f conftest.er1
14617 cat conftest.err >&5
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); } &&
14620 { ac_try='test -z "$ac_c_werror_flag"
14621 || test ! -s conftest.err'
14622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14623 (eval $ac_try) 2>&5
14624 ac_status=$?
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); }; } &&
14627 { ac_try='test -s conftest.$ac_objext'
14628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14629 (eval $ac_try) 2>&5
14630 ac_status=$?
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); }; }; then
14634 cat >>confdefs.h <<\_ACEOF
14635 #define HAVE_SETGROUPS 1
14636 _ACEOF
14638 echo "$as_me:$LINENO: result: yes" >&5
14639 echo "${ECHO_T}yes" >&6
14640 else
14641 echo "$as_me: failed program was:" >&5
14642 sed 's/^/| /' conftest.$ac_ext >&5
14644 echo "$as_me:$LINENO: result: no" >&5
14645 echo "${ECHO_T}no" >&6
14648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14650 # check for openpty and forkpty
14653 for ac_func in openpty
14655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14656 echo "$as_me:$LINENO: checking for $ac_func" >&5
14657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14658 if eval "test \"\${$as_ac_var+set}\" = set"; then
14659 echo $ECHO_N "(cached) $ECHO_C" >&6
14660 else
14661 cat >conftest.$ac_ext <<_ACEOF
14662 /* confdefs.h. */
14663 _ACEOF
14664 cat confdefs.h >>conftest.$ac_ext
14665 cat >>conftest.$ac_ext <<_ACEOF
14666 /* end confdefs.h. */
14667 /* System header to define __stub macros and hopefully few prototypes,
14668 which can conflict with char $ac_func (); below.
14669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14670 <limits.h> exists even on freestanding compilers. Under hpux,
14671 including <limits.h> includes <sys/time.h> and causes problems
14672 checking for functions defined therein. */
14673 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
14674 # include <limits.h>
14675 #else
14676 # include <assert.h>
14677 #endif
14678 /* Override any gcc2 internal prototype to avoid an error. */
14679 #ifdef __cplusplus
14680 extern "C"
14682 #endif
14683 /* We use char because int might match the return type of a gcc2
14684 builtin and then its argument prototype would still apply. */
14685 char $ac_func ();
14686 /* The GNU C library defines this for functions which it implements
14687 to always fail with ENOSYS. Some functions are actually named
14688 something starting with __ and the normal name is an alias. */
14689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14690 choke me
14691 #else
14692 char (*f) () = $ac_func;
14693 #endif
14694 #ifdef __cplusplus
14696 #endif
14699 main ()
14701 return f != $ac_func;
14703 return 0;
14705 _ACEOF
14706 rm -f conftest.$ac_objext conftest$ac_exeext
14707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14708 (eval $ac_link) 2>conftest.er1
14709 ac_status=$?
14710 grep -v '^ *+' conftest.er1 >conftest.err
14711 rm -f conftest.er1
14712 cat conftest.err >&5
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); } &&
14715 { ac_try='test -z "$ac_c_werror_flag"
14716 || test ! -s conftest.err'
14717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14718 (eval $ac_try) 2>&5
14719 ac_status=$?
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); }; } &&
14722 { ac_try='test -s conftest$ac_exeext'
14723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14724 (eval $ac_try) 2>&5
14725 ac_status=$?
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); }; }; then
14728 eval "$as_ac_var=yes"
14729 else
14730 echo "$as_me: failed program was:" >&5
14731 sed 's/^/| /' conftest.$ac_ext >&5
14733 eval "$as_ac_var=no"
14735 rm -f conftest.err conftest.$ac_objext \
14736 conftest$ac_exeext conftest.$ac_ext
14738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14739 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14740 if test `eval echo '${'$as_ac_var'}'` = yes; then
14741 cat >>confdefs.h <<_ACEOF
14742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14743 _ACEOF
14745 else
14746 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
14747 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
14748 if test "${ac_cv_lib_util_openpty+set}" = set; then
14749 echo $ECHO_N "(cached) $ECHO_C" >&6
14750 else
14751 ac_check_lib_save_LIBS=$LIBS
14752 LIBS="-lutil $LIBS"
14753 cat >conftest.$ac_ext <<_ACEOF
14754 /* confdefs.h. */
14755 _ACEOF
14756 cat confdefs.h >>conftest.$ac_ext
14757 cat >>conftest.$ac_ext <<_ACEOF
14758 /* end confdefs.h. */
14760 /* Override any gcc2 internal prototype to avoid an error. */
14761 #ifdef __cplusplus
14762 extern "C"
14763 #endif
14764 /* We use char because int might match the return type of a gcc2
14765 builtin and then its argument prototype would still apply. */
14766 char openpty ();
14768 main ()
14770 openpty ();
14772 return 0;
14774 _ACEOF
14775 rm -f conftest.$ac_objext conftest$ac_exeext
14776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14777 (eval $ac_link) 2>conftest.er1
14778 ac_status=$?
14779 grep -v '^ *+' conftest.er1 >conftest.err
14780 rm -f conftest.er1
14781 cat conftest.err >&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); } &&
14784 { ac_try='test -z "$ac_c_werror_flag"
14785 || test ! -s conftest.err'
14786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787 (eval $ac_try) 2>&5
14788 ac_status=$?
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); }; } &&
14791 { ac_try='test -s conftest$ac_exeext'
14792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14793 (eval $ac_try) 2>&5
14794 ac_status=$?
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); }; }; then
14797 ac_cv_lib_util_openpty=yes
14798 else
14799 echo "$as_me: failed program was:" >&5
14800 sed 's/^/| /' conftest.$ac_ext >&5
14802 ac_cv_lib_util_openpty=no
14804 rm -f conftest.err conftest.$ac_objext \
14805 conftest$ac_exeext conftest.$ac_ext
14806 LIBS=$ac_check_lib_save_LIBS
14808 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
14809 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
14810 if test $ac_cv_lib_util_openpty = yes; then
14811 cat >>confdefs.h <<\_ACEOF
14812 #define HAVE_OPENPTY 1
14813 _ACEOF
14814 LIBS="$LIBS -lutil"
14815 else
14816 echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
14817 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6
14818 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
14819 echo $ECHO_N "(cached) $ECHO_C" >&6
14820 else
14821 ac_check_lib_save_LIBS=$LIBS
14822 LIBS="-lbsd $LIBS"
14823 cat >conftest.$ac_ext <<_ACEOF
14824 /* confdefs.h. */
14825 _ACEOF
14826 cat confdefs.h >>conftest.$ac_ext
14827 cat >>conftest.$ac_ext <<_ACEOF
14828 /* end confdefs.h. */
14830 /* Override any gcc2 internal prototype to avoid an error. */
14831 #ifdef __cplusplus
14832 extern "C"
14833 #endif
14834 /* We use char because int might match the return type of a gcc2
14835 builtin and then its argument prototype would still apply. */
14836 char openpty ();
14838 main ()
14840 openpty ();
14842 return 0;
14844 _ACEOF
14845 rm -f conftest.$ac_objext conftest$ac_exeext
14846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14847 (eval $ac_link) 2>conftest.er1
14848 ac_status=$?
14849 grep -v '^ *+' conftest.er1 >conftest.err
14850 rm -f conftest.er1
14851 cat conftest.err >&5
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); } &&
14854 { ac_try='test -z "$ac_c_werror_flag"
14855 || test ! -s conftest.err'
14856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14857 (eval $ac_try) 2>&5
14858 ac_status=$?
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); }; } &&
14861 { ac_try='test -s conftest$ac_exeext'
14862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14863 (eval $ac_try) 2>&5
14864 ac_status=$?
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); }; }; then
14867 ac_cv_lib_bsd_openpty=yes
14868 else
14869 echo "$as_me: failed program was:" >&5
14870 sed 's/^/| /' conftest.$ac_ext >&5
14872 ac_cv_lib_bsd_openpty=no
14874 rm -f conftest.err conftest.$ac_objext \
14875 conftest$ac_exeext conftest.$ac_ext
14876 LIBS=$ac_check_lib_save_LIBS
14878 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
14879 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6
14880 if test $ac_cv_lib_bsd_openpty = yes; then
14881 cat >>confdefs.h <<\_ACEOF
14882 #define HAVE_OPENPTY 1
14883 _ACEOF
14884 LIBS="$LIBS -lbsd"
14892 done
14895 for ac_func in forkpty
14897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14898 echo "$as_me:$LINENO: checking for $ac_func" >&5
14899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14900 if eval "test \"\${$as_ac_var+set}\" = set"; then
14901 echo $ECHO_N "(cached) $ECHO_C" >&6
14902 else
14903 cat >conftest.$ac_ext <<_ACEOF
14904 /* confdefs.h. */
14905 _ACEOF
14906 cat confdefs.h >>conftest.$ac_ext
14907 cat >>conftest.$ac_ext <<_ACEOF
14908 /* end confdefs.h. */
14909 /* System header to define __stub macros and hopefully few prototypes,
14910 which can conflict with char $ac_func (); below.
14911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14912 <limits.h> exists even on freestanding compilers. Under hpux,
14913 including <limits.h> includes <sys/time.h> and causes problems
14914 checking for functions defined therein. */
14915 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
14916 # include <limits.h>
14917 #else
14918 # include <assert.h>
14919 #endif
14920 /* Override any gcc2 internal prototype to avoid an error. */
14921 #ifdef __cplusplus
14922 extern "C"
14924 #endif
14925 /* We use char because int might match the return type of a gcc2
14926 builtin and then its argument prototype would still apply. */
14927 char $ac_func ();
14928 /* The GNU C library defines this for functions which it implements
14929 to always fail with ENOSYS. Some functions are actually named
14930 something starting with __ and the normal name is an alias. */
14931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14932 choke me
14933 #else
14934 char (*f) () = $ac_func;
14935 #endif
14936 #ifdef __cplusplus
14938 #endif
14941 main ()
14943 return f != $ac_func;
14945 return 0;
14947 _ACEOF
14948 rm -f conftest.$ac_objext conftest$ac_exeext
14949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14950 (eval $ac_link) 2>conftest.er1
14951 ac_status=$?
14952 grep -v '^ *+' conftest.er1 >conftest.err
14953 rm -f conftest.er1
14954 cat conftest.err >&5
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); } &&
14957 { ac_try='test -z "$ac_c_werror_flag"
14958 || test ! -s conftest.err'
14959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14960 (eval $ac_try) 2>&5
14961 ac_status=$?
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); }; } &&
14964 { ac_try='test -s conftest$ac_exeext'
14965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14966 (eval $ac_try) 2>&5
14967 ac_status=$?
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); }; }; then
14970 eval "$as_ac_var=yes"
14971 else
14972 echo "$as_me: failed program was:" >&5
14973 sed 's/^/| /' conftest.$ac_ext >&5
14975 eval "$as_ac_var=no"
14977 rm -f conftest.err conftest.$ac_objext \
14978 conftest$ac_exeext conftest.$ac_ext
14980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14981 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14982 if test `eval echo '${'$as_ac_var'}'` = yes; then
14983 cat >>confdefs.h <<_ACEOF
14984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14985 _ACEOF
14987 else
14988 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
14989 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
14990 if test "${ac_cv_lib_util_forkpty+set}" = set; then
14991 echo $ECHO_N "(cached) $ECHO_C" >&6
14992 else
14993 ac_check_lib_save_LIBS=$LIBS
14994 LIBS="-lutil $LIBS"
14995 cat >conftest.$ac_ext <<_ACEOF
14996 /* confdefs.h. */
14997 _ACEOF
14998 cat confdefs.h >>conftest.$ac_ext
14999 cat >>conftest.$ac_ext <<_ACEOF
15000 /* end confdefs.h. */
15002 /* Override any gcc2 internal prototype to avoid an error. */
15003 #ifdef __cplusplus
15004 extern "C"
15005 #endif
15006 /* We use char because int might match the return type of a gcc2
15007 builtin and then its argument prototype would still apply. */
15008 char forkpty ();
15010 main ()
15012 forkpty ();
15014 return 0;
15016 _ACEOF
15017 rm -f conftest.$ac_objext conftest$ac_exeext
15018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15019 (eval $ac_link) 2>conftest.er1
15020 ac_status=$?
15021 grep -v '^ *+' conftest.er1 >conftest.err
15022 rm -f conftest.er1
15023 cat conftest.err >&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); } &&
15026 { ac_try='test -z "$ac_c_werror_flag"
15027 || test ! -s conftest.err'
15028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15029 (eval $ac_try) 2>&5
15030 ac_status=$?
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); }; } &&
15033 { ac_try='test -s conftest$ac_exeext'
15034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15035 (eval $ac_try) 2>&5
15036 ac_status=$?
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); }; }; then
15039 ac_cv_lib_util_forkpty=yes
15040 else
15041 echo "$as_me: failed program was:" >&5
15042 sed 's/^/| /' conftest.$ac_ext >&5
15044 ac_cv_lib_util_forkpty=no
15046 rm -f conftest.err conftest.$ac_objext \
15047 conftest$ac_exeext conftest.$ac_ext
15048 LIBS=$ac_check_lib_save_LIBS
15050 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
15051 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
15052 if test $ac_cv_lib_util_forkpty = yes; then
15053 cat >>confdefs.h <<\_ACEOF
15054 #define HAVE_FORKPTY 1
15055 _ACEOF
15056 LIBS="$LIBS -lutil"
15057 else
15058 echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
15059 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6
15060 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
15061 echo $ECHO_N "(cached) $ECHO_C" >&6
15062 else
15063 ac_check_lib_save_LIBS=$LIBS
15064 LIBS="-lbsd $LIBS"
15065 cat >conftest.$ac_ext <<_ACEOF
15066 /* confdefs.h. */
15067 _ACEOF
15068 cat confdefs.h >>conftest.$ac_ext
15069 cat >>conftest.$ac_ext <<_ACEOF
15070 /* end confdefs.h. */
15072 /* Override any gcc2 internal prototype to avoid an error. */
15073 #ifdef __cplusplus
15074 extern "C"
15075 #endif
15076 /* We use char because int might match the return type of a gcc2
15077 builtin and then its argument prototype would still apply. */
15078 char forkpty ();
15080 main ()
15082 forkpty ();
15084 return 0;
15086 _ACEOF
15087 rm -f conftest.$ac_objext conftest$ac_exeext
15088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15089 (eval $ac_link) 2>conftest.er1
15090 ac_status=$?
15091 grep -v '^ *+' conftest.er1 >conftest.err
15092 rm -f conftest.er1
15093 cat conftest.err >&5
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); } &&
15096 { ac_try='test -z "$ac_c_werror_flag"
15097 || test ! -s conftest.err'
15098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15099 (eval $ac_try) 2>&5
15100 ac_status=$?
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); }; } &&
15103 { ac_try='test -s conftest$ac_exeext'
15104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15105 (eval $ac_try) 2>&5
15106 ac_status=$?
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); }; }; then
15109 ac_cv_lib_bsd_forkpty=yes
15110 else
15111 echo "$as_me: failed program was:" >&5
15112 sed 's/^/| /' conftest.$ac_ext >&5
15114 ac_cv_lib_bsd_forkpty=no
15116 rm -f conftest.err conftest.$ac_objext \
15117 conftest$ac_exeext conftest.$ac_ext
15118 LIBS=$ac_check_lib_save_LIBS
15120 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
15121 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6
15122 if test $ac_cv_lib_bsd_forkpty = yes; then
15123 cat >>confdefs.h <<\_ACEOF
15124 #define HAVE_FORKPTY 1
15125 _ACEOF
15126 LIBS="$LIBS -lbsd"
15134 done
15137 # check for long file support functions
15144 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
15146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15147 echo "$as_me:$LINENO: checking for $ac_func" >&5
15148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15149 if eval "test \"\${$as_ac_var+set}\" = set"; then
15150 echo $ECHO_N "(cached) $ECHO_C" >&6
15151 else
15152 cat >conftest.$ac_ext <<_ACEOF
15153 /* confdefs.h. */
15154 _ACEOF
15155 cat confdefs.h >>conftest.$ac_ext
15156 cat >>conftest.$ac_ext <<_ACEOF
15157 /* end confdefs.h. */
15158 /* System header to define __stub macros and hopefully few prototypes,
15159 which can conflict with char $ac_func (); below.
15160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15161 <limits.h> exists even on freestanding compilers. Under hpux,
15162 including <limits.h> includes <sys/time.h> and causes problems
15163 checking for functions defined therein. */
15164 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
15165 # include <limits.h>
15166 #else
15167 # include <assert.h>
15168 #endif
15169 /* Override any gcc2 internal prototype to avoid an error. */
15170 #ifdef __cplusplus
15171 extern "C"
15173 #endif
15174 /* We use char because int might match the return type of a gcc2
15175 builtin and then its argument prototype would still apply. */
15176 char $ac_func ();
15177 /* The GNU C library defines this for functions which it implements
15178 to always fail with ENOSYS. Some functions are actually named
15179 something starting with __ and the normal name is an alias. */
15180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15181 choke me
15182 #else
15183 char (*f) () = $ac_func;
15184 #endif
15185 #ifdef __cplusplus
15187 #endif
15190 main ()
15192 return f != $ac_func;
15194 return 0;
15196 _ACEOF
15197 rm -f conftest.$ac_objext conftest$ac_exeext
15198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15199 (eval $ac_link) 2>conftest.er1
15200 ac_status=$?
15201 grep -v '^ *+' conftest.er1 >conftest.err
15202 rm -f conftest.er1
15203 cat conftest.err >&5
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); } &&
15206 { ac_try='test -z "$ac_c_werror_flag"
15207 || test ! -s conftest.err'
15208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15209 (eval $ac_try) 2>&5
15210 ac_status=$?
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); }; } &&
15213 { ac_try='test -s conftest$ac_exeext'
15214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15215 (eval $ac_try) 2>&5
15216 ac_status=$?
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); }; }; then
15219 eval "$as_ac_var=yes"
15220 else
15221 echo "$as_me: failed program was:" >&5
15222 sed 's/^/| /' conftest.$ac_ext >&5
15224 eval "$as_ac_var=no"
15226 rm -f conftest.err conftest.$ac_objext \
15227 conftest$ac_exeext conftest.$ac_ext
15229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15230 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15231 if test `eval echo '${'$as_ac_var'}'` = yes; then
15232 cat >>confdefs.h <<_ACEOF
15233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15234 _ACEOF
15237 done
15245 for ac_func in dup2 getcwd strdup strerror memmove
15247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15248 echo "$as_me:$LINENO: checking for $ac_func" >&5
15249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15250 if eval "test \"\${$as_ac_var+set}\" = set"; then
15251 echo $ECHO_N "(cached) $ECHO_C" >&6
15252 else
15253 cat >conftest.$ac_ext <<_ACEOF
15254 /* confdefs.h. */
15255 _ACEOF
15256 cat confdefs.h >>conftest.$ac_ext
15257 cat >>conftest.$ac_ext <<_ACEOF
15258 /* end confdefs.h. */
15259 /* System header to define __stub macros and hopefully few prototypes,
15260 which can conflict with char $ac_func (); below.
15261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15262 <limits.h> exists even on freestanding compilers. Under hpux,
15263 including <limits.h> includes <sys/time.h> and causes problems
15264 checking for functions defined therein. */
15265 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
15266 # include <limits.h>
15267 #else
15268 # include <assert.h>
15269 #endif
15270 /* Override any gcc2 internal prototype to avoid an error. */
15271 #ifdef __cplusplus
15272 extern "C"
15274 #endif
15275 /* We use char because int might match the return type of a gcc2
15276 builtin and then its argument prototype would still apply. */
15277 char $ac_func ();
15278 /* The GNU C library defines this for functions which it implements
15279 to always fail with ENOSYS. Some functions are actually named
15280 something starting with __ and the normal name is an alias. */
15281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15282 choke me
15283 #else
15284 char (*f) () = $ac_func;
15285 #endif
15286 #ifdef __cplusplus
15288 #endif
15291 main ()
15293 return f != $ac_func;
15295 return 0;
15297 _ACEOF
15298 rm -f conftest.$ac_objext conftest$ac_exeext
15299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15300 (eval $ac_link) 2>conftest.er1
15301 ac_status=$?
15302 grep -v '^ *+' conftest.er1 >conftest.err
15303 rm -f conftest.er1
15304 cat conftest.err >&5
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); } &&
15307 { ac_try='test -z "$ac_c_werror_flag"
15308 || test ! -s conftest.err'
15309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15310 (eval $ac_try) 2>&5
15311 ac_status=$?
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); }; } &&
15314 { ac_try='test -s conftest$ac_exeext'
15315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15316 (eval $ac_try) 2>&5
15317 ac_status=$?
15318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); }; }; then
15320 eval "$as_ac_var=yes"
15321 else
15322 echo "$as_me: failed program was:" >&5
15323 sed 's/^/| /' conftest.$ac_ext >&5
15325 eval "$as_ac_var=no"
15327 rm -f conftest.err conftest.$ac_objext \
15328 conftest$ac_exeext conftest.$ac_ext
15330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15331 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15332 if test `eval echo '${'$as_ac_var'}'` = yes; then
15333 cat >>confdefs.h <<_ACEOF
15334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15335 _ACEOF
15337 else
15338 case $LIBOBJS in
15339 "$ac_func.$ac_objext" | \
15340 *" $ac_func.$ac_objext" | \
15341 "$ac_func.$ac_objext "* | \
15342 *" $ac_func.$ac_objext "* ) ;;
15343 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
15344 esac
15347 done
15351 for ac_func in getpgrp
15353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15354 echo "$as_me:$LINENO: checking for $ac_func" >&5
15355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15356 if eval "test \"\${$as_ac_var+set}\" = set"; then
15357 echo $ECHO_N "(cached) $ECHO_C" >&6
15358 else
15359 cat >conftest.$ac_ext <<_ACEOF
15360 /* confdefs.h. */
15361 _ACEOF
15362 cat confdefs.h >>conftest.$ac_ext
15363 cat >>conftest.$ac_ext <<_ACEOF
15364 /* end confdefs.h. */
15365 /* System header to define __stub macros and hopefully few prototypes,
15366 which can conflict with char $ac_func (); below.
15367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15368 <limits.h> exists even on freestanding compilers. Under hpux,
15369 including <limits.h> includes <sys/time.h> and causes problems
15370 checking for functions defined therein. */
15371 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
15372 # include <limits.h>
15373 #else
15374 # include <assert.h>
15375 #endif
15376 /* Override any gcc2 internal prototype to avoid an error. */
15377 #ifdef __cplusplus
15378 extern "C"
15380 #endif
15381 /* We use char because int might match the return type of a gcc2
15382 builtin and then its argument prototype would still apply. */
15383 char $ac_func ();
15384 /* The GNU C library defines this for functions which it implements
15385 to always fail with ENOSYS. Some functions are actually named
15386 something starting with __ and the normal name is an alias. */
15387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15388 choke me
15389 #else
15390 char (*f) () = $ac_func;
15391 #endif
15392 #ifdef __cplusplus
15394 #endif
15397 main ()
15399 return f != $ac_func;
15401 return 0;
15403 _ACEOF
15404 rm -f conftest.$ac_objext conftest$ac_exeext
15405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15406 (eval $ac_link) 2>conftest.er1
15407 ac_status=$?
15408 grep -v '^ *+' conftest.er1 >conftest.err
15409 rm -f conftest.er1
15410 cat conftest.err >&5
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); } &&
15413 { ac_try='test -z "$ac_c_werror_flag"
15414 || test ! -s conftest.err'
15415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15416 (eval $ac_try) 2>&5
15417 ac_status=$?
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); }; } &&
15420 { ac_try='test -s conftest$ac_exeext'
15421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15422 (eval $ac_try) 2>&5
15423 ac_status=$?
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); }; }; then
15426 eval "$as_ac_var=yes"
15427 else
15428 echo "$as_me: failed program was:" >&5
15429 sed 's/^/| /' conftest.$ac_ext >&5
15431 eval "$as_ac_var=no"
15433 rm -f conftest.err conftest.$ac_objext \
15434 conftest$ac_exeext conftest.$ac_ext
15436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15437 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15438 if test `eval echo '${'$as_ac_var'}'` = yes; then
15439 cat >>confdefs.h <<_ACEOF
15440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15441 _ACEOF
15442 cat >conftest.$ac_ext <<_ACEOF
15443 /* confdefs.h. */
15444 _ACEOF
15445 cat confdefs.h >>conftest.$ac_ext
15446 cat >>conftest.$ac_ext <<_ACEOF
15447 /* end confdefs.h. */
15448 #include <unistd.h>
15450 main ()
15452 getpgrp(0);
15454 return 0;
15456 _ACEOF
15457 rm -f conftest.$ac_objext
15458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15459 (eval $ac_compile) 2>conftest.er1
15460 ac_status=$?
15461 grep -v '^ *+' conftest.er1 >conftest.err
15462 rm -f conftest.er1
15463 cat conftest.err >&5
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); } &&
15466 { ac_try='test -z "$ac_c_werror_flag"
15467 || test ! -s conftest.err'
15468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15469 (eval $ac_try) 2>&5
15470 ac_status=$?
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); }; } &&
15473 { ac_try='test -s conftest.$ac_objext'
15474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15475 (eval $ac_try) 2>&5
15476 ac_status=$?
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); }; }; then
15480 cat >>confdefs.h <<\_ACEOF
15481 #define GETPGRP_HAVE_ARG 1
15482 _ACEOF
15485 else
15486 echo "$as_me: failed program was:" >&5
15487 sed 's/^/| /' conftest.$ac_ext >&5
15490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15493 done
15496 for ac_func in setpgrp
15498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15499 echo "$as_me:$LINENO: checking for $ac_func" >&5
15500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15501 if eval "test \"\${$as_ac_var+set}\" = set"; then
15502 echo $ECHO_N "(cached) $ECHO_C" >&6
15503 else
15504 cat >conftest.$ac_ext <<_ACEOF
15505 /* confdefs.h. */
15506 _ACEOF
15507 cat confdefs.h >>conftest.$ac_ext
15508 cat >>conftest.$ac_ext <<_ACEOF
15509 /* end confdefs.h. */
15510 /* System header to define __stub macros and hopefully few prototypes,
15511 which can conflict with char $ac_func (); below.
15512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15513 <limits.h> exists even on freestanding compilers. Under hpux,
15514 including <limits.h> includes <sys/time.h> and causes problems
15515 checking for functions defined therein. */
15516 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
15517 # include <limits.h>
15518 #else
15519 # include <assert.h>
15520 #endif
15521 /* Override any gcc2 internal prototype to avoid an error. */
15522 #ifdef __cplusplus
15523 extern "C"
15525 #endif
15526 /* We use char because int might match the return type of a gcc2
15527 builtin and then its argument prototype would still apply. */
15528 char $ac_func ();
15529 /* The GNU C library defines this for functions which it implements
15530 to always fail with ENOSYS. Some functions are actually named
15531 something starting with __ and the normal name is an alias. */
15532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15533 choke me
15534 #else
15535 char (*f) () = $ac_func;
15536 #endif
15537 #ifdef __cplusplus
15539 #endif
15542 main ()
15544 return f != $ac_func;
15546 return 0;
15548 _ACEOF
15549 rm -f conftest.$ac_objext conftest$ac_exeext
15550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15551 (eval $ac_link) 2>conftest.er1
15552 ac_status=$?
15553 grep -v '^ *+' conftest.er1 >conftest.err
15554 rm -f conftest.er1
15555 cat conftest.err >&5
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); } &&
15558 { ac_try='test -z "$ac_c_werror_flag"
15559 || test ! -s conftest.err'
15560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15561 (eval $ac_try) 2>&5
15562 ac_status=$?
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); }; } &&
15565 { ac_try='test -s conftest$ac_exeext'
15566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15567 (eval $ac_try) 2>&5
15568 ac_status=$?
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); }; }; then
15571 eval "$as_ac_var=yes"
15572 else
15573 echo "$as_me: failed program was:" >&5
15574 sed 's/^/| /' conftest.$ac_ext >&5
15576 eval "$as_ac_var=no"
15578 rm -f conftest.err conftest.$ac_objext \
15579 conftest$ac_exeext conftest.$ac_ext
15581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15582 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15583 if test `eval echo '${'$as_ac_var'}'` = yes; then
15584 cat >>confdefs.h <<_ACEOF
15585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15586 _ACEOF
15587 cat >conftest.$ac_ext <<_ACEOF
15588 /* confdefs.h. */
15589 _ACEOF
15590 cat confdefs.h >>conftest.$ac_ext
15591 cat >>conftest.$ac_ext <<_ACEOF
15592 /* end confdefs.h. */
15593 #include <unistd.h>
15595 main ()
15597 setpgrp(0,0);
15599 return 0;
15601 _ACEOF
15602 rm -f conftest.$ac_objext
15603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15604 (eval $ac_compile) 2>conftest.er1
15605 ac_status=$?
15606 grep -v '^ *+' conftest.er1 >conftest.err
15607 rm -f conftest.er1
15608 cat conftest.err >&5
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); } &&
15611 { ac_try='test -z "$ac_c_werror_flag"
15612 || test ! -s conftest.err'
15613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15614 (eval $ac_try) 2>&5
15615 ac_status=$?
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); }; } &&
15618 { ac_try='test -s conftest.$ac_objext'
15619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15620 (eval $ac_try) 2>&5
15621 ac_status=$?
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); }; }; then
15625 cat >>confdefs.h <<\_ACEOF
15626 #define SETPGRP_HAVE_ARG 1
15627 _ACEOF
15630 else
15631 echo "$as_me: failed program was:" >&5
15632 sed 's/^/| /' conftest.$ac_ext >&5
15635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15638 done
15641 for ac_func in gettimeofday
15643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15644 echo "$as_me:$LINENO: checking for $ac_func" >&5
15645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15646 if eval "test \"\${$as_ac_var+set}\" = set"; then
15647 echo $ECHO_N "(cached) $ECHO_C" >&6
15648 else
15649 cat >conftest.$ac_ext <<_ACEOF
15650 /* confdefs.h. */
15651 _ACEOF
15652 cat confdefs.h >>conftest.$ac_ext
15653 cat >>conftest.$ac_ext <<_ACEOF
15654 /* end confdefs.h. */
15655 /* System header to define __stub macros and hopefully few prototypes,
15656 which can conflict with char $ac_func (); below.
15657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15658 <limits.h> exists even on freestanding compilers. Under hpux,
15659 including <limits.h> includes <sys/time.h> and causes problems
15660 checking for functions defined therein. */
15661 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
15662 # include <limits.h>
15663 #else
15664 # include <assert.h>
15665 #endif
15666 /* Override any gcc2 internal prototype to avoid an error. */
15667 #ifdef __cplusplus
15668 extern "C"
15670 #endif
15671 /* We use char because int might match the return type of a gcc2
15672 builtin and then its argument prototype would still apply. */
15673 char $ac_func ();
15674 /* The GNU C library defines this for functions which it implements
15675 to always fail with ENOSYS. Some functions are actually named
15676 something starting with __ and the normal name is an alias. */
15677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15678 choke me
15679 #else
15680 char (*f) () = $ac_func;
15681 #endif
15682 #ifdef __cplusplus
15684 #endif
15687 main ()
15689 return f != $ac_func;
15691 return 0;
15693 _ACEOF
15694 rm -f conftest.$ac_objext conftest$ac_exeext
15695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15696 (eval $ac_link) 2>conftest.er1
15697 ac_status=$?
15698 grep -v '^ *+' conftest.er1 >conftest.err
15699 rm -f conftest.er1
15700 cat conftest.err >&5
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); } &&
15703 { ac_try='test -z "$ac_c_werror_flag"
15704 || test ! -s conftest.err'
15705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15706 (eval $ac_try) 2>&5
15707 ac_status=$?
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); }; } &&
15710 { ac_try='test -s conftest$ac_exeext'
15711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15712 (eval $ac_try) 2>&5
15713 ac_status=$?
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); }; }; then
15716 eval "$as_ac_var=yes"
15717 else
15718 echo "$as_me: failed program was:" >&5
15719 sed 's/^/| /' conftest.$ac_ext >&5
15721 eval "$as_ac_var=no"
15723 rm -f conftest.err conftest.$ac_objext \
15724 conftest$ac_exeext conftest.$ac_ext
15726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15727 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15728 if test `eval echo '${'$as_ac_var'}'` = yes; then
15729 cat >>confdefs.h <<_ACEOF
15730 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15731 _ACEOF
15732 cat >conftest.$ac_ext <<_ACEOF
15733 /* confdefs.h. */
15734 _ACEOF
15735 cat confdefs.h >>conftest.$ac_ext
15736 cat >>conftest.$ac_ext <<_ACEOF
15737 /* end confdefs.h. */
15738 #include <sys/time.h>
15740 main ()
15742 gettimeofday((struct timeval*)0,(struct timezone*)0);
15744 return 0;
15746 _ACEOF
15747 rm -f conftest.$ac_objext
15748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15749 (eval $ac_compile) 2>conftest.er1
15750 ac_status=$?
15751 grep -v '^ *+' conftest.er1 >conftest.err
15752 rm -f conftest.er1
15753 cat conftest.err >&5
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); } &&
15756 { ac_try='test -z "$ac_c_werror_flag"
15757 || test ! -s conftest.err'
15758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15759 (eval $ac_try) 2>&5
15760 ac_status=$?
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); }; } &&
15763 { ac_try='test -s conftest.$ac_objext'
15764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15765 (eval $ac_try) 2>&5
15766 ac_status=$?
15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); }; }; then
15770 else
15771 echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.$ac_ext >&5
15775 cat >>confdefs.h <<\_ACEOF
15776 #define GETTIMEOFDAY_NO_TZ 1
15777 _ACEOF
15781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15784 done
15787 echo "$as_me:$LINENO: checking for major" >&5
15788 echo $ECHO_N "checking for major... $ECHO_C" >&6
15789 cat >conftest.$ac_ext <<_ACEOF
15790 /* confdefs.h. */
15791 _ACEOF
15792 cat confdefs.h >>conftest.$ac_ext
15793 cat >>conftest.$ac_ext <<_ACEOF
15794 /* end confdefs.h. */
15796 #if defined(MAJOR_IN_MKDEV)
15797 #include <sys/mkdev.h>
15798 #elif defined(MAJOR_IN_SYSMACROS)
15799 #include <sys/sysmacros.h>
15800 #else
15801 #include <sys/types.h>
15802 #endif
15805 main ()
15808 makedev(major(0),minor(0));
15811 return 0;
15813 _ACEOF
15814 rm -f conftest.$ac_objext conftest$ac_exeext
15815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15816 (eval $ac_link) 2>conftest.er1
15817 ac_status=$?
15818 grep -v '^ *+' conftest.er1 >conftest.err
15819 rm -f conftest.er1
15820 cat conftest.err >&5
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); } &&
15823 { ac_try='test -z "$ac_c_werror_flag"
15824 || test ! -s conftest.err'
15825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15826 (eval $ac_try) 2>&5
15827 ac_status=$?
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); }; } &&
15830 { ac_try='test -s conftest$ac_exeext'
15831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15832 (eval $ac_try) 2>&5
15833 ac_status=$?
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); }; }; then
15838 cat >>confdefs.h <<\_ACEOF
15839 #define HAVE_DEVICE_MACROS 1
15840 _ACEOF
15842 echo "$as_me:$LINENO: result: yes" >&5
15843 echo "${ECHO_T}yes" >&6
15845 else
15846 echo "$as_me: failed program was:" >&5
15847 sed 's/^/| /' conftest.$ac_ext >&5
15850 echo "$as_me:$LINENO: result: no" >&5
15851 echo "${ECHO_T}no" >&6
15854 rm -f conftest.err conftest.$ac_objext \
15855 conftest$ac_exeext conftest.$ac_ext
15857 # On OSF/1 V5.1, getaddrinfo is available, but a define
15858 # for [no]getaddrinfo in netdb.h.
15859 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
15860 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
15861 cat >conftest.$ac_ext <<_ACEOF
15862 /* confdefs.h. */
15863 _ACEOF
15864 cat confdefs.h >>conftest.$ac_ext
15865 cat >>conftest.$ac_ext <<_ACEOF
15866 /* end confdefs.h. */
15868 #include <sys/types.h>
15869 #include <sys/socket.h>
15870 #include <netdb.h>
15871 #include <stdio.h>
15874 main ()
15877 getaddrinfo(NULL, NULL, NULL, NULL);
15880 return 0;
15882 _ACEOF
15883 rm -f conftest.$ac_objext conftest$ac_exeext
15884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15885 (eval $ac_link) 2>conftest.er1
15886 ac_status=$?
15887 grep -v '^ *+' conftest.er1 >conftest.err
15888 rm -f conftest.er1
15889 cat conftest.err >&5
15890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891 (exit $ac_status); } &&
15892 { ac_try='test -z "$ac_c_werror_flag"
15893 || test ! -s conftest.err'
15894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15895 (eval $ac_try) 2>&5
15896 ac_status=$?
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); }; } &&
15899 { ac_try='test -s conftest$ac_exeext'
15900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15901 (eval $ac_try) 2>&5
15902 ac_status=$?
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); }; }; then
15906 echo "$as_me:$LINENO: result: yes" >&5
15907 echo "${ECHO_T}yes" >&6
15908 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
15909 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
15910 if test "$cross_compiling" = yes; then
15911 echo "$as_me:$LINENO: result: buggy" >&5
15912 echo "${ECHO_T}buggy" >&6
15913 buggygetaddrinfo=yes
15914 else
15915 cat >conftest.$ac_ext <<_ACEOF
15916 /* confdefs.h. */
15917 _ACEOF
15918 cat confdefs.h >>conftest.$ac_ext
15919 cat >>conftest.$ac_ext <<_ACEOF
15920 /* end confdefs.h. */
15922 #include <sys/types.h>
15923 #include <netdb.h>
15924 #include <string.h>
15925 #include <sys/socket.h>
15926 #include <netinet/in.h>
15928 main()
15930 int passive, gaierr, inet4 = 0, inet6 = 0;
15931 struct addrinfo hints, *ai, *aitop;
15932 char straddr[INET6_ADDRSTRLEN], strport[16];
15934 for (passive = 0; passive <= 1; passive++) {
15935 memset(&hints, 0, sizeof(hints));
15936 hints.ai_family = AF_UNSPEC;
15937 hints.ai_flags = passive ? AI_PASSIVE : 0;
15938 hints.ai_socktype = SOCK_STREAM;
15939 hints.ai_protocol = IPPROTO_TCP;
15940 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
15941 (void)gai_strerror(gaierr);
15942 goto bad;
15944 for (ai = aitop; ai; ai = ai->ai_next) {
15945 if (ai->ai_addr == NULL ||
15946 ai->ai_addrlen == 0 ||
15947 getnameinfo(ai->ai_addr, ai->ai_addrlen,
15948 straddr, sizeof(straddr), strport, sizeof(strport),
15949 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
15950 goto bad;
15952 switch (ai->ai_family) {
15953 case AF_INET:
15954 if (strcmp(strport, "54321") != 0) {
15955 goto bad;
15957 if (passive) {
15958 if (strcmp(straddr, "0.0.0.0") != 0) {
15959 goto bad;
15961 } else {
15962 if (strcmp(straddr, "127.0.0.1") != 0) {
15963 goto bad;
15966 inet4++;
15967 break;
15968 case AF_INET6:
15969 if (strcmp(strport, "54321") != 0) {
15970 goto bad;
15972 if (passive) {
15973 if (strcmp(straddr, "::") != 0) {
15974 goto bad;
15976 } else {
15977 if (strcmp(straddr, "::1") != 0) {
15978 goto bad;
15981 inet6++;
15982 break;
15983 case AF_UNSPEC:
15984 goto bad;
15985 break;
15986 default:
15987 /* another family support? */
15988 break;
15993 if (!(inet4 == 0 || inet4 == 2))
15994 goto bad;
15995 if (!(inet6 == 0 || inet6 == 2))
15996 goto bad;
15998 if (aitop)
15999 freeaddrinfo(aitop);
16000 exit(0);
16002 bad:
16003 if (aitop)
16004 freeaddrinfo(aitop);
16005 exit(1);
16008 _ACEOF
16009 rm -f conftest$ac_exeext
16010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16011 (eval $ac_link) 2>&5
16012 ac_status=$?
16013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16016 (eval $ac_try) 2>&5
16017 ac_status=$?
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); }; }; then
16020 echo "$as_me:$LINENO: result: good" >&5
16021 echo "${ECHO_T}good" >&6
16022 buggygetaddrinfo=no
16023 else
16024 echo "$as_me: program exited with status $ac_status" >&5
16025 echo "$as_me: failed program was:" >&5
16026 sed 's/^/| /' conftest.$ac_ext >&5
16028 ( exit $ac_status )
16029 echo "$as_me:$LINENO: result: buggy" >&5
16030 echo "${ECHO_T}buggy" >&6
16031 buggygetaddrinfo=yes
16033 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16035 else
16036 echo "$as_me: failed program was:" >&5
16037 sed 's/^/| /' conftest.$ac_ext >&5
16040 echo "$as_me:$LINENO: result: no" >&5
16041 echo "${ECHO_T}no" >&6
16042 buggygetaddrinfo=yes
16045 rm -f conftest.err conftest.$ac_objext \
16046 conftest$ac_exeext conftest.$ac_ext
16048 if test "$buggygetaddrinfo" = "yes"; then
16049 if test "$ipv6" = "yes"; then
16050 echo 'Fatal: You must get working getaddrinfo() function.'
16051 echo ' or you can specify "--disable-ipv6"'.
16052 exit 1
16054 else
16056 cat >>confdefs.h <<\_ACEOF
16057 #define HAVE_GETADDRINFO 1
16058 _ACEOF
16062 for ac_func in getnameinfo
16064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16065 echo "$as_me:$LINENO: checking for $ac_func" >&5
16066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16067 if eval "test \"\${$as_ac_var+set}\" = set"; then
16068 echo $ECHO_N "(cached) $ECHO_C" >&6
16069 else
16070 cat >conftest.$ac_ext <<_ACEOF
16071 /* confdefs.h. */
16072 _ACEOF
16073 cat confdefs.h >>conftest.$ac_ext
16074 cat >>conftest.$ac_ext <<_ACEOF
16075 /* end confdefs.h. */
16076 /* System header to define __stub macros and hopefully few prototypes,
16077 which can conflict with char $ac_func (); below.
16078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16079 <limits.h> exists even on freestanding compilers. Under hpux,
16080 including <limits.h> includes <sys/time.h> and causes problems
16081 checking for functions defined therein. */
16082 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
16083 # include <limits.h>
16084 #else
16085 # include <assert.h>
16086 #endif
16087 /* Override any gcc2 internal prototype to avoid an error. */
16088 #ifdef __cplusplus
16089 extern "C"
16091 #endif
16092 /* We use char because int might match the return type of a gcc2
16093 builtin and then its argument prototype would still apply. */
16094 char $ac_func ();
16095 /* The GNU C library defines this for functions which it implements
16096 to always fail with ENOSYS. Some functions are actually named
16097 something starting with __ and the normal name is an alias. */
16098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16099 choke me
16100 #else
16101 char (*f) () = $ac_func;
16102 #endif
16103 #ifdef __cplusplus
16105 #endif
16108 main ()
16110 return f != $ac_func;
16112 return 0;
16114 _ACEOF
16115 rm -f conftest.$ac_objext conftest$ac_exeext
16116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16117 (eval $ac_link) 2>conftest.er1
16118 ac_status=$?
16119 grep -v '^ *+' conftest.er1 >conftest.err
16120 rm -f conftest.er1
16121 cat conftest.err >&5
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); } &&
16124 { ac_try='test -z "$ac_c_werror_flag"
16125 || test ! -s conftest.err'
16126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16127 (eval $ac_try) 2>&5
16128 ac_status=$?
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); }; } &&
16131 { ac_try='test -s conftest$ac_exeext'
16132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16133 (eval $ac_try) 2>&5
16134 ac_status=$?
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); }; }; then
16137 eval "$as_ac_var=yes"
16138 else
16139 echo "$as_me: failed program was:" >&5
16140 sed 's/^/| /' conftest.$ac_ext >&5
16142 eval "$as_ac_var=no"
16144 rm -f conftest.err conftest.$ac_objext \
16145 conftest$ac_exeext conftest.$ac_ext
16147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16148 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16149 if test `eval echo '${'$as_ac_var'}'` = yes; then
16150 cat >>confdefs.h <<_ACEOF
16151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16152 _ACEOF
16155 done
16158 # checks for structures
16159 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16160 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
16161 if test "${ac_cv_header_time+set}" = set; then
16162 echo $ECHO_N "(cached) $ECHO_C" >&6
16163 else
16164 cat >conftest.$ac_ext <<_ACEOF
16165 /* confdefs.h. */
16166 _ACEOF
16167 cat confdefs.h >>conftest.$ac_ext
16168 cat >>conftest.$ac_ext <<_ACEOF
16169 /* end confdefs.h. */
16170 #include <sys/types.h>
16171 #include <sys/time.h>
16172 #include <time.h>
16175 main ()
16177 if ((struct tm *) 0)
16178 return 0;
16180 return 0;
16182 _ACEOF
16183 rm -f conftest.$ac_objext
16184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16185 (eval $ac_compile) 2>conftest.er1
16186 ac_status=$?
16187 grep -v '^ *+' conftest.er1 >conftest.err
16188 rm -f conftest.er1
16189 cat conftest.err >&5
16190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191 (exit $ac_status); } &&
16192 { ac_try='test -z "$ac_c_werror_flag"
16193 || test ! -s conftest.err'
16194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16195 (eval $ac_try) 2>&5
16196 ac_status=$?
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); }; } &&
16199 { ac_try='test -s conftest.$ac_objext'
16200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16201 (eval $ac_try) 2>&5
16202 ac_status=$?
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); }; }; then
16205 ac_cv_header_time=yes
16206 else
16207 echo "$as_me: failed program was:" >&5
16208 sed 's/^/| /' conftest.$ac_ext >&5
16210 ac_cv_header_time=no
16212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16214 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16215 echo "${ECHO_T}$ac_cv_header_time" >&6
16216 if test $ac_cv_header_time = yes; then
16218 cat >>confdefs.h <<\_ACEOF
16219 #define TIME_WITH_SYS_TIME 1
16220 _ACEOF
16224 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16225 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16226 if test "${ac_cv_struct_tm+set}" = set; then
16227 echo $ECHO_N "(cached) $ECHO_C" >&6
16228 else
16229 cat >conftest.$ac_ext <<_ACEOF
16230 /* confdefs.h. */
16231 _ACEOF
16232 cat confdefs.h >>conftest.$ac_ext
16233 cat >>conftest.$ac_ext <<_ACEOF
16234 /* end confdefs.h. */
16235 #include <sys/types.h>
16236 #include <time.h>
16239 main ()
16241 struct tm *tp; tp->tm_sec;
16243 return 0;
16245 _ACEOF
16246 rm -f conftest.$ac_objext
16247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16248 (eval $ac_compile) 2>conftest.er1
16249 ac_status=$?
16250 grep -v '^ *+' conftest.er1 >conftest.err
16251 rm -f conftest.er1
16252 cat conftest.err >&5
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); } &&
16255 { ac_try='test -z "$ac_c_werror_flag"
16256 || test ! -s conftest.err'
16257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16258 (eval $ac_try) 2>&5
16259 ac_status=$?
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); }; } &&
16262 { ac_try='test -s conftest.$ac_objext'
16263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16264 (eval $ac_try) 2>&5
16265 ac_status=$?
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); }; }; then
16268 ac_cv_struct_tm=time.h
16269 else
16270 echo "$as_me: failed program was:" >&5
16271 sed 's/^/| /' conftest.$ac_ext >&5
16273 ac_cv_struct_tm=sys/time.h
16275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16277 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16278 echo "${ECHO_T}$ac_cv_struct_tm" >&6
16279 if test $ac_cv_struct_tm = sys/time.h; then
16281 cat >>confdefs.h <<\_ACEOF
16282 #define TM_IN_SYS_TIME 1
16283 _ACEOF
16287 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16288 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16289 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16290 echo $ECHO_N "(cached) $ECHO_C" >&6
16291 else
16292 cat >conftest.$ac_ext <<_ACEOF
16293 /* confdefs.h. */
16294 _ACEOF
16295 cat confdefs.h >>conftest.$ac_ext
16296 cat >>conftest.$ac_ext <<_ACEOF
16297 /* end confdefs.h. */
16298 #include <sys/types.h>
16299 #include <$ac_cv_struct_tm>
16303 main ()
16305 static struct tm ac_aggr;
16306 if (ac_aggr.tm_zone)
16307 return 0;
16309 return 0;
16311 _ACEOF
16312 rm -f conftest.$ac_objext
16313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16314 (eval $ac_compile) 2>conftest.er1
16315 ac_status=$?
16316 grep -v '^ *+' conftest.er1 >conftest.err
16317 rm -f conftest.er1
16318 cat conftest.err >&5
16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); } &&
16321 { ac_try='test -z "$ac_c_werror_flag"
16322 || test ! -s conftest.err'
16323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16324 (eval $ac_try) 2>&5
16325 ac_status=$?
16326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327 (exit $ac_status); }; } &&
16328 { ac_try='test -s conftest.$ac_objext'
16329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16330 (eval $ac_try) 2>&5
16331 ac_status=$?
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); }; }; then
16334 ac_cv_member_struct_tm_tm_zone=yes
16335 else
16336 echo "$as_me: failed program was:" >&5
16337 sed 's/^/| /' conftest.$ac_ext >&5
16339 cat >conftest.$ac_ext <<_ACEOF
16340 /* confdefs.h. */
16341 _ACEOF
16342 cat confdefs.h >>conftest.$ac_ext
16343 cat >>conftest.$ac_ext <<_ACEOF
16344 /* end confdefs.h. */
16345 #include <sys/types.h>
16346 #include <$ac_cv_struct_tm>
16350 main ()
16352 static struct tm ac_aggr;
16353 if (sizeof ac_aggr.tm_zone)
16354 return 0;
16356 return 0;
16358 _ACEOF
16359 rm -f conftest.$ac_objext
16360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16361 (eval $ac_compile) 2>conftest.er1
16362 ac_status=$?
16363 grep -v '^ *+' conftest.er1 >conftest.err
16364 rm -f conftest.er1
16365 cat conftest.err >&5
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); } &&
16368 { ac_try='test -z "$ac_c_werror_flag"
16369 || test ! -s conftest.err'
16370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16371 (eval $ac_try) 2>&5
16372 ac_status=$?
16373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374 (exit $ac_status); }; } &&
16375 { ac_try='test -s conftest.$ac_objext'
16376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16377 (eval $ac_try) 2>&5
16378 ac_status=$?
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); }; }; then
16381 ac_cv_member_struct_tm_tm_zone=yes
16382 else
16383 echo "$as_me: failed program was:" >&5
16384 sed 's/^/| /' conftest.$ac_ext >&5
16386 ac_cv_member_struct_tm_tm_zone=no
16388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16392 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16393 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
16394 if test $ac_cv_member_struct_tm_tm_zone = yes; then
16396 cat >>confdefs.h <<_ACEOF
16397 #define HAVE_STRUCT_TM_TM_ZONE 1
16398 _ACEOF
16403 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16405 cat >>confdefs.h <<\_ACEOF
16406 #define HAVE_TM_ZONE 1
16407 _ACEOF
16409 else
16410 echo "$as_me:$LINENO: checking for tzname" >&5
16411 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
16412 if test "${ac_cv_var_tzname+set}" = set; then
16413 echo $ECHO_N "(cached) $ECHO_C" >&6
16414 else
16415 cat >conftest.$ac_ext <<_ACEOF
16416 /* confdefs.h. */
16417 _ACEOF
16418 cat confdefs.h >>conftest.$ac_ext
16419 cat >>conftest.$ac_ext <<_ACEOF
16420 /* end confdefs.h. */
16421 #include <time.h>
16422 #ifndef tzname /* For SGI. */
16423 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
16424 #endif
16427 main ()
16429 atoi(*tzname);
16431 return 0;
16433 _ACEOF
16434 rm -f conftest.$ac_objext conftest$ac_exeext
16435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16436 (eval $ac_link) 2>conftest.er1
16437 ac_status=$?
16438 grep -v '^ *+' conftest.er1 >conftest.err
16439 rm -f conftest.er1
16440 cat conftest.err >&5
16441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); } &&
16443 { ac_try='test -z "$ac_c_werror_flag"
16444 || test ! -s conftest.err'
16445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16446 (eval $ac_try) 2>&5
16447 ac_status=$?
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); }; } &&
16450 { ac_try='test -s conftest$ac_exeext'
16451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16452 (eval $ac_try) 2>&5
16453 ac_status=$?
16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 (exit $ac_status); }; }; then
16456 ac_cv_var_tzname=yes
16457 else
16458 echo "$as_me: failed program was:" >&5
16459 sed 's/^/| /' conftest.$ac_ext >&5
16461 ac_cv_var_tzname=no
16463 rm -f conftest.err conftest.$ac_objext \
16464 conftest$ac_exeext conftest.$ac_ext
16466 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
16467 echo "${ECHO_T}$ac_cv_var_tzname" >&6
16468 if test $ac_cv_var_tzname = yes; then
16470 cat >>confdefs.h <<\_ACEOF
16471 #define HAVE_TZNAME 1
16472 _ACEOF
16477 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
16478 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
16479 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
16480 echo $ECHO_N "(cached) $ECHO_C" >&6
16481 else
16482 cat >conftest.$ac_ext <<_ACEOF
16483 /* confdefs.h. */
16484 _ACEOF
16485 cat confdefs.h >>conftest.$ac_ext
16486 cat >>conftest.$ac_ext <<_ACEOF
16487 /* end confdefs.h. */
16488 $ac_includes_default
16490 main ()
16492 static struct stat ac_aggr;
16493 if (ac_aggr.st_rdev)
16494 return 0;
16496 return 0;
16498 _ACEOF
16499 rm -f conftest.$ac_objext
16500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16501 (eval $ac_compile) 2>conftest.er1
16502 ac_status=$?
16503 grep -v '^ *+' conftest.er1 >conftest.err
16504 rm -f conftest.er1
16505 cat conftest.err >&5
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); } &&
16508 { ac_try='test -z "$ac_c_werror_flag"
16509 || test ! -s conftest.err'
16510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16511 (eval $ac_try) 2>&5
16512 ac_status=$?
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); }; } &&
16515 { ac_try='test -s conftest.$ac_objext'
16516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16517 (eval $ac_try) 2>&5
16518 ac_status=$?
16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); }; }; then
16521 ac_cv_member_struct_stat_st_rdev=yes
16522 else
16523 echo "$as_me: failed program was:" >&5
16524 sed 's/^/| /' conftest.$ac_ext >&5
16526 cat >conftest.$ac_ext <<_ACEOF
16527 /* confdefs.h. */
16528 _ACEOF
16529 cat confdefs.h >>conftest.$ac_ext
16530 cat >>conftest.$ac_ext <<_ACEOF
16531 /* end confdefs.h. */
16532 $ac_includes_default
16534 main ()
16536 static struct stat ac_aggr;
16537 if (sizeof ac_aggr.st_rdev)
16538 return 0;
16540 return 0;
16542 _ACEOF
16543 rm -f conftest.$ac_objext
16544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16545 (eval $ac_compile) 2>conftest.er1
16546 ac_status=$?
16547 grep -v '^ *+' conftest.er1 >conftest.err
16548 rm -f conftest.er1
16549 cat conftest.err >&5
16550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); } &&
16552 { ac_try='test -z "$ac_c_werror_flag"
16553 || test ! -s conftest.err'
16554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16555 (eval $ac_try) 2>&5
16556 ac_status=$?
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); }; } &&
16559 { ac_try='test -s conftest.$ac_objext'
16560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16561 (eval $ac_try) 2>&5
16562 ac_status=$?
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); }; }; then
16565 ac_cv_member_struct_stat_st_rdev=yes
16566 else
16567 echo "$as_me: failed program was:" >&5
16568 sed 's/^/| /' conftest.$ac_ext >&5
16570 ac_cv_member_struct_stat_st_rdev=no
16572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16576 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
16577 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
16578 if test $ac_cv_member_struct_stat_st_rdev = yes; then
16580 cat >>confdefs.h <<_ACEOF
16581 #define HAVE_STRUCT_STAT_ST_RDEV 1
16582 _ACEOF
16587 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
16588 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
16589 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
16590 echo $ECHO_N "(cached) $ECHO_C" >&6
16591 else
16592 cat >conftest.$ac_ext <<_ACEOF
16593 /* confdefs.h. */
16594 _ACEOF
16595 cat confdefs.h >>conftest.$ac_ext
16596 cat >>conftest.$ac_ext <<_ACEOF
16597 /* end confdefs.h. */
16598 $ac_includes_default
16600 main ()
16602 static struct stat ac_aggr;
16603 if (ac_aggr.st_blksize)
16604 return 0;
16606 return 0;
16608 _ACEOF
16609 rm -f conftest.$ac_objext
16610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16611 (eval $ac_compile) 2>conftest.er1
16612 ac_status=$?
16613 grep -v '^ *+' conftest.er1 >conftest.err
16614 rm -f conftest.er1
16615 cat conftest.err >&5
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); } &&
16618 { ac_try='test -z "$ac_c_werror_flag"
16619 || test ! -s conftest.err'
16620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16621 (eval $ac_try) 2>&5
16622 ac_status=$?
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); }; } &&
16625 { ac_try='test -s conftest.$ac_objext'
16626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16627 (eval $ac_try) 2>&5
16628 ac_status=$?
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); }; }; then
16631 ac_cv_member_struct_stat_st_blksize=yes
16632 else
16633 echo "$as_me: failed program was:" >&5
16634 sed 's/^/| /' conftest.$ac_ext >&5
16636 cat >conftest.$ac_ext <<_ACEOF
16637 /* confdefs.h. */
16638 _ACEOF
16639 cat confdefs.h >>conftest.$ac_ext
16640 cat >>conftest.$ac_ext <<_ACEOF
16641 /* end confdefs.h. */
16642 $ac_includes_default
16644 main ()
16646 static struct stat ac_aggr;
16647 if (sizeof ac_aggr.st_blksize)
16648 return 0;
16650 return 0;
16652 _ACEOF
16653 rm -f conftest.$ac_objext
16654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16655 (eval $ac_compile) 2>conftest.er1
16656 ac_status=$?
16657 grep -v '^ *+' conftest.er1 >conftest.err
16658 rm -f conftest.er1
16659 cat conftest.err >&5
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); } &&
16662 { ac_try='test -z "$ac_c_werror_flag"
16663 || test ! -s conftest.err'
16664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16665 (eval $ac_try) 2>&5
16666 ac_status=$?
16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); }; } &&
16669 { ac_try='test -s conftest.$ac_objext'
16670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16671 (eval $ac_try) 2>&5
16672 ac_status=$?
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); }; }; then
16675 ac_cv_member_struct_stat_st_blksize=yes
16676 else
16677 echo "$as_me: failed program was:" >&5
16678 sed 's/^/| /' conftest.$ac_ext >&5
16680 ac_cv_member_struct_stat_st_blksize=no
16682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16686 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
16687 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
16688 if test $ac_cv_member_struct_stat_st_blksize = yes; then
16690 cat >>confdefs.h <<_ACEOF
16691 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16692 _ACEOF
16697 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
16698 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
16699 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
16700 echo $ECHO_N "(cached) $ECHO_C" >&6
16701 else
16702 cat >conftest.$ac_ext <<_ACEOF
16703 /* confdefs.h. */
16704 _ACEOF
16705 cat confdefs.h >>conftest.$ac_ext
16706 cat >>conftest.$ac_ext <<_ACEOF
16707 /* end confdefs.h. */
16708 $ac_includes_default
16710 main ()
16712 static struct stat ac_aggr;
16713 if (ac_aggr.st_flags)
16714 return 0;
16716 return 0;
16718 _ACEOF
16719 rm -f conftest.$ac_objext
16720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16721 (eval $ac_compile) 2>conftest.er1
16722 ac_status=$?
16723 grep -v '^ *+' conftest.er1 >conftest.err
16724 rm -f conftest.er1
16725 cat conftest.err >&5
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); } &&
16728 { ac_try='test -z "$ac_c_werror_flag"
16729 || test ! -s conftest.err'
16730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16731 (eval $ac_try) 2>&5
16732 ac_status=$?
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); }; } &&
16735 { ac_try='test -s conftest.$ac_objext'
16736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16737 (eval $ac_try) 2>&5
16738 ac_status=$?
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); }; }; then
16741 ac_cv_member_struct_stat_st_flags=yes
16742 else
16743 echo "$as_me: failed program was:" >&5
16744 sed 's/^/| /' conftest.$ac_ext >&5
16746 cat >conftest.$ac_ext <<_ACEOF
16747 /* confdefs.h. */
16748 _ACEOF
16749 cat confdefs.h >>conftest.$ac_ext
16750 cat >>conftest.$ac_ext <<_ACEOF
16751 /* end confdefs.h. */
16752 $ac_includes_default
16754 main ()
16756 static struct stat ac_aggr;
16757 if (sizeof ac_aggr.st_flags)
16758 return 0;
16760 return 0;
16762 _ACEOF
16763 rm -f conftest.$ac_objext
16764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16765 (eval $ac_compile) 2>conftest.er1
16766 ac_status=$?
16767 grep -v '^ *+' conftest.er1 >conftest.err
16768 rm -f conftest.er1
16769 cat conftest.err >&5
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); } &&
16772 { ac_try='test -z "$ac_c_werror_flag"
16773 || test ! -s conftest.err'
16774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16775 (eval $ac_try) 2>&5
16776 ac_status=$?
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); }; } &&
16779 { ac_try='test -s conftest.$ac_objext'
16780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16781 (eval $ac_try) 2>&5
16782 ac_status=$?
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); }; }; then
16785 ac_cv_member_struct_stat_st_flags=yes
16786 else
16787 echo "$as_me: failed program was:" >&5
16788 sed 's/^/| /' conftest.$ac_ext >&5
16790 ac_cv_member_struct_stat_st_flags=no
16792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16796 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
16797 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
16798 if test $ac_cv_member_struct_stat_st_flags = yes; then
16800 cat >>confdefs.h <<_ACEOF
16801 #define HAVE_STRUCT_STAT_ST_FLAGS 1
16802 _ACEOF
16807 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
16808 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
16809 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
16810 echo $ECHO_N "(cached) $ECHO_C" >&6
16811 else
16812 cat >conftest.$ac_ext <<_ACEOF
16813 /* confdefs.h. */
16814 _ACEOF
16815 cat confdefs.h >>conftest.$ac_ext
16816 cat >>conftest.$ac_ext <<_ACEOF
16817 /* end confdefs.h. */
16818 $ac_includes_default
16820 main ()
16822 static struct stat ac_aggr;
16823 if (ac_aggr.st_gen)
16824 return 0;
16826 return 0;
16828 _ACEOF
16829 rm -f conftest.$ac_objext
16830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16831 (eval $ac_compile) 2>conftest.er1
16832 ac_status=$?
16833 grep -v '^ *+' conftest.er1 >conftest.err
16834 rm -f conftest.er1
16835 cat conftest.err >&5
16836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); } &&
16838 { ac_try='test -z "$ac_c_werror_flag"
16839 || test ! -s conftest.err'
16840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16841 (eval $ac_try) 2>&5
16842 ac_status=$?
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); }; } &&
16845 { ac_try='test -s conftest.$ac_objext'
16846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16847 (eval $ac_try) 2>&5
16848 ac_status=$?
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); }; }; then
16851 ac_cv_member_struct_stat_st_gen=yes
16852 else
16853 echo "$as_me: failed program was:" >&5
16854 sed 's/^/| /' conftest.$ac_ext >&5
16856 cat >conftest.$ac_ext <<_ACEOF
16857 /* confdefs.h. */
16858 _ACEOF
16859 cat confdefs.h >>conftest.$ac_ext
16860 cat >>conftest.$ac_ext <<_ACEOF
16861 /* end confdefs.h. */
16862 $ac_includes_default
16864 main ()
16866 static struct stat ac_aggr;
16867 if (sizeof ac_aggr.st_gen)
16868 return 0;
16870 return 0;
16872 _ACEOF
16873 rm -f conftest.$ac_objext
16874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16875 (eval $ac_compile) 2>conftest.er1
16876 ac_status=$?
16877 grep -v '^ *+' conftest.er1 >conftest.err
16878 rm -f conftest.er1
16879 cat conftest.err >&5
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); } &&
16882 { ac_try='test -z "$ac_c_werror_flag"
16883 || test ! -s conftest.err'
16884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16885 (eval $ac_try) 2>&5
16886 ac_status=$?
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); }; } &&
16889 { ac_try='test -s conftest.$ac_objext'
16890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16891 (eval $ac_try) 2>&5
16892 ac_status=$?
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); }; }; then
16895 ac_cv_member_struct_stat_st_gen=yes
16896 else
16897 echo "$as_me: failed program was:" >&5
16898 sed 's/^/| /' conftest.$ac_ext >&5
16900 ac_cv_member_struct_stat_st_gen=no
16902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16906 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
16907 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
16908 if test $ac_cv_member_struct_stat_st_gen = yes; then
16910 cat >>confdefs.h <<_ACEOF
16911 #define HAVE_STRUCT_STAT_ST_GEN 1
16912 _ACEOF
16917 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
16918 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
16919 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
16920 echo $ECHO_N "(cached) $ECHO_C" >&6
16921 else
16922 cat >conftest.$ac_ext <<_ACEOF
16923 /* confdefs.h. */
16924 _ACEOF
16925 cat confdefs.h >>conftest.$ac_ext
16926 cat >>conftest.$ac_ext <<_ACEOF
16927 /* end confdefs.h. */
16928 $ac_includes_default
16930 main ()
16932 static struct stat ac_aggr;
16933 if (ac_aggr.st_birthtime)
16934 return 0;
16936 return 0;
16938 _ACEOF
16939 rm -f conftest.$ac_objext
16940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16941 (eval $ac_compile) 2>conftest.er1
16942 ac_status=$?
16943 grep -v '^ *+' conftest.er1 >conftest.err
16944 rm -f conftest.er1
16945 cat conftest.err >&5
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); } &&
16948 { ac_try='test -z "$ac_c_werror_flag"
16949 || test ! -s conftest.err'
16950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16951 (eval $ac_try) 2>&5
16952 ac_status=$?
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; } &&
16955 { ac_try='test -s conftest.$ac_objext'
16956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16957 (eval $ac_try) 2>&5
16958 ac_status=$?
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); }; }; then
16961 ac_cv_member_struct_stat_st_birthtime=yes
16962 else
16963 echo "$as_me: failed program was:" >&5
16964 sed 's/^/| /' conftest.$ac_ext >&5
16966 cat >conftest.$ac_ext <<_ACEOF
16967 /* confdefs.h. */
16968 _ACEOF
16969 cat confdefs.h >>conftest.$ac_ext
16970 cat >>conftest.$ac_ext <<_ACEOF
16971 /* end confdefs.h. */
16972 $ac_includes_default
16974 main ()
16976 static struct stat ac_aggr;
16977 if (sizeof ac_aggr.st_birthtime)
16978 return 0;
16980 return 0;
16982 _ACEOF
16983 rm -f conftest.$ac_objext
16984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16985 (eval $ac_compile) 2>conftest.er1
16986 ac_status=$?
16987 grep -v '^ *+' conftest.er1 >conftest.err
16988 rm -f conftest.er1
16989 cat conftest.err >&5
16990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); } &&
16992 { ac_try='test -z "$ac_c_werror_flag"
16993 || test ! -s conftest.err'
16994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16995 (eval $ac_try) 2>&5
16996 ac_status=$?
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); }; } &&
16999 { ac_try='test -s conftest.$ac_objext'
17000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17001 (eval $ac_try) 2>&5
17002 ac_status=$?
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); }; }; then
17005 ac_cv_member_struct_stat_st_birthtime=yes
17006 else
17007 echo "$as_me: failed program was:" >&5
17008 sed 's/^/| /' conftest.$ac_ext >&5
17010 ac_cv_member_struct_stat_st_birthtime=no
17012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17016 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
17017 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
17018 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
17020 cat >>confdefs.h <<_ACEOF
17021 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
17022 _ACEOF
17027 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17028 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
17029 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17030 echo $ECHO_N "(cached) $ECHO_C" >&6
17031 else
17032 cat >conftest.$ac_ext <<_ACEOF
17033 /* confdefs.h. */
17034 _ACEOF
17035 cat confdefs.h >>conftest.$ac_ext
17036 cat >>conftest.$ac_ext <<_ACEOF
17037 /* end confdefs.h. */
17038 $ac_includes_default
17040 main ()
17042 static struct stat ac_aggr;
17043 if (ac_aggr.st_blocks)
17044 return 0;
17046 return 0;
17048 _ACEOF
17049 rm -f conftest.$ac_objext
17050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17051 (eval $ac_compile) 2>conftest.er1
17052 ac_status=$?
17053 grep -v '^ *+' conftest.er1 >conftest.err
17054 rm -f conftest.er1
17055 cat conftest.err >&5
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); } &&
17058 { ac_try='test -z "$ac_c_werror_flag"
17059 || test ! -s conftest.err'
17060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17061 (eval $ac_try) 2>&5
17062 ac_status=$?
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); }; } &&
17065 { ac_try='test -s conftest.$ac_objext'
17066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17067 (eval $ac_try) 2>&5
17068 ac_status=$?
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); }; }; then
17071 ac_cv_member_struct_stat_st_blocks=yes
17072 else
17073 echo "$as_me: failed program was:" >&5
17074 sed 's/^/| /' conftest.$ac_ext >&5
17076 cat >conftest.$ac_ext <<_ACEOF
17077 /* confdefs.h. */
17078 _ACEOF
17079 cat confdefs.h >>conftest.$ac_ext
17080 cat >>conftest.$ac_ext <<_ACEOF
17081 /* end confdefs.h. */
17082 $ac_includes_default
17084 main ()
17086 static struct stat ac_aggr;
17087 if (sizeof ac_aggr.st_blocks)
17088 return 0;
17090 return 0;
17092 _ACEOF
17093 rm -f conftest.$ac_objext
17094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17095 (eval $ac_compile) 2>conftest.er1
17096 ac_status=$?
17097 grep -v '^ *+' conftest.er1 >conftest.err
17098 rm -f conftest.er1
17099 cat conftest.err >&5
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); } &&
17102 { ac_try='test -z "$ac_c_werror_flag"
17103 || test ! -s conftest.err'
17104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17105 (eval $ac_try) 2>&5
17106 ac_status=$?
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); }; } &&
17109 { ac_try='test -s conftest.$ac_objext'
17110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17111 (eval $ac_try) 2>&5
17112 ac_status=$?
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); }; }; then
17115 ac_cv_member_struct_stat_st_blocks=yes
17116 else
17117 echo "$as_me: failed program was:" >&5
17118 sed 's/^/| /' conftest.$ac_ext >&5
17120 ac_cv_member_struct_stat_st_blocks=no
17122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17126 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17127 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
17128 if test $ac_cv_member_struct_stat_st_blocks = yes; then
17130 cat >>confdefs.h <<_ACEOF
17131 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
17132 _ACEOF
17135 cat >>confdefs.h <<\_ACEOF
17136 #define HAVE_ST_BLOCKS 1
17137 _ACEOF
17139 else
17140 case $LIBOBJS in
17141 "fileblocks.$ac_objext" | \
17142 *" fileblocks.$ac_objext" | \
17143 "fileblocks.$ac_objext "* | \
17144 *" fileblocks.$ac_objext "* ) ;;
17145 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
17146 esac
17152 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
17153 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
17154 if test "${ac_cv_header_time_altzone+set}" = set; then
17155 echo $ECHO_N "(cached) $ECHO_C" >&6
17156 else
17157 cat >conftest.$ac_ext <<_ACEOF
17158 /* confdefs.h. */
17159 _ACEOF
17160 cat confdefs.h >>conftest.$ac_ext
17161 cat >>conftest.$ac_ext <<_ACEOF
17162 /* end confdefs.h. */
17163 #include <time.h>
17165 main ()
17167 return altzone;
17169 return 0;
17171 _ACEOF
17172 rm -f conftest.$ac_objext
17173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17174 (eval $ac_compile) 2>conftest.er1
17175 ac_status=$?
17176 grep -v '^ *+' conftest.er1 >conftest.err
17177 rm -f conftest.er1
17178 cat conftest.err >&5
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); } &&
17181 { ac_try='test -z "$ac_c_werror_flag"
17182 || test ! -s conftest.err'
17183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17184 (eval $ac_try) 2>&5
17185 ac_status=$?
17186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); }; } &&
17188 { ac_try='test -s conftest.$ac_objext'
17189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17190 (eval $ac_try) 2>&5
17191 ac_status=$?
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); }; }; then
17194 ac_cv_header_time_altzone=yes
17195 else
17196 echo "$as_me: failed program was:" >&5
17197 sed 's/^/| /' conftest.$ac_ext >&5
17199 ac_cv_header_time_altzone=no
17201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17204 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
17205 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
17206 if test $ac_cv_header_time_altzone = yes; then
17208 cat >>confdefs.h <<\_ACEOF
17209 #define HAVE_ALTZONE 1
17210 _ACEOF
17214 was_it_defined=no
17215 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
17216 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
17217 cat >conftest.$ac_ext <<_ACEOF
17218 /* confdefs.h. */
17219 _ACEOF
17220 cat confdefs.h >>conftest.$ac_ext
17221 cat >>conftest.$ac_ext <<_ACEOF
17222 /* end confdefs.h. */
17224 #include <sys/types.h>
17225 #include <sys/select.h>
17226 #include <sys/time.h>
17229 main ()
17233 return 0;
17235 _ACEOF
17236 rm -f conftest.$ac_objext
17237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17238 (eval $ac_compile) 2>conftest.er1
17239 ac_status=$?
17240 grep -v '^ *+' conftest.er1 >conftest.err
17241 rm -f conftest.er1
17242 cat conftest.err >&5
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); } &&
17245 { ac_try='test -z "$ac_c_werror_flag"
17246 || test ! -s conftest.err'
17247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17248 (eval $ac_try) 2>&5
17249 ac_status=$?
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); }; } &&
17252 { ac_try='test -s conftest.$ac_objext'
17253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17254 (eval $ac_try) 2>&5
17255 ac_status=$?
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; }; then
17260 cat >>confdefs.h <<\_ACEOF
17261 #define SYS_SELECT_WITH_SYS_TIME 1
17262 _ACEOF
17264 was_it_defined=yes
17266 else
17267 echo "$as_me: failed program was:" >&5
17268 sed 's/^/| /' conftest.$ac_ext >&5
17271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17272 echo "$as_me:$LINENO: result: $was_it_defined" >&5
17273 echo "${ECHO_T}$was_it_defined" >&6
17275 echo "$as_me:$LINENO: checking for addrinfo" >&5
17276 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
17277 if test "${ac_cv_struct_addrinfo+set}" = set; then
17278 echo $ECHO_N "(cached) $ECHO_C" >&6
17279 else
17280 cat >conftest.$ac_ext <<_ACEOF
17281 /* confdefs.h. */
17282 _ACEOF
17283 cat confdefs.h >>conftest.$ac_ext
17284 cat >>conftest.$ac_ext <<_ACEOF
17285 /* end confdefs.h. */
17287 # include <netdb.h>
17289 main ()
17291 struct addrinfo a
17293 return 0;
17295 _ACEOF
17296 rm -f conftest.$ac_objext
17297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17298 (eval $ac_compile) 2>conftest.er1
17299 ac_status=$?
17300 grep -v '^ *+' conftest.er1 >conftest.err
17301 rm -f conftest.er1
17302 cat conftest.err >&5
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); } &&
17305 { ac_try='test -z "$ac_c_werror_flag"
17306 || test ! -s conftest.err'
17307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17308 (eval $ac_try) 2>&5
17309 ac_status=$?
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); }; } &&
17312 { ac_try='test -s conftest.$ac_objext'
17313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17314 (eval $ac_try) 2>&5
17315 ac_status=$?
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); }; }; then
17318 ac_cv_struct_addrinfo=yes
17319 else
17320 echo "$as_me: failed program was:" >&5
17321 sed 's/^/| /' conftest.$ac_ext >&5
17323 ac_cv_struct_addrinfo=no
17325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17328 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
17329 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
17330 if test $ac_cv_struct_addrinfo = yes; then
17332 cat >>confdefs.h <<\_ACEOF
17333 #define HAVE_ADDRINFO 1
17334 _ACEOF
17338 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
17339 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
17340 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
17341 echo $ECHO_N "(cached) $ECHO_C" >&6
17342 else
17343 cat >conftest.$ac_ext <<_ACEOF
17344 /* confdefs.h. */
17345 _ACEOF
17346 cat confdefs.h >>conftest.$ac_ext
17347 cat >>conftest.$ac_ext <<_ACEOF
17348 /* end confdefs.h. */
17350 # include <sys/types.h>
17351 # include <sys/socket.h>
17353 main ()
17355 struct sockaddr_storage s
17357 return 0;
17359 _ACEOF
17360 rm -f conftest.$ac_objext
17361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17362 (eval $ac_compile) 2>conftest.er1
17363 ac_status=$?
17364 grep -v '^ *+' conftest.er1 >conftest.err
17365 rm -f conftest.er1
17366 cat conftest.err >&5
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); } &&
17369 { ac_try='test -z "$ac_c_werror_flag"
17370 || test ! -s conftest.err'
17371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17372 (eval $ac_try) 2>&5
17373 ac_status=$?
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); }; } &&
17376 { ac_try='test -s conftest.$ac_objext'
17377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17378 (eval $ac_try) 2>&5
17379 ac_status=$?
17380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381 (exit $ac_status); }; }; then
17382 ac_cv_struct_sockaddr_storage=yes
17383 else
17384 echo "$as_me: failed program was:" >&5
17385 sed 's/^/| /' conftest.$ac_ext >&5
17387 ac_cv_struct_sockaddr_storage=no
17389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17392 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
17393 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
17394 if test $ac_cv_struct_sockaddr_storage = yes; then
17396 cat >>confdefs.h <<\_ACEOF
17397 #define HAVE_SOCKADDR_STORAGE 1
17398 _ACEOF
17402 # checks for compiler characteristics
17405 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
17406 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
17407 if test "${ac_cv_c_char_unsigned+set}" = set; then
17408 echo $ECHO_N "(cached) $ECHO_C" >&6
17409 else
17410 cat >conftest.$ac_ext <<_ACEOF
17411 /* confdefs.h. */
17412 _ACEOF
17413 cat confdefs.h >>conftest.$ac_ext
17414 cat >>conftest.$ac_ext <<_ACEOF
17415 /* end confdefs.h. */
17416 $ac_includes_default
17418 main ()
17420 static int test_array [1 - 2 * !(((char) -1) < 0)];
17421 test_array [0] = 0
17424 return 0;
17426 _ACEOF
17427 rm -f conftest.$ac_objext
17428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17429 (eval $ac_compile) 2>conftest.er1
17430 ac_status=$?
17431 grep -v '^ *+' conftest.er1 >conftest.err
17432 rm -f conftest.er1
17433 cat conftest.err >&5
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); } &&
17436 { ac_try='test -z "$ac_c_werror_flag"
17437 || test ! -s conftest.err'
17438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17439 (eval $ac_try) 2>&5
17440 ac_status=$?
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); }; } &&
17443 { ac_try='test -s conftest.$ac_objext'
17444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17445 (eval $ac_try) 2>&5
17446 ac_status=$?
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); }; }; then
17449 ac_cv_c_char_unsigned=no
17450 else
17451 echo "$as_me: failed program was:" >&5
17452 sed 's/^/| /' conftest.$ac_ext >&5
17454 ac_cv_c_char_unsigned=yes
17456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17458 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
17459 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
17460 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
17461 cat >>confdefs.h <<\_ACEOF
17462 #define __CHAR_UNSIGNED__ 1
17463 _ACEOF
17467 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17468 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17469 if test "${ac_cv_c_const+set}" = set; then
17470 echo $ECHO_N "(cached) $ECHO_C" >&6
17471 else
17472 cat >conftest.$ac_ext <<_ACEOF
17473 /* confdefs.h. */
17474 _ACEOF
17475 cat confdefs.h >>conftest.$ac_ext
17476 cat >>conftest.$ac_ext <<_ACEOF
17477 /* end confdefs.h. */
17480 main ()
17482 /* FIXME: Include the comments suggested by Paul. */
17483 #ifndef __cplusplus
17484 /* Ultrix mips cc rejects this. */
17485 typedef int charset[2];
17486 const charset x;
17487 /* SunOS 4.1.1 cc rejects this. */
17488 char const *const *ccp;
17489 char **p;
17490 /* NEC SVR4.0.2 mips cc rejects this. */
17491 struct point {int x, y;};
17492 static struct point const zero = {0,0};
17493 /* AIX XL C 1.02.0.0 rejects this.
17494 It does not let you subtract one const X* pointer from another in
17495 an arm of an if-expression whose if-part is not a constant
17496 expression */
17497 const char *g = "string";
17498 ccp = &g + (g ? g-g : 0);
17499 /* HPUX 7.0 cc rejects these. */
17500 ++ccp;
17501 p = (char**) ccp;
17502 ccp = (char const *const *) p;
17503 { /* SCO 3.2v4 cc rejects this. */
17504 char *t;
17505 char const *s = 0 ? (char *) 0 : (char const *) 0;
17507 *t++ = 0;
17509 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17510 int x[] = {25, 17};
17511 const int *foo = &x[0];
17512 ++foo;
17514 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17515 typedef const int *iptr;
17516 iptr p = 0;
17517 ++p;
17519 { /* AIX XL C 1.02.0.0 rejects this saying
17520 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17521 struct s { int j; const int *ap[3]; };
17522 struct s *b; b->j = 5;
17524 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17525 const int foo = 10;
17527 #endif
17530 return 0;
17532 _ACEOF
17533 rm -f conftest.$ac_objext
17534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17535 (eval $ac_compile) 2>conftest.er1
17536 ac_status=$?
17537 grep -v '^ *+' conftest.er1 >conftest.err
17538 rm -f conftest.er1
17539 cat conftest.err >&5
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); } &&
17542 { ac_try='test -z "$ac_c_werror_flag"
17543 || test ! -s conftest.err'
17544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17545 (eval $ac_try) 2>&5
17546 ac_status=$?
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); }; } &&
17549 { ac_try='test -s conftest.$ac_objext'
17550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17551 (eval $ac_try) 2>&5
17552 ac_status=$?
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); }; }; then
17555 ac_cv_c_const=yes
17556 else
17557 echo "$as_me: failed program was:" >&5
17558 sed 's/^/| /' conftest.$ac_ext >&5
17560 ac_cv_c_const=no
17562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17564 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17565 echo "${ECHO_T}$ac_cv_c_const" >&6
17566 if test $ac_cv_c_const = no; then
17568 cat >>confdefs.h <<\_ACEOF
17569 #define const
17570 _ACEOF
17575 works=no
17576 echo "$as_me:$LINENO: checking for working volatile" >&5
17577 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
17578 cat >conftest.$ac_ext <<_ACEOF
17579 /* confdefs.h. */
17580 _ACEOF
17581 cat confdefs.h >>conftest.$ac_ext
17582 cat >>conftest.$ac_ext <<_ACEOF
17583 /* end confdefs.h. */
17586 main ()
17588 volatile int x; x = 0;
17590 return 0;
17592 _ACEOF
17593 rm -f conftest.$ac_objext
17594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17595 (eval $ac_compile) 2>conftest.er1
17596 ac_status=$?
17597 grep -v '^ *+' conftest.er1 >conftest.err
17598 rm -f conftest.er1
17599 cat conftest.err >&5
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); } &&
17602 { ac_try='test -z "$ac_c_werror_flag"
17603 || test ! -s conftest.err'
17604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17605 (eval $ac_try) 2>&5
17606 ac_status=$?
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); }; } &&
17609 { ac_try='test -s conftest.$ac_objext'
17610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17611 (eval $ac_try) 2>&5
17612 ac_status=$?
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); }; }; then
17615 works=yes
17616 else
17617 echo "$as_me: failed program was:" >&5
17618 sed 's/^/| /' conftest.$ac_ext >&5
17621 cat >>confdefs.h <<\_ACEOF
17622 #define volatile
17623 _ACEOF
17627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17628 echo "$as_me:$LINENO: result: $works" >&5
17629 echo "${ECHO_T}$works" >&6
17631 works=no
17632 echo "$as_me:$LINENO: checking for working signed char" >&5
17633 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
17634 cat >conftest.$ac_ext <<_ACEOF
17635 /* confdefs.h. */
17636 _ACEOF
17637 cat confdefs.h >>conftest.$ac_ext
17638 cat >>conftest.$ac_ext <<_ACEOF
17639 /* end confdefs.h. */
17642 main ()
17644 signed char c;
17646 return 0;
17648 _ACEOF
17649 rm -f conftest.$ac_objext
17650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17651 (eval $ac_compile) 2>conftest.er1
17652 ac_status=$?
17653 grep -v '^ *+' conftest.er1 >conftest.err
17654 rm -f conftest.er1
17655 cat conftest.err >&5
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); } &&
17658 { ac_try='test -z "$ac_c_werror_flag"
17659 || test ! -s conftest.err'
17660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661 (eval $ac_try) 2>&5
17662 ac_status=$?
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; } &&
17665 { ac_try='test -s conftest.$ac_objext'
17666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17667 (eval $ac_try) 2>&5
17668 ac_status=$?
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); }; }; then
17671 works=yes
17672 else
17673 echo "$as_me: failed program was:" >&5
17674 sed 's/^/| /' conftest.$ac_ext >&5
17677 cat >>confdefs.h <<\_ACEOF
17678 #define signed
17679 _ACEOF
17683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17684 echo "$as_me:$LINENO: result: $works" >&5
17685 echo "${ECHO_T}$works" >&6
17687 have_prototypes=no
17688 echo "$as_me:$LINENO: checking for prototypes" >&5
17689 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
17690 cat >conftest.$ac_ext <<_ACEOF
17691 /* confdefs.h. */
17692 _ACEOF
17693 cat confdefs.h >>conftest.$ac_ext
17694 cat >>conftest.$ac_ext <<_ACEOF
17695 /* end confdefs.h. */
17696 int foo(int x) { return 0; }
17698 main ()
17700 return foo(10);
17702 return 0;
17704 _ACEOF
17705 rm -f conftest.$ac_objext
17706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17707 (eval $ac_compile) 2>conftest.er1
17708 ac_status=$?
17709 grep -v '^ *+' conftest.er1 >conftest.err
17710 rm -f conftest.er1
17711 cat conftest.err >&5
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); } &&
17714 { ac_try='test -z "$ac_c_werror_flag"
17715 || test ! -s conftest.err'
17716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17717 (eval $ac_try) 2>&5
17718 ac_status=$?
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); }; } &&
17721 { ac_try='test -s conftest.$ac_objext'
17722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17723 (eval $ac_try) 2>&5
17724 ac_status=$?
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); }; }; then
17729 cat >>confdefs.h <<\_ACEOF
17730 #define HAVE_PROTOTYPES 1
17731 _ACEOF
17733 have_prototypes=yes
17735 else
17736 echo "$as_me: failed program was:" >&5
17737 sed 's/^/| /' conftest.$ac_ext >&5
17740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17741 echo "$as_me:$LINENO: result: $have_prototypes" >&5
17742 echo "${ECHO_T}$have_prototypes" >&6
17744 works=no
17745 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
17746 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
17747 cat >conftest.$ac_ext <<_ACEOF
17748 /* confdefs.h. */
17749 _ACEOF
17750 cat confdefs.h >>conftest.$ac_ext
17751 cat >>conftest.$ac_ext <<_ACEOF
17752 /* end confdefs.h. */
17754 #include <stdarg.h>
17755 int foo(int x, ...) {
17756 va_list va;
17757 va_start(va, x);
17758 va_arg(va, int);
17759 va_arg(va, char *);
17760 va_arg(va, double);
17761 return 0;
17765 main ()
17767 return foo(10, "", 3.14);
17769 return 0;
17771 _ACEOF
17772 rm -f conftest.$ac_objext
17773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17774 (eval $ac_compile) 2>conftest.er1
17775 ac_status=$?
17776 grep -v '^ *+' conftest.er1 >conftest.err
17777 rm -f conftest.er1
17778 cat conftest.err >&5
17779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780 (exit $ac_status); } &&
17781 { ac_try='test -z "$ac_c_werror_flag"
17782 || test ! -s conftest.err'
17783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17784 (eval $ac_try) 2>&5
17785 ac_status=$?
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); }; } &&
17788 { ac_try='test -s conftest.$ac_objext'
17789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17790 (eval $ac_try) 2>&5
17791 ac_status=$?
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); }; }; then
17796 cat >>confdefs.h <<\_ACEOF
17797 #define HAVE_STDARG_PROTOTYPES 1
17798 _ACEOF
17800 works=yes
17802 else
17803 echo "$as_me: failed program was:" >&5
17804 sed 's/^/| /' conftest.$ac_ext >&5
17807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17808 echo "$as_me:$LINENO: result: $works" >&5
17809 echo "${ECHO_T}$works" >&6
17811 # check for socketpair
17812 echo "$as_me:$LINENO: checking for socketpair" >&5
17813 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6
17814 cat >conftest.$ac_ext <<_ACEOF
17815 /* confdefs.h. */
17816 _ACEOF
17817 cat confdefs.h >>conftest.$ac_ext
17818 cat >>conftest.$ac_ext <<_ACEOF
17819 /* end confdefs.h. */
17821 #include <sys/types.h>
17822 #include <sys/socket.h>
17825 main ()
17827 void *x=socketpair
17829 return 0;
17831 _ACEOF
17832 rm -f conftest.$ac_objext
17833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17834 (eval $ac_compile) 2>conftest.er1
17835 ac_status=$?
17836 grep -v '^ *+' conftest.er1 >conftest.err
17837 rm -f conftest.er1
17838 cat conftest.err >&5
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); } &&
17841 { ac_try='test -z "$ac_c_werror_flag"
17842 || test ! -s conftest.err'
17843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17844 (eval $ac_try) 2>&5
17845 ac_status=$?
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); }; } &&
17848 { ac_try='test -s conftest.$ac_objext'
17849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17850 (eval $ac_try) 2>&5
17851 ac_status=$?
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); }; }; then
17855 cat >>confdefs.h <<\_ACEOF
17856 #define HAVE_SOCKETPAIR 1
17857 _ACEOF
17859 echo "$as_me:$LINENO: result: yes" >&5
17860 echo "${ECHO_T}yes" >&6
17861 else
17862 echo "$as_me: failed program was:" >&5
17863 sed 's/^/| /' conftest.$ac_ext >&5
17865 echo "$as_me:$LINENO: result: no" >&5
17866 echo "${ECHO_T}no" >&6
17869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17871 # check if sockaddr has sa_len member
17872 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
17873 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
17874 cat >conftest.$ac_ext <<_ACEOF
17875 /* confdefs.h. */
17876 _ACEOF
17877 cat confdefs.h >>conftest.$ac_ext
17878 cat >>conftest.$ac_ext <<_ACEOF
17879 /* end confdefs.h. */
17880 #include <sys/types.h>
17881 #include <sys/socket.h>
17883 main ()
17885 struct sockaddr x;
17886 x.sa_len = 0;
17888 return 0;
17890 _ACEOF
17891 rm -f conftest.$ac_objext
17892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17893 (eval $ac_compile) 2>conftest.er1
17894 ac_status=$?
17895 grep -v '^ *+' conftest.er1 >conftest.err
17896 rm -f conftest.er1
17897 cat conftest.err >&5
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); } &&
17900 { ac_try='test -z "$ac_c_werror_flag"
17901 || test ! -s conftest.err'
17902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17903 (eval $ac_try) 2>&5
17904 ac_status=$?
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); }; } &&
17907 { ac_try='test -s conftest.$ac_objext'
17908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17909 (eval $ac_try) 2>&5
17910 ac_status=$?
17911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); }; }; then
17913 echo "$as_me:$LINENO: result: yes" >&5
17914 echo "${ECHO_T}yes" >&6
17916 cat >>confdefs.h <<\_ACEOF
17917 #define HAVE_SOCKADDR_SA_LEN 1
17918 _ACEOF
17920 else
17921 echo "$as_me: failed program was:" >&5
17922 sed 's/^/| /' conftest.$ac_ext >&5
17924 echo "$as_me:$LINENO: result: no" >&5
17925 echo "${ECHO_T}no" >&6
17927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17929 va_list_is_array=no
17930 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
17931 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
17932 cat >conftest.$ac_ext <<_ACEOF
17933 /* confdefs.h. */
17934 _ACEOF
17935 cat confdefs.h >>conftest.$ac_ext
17936 cat >>conftest.$ac_ext <<_ACEOF
17937 /* end confdefs.h. */
17939 #ifdef HAVE_STDARG_PROTOTYPES
17940 #include <stdarg.h>
17941 #else
17942 #include <varargs.h>
17943 #endif
17946 main ()
17948 va_list list1, list2; list1 = list2;
17950 return 0;
17952 _ACEOF
17953 rm -f conftest.$ac_objext
17954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17955 (eval $ac_compile) 2>conftest.er1
17956 ac_status=$?
17957 grep -v '^ *+' conftest.er1 >conftest.err
17958 rm -f conftest.er1
17959 cat conftest.err >&5
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); } &&
17962 { ac_try='test -z "$ac_c_werror_flag"
17963 || test ! -s conftest.err'
17964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17965 (eval $ac_try) 2>&5
17966 ac_status=$?
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); }; } &&
17969 { ac_try='test -s conftest.$ac_objext'
17970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17971 (eval $ac_try) 2>&5
17972 ac_status=$?
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); }; }; then
17976 else
17977 echo "$as_me: failed program was:" >&5
17978 sed 's/^/| /' conftest.$ac_ext >&5
17982 cat >>confdefs.h <<\_ACEOF
17983 #define VA_LIST_IS_ARRAY 1
17984 _ACEOF
17986 va_list_is_array=yes
17989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17990 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
17991 echo "${ECHO_T}$va_list_is_array" >&6
17993 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
17997 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
17998 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
17999 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18000 echo $ECHO_N "(cached) $ECHO_C" >&6
18001 else
18002 cat >conftest.$ac_ext <<_ACEOF
18003 /* confdefs.h. */
18004 _ACEOF
18005 cat confdefs.h >>conftest.$ac_ext
18006 cat >>conftest.$ac_ext <<_ACEOF
18007 /* end confdefs.h. */
18008 /* System header to define __stub macros and hopefully few prototypes,
18009 which can conflict with char gethostbyname_r (); below.
18010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18011 <limits.h> exists even on freestanding compilers. Under hpux,
18012 including <limits.h> includes <sys/time.h> and causes problems
18013 checking for functions defined therein. */
18014 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
18015 # include <limits.h>
18016 #else
18017 # include <assert.h>
18018 #endif
18019 /* Override any gcc2 internal prototype to avoid an error. */
18020 #ifdef __cplusplus
18021 extern "C"
18023 #endif
18024 /* We use char because int might match the return type of a gcc2
18025 builtin and then its argument prototype would still apply. */
18026 char gethostbyname_r ();
18027 /* The GNU C library defines this for functions which it implements
18028 to always fail with ENOSYS. Some functions are actually named
18029 something starting with __ and the normal name is an alias. */
18030 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18031 choke me
18032 #else
18033 char (*f) () = gethostbyname_r;
18034 #endif
18035 #ifdef __cplusplus
18037 #endif
18040 main ()
18042 return f != gethostbyname_r;
18044 return 0;
18046 _ACEOF
18047 rm -f conftest.$ac_objext conftest$ac_exeext
18048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18049 (eval $ac_link) 2>conftest.er1
18050 ac_status=$?
18051 grep -v '^ *+' conftest.er1 >conftest.err
18052 rm -f conftest.er1
18053 cat conftest.err >&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); } &&
18056 { ac_try='test -z "$ac_c_werror_flag"
18057 || test ! -s conftest.err'
18058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18059 (eval $ac_try) 2>&5
18060 ac_status=$?
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); }; } &&
18063 { ac_try='test -s conftest$ac_exeext'
18064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18065 (eval $ac_try) 2>&5
18066 ac_status=$?
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); }; }; then
18069 ac_cv_func_gethostbyname_r=yes
18070 else
18071 echo "$as_me: failed program was:" >&5
18072 sed 's/^/| /' conftest.$ac_ext >&5
18074 ac_cv_func_gethostbyname_r=no
18076 rm -f conftest.err conftest.$ac_objext \
18077 conftest$ac_exeext conftest.$ac_ext
18079 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18080 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18081 if test $ac_cv_func_gethostbyname_r = yes; then
18083 cat >>confdefs.h <<\_ACEOF
18084 #define HAVE_GETHOSTBYNAME_R 1
18085 _ACEOF
18087 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
18088 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
18089 OLD_CFLAGS=$CFLAGS
18090 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
18091 cat >conftest.$ac_ext <<_ACEOF
18092 /* confdefs.h. */
18093 _ACEOF
18094 cat confdefs.h >>conftest.$ac_ext
18095 cat >>conftest.$ac_ext <<_ACEOF
18096 /* end confdefs.h. */
18098 # include <netdb.h>
18101 main ()
18104 char *name;
18105 struct hostent *he, *res;
18106 char buffer[2048];
18107 int buflen = 2048;
18108 int h_errnop;
18110 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
18113 return 0;
18115 _ACEOF
18116 rm -f conftest.$ac_objext
18117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18118 (eval $ac_compile) 2>conftest.er1
18119 ac_status=$?
18120 grep -v '^ *+' conftest.er1 >conftest.err
18121 rm -f conftest.er1
18122 cat conftest.err >&5
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); } &&
18125 { ac_try='test -z "$ac_c_werror_flag"
18126 || test ! -s conftest.err'
18127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18128 (eval $ac_try) 2>&5
18129 ac_status=$?
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); }; } &&
18132 { ac_try='test -s conftest.$ac_objext'
18133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18134 (eval $ac_try) 2>&5
18135 ac_status=$?
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); }; }; then
18139 cat >>confdefs.h <<\_ACEOF
18140 #define HAVE_GETHOSTBYNAME_R 1
18141 _ACEOF
18144 cat >>confdefs.h <<\_ACEOF
18145 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
18146 _ACEOF
18148 echo "$as_me:$LINENO: result: yes" >&5
18149 echo "${ECHO_T}yes" >&6
18151 else
18152 echo "$as_me: failed program was:" >&5
18153 sed 's/^/| /' conftest.$ac_ext >&5
18156 echo "$as_me:$LINENO: result: no" >&5
18157 echo "${ECHO_T}no" >&6
18158 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
18159 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
18160 cat >conftest.$ac_ext <<_ACEOF
18161 /* confdefs.h. */
18162 _ACEOF
18163 cat confdefs.h >>conftest.$ac_ext
18164 cat >>conftest.$ac_ext <<_ACEOF
18165 /* end confdefs.h. */
18167 # include <netdb.h>
18170 main ()
18173 char *name;
18174 struct hostent *he;
18175 char buffer[2048];
18176 int buflen = 2048;
18177 int h_errnop;
18179 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
18182 return 0;
18184 _ACEOF
18185 rm -f conftest.$ac_objext
18186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18187 (eval $ac_compile) 2>conftest.er1
18188 ac_status=$?
18189 grep -v '^ *+' conftest.er1 >conftest.err
18190 rm -f conftest.er1
18191 cat conftest.err >&5
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); } &&
18194 { ac_try='test -z "$ac_c_werror_flag"
18195 || test ! -s conftest.err'
18196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18197 (eval $ac_try) 2>&5
18198 ac_status=$?
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); }; } &&
18201 { ac_try='test -s conftest.$ac_objext'
18202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18203 (eval $ac_try) 2>&5
18204 ac_status=$?
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); }; }; then
18208 cat >>confdefs.h <<\_ACEOF
18209 #define HAVE_GETHOSTBYNAME_R 1
18210 _ACEOF
18213 cat >>confdefs.h <<\_ACEOF
18214 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
18215 _ACEOF
18217 echo "$as_me:$LINENO: result: yes" >&5
18218 echo "${ECHO_T}yes" >&6
18220 else
18221 echo "$as_me: failed program was:" >&5
18222 sed 's/^/| /' conftest.$ac_ext >&5
18225 echo "$as_me:$LINENO: result: no" >&5
18226 echo "${ECHO_T}no" >&6
18227 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
18228 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
18229 cat >conftest.$ac_ext <<_ACEOF
18230 /* confdefs.h. */
18231 _ACEOF
18232 cat confdefs.h >>conftest.$ac_ext
18233 cat >>conftest.$ac_ext <<_ACEOF
18234 /* end confdefs.h. */
18236 # include <netdb.h>
18239 main ()
18242 char *name;
18243 struct hostent *he;
18244 struct hostent_data data;
18246 (void) gethostbyname_r(name, he, &data);
18249 return 0;
18251 _ACEOF
18252 rm -f conftest.$ac_objext
18253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18254 (eval $ac_compile) 2>conftest.er1
18255 ac_status=$?
18256 grep -v '^ *+' conftest.er1 >conftest.err
18257 rm -f conftest.er1
18258 cat conftest.err >&5
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); } &&
18261 { ac_try='test -z "$ac_c_werror_flag"
18262 || test ! -s conftest.err'
18263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18264 (eval $ac_try) 2>&5
18265 ac_status=$?
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); }; } &&
18268 { ac_try='test -s conftest.$ac_objext'
18269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18270 (eval $ac_try) 2>&5
18271 ac_status=$?
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); }; }; then
18275 cat >>confdefs.h <<\_ACEOF
18276 #define HAVE_GETHOSTBYNAME_R 1
18277 _ACEOF
18280 cat >>confdefs.h <<\_ACEOF
18281 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
18282 _ACEOF
18284 echo "$as_me:$LINENO: result: yes" >&5
18285 echo "${ECHO_T}yes" >&6
18287 else
18288 echo "$as_me: failed program was:" >&5
18289 sed 's/^/| /' conftest.$ac_ext >&5
18292 echo "$as_me:$LINENO: result: no" >&5
18293 echo "${ECHO_T}no" >&6
18296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18303 CFLAGS=$OLD_CFLAGS
18305 else
18308 for ac_func in gethostbyname
18310 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18311 echo "$as_me:$LINENO: checking for $ac_func" >&5
18312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18313 if eval "test \"\${$as_ac_var+set}\" = set"; then
18314 echo $ECHO_N "(cached) $ECHO_C" >&6
18315 else
18316 cat >conftest.$ac_ext <<_ACEOF
18317 /* confdefs.h. */
18318 _ACEOF
18319 cat confdefs.h >>conftest.$ac_ext
18320 cat >>conftest.$ac_ext <<_ACEOF
18321 /* end confdefs.h. */
18322 /* System header to define __stub macros and hopefully few prototypes,
18323 which can conflict with char $ac_func (); below.
18324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18325 <limits.h> exists even on freestanding compilers. Under hpux,
18326 including <limits.h> includes <sys/time.h> and causes problems
18327 checking for functions defined therein. */
18328 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
18329 # include <limits.h>
18330 #else
18331 # include <assert.h>
18332 #endif
18333 /* Override any gcc2 internal prototype to avoid an error. */
18334 #ifdef __cplusplus
18335 extern "C"
18337 #endif
18338 /* We use char because int might match the return type of a gcc2
18339 builtin and then its argument prototype would still apply. */
18340 char $ac_func ();
18341 /* The GNU C library defines this for functions which it implements
18342 to always fail with ENOSYS. Some functions are actually named
18343 something starting with __ and the normal name is an alias. */
18344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18345 choke me
18346 #else
18347 char (*f) () = $ac_func;
18348 #endif
18349 #ifdef __cplusplus
18351 #endif
18354 main ()
18356 return f != $ac_func;
18358 return 0;
18360 _ACEOF
18361 rm -f conftest.$ac_objext conftest$ac_exeext
18362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18363 (eval $ac_link) 2>conftest.er1
18364 ac_status=$?
18365 grep -v '^ *+' conftest.er1 >conftest.err
18366 rm -f conftest.er1
18367 cat conftest.err >&5
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); } &&
18370 { ac_try='test -z "$ac_c_werror_flag"
18371 || test ! -s conftest.err'
18372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18373 (eval $ac_try) 2>&5
18374 ac_status=$?
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); }; } &&
18377 { ac_try='test -s conftest$ac_exeext'
18378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18379 (eval $ac_try) 2>&5
18380 ac_status=$?
18381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382 (exit $ac_status); }; }; then
18383 eval "$as_ac_var=yes"
18384 else
18385 echo "$as_me: failed program was:" >&5
18386 sed 's/^/| /' conftest.$ac_ext >&5
18388 eval "$as_ac_var=no"
18390 rm -f conftest.err conftest.$ac_objext \
18391 conftest$ac_exeext conftest.$ac_ext
18393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18394 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18395 if test `eval echo '${'$as_ac_var'}'` = yes; then
18396 cat >>confdefs.h <<_ACEOF
18397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18398 _ACEOF
18401 done
18412 # checks for system services
18413 # (none yet)
18415 # Linux requires this for correct f.p. operations
18416 echo "$as_me:$LINENO: checking for __fpu_control" >&5
18417 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
18418 if test "${ac_cv_func___fpu_control+set}" = set; then
18419 echo $ECHO_N "(cached) $ECHO_C" >&6
18420 else
18421 cat >conftest.$ac_ext <<_ACEOF
18422 /* confdefs.h. */
18423 _ACEOF
18424 cat confdefs.h >>conftest.$ac_ext
18425 cat >>conftest.$ac_ext <<_ACEOF
18426 /* end confdefs.h. */
18427 /* System header to define __stub macros and hopefully few prototypes,
18428 which can conflict with char __fpu_control (); below.
18429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18430 <limits.h> exists even on freestanding compilers. Under hpux,
18431 including <limits.h> includes <sys/time.h> and causes problems
18432 checking for functions defined therein. */
18433 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
18434 # include <limits.h>
18435 #else
18436 # include <assert.h>
18437 #endif
18438 /* Override any gcc2 internal prototype to avoid an error. */
18439 #ifdef __cplusplus
18440 extern "C"
18442 #endif
18443 /* We use char because int might match the return type of a gcc2
18444 builtin and then its argument prototype would still apply. */
18445 char __fpu_control ();
18446 /* The GNU C library defines this for functions which it implements
18447 to always fail with ENOSYS. Some functions are actually named
18448 something starting with __ and the normal name is an alias. */
18449 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
18450 choke me
18451 #else
18452 char (*f) () = __fpu_control;
18453 #endif
18454 #ifdef __cplusplus
18456 #endif
18459 main ()
18461 return f != __fpu_control;
18463 return 0;
18465 _ACEOF
18466 rm -f conftest.$ac_objext conftest$ac_exeext
18467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18468 (eval $ac_link) 2>conftest.er1
18469 ac_status=$?
18470 grep -v '^ *+' conftest.er1 >conftest.err
18471 rm -f conftest.er1
18472 cat conftest.err >&5
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); } &&
18475 { ac_try='test -z "$ac_c_werror_flag"
18476 || test ! -s conftest.err'
18477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18478 (eval $ac_try) 2>&5
18479 ac_status=$?
18480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481 (exit $ac_status); }; } &&
18482 { ac_try='test -s conftest$ac_exeext'
18483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18484 (eval $ac_try) 2>&5
18485 ac_status=$?
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); }; }; then
18488 ac_cv_func___fpu_control=yes
18489 else
18490 echo "$as_me: failed program was:" >&5
18491 sed 's/^/| /' conftest.$ac_ext >&5
18493 ac_cv_func___fpu_control=no
18495 rm -f conftest.err conftest.$ac_objext \
18496 conftest$ac_exeext conftest.$ac_ext
18498 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
18499 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
18500 if test $ac_cv_func___fpu_control = yes; then
18502 else
18504 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
18505 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
18506 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
18507 echo $ECHO_N "(cached) $ECHO_C" >&6
18508 else
18509 ac_check_lib_save_LIBS=$LIBS
18510 LIBS="-lieee $LIBS"
18511 cat >conftest.$ac_ext <<_ACEOF
18512 /* confdefs.h. */
18513 _ACEOF
18514 cat confdefs.h >>conftest.$ac_ext
18515 cat >>conftest.$ac_ext <<_ACEOF
18516 /* end confdefs.h. */
18518 /* Override any gcc2 internal prototype to avoid an error. */
18519 #ifdef __cplusplus
18520 extern "C"
18521 #endif
18522 /* We use char because int might match the return type of a gcc2
18523 builtin and then its argument prototype would still apply. */
18524 char __fpu_control ();
18526 main ()
18528 __fpu_control ();
18530 return 0;
18532 _ACEOF
18533 rm -f conftest.$ac_objext conftest$ac_exeext
18534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18535 (eval $ac_link) 2>conftest.er1
18536 ac_status=$?
18537 grep -v '^ *+' conftest.er1 >conftest.err
18538 rm -f conftest.er1
18539 cat conftest.err >&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); } &&
18542 { ac_try='test -z "$ac_c_werror_flag"
18543 || test ! -s conftest.err'
18544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18545 (eval $ac_try) 2>&5
18546 ac_status=$?
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); }; } &&
18549 { ac_try='test -s conftest$ac_exeext'
18550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18551 (eval $ac_try) 2>&5
18552 ac_status=$?
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; }; then
18555 ac_cv_lib_ieee___fpu_control=yes
18556 else
18557 echo "$as_me: failed program was:" >&5
18558 sed 's/^/| /' conftest.$ac_ext >&5
18560 ac_cv_lib_ieee___fpu_control=no
18562 rm -f conftest.err conftest.$ac_objext \
18563 conftest$ac_exeext conftest.$ac_ext
18564 LIBS=$ac_check_lib_save_LIBS
18566 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
18567 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
18568 if test $ac_cv_lib_ieee___fpu_control = yes; then
18569 cat >>confdefs.h <<_ACEOF
18570 #define HAVE_LIBIEEE 1
18571 _ACEOF
18573 LIBS="-lieee $LIBS"
18581 # Check for --with-fpectl
18582 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
18583 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
18585 # Check whether --with-fpectl or --without-fpectl was given.
18586 if test "${with_fpectl+set}" = set; then
18587 withval="$with_fpectl"
18589 if test "$withval" != no
18590 then
18592 cat >>confdefs.h <<\_ACEOF
18593 #define WANT_SIGFPE_HANDLER 1
18594 _ACEOF
18596 echo "$as_me:$LINENO: result: yes" >&5
18597 echo "${ECHO_T}yes" >&6
18598 else echo "$as_me:$LINENO: result: no" >&5
18599 echo "${ECHO_T}no" >&6
18601 else
18602 echo "$as_me:$LINENO: result: no" >&5
18603 echo "${ECHO_T}no" >&6
18606 # check for --with-libm=...
18608 case $ac_sys_system in
18609 Darwin) ;;
18610 BeOS) ;;
18611 *) LIBM=-lm
18612 esac
18613 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
18614 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
18616 # Check whether --with-libm or --without-libm was given.
18617 if test "${with_libm+set}" = set; then
18618 withval="$with_libm"
18620 if test "$withval" = no
18621 then LIBM=
18622 echo "$as_me:$LINENO: result: force LIBM empty" >&5
18623 echo "${ECHO_T}force LIBM empty" >&6
18624 elif test "$withval" != yes
18625 then LIBM=$withval
18626 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
18627 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
18628 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
18629 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
18630 { (exit 1); exit 1; }; }
18632 else
18633 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
18634 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
18637 # check for --with-libc=...
18639 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
18640 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
18642 # Check whether --with-libc or --without-libc was given.
18643 if test "${with_libc+set}" = set; then
18644 withval="$with_libc"
18646 if test "$withval" = no
18647 then LIBC=
18648 echo "$as_me:$LINENO: result: force LIBC empty" >&5
18649 echo "${ECHO_T}force LIBC empty" >&6
18650 elif test "$withval" != yes
18651 then LIBC=$withval
18652 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
18653 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
18654 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
18655 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
18656 { (exit 1); exit 1; }; }
18658 else
18659 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
18660 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
18663 # check for hypot() in math library
18664 LIBS_SAVE=$LIBS
18665 LIBS="$LIBS $LIBM"
18667 for ac_func in hypot
18669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18670 echo "$as_me:$LINENO: checking for $ac_func" >&5
18671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18672 if eval "test \"\${$as_ac_var+set}\" = set"; then
18673 echo $ECHO_N "(cached) $ECHO_C" >&6
18674 else
18675 cat >conftest.$ac_ext <<_ACEOF
18676 /* confdefs.h. */
18677 _ACEOF
18678 cat confdefs.h >>conftest.$ac_ext
18679 cat >>conftest.$ac_ext <<_ACEOF
18680 /* end confdefs.h. */
18681 /* System header to define __stub macros and hopefully few prototypes,
18682 which can conflict with char $ac_func (); below.
18683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18684 <limits.h> exists even on freestanding compilers. Under hpux,
18685 including <limits.h> includes <sys/time.h> and causes problems
18686 checking for functions defined therein. */
18687 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
18688 # include <limits.h>
18689 #else
18690 # include <assert.h>
18691 #endif
18692 /* Override any gcc2 internal prototype to avoid an error. */
18693 #ifdef __cplusplus
18694 extern "C"
18696 #endif
18697 /* We use char because int might match the return type of a gcc2
18698 builtin and then its argument prototype would still apply. */
18699 char $ac_func ();
18700 /* The GNU C library defines this for functions which it implements
18701 to always fail with ENOSYS. Some functions are actually named
18702 something starting with __ and the normal name is an alias. */
18703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18704 choke me
18705 #else
18706 char (*f) () = $ac_func;
18707 #endif
18708 #ifdef __cplusplus
18710 #endif
18713 main ()
18715 return f != $ac_func;
18717 return 0;
18719 _ACEOF
18720 rm -f conftest.$ac_objext conftest$ac_exeext
18721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18722 (eval $ac_link) 2>conftest.er1
18723 ac_status=$?
18724 grep -v '^ *+' conftest.er1 >conftest.err
18725 rm -f conftest.er1
18726 cat conftest.err >&5
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); } &&
18729 { ac_try='test -z "$ac_c_werror_flag"
18730 || test ! -s conftest.err'
18731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18732 (eval $ac_try) 2>&5
18733 ac_status=$?
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); }; } &&
18736 { ac_try='test -s conftest$ac_exeext'
18737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18738 (eval $ac_try) 2>&5
18739 ac_status=$?
18740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741 (exit $ac_status); }; }; then
18742 eval "$as_ac_var=yes"
18743 else
18744 echo "$as_me: failed program was:" >&5
18745 sed 's/^/| /' conftest.$ac_ext >&5
18747 eval "$as_ac_var=no"
18749 rm -f conftest.err conftest.$ac_objext \
18750 conftest$ac_exeext conftest.$ac_ext
18752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18753 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18754 if test `eval echo '${'$as_ac_var'}'` = yes; then
18755 cat >>confdefs.h <<_ACEOF
18756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18757 _ACEOF
18759 else
18760 case $LIBOBJS in
18761 "$ac_func.$ac_objext" | \
18762 *" $ac_func.$ac_objext" | \
18763 "$ac_func.$ac_objext "* | \
18764 *" $ac_func.$ac_objext "* ) ;;
18765 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
18766 esac
18769 done
18772 LIBS=$LIBS_SAVE
18774 # check for wchar.h
18775 if test "${ac_cv_header_wchar_h+set}" = set; then
18776 echo "$as_me:$LINENO: checking for wchar.h" >&5
18777 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
18778 if test "${ac_cv_header_wchar_h+set}" = set; then
18779 echo $ECHO_N "(cached) $ECHO_C" >&6
18781 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
18782 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
18783 else
18784 # Is the header compilable?
18785 echo "$as_me:$LINENO: checking wchar.h usability" >&5
18786 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
18787 cat >conftest.$ac_ext <<_ACEOF
18788 /* confdefs.h. */
18789 _ACEOF
18790 cat confdefs.h >>conftest.$ac_ext
18791 cat >>conftest.$ac_ext <<_ACEOF
18792 /* end confdefs.h. */
18793 $ac_includes_default
18794 #include <wchar.h>
18795 _ACEOF
18796 rm -f conftest.$ac_objext
18797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18798 (eval $ac_compile) 2>conftest.er1
18799 ac_status=$?
18800 grep -v '^ *+' conftest.er1 >conftest.err
18801 rm -f conftest.er1
18802 cat conftest.err >&5
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); } &&
18805 { ac_try='test -z "$ac_c_werror_flag"
18806 || test ! -s conftest.err'
18807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18808 (eval $ac_try) 2>&5
18809 ac_status=$?
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); }; } &&
18812 { ac_try='test -s conftest.$ac_objext'
18813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18814 (eval $ac_try) 2>&5
18815 ac_status=$?
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); }; }; then
18818 ac_header_compiler=yes
18819 else
18820 echo "$as_me: failed program was:" >&5
18821 sed 's/^/| /' conftest.$ac_ext >&5
18823 ac_header_compiler=no
18825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18826 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18827 echo "${ECHO_T}$ac_header_compiler" >&6
18829 # Is the header present?
18830 echo "$as_me:$LINENO: checking wchar.h presence" >&5
18831 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
18832 cat >conftest.$ac_ext <<_ACEOF
18833 /* confdefs.h. */
18834 _ACEOF
18835 cat confdefs.h >>conftest.$ac_ext
18836 cat >>conftest.$ac_ext <<_ACEOF
18837 /* end confdefs.h. */
18838 #include <wchar.h>
18839 _ACEOF
18840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18842 ac_status=$?
18843 grep -v '^ *+' conftest.er1 >conftest.err
18844 rm -f conftest.er1
18845 cat conftest.err >&5
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); } >/dev/null; then
18848 if test -s conftest.err; then
18849 ac_cpp_err=$ac_c_preproc_warn_flag
18850 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18851 else
18852 ac_cpp_err=
18854 else
18855 ac_cpp_err=yes
18857 if test -z "$ac_cpp_err"; then
18858 ac_header_preproc=yes
18859 else
18860 echo "$as_me: failed program was:" >&5
18861 sed 's/^/| /' conftest.$ac_ext >&5
18863 ac_header_preproc=no
18865 rm -f conftest.err conftest.$ac_ext
18866 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18867 echo "${ECHO_T}$ac_header_preproc" >&6
18869 # So? What about this header?
18870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18871 yes:no: )
18872 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
18873 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18874 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
18875 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
18876 ac_header_preproc=yes
18878 no:yes:* )
18879 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
18880 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
18881 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
18882 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
18883 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
18884 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
18885 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
18886 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
18887 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
18888 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
18889 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
18890 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
18892 cat <<\_ASBOX
18893 ## ------------------------------------------------ ##
18894 ## Report this to http://www.python.org/python-bugs ##
18895 ## ------------------------------------------------ ##
18896 _ASBOX
18898 sed "s/^/$as_me: WARNING: /" >&2
18900 esac
18901 echo "$as_me:$LINENO: checking for wchar.h" >&5
18902 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
18903 if test "${ac_cv_header_wchar_h+set}" = set; then
18904 echo $ECHO_N "(cached) $ECHO_C" >&6
18905 else
18906 ac_cv_header_wchar_h=$ac_header_preproc
18908 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
18909 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
18912 if test $ac_cv_header_wchar_h = yes; then
18915 cat >>confdefs.h <<\_ACEOF
18916 #define HAVE_WCHAR_H 1
18917 _ACEOF
18919 wchar_h="yes"
18921 else
18922 wchar_h="no"
18928 # determine wchar_t size
18929 if test "$wchar_h" = yes
18930 then
18931 echo "$as_me:$LINENO: checking for wchar_t" >&5
18932 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
18933 if test "${ac_cv_type_wchar_t+set}" = set; then
18934 echo $ECHO_N "(cached) $ECHO_C" >&6
18935 else
18936 cat >conftest.$ac_ext <<_ACEOF
18937 /* confdefs.h. */
18938 _ACEOF
18939 cat confdefs.h >>conftest.$ac_ext
18940 cat >>conftest.$ac_ext <<_ACEOF
18941 /* end confdefs.h. */
18942 #include <wchar.h>
18945 main ()
18947 if ((wchar_t *) 0)
18948 return 0;
18949 if (sizeof (wchar_t))
18950 return 0;
18952 return 0;
18954 _ACEOF
18955 rm -f conftest.$ac_objext
18956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18957 (eval $ac_compile) 2>conftest.er1
18958 ac_status=$?
18959 grep -v '^ *+' conftest.er1 >conftest.err
18960 rm -f conftest.er1
18961 cat conftest.err >&5
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); } &&
18964 { ac_try='test -z "$ac_c_werror_flag"
18965 || test ! -s conftest.err'
18966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18967 (eval $ac_try) 2>&5
18968 ac_status=$?
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); }; } &&
18971 { ac_try='test -s conftest.$ac_objext'
18972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18973 (eval $ac_try) 2>&5
18974 ac_status=$?
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); }; }; then
18977 ac_cv_type_wchar_t=yes
18978 else
18979 echo "$as_me: failed program was:" >&5
18980 sed 's/^/| /' conftest.$ac_ext >&5
18982 ac_cv_type_wchar_t=no
18984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18986 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
18987 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
18989 echo "$as_me:$LINENO: checking size of wchar_t" >&5
18990 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18991 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
18992 echo $ECHO_N "(cached) $ECHO_C" >&6
18993 else
18994 if test "$ac_cv_type_wchar_t" = yes; then
18995 # The cast to unsigned long works around a bug in the HP C Compiler
18996 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18997 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18998 # This bug is HP SR number 8606223364.
18999 if test "$cross_compiling" = yes; then
19000 # Depending upon the size, compute the lo and hi bounds.
19001 cat >conftest.$ac_ext <<_ACEOF
19002 /* confdefs.h. */
19003 _ACEOF
19004 cat confdefs.h >>conftest.$ac_ext
19005 cat >>conftest.$ac_ext <<_ACEOF
19006 /* end confdefs.h. */
19007 #include <wchar.h>
19010 main ()
19012 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19013 test_array [0] = 0
19016 return 0;
19018 _ACEOF
19019 rm -f conftest.$ac_objext
19020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19021 (eval $ac_compile) 2>conftest.er1
19022 ac_status=$?
19023 grep -v '^ *+' conftest.er1 >conftest.err
19024 rm -f conftest.er1
19025 cat conftest.err >&5
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); } &&
19028 { ac_try='test -z "$ac_c_werror_flag"
19029 || test ! -s conftest.err'
19030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19031 (eval $ac_try) 2>&5
19032 ac_status=$?
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); }; } &&
19035 { ac_try='test -s conftest.$ac_objext'
19036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19037 (eval $ac_try) 2>&5
19038 ac_status=$?
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); }; }; then
19041 ac_lo=0 ac_mid=0
19042 while :; do
19043 cat >conftest.$ac_ext <<_ACEOF
19044 /* confdefs.h. */
19045 _ACEOF
19046 cat confdefs.h >>conftest.$ac_ext
19047 cat >>conftest.$ac_ext <<_ACEOF
19048 /* end confdefs.h. */
19049 #include <wchar.h>
19052 main ()
19054 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19055 test_array [0] = 0
19058 return 0;
19060 _ACEOF
19061 rm -f conftest.$ac_objext
19062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19063 (eval $ac_compile) 2>conftest.er1
19064 ac_status=$?
19065 grep -v '^ *+' conftest.er1 >conftest.err
19066 rm -f conftest.er1
19067 cat conftest.err >&5
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); } &&
19070 { ac_try='test -z "$ac_c_werror_flag"
19071 || test ! -s conftest.err'
19072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19073 (eval $ac_try) 2>&5
19074 ac_status=$?
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); }; } &&
19077 { ac_try='test -s conftest.$ac_objext'
19078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19079 (eval $ac_try) 2>&5
19080 ac_status=$?
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); }; }; then
19083 ac_hi=$ac_mid; break
19084 else
19085 echo "$as_me: failed program was:" >&5
19086 sed 's/^/| /' conftest.$ac_ext >&5
19088 ac_lo=`expr $ac_mid + 1`
19089 if test $ac_lo -le $ac_mid; then
19090 ac_lo= ac_hi=
19091 break
19093 ac_mid=`expr 2 '*' $ac_mid + 1`
19095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19096 done
19097 else
19098 echo "$as_me: failed program was:" >&5
19099 sed 's/^/| /' conftest.$ac_ext >&5
19101 cat >conftest.$ac_ext <<_ACEOF
19102 /* confdefs.h. */
19103 _ACEOF
19104 cat confdefs.h >>conftest.$ac_ext
19105 cat >>conftest.$ac_ext <<_ACEOF
19106 /* end confdefs.h. */
19107 #include <wchar.h>
19110 main ()
19112 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19113 test_array [0] = 0
19116 return 0;
19118 _ACEOF
19119 rm -f conftest.$ac_objext
19120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19121 (eval $ac_compile) 2>conftest.er1
19122 ac_status=$?
19123 grep -v '^ *+' conftest.er1 >conftest.err
19124 rm -f conftest.er1
19125 cat conftest.err >&5
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); } &&
19128 { ac_try='test -z "$ac_c_werror_flag"
19129 || test ! -s conftest.err'
19130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19131 (eval $ac_try) 2>&5
19132 ac_status=$?
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); }; } &&
19135 { ac_try='test -s conftest.$ac_objext'
19136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19137 (eval $ac_try) 2>&5
19138 ac_status=$?
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); }; }; then
19141 ac_hi=-1 ac_mid=-1
19142 while :; do
19143 cat >conftest.$ac_ext <<_ACEOF
19144 /* confdefs.h. */
19145 _ACEOF
19146 cat confdefs.h >>conftest.$ac_ext
19147 cat >>conftest.$ac_ext <<_ACEOF
19148 /* end confdefs.h. */
19149 #include <wchar.h>
19152 main ()
19154 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19155 test_array [0] = 0
19158 return 0;
19160 _ACEOF
19161 rm -f conftest.$ac_objext
19162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19163 (eval $ac_compile) 2>conftest.er1
19164 ac_status=$?
19165 grep -v '^ *+' conftest.er1 >conftest.err
19166 rm -f conftest.er1
19167 cat conftest.err >&5
19168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169 (exit $ac_status); } &&
19170 { ac_try='test -z "$ac_c_werror_flag"
19171 || test ! -s conftest.err'
19172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19173 (eval $ac_try) 2>&5
19174 ac_status=$?
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); }; } &&
19177 { ac_try='test -s conftest.$ac_objext'
19178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19179 (eval $ac_try) 2>&5
19180 ac_status=$?
19181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182 (exit $ac_status); }; }; then
19183 ac_lo=$ac_mid; break
19184 else
19185 echo "$as_me: failed program was:" >&5
19186 sed 's/^/| /' conftest.$ac_ext >&5
19188 ac_hi=`expr '(' $ac_mid ')' - 1`
19189 if test $ac_mid -le $ac_hi; then
19190 ac_lo= ac_hi=
19191 break
19193 ac_mid=`expr 2 '*' $ac_mid`
19195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19196 done
19197 else
19198 echo "$as_me: failed program was:" >&5
19199 sed 's/^/| /' conftest.$ac_ext >&5
19201 ac_lo= ac_hi=
19203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19206 # Binary search between lo and hi bounds.
19207 while test "x$ac_lo" != "x$ac_hi"; do
19208 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19209 cat >conftest.$ac_ext <<_ACEOF
19210 /* confdefs.h. */
19211 _ACEOF
19212 cat confdefs.h >>conftest.$ac_ext
19213 cat >>conftest.$ac_ext <<_ACEOF
19214 /* end confdefs.h. */
19215 #include <wchar.h>
19218 main ()
19220 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19221 test_array [0] = 0
19224 return 0;
19226 _ACEOF
19227 rm -f conftest.$ac_objext
19228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19229 (eval $ac_compile) 2>conftest.er1
19230 ac_status=$?
19231 grep -v '^ *+' conftest.er1 >conftest.err
19232 rm -f conftest.er1
19233 cat conftest.err >&5
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); } &&
19236 { ac_try='test -z "$ac_c_werror_flag"
19237 || test ! -s conftest.err'
19238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19239 (eval $ac_try) 2>&5
19240 ac_status=$?
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); }; } &&
19243 { ac_try='test -s conftest.$ac_objext'
19244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19245 (eval $ac_try) 2>&5
19246 ac_status=$?
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); }; }; then
19249 ac_hi=$ac_mid
19250 else
19251 echo "$as_me: failed program was:" >&5
19252 sed 's/^/| /' conftest.$ac_ext >&5
19254 ac_lo=`expr '(' $ac_mid ')' + 1`
19256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19257 done
19258 case $ac_lo in
19259 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19260 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19261 See \`config.log' for more details." >&5
19262 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19263 See \`config.log' for more details." >&2;}
19264 { (exit 1); exit 1; }; } ;;
19265 esac
19266 else
19267 if test "$cross_compiling" = yes; then
19268 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19269 See \`config.log' for more details." >&5
19270 echo "$as_me: error: cannot run test program while cross compiling
19271 See \`config.log' for more details." >&2;}
19272 { (exit 1); exit 1; }; }
19273 else
19274 cat >conftest.$ac_ext <<_ACEOF
19275 /* confdefs.h. */
19276 _ACEOF
19277 cat confdefs.h >>conftest.$ac_ext
19278 cat >>conftest.$ac_ext <<_ACEOF
19279 /* end confdefs.h. */
19280 #include <wchar.h>
19282 long longval () { return (long) (sizeof (wchar_t)); }
19283 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19284 #include <stdio.h>
19285 #include <stdlib.h>
19287 main ()
19290 FILE *f = fopen ("conftest.val", "w");
19291 if (! f)
19292 exit (1);
19293 if (((long) (sizeof (wchar_t))) < 0)
19295 long i = longval ();
19296 if (i != ((long) (sizeof (wchar_t))))
19297 exit (1);
19298 fprintf (f, "%ld\n", i);
19300 else
19302 unsigned long i = ulongval ();
19303 if (i != ((long) (sizeof (wchar_t))))
19304 exit (1);
19305 fprintf (f, "%lu\n", i);
19307 exit (ferror (f) || fclose (f) != 0);
19310 return 0;
19312 _ACEOF
19313 rm -f conftest$ac_exeext
19314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19315 (eval $ac_link) 2>&5
19316 ac_status=$?
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19320 (eval $ac_try) 2>&5
19321 ac_status=$?
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); }; }; then
19324 ac_cv_sizeof_wchar_t=`cat conftest.val`
19325 else
19326 echo "$as_me: program exited with status $ac_status" >&5
19327 echo "$as_me: failed program was:" >&5
19328 sed 's/^/| /' conftest.$ac_ext >&5
19330 ( exit $ac_status )
19331 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19332 See \`config.log' for more details." >&5
19333 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19334 See \`config.log' for more details." >&2;}
19335 { (exit 1); exit 1; }; }
19337 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19340 rm -f conftest.val
19341 else
19342 ac_cv_sizeof_wchar_t=0
19345 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19346 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
19347 cat >>confdefs.h <<_ACEOF
19348 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
19349 _ACEOF
19354 echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
19355 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6
19356 have_ucs4_tcl=no
19357 cat >conftest.$ac_ext <<_ACEOF
19358 /* confdefs.h. */
19359 _ACEOF
19360 cat confdefs.h >>conftest.$ac_ext
19361 cat >>conftest.$ac_ext <<_ACEOF
19362 /* end confdefs.h. */
19364 #include <tcl.h>
19365 #if TCL_UTF_MAX != 6
19366 # error "NOT UCS4_TCL"
19367 #endif
19369 main ()
19373 return 0;
19375 _ACEOF
19376 rm -f conftest.$ac_objext
19377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19378 (eval $ac_compile) 2>conftest.er1
19379 ac_status=$?
19380 grep -v '^ *+' conftest.er1 >conftest.err
19381 rm -f conftest.er1
19382 cat conftest.err >&5
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); } &&
19385 { ac_try='test -z "$ac_c_werror_flag"
19386 || test ! -s conftest.err'
19387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19388 (eval $ac_try) 2>&5
19389 ac_status=$?
19390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391 (exit $ac_status); }; } &&
19392 { ac_try='test -s conftest.$ac_objext'
19393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19394 (eval $ac_try) 2>&5
19395 ac_status=$?
19396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397 (exit $ac_status); }; }; then
19400 cat >>confdefs.h <<\_ACEOF
19401 #define HAVE_UCS4_TCL 1
19402 _ACEOF
19404 have_ucs4_tcl=yes
19406 else
19407 echo "$as_me: failed program was:" >&5
19408 sed 's/^/| /' conftest.$ac_ext >&5
19411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19412 echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
19413 echo "${ECHO_T}$have_ucs4_tcl" >&6
19415 # check whether wchar_t is signed or not
19416 if test "$wchar_h" = yes
19417 then
19418 # check whether wchar_t is signed or not
19419 echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
19420 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6
19421 if test "${ac_cv_wchar_t_signed+set}" = set; then
19422 echo $ECHO_N "(cached) $ECHO_C" >&6
19423 else
19425 if test "$cross_compiling" = yes; then
19426 ac_cv_wchar_t_signed=yes
19427 else
19428 cat >conftest.$ac_ext <<_ACEOF
19429 /* confdefs.h. */
19430 _ACEOF
19431 cat confdefs.h >>conftest.$ac_ext
19432 cat >>conftest.$ac_ext <<_ACEOF
19433 /* end confdefs.h. */
19435 #include <wchar.h>
19436 int main()
19438 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 1 : 0);
19441 _ACEOF
19442 rm -f conftest$ac_exeext
19443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19444 (eval $ac_link) 2>&5
19445 ac_status=$?
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19449 (eval $ac_try) 2>&5
19450 ac_status=$?
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); }; }; then
19453 ac_cv_wchar_t_signed=yes
19454 else
19455 echo "$as_me: program exited with status $ac_status" >&5
19456 echo "$as_me: failed program was:" >&5
19457 sed 's/^/| /' conftest.$ac_ext >&5
19459 ( exit $ac_status )
19460 ac_cv_wchar_t_signed=no
19462 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19466 echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
19467 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6
19470 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
19471 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
19472 # Check whether --enable-unicode or --disable-unicode was given.
19473 if test "${enable_unicode+set}" = set; then
19474 enableval="$enable_unicode"
19476 else
19477 enable_unicode=yes
19480 if test $enable_unicode = yes
19481 then
19482 # Without any arguments, Py_UNICODE defaults to two-byte mode
19483 case "$have_ucs4_tcl" in
19484 yes) enable_unicode="ucs4"
19486 *) enable_unicode="ucs2"
19488 esac
19493 case "$enable_unicode" in
19494 ucs2) unicode_size="2"
19495 cat >>confdefs.h <<\_ACEOF
19496 #define Py_UNICODE_SIZE 2
19497 _ACEOF
19500 ucs4) unicode_size="4"
19501 cat >>confdefs.h <<\_ACEOF
19502 #define Py_UNICODE_SIZE 4
19503 _ACEOF
19506 esac
19512 if test "$enable_unicode" = "no"
19513 then
19514 UNICODE_OBJS=""
19515 echo "$as_me:$LINENO: result: not used" >&5
19516 echo "${ECHO_T}not used" >&6
19517 else
19518 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
19520 cat >>confdefs.h <<\_ACEOF
19521 #define Py_USING_UNICODE 1
19522 _ACEOF
19525 # wchar_t is only usable if it maps to an unsigned type
19526 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
19527 -a "$ac_cv_wchar_t_signed" = "no"
19528 then
19529 PY_UNICODE_TYPE="wchar_t"
19531 cat >>confdefs.h <<\_ACEOF
19532 #define HAVE_USABLE_WCHAR_T 1
19533 _ACEOF
19535 cat >>confdefs.h <<\_ACEOF
19536 #define PY_UNICODE_TYPE wchar_t
19537 _ACEOF
19539 elif test "$ac_cv_sizeof_short" = "$unicode_size"
19540 then
19541 PY_UNICODE_TYPE="unsigned short"
19542 cat >>confdefs.h <<\_ACEOF
19543 #define PY_UNICODE_TYPE unsigned short
19544 _ACEOF
19546 elif test "$ac_cv_sizeof_long" = "$unicode_size"
19547 then
19548 PY_UNICODE_TYPE="unsigned long"
19549 cat >>confdefs.h <<\_ACEOF
19550 #define PY_UNICODE_TYPE unsigned long
19551 _ACEOF
19553 else
19554 PY_UNICODE_TYPE="no type found"
19556 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
19557 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
19560 # check for endianness
19561 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19562 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19563 if test "${ac_cv_c_bigendian+set}" = set; then
19564 echo $ECHO_N "(cached) $ECHO_C" >&6
19565 else
19566 # See if sys/param.h defines the BYTE_ORDER macro.
19567 cat >conftest.$ac_ext <<_ACEOF
19568 /* confdefs.h. */
19569 _ACEOF
19570 cat confdefs.h >>conftest.$ac_ext
19571 cat >>conftest.$ac_ext <<_ACEOF
19572 /* end confdefs.h. */
19573 #include <sys/types.h>
19574 #include <sys/param.h>
19577 main ()
19579 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19580 bogus endian macros
19581 #endif
19584 return 0;
19586 _ACEOF
19587 rm -f conftest.$ac_objext
19588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19589 (eval $ac_compile) 2>conftest.er1
19590 ac_status=$?
19591 grep -v '^ *+' conftest.er1 >conftest.err
19592 rm -f conftest.er1
19593 cat conftest.err >&5
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); } &&
19596 { ac_try='test -z "$ac_c_werror_flag"
19597 || test ! -s conftest.err'
19598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19599 (eval $ac_try) 2>&5
19600 ac_status=$?
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); }; } &&
19603 { ac_try='test -s conftest.$ac_objext'
19604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19605 (eval $ac_try) 2>&5
19606 ac_status=$?
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); }; }; then
19609 # It does; now see whether it defined to BIG_ENDIAN or not.
19610 cat >conftest.$ac_ext <<_ACEOF
19611 /* confdefs.h. */
19612 _ACEOF
19613 cat confdefs.h >>conftest.$ac_ext
19614 cat >>conftest.$ac_ext <<_ACEOF
19615 /* end confdefs.h. */
19616 #include <sys/types.h>
19617 #include <sys/param.h>
19620 main ()
19622 #if BYTE_ORDER != BIG_ENDIAN
19623 not big endian
19624 #endif
19627 return 0;
19629 _ACEOF
19630 rm -f conftest.$ac_objext
19631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19632 (eval $ac_compile) 2>conftest.er1
19633 ac_status=$?
19634 grep -v '^ *+' conftest.er1 >conftest.err
19635 rm -f conftest.er1
19636 cat conftest.err >&5
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); } &&
19639 { ac_try='test -z "$ac_c_werror_flag"
19640 || test ! -s conftest.err'
19641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19642 (eval $ac_try) 2>&5
19643 ac_status=$?
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); }; } &&
19646 { ac_try='test -s conftest.$ac_objext'
19647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19648 (eval $ac_try) 2>&5
19649 ac_status=$?
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); }; }; then
19652 ac_cv_c_bigendian=yes
19653 else
19654 echo "$as_me: failed program was:" >&5
19655 sed 's/^/| /' conftest.$ac_ext >&5
19657 ac_cv_c_bigendian=no
19659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19660 else
19661 echo "$as_me: failed program was:" >&5
19662 sed 's/^/| /' conftest.$ac_ext >&5
19664 # It does not; compile a test program.
19665 if test "$cross_compiling" = yes; then
19666 # try to guess the endianness by grepping values into an object file
19667 ac_cv_c_bigendian=unknown
19668 cat >conftest.$ac_ext <<_ACEOF
19669 /* confdefs.h. */
19670 _ACEOF
19671 cat confdefs.h >>conftest.$ac_ext
19672 cat >>conftest.$ac_ext <<_ACEOF
19673 /* end confdefs.h. */
19674 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19675 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19676 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19677 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19678 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19679 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19681 main ()
19683 _ascii (); _ebcdic ();
19685 return 0;
19687 _ACEOF
19688 rm -f conftest.$ac_objext
19689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19690 (eval $ac_compile) 2>conftest.er1
19691 ac_status=$?
19692 grep -v '^ *+' conftest.er1 >conftest.err
19693 rm -f conftest.er1
19694 cat conftest.err >&5
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); } &&
19697 { ac_try='test -z "$ac_c_werror_flag"
19698 || test ! -s conftest.err'
19699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19700 (eval $ac_try) 2>&5
19701 ac_status=$?
19702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); }; } &&
19704 { ac_try='test -s conftest.$ac_objext'
19705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19706 (eval $ac_try) 2>&5
19707 ac_status=$?
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); }; }; then
19710 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19711 ac_cv_c_bigendian=yes
19713 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19714 if test "$ac_cv_c_bigendian" = unknown; then
19715 ac_cv_c_bigendian=no
19716 else
19717 # finding both strings is unlikely to happen, but who knows?
19718 ac_cv_c_bigendian=unknown
19721 else
19722 echo "$as_me: failed program was:" >&5
19723 sed 's/^/| /' conftest.$ac_ext >&5
19726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19727 else
19728 cat >conftest.$ac_ext <<_ACEOF
19729 /* confdefs.h. */
19730 _ACEOF
19731 cat confdefs.h >>conftest.$ac_ext
19732 cat >>conftest.$ac_ext <<_ACEOF
19733 /* end confdefs.h. */
19735 main ()
19737 /* Are we little or big endian? From Harbison&Steele. */
19738 union
19740 long l;
19741 char c[sizeof (long)];
19742 } u;
19743 u.l = 1;
19744 exit (u.c[sizeof (long) - 1] == 1);
19746 _ACEOF
19747 rm -f conftest$ac_exeext
19748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19749 (eval $ac_link) 2>&5
19750 ac_status=$?
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19754 (eval $ac_try) 2>&5
19755 ac_status=$?
19756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757 (exit $ac_status); }; }; then
19758 ac_cv_c_bigendian=no
19759 else
19760 echo "$as_me: program exited with status $ac_status" >&5
19761 echo "$as_me: failed program was:" >&5
19762 sed 's/^/| /' conftest.$ac_ext >&5
19764 ( exit $ac_status )
19765 ac_cv_c_bigendian=yes
19767 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19772 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19773 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19774 case $ac_cv_c_bigendian in
19775 yes)
19777 cat >>confdefs.h <<\_ACEOF
19778 #define WORDS_BIGENDIAN 1
19779 _ACEOF
19784 { { echo "$as_me:$LINENO: error: unknown endianness
19785 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19786 echo "$as_me: error: unknown endianness
19787 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19788 { (exit 1); exit 1; }; } ;;
19789 esac
19792 # Check whether right shifting a negative integer extends the sign bit
19793 # or fills with zeros (like the Cray J90, according to Tim Peters).
19794 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
19795 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
19796 if test "${ac_cv_rshift_extends_sign+set}" = set; then
19797 echo $ECHO_N "(cached) $ECHO_C" >&6
19798 else
19800 if test "$cross_compiling" = yes; then
19801 ac_cv_rshift_extends_sign=yes
19802 else
19803 cat >conftest.$ac_ext <<_ACEOF
19804 /* confdefs.h. */
19805 _ACEOF
19806 cat confdefs.h >>conftest.$ac_ext
19807 cat >>conftest.$ac_ext <<_ACEOF
19808 /* end confdefs.h. */
19810 int main()
19812 exit(((-1)>>3 == -1) ? 0 : 1);
19815 _ACEOF
19816 rm -f conftest$ac_exeext
19817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19818 (eval $ac_link) 2>&5
19819 ac_status=$?
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19823 (eval $ac_try) 2>&5
19824 ac_status=$?
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); }; }; then
19827 ac_cv_rshift_extends_sign=yes
19828 else
19829 echo "$as_me: program exited with status $ac_status" >&5
19830 echo "$as_me: failed program was:" >&5
19831 sed 's/^/| /' conftest.$ac_ext >&5
19833 ( exit $ac_status )
19834 ac_cv_rshift_extends_sign=no
19836 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19840 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
19841 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
19842 if test "$ac_cv_rshift_extends_sign" = no
19843 then
19845 cat >>confdefs.h <<\_ACEOF
19846 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
19847 _ACEOF
19851 # check for getc_unlocked and related locking functions
19852 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
19853 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
19854 if test "${ac_cv_have_getc_unlocked+set}" = set; then
19855 echo $ECHO_N "(cached) $ECHO_C" >&6
19856 else
19858 cat >conftest.$ac_ext <<_ACEOF
19859 /* confdefs.h. */
19860 _ACEOF
19861 cat confdefs.h >>conftest.$ac_ext
19862 cat >>conftest.$ac_ext <<_ACEOF
19863 /* end confdefs.h. */
19864 #include <stdio.h>
19866 main ()
19869 FILE *f = fopen("/dev/null", "r");
19870 flockfile(f);
19871 getc_unlocked(f);
19872 funlockfile(f);
19875 return 0;
19877 _ACEOF
19878 rm -f conftest.$ac_objext conftest$ac_exeext
19879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19880 (eval $ac_link) 2>conftest.er1
19881 ac_status=$?
19882 grep -v '^ *+' conftest.er1 >conftest.err
19883 rm -f conftest.er1
19884 cat conftest.err >&5
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); } &&
19887 { ac_try='test -z "$ac_c_werror_flag"
19888 || test ! -s conftest.err'
19889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19890 (eval $ac_try) 2>&5
19891 ac_status=$?
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); }; } &&
19894 { ac_try='test -s conftest$ac_exeext'
19895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19896 (eval $ac_try) 2>&5
19897 ac_status=$?
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); }; }; then
19900 ac_cv_have_getc_unlocked=yes
19901 else
19902 echo "$as_me: failed program was:" >&5
19903 sed 's/^/| /' conftest.$ac_ext >&5
19905 ac_cv_have_getc_unlocked=no
19907 rm -f conftest.err conftest.$ac_objext \
19908 conftest$ac_exeext conftest.$ac_ext
19911 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
19912 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
19913 if test "$ac_cv_have_getc_unlocked" = yes
19914 then
19916 cat >>confdefs.h <<\_ACEOF
19917 #define HAVE_GETC_UNLOCKED 1
19918 _ACEOF
19922 # check where readline lives
19924 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
19925 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
19926 if test "${ac_cv_lib_readline_readline+set}" = set; then
19927 echo $ECHO_N "(cached) $ECHO_C" >&6
19928 else
19929 ac_check_lib_save_LIBS=$LIBS
19930 LIBS="-lreadline $LIBS"
19931 cat >conftest.$ac_ext <<_ACEOF
19932 /* confdefs.h. */
19933 _ACEOF
19934 cat confdefs.h >>conftest.$ac_ext
19935 cat >>conftest.$ac_ext <<_ACEOF
19936 /* end confdefs.h. */
19938 /* Override any gcc2 internal prototype to avoid an error. */
19939 #ifdef __cplusplus
19940 extern "C"
19941 #endif
19942 /* We use char because int might match the return type of a gcc2
19943 builtin and then its argument prototype would still apply. */
19944 char readline ();
19946 main ()
19948 readline ();
19950 return 0;
19952 _ACEOF
19953 rm -f conftest.$ac_objext conftest$ac_exeext
19954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19955 (eval $ac_link) 2>conftest.er1
19956 ac_status=$?
19957 grep -v '^ *+' conftest.er1 >conftest.err
19958 rm -f conftest.er1
19959 cat conftest.err >&5
19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); } &&
19962 { ac_try='test -z "$ac_c_werror_flag"
19963 || test ! -s conftest.err'
19964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19965 (eval $ac_try) 2>&5
19966 ac_status=$?
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); }; } &&
19969 { ac_try='test -s conftest$ac_exeext'
19970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19971 (eval $ac_try) 2>&5
19972 ac_status=$?
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); }; }; then
19975 ac_cv_lib_readline_readline=yes
19976 else
19977 echo "$as_me: failed program was:" >&5
19978 sed 's/^/| /' conftest.$ac_ext >&5
19980 ac_cv_lib_readline_readline=no
19982 rm -f conftest.err conftest.$ac_objext \
19983 conftest$ac_exeext conftest.$ac_ext
19984 LIBS=$ac_check_lib_save_LIBS
19986 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
19987 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
19988 if test $ac_cv_lib_readline_readline = yes; then
19989 cat >>confdefs.h <<_ACEOF
19990 #define HAVE_LIBREADLINE 1
19991 _ACEOF
19993 LIBS="-lreadline $LIBS"
19997 if test "$ac_cv_have_readline_readline" = no
19998 then
20000 echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
20001 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6
20002 if test "${ac_cv_lib_termcap_readline+set}" = set; then
20003 echo $ECHO_N "(cached) $ECHO_C" >&6
20004 else
20005 ac_check_lib_save_LIBS=$LIBS
20006 LIBS="-ltermcap $LIBS"
20007 cat >conftest.$ac_ext <<_ACEOF
20008 /* confdefs.h. */
20009 _ACEOF
20010 cat confdefs.h >>conftest.$ac_ext
20011 cat >>conftest.$ac_ext <<_ACEOF
20012 /* end confdefs.h. */
20014 /* Override any gcc2 internal prototype to avoid an error. */
20015 #ifdef __cplusplus
20016 extern "C"
20017 #endif
20018 /* We use char because int might match the return type of a gcc2
20019 builtin and then its argument prototype would still apply. */
20020 char readline ();
20022 main ()
20024 readline ();
20026 return 0;
20028 _ACEOF
20029 rm -f conftest.$ac_objext conftest$ac_exeext
20030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20031 (eval $ac_link) 2>conftest.er1
20032 ac_status=$?
20033 grep -v '^ *+' conftest.er1 >conftest.err
20034 rm -f conftest.er1
20035 cat conftest.err >&5
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); } &&
20038 { ac_try='test -z "$ac_c_werror_flag"
20039 || test ! -s conftest.err'
20040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20041 (eval $ac_try) 2>&5
20042 ac_status=$?
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); }; } &&
20045 { ac_try='test -s conftest$ac_exeext'
20046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20047 (eval $ac_try) 2>&5
20048 ac_status=$?
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); }; }; then
20051 ac_cv_lib_termcap_readline=yes
20052 else
20053 echo "$as_me: failed program was:" >&5
20054 sed 's/^/| /' conftest.$ac_ext >&5
20056 ac_cv_lib_termcap_readline=no
20058 rm -f conftest.err conftest.$ac_objext \
20059 conftest$ac_exeext conftest.$ac_ext
20060 LIBS=$ac_check_lib_save_LIBS
20062 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
20063 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6
20064 if test $ac_cv_lib_termcap_readline = yes; then
20065 cat >>confdefs.h <<_ACEOF
20066 #define HAVE_LIBTERMCAP 1
20067 _ACEOF
20069 LIBS="-ltermcap $LIBS"
20075 # check for readline 2.1
20076 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
20077 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
20078 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
20079 echo $ECHO_N "(cached) $ECHO_C" >&6
20080 else
20081 ac_check_lib_save_LIBS=$LIBS
20082 LIBS="-lreadline $LIBS"
20083 cat >conftest.$ac_ext <<_ACEOF
20084 /* confdefs.h. */
20085 _ACEOF
20086 cat confdefs.h >>conftest.$ac_ext
20087 cat >>conftest.$ac_ext <<_ACEOF
20088 /* end confdefs.h. */
20090 /* Override any gcc2 internal prototype to avoid an error. */
20091 #ifdef __cplusplus
20092 extern "C"
20093 #endif
20094 /* We use char because int might match the return type of a gcc2
20095 builtin and then its argument prototype would still apply. */
20096 char rl_callback_handler_install ();
20098 main ()
20100 rl_callback_handler_install ();
20102 return 0;
20104 _ACEOF
20105 rm -f conftest.$ac_objext conftest$ac_exeext
20106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20107 (eval $ac_link) 2>conftest.er1
20108 ac_status=$?
20109 grep -v '^ *+' conftest.er1 >conftest.err
20110 rm -f conftest.er1
20111 cat conftest.err >&5
20112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113 (exit $ac_status); } &&
20114 { ac_try='test -z "$ac_c_werror_flag"
20115 || test ! -s conftest.err'
20116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20117 (eval $ac_try) 2>&5
20118 ac_status=$?
20119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120 (exit $ac_status); }; } &&
20121 { ac_try='test -s conftest$ac_exeext'
20122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20123 (eval $ac_try) 2>&5
20124 ac_status=$?
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); }; }; then
20127 ac_cv_lib_readline_rl_callback_handler_install=yes
20128 else
20129 echo "$as_me: failed program was:" >&5
20130 sed 's/^/| /' conftest.$ac_ext >&5
20132 ac_cv_lib_readline_rl_callback_handler_install=no
20134 rm -f conftest.err conftest.$ac_objext \
20135 conftest$ac_exeext conftest.$ac_ext
20136 LIBS=$ac_check_lib_save_LIBS
20138 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
20139 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
20140 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
20142 cat >>confdefs.h <<\_ACEOF
20143 #define HAVE_RL_CALLBACK 1
20144 _ACEOF
20149 # check for readline 2.2
20150 cat >conftest.$ac_ext <<_ACEOF
20151 /* confdefs.h. */
20152 _ACEOF
20153 cat confdefs.h >>conftest.$ac_ext
20154 cat >>conftest.$ac_ext <<_ACEOF
20155 /* end confdefs.h. */
20156 #include <readline/readline.h>
20157 _ACEOF
20158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20160 ac_status=$?
20161 grep -v '^ *+' conftest.er1 >conftest.err
20162 rm -f conftest.er1
20163 cat conftest.err >&5
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); } >/dev/null; then
20166 if test -s conftest.err; then
20167 ac_cpp_err=$ac_c_preproc_warn_flag
20168 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20169 else
20170 ac_cpp_err=
20172 else
20173 ac_cpp_err=yes
20175 if test -z "$ac_cpp_err"; then
20176 have_readline=yes
20177 else
20178 echo "$as_me: failed program was:" >&5
20179 sed 's/^/| /' conftest.$ac_ext >&5
20181 have_readline=no
20183 rm -f conftest.err conftest.$ac_ext
20184 if test $have_readline = yes
20185 then
20186 cat >conftest.$ac_ext <<_ACEOF
20187 /* confdefs.h. */
20188 _ACEOF
20189 cat confdefs.h >>conftest.$ac_ext
20190 cat >>conftest.$ac_ext <<_ACEOF
20191 /* end confdefs.h. */
20192 #include <readline/readline.h>
20194 _ACEOF
20195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20196 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
20198 cat >>confdefs.h <<\_ACEOF
20199 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20200 _ACEOF
20203 rm -f conftest*
20207 # check for readline 4.0
20208 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
20209 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
20210 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
20211 echo $ECHO_N "(cached) $ECHO_C" >&6
20212 else
20213 ac_check_lib_save_LIBS=$LIBS
20214 LIBS="-lreadline $LIBS"
20215 cat >conftest.$ac_ext <<_ACEOF
20216 /* confdefs.h. */
20217 _ACEOF
20218 cat confdefs.h >>conftest.$ac_ext
20219 cat >>conftest.$ac_ext <<_ACEOF
20220 /* end confdefs.h. */
20222 /* Override any gcc2 internal prototype to avoid an error. */
20223 #ifdef __cplusplus
20224 extern "C"
20225 #endif
20226 /* We use char because int might match the return type of a gcc2
20227 builtin and then its argument prototype would still apply. */
20228 char rl_pre_input_hook ();
20230 main ()
20232 rl_pre_input_hook ();
20234 return 0;
20236 _ACEOF
20237 rm -f conftest.$ac_objext conftest$ac_exeext
20238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20239 (eval $ac_link) 2>conftest.er1
20240 ac_status=$?
20241 grep -v '^ *+' conftest.er1 >conftest.err
20242 rm -f conftest.er1
20243 cat conftest.err >&5
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); } &&
20246 { ac_try='test -z "$ac_c_werror_flag"
20247 || test ! -s conftest.err'
20248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20249 (eval $ac_try) 2>&5
20250 ac_status=$?
20251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252 (exit $ac_status); }; } &&
20253 { ac_try='test -s conftest$ac_exeext'
20254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20255 (eval $ac_try) 2>&5
20256 ac_status=$?
20257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258 (exit $ac_status); }; }; then
20259 ac_cv_lib_readline_rl_pre_input_hook=yes
20260 else
20261 echo "$as_me: failed program was:" >&5
20262 sed 's/^/| /' conftest.$ac_ext >&5
20264 ac_cv_lib_readline_rl_pre_input_hook=no
20266 rm -f conftest.err conftest.$ac_objext \
20267 conftest$ac_exeext conftest.$ac_ext
20268 LIBS=$ac_check_lib_save_LIBS
20270 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
20271 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
20272 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
20274 cat >>confdefs.h <<\_ACEOF
20275 #define HAVE_RL_PRE_INPUT_HOOK 1
20276 _ACEOF
20281 # check for readline 4.2
20282 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
20283 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
20284 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
20285 echo $ECHO_N "(cached) $ECHO_C" >&6
20286 else
20287 ac_check_lib_save_LIBS=$LIBS
20288 LIBS="-lreadline $LIBS"
20289 cat >conftest.$ac_ext <<_ACEOF
20290 /* confdefs.h. */
20291 _ACEOF
20292 cat confdefs.h >>conftest.$ac_ext
20293 cat >>conftest.$ac_ext <<_ACEOF
20294 /* end confdefs.h. */
20296 /* Override any gcc2 internal prototype to avoid an error. */
20297 #ifdef __cplusplus
20298 extern "C"
20299 #endif
20300 /* We use char because int might match the return type of a gcc2
20301 builtin and then its argument prototype would still apply. */
20302 char rl_completion_matches ();
20304 main ()
20306 rl_completion_matches ();
20308 return 0;
20310 _ACEOF
20311 rm -f conftest.$ac_objext conftest$ac_exeext
20312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20313 (eval $ac_link) 2>conftest.er1
20314 ac_status=$?
20315 grep -v '^ *+' conftest.er1 >conftest.err
20316 rm -f conftest.er1
20317 cat conftest.err >&5
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); } &&
20320 { ac_try='test -z "$ac_c_werror_flag"
20321 || test ! -s conftest.err'
20322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20323 (eval $ac_try) 2>&5
20324 ac_status=$?
20325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326 (exit $ac_status); }; } &&
20327 { ac_try='test -s conftest$ac_exeext'
20328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20329 (eval $ac_try) 2>&5
20330 ac_status=$?
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); }; }; then
20333 ac_cv_lib_readline_rl_completion_matches=yes
20334 else
20335 echo "$as_me: failed program was:" >&5
20336 sed 's/^/| /' conftest.$ac_ext >&5
20338 ac_cv_lib_readline_rl_completion_matches=no
20340 rm -f conftest.err conftest.$ac_objext \
20341 conftest$ac_exeext conftest.$ac_ext
20342 LIBS=$ac_check_lib_save_LIBS
20344 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
20345 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
20346 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
20348 cat >>confdefs.h <<\_ACEOF
20349 #define HAVE_RL_COMPLETION_MATCHES 1
20350 _ACEOF
20355 # also in readline 4.2
20356 cat >conftest.$ac_ext <<_ACEOF
20357 /* confdefs.h. */
20358 _ACEOF
20359 cat confdefs.h >>conftest.$ac_ext
20360 cat >>conftest.$ac_ext <<_ACEOF
20361 /* end confdefs.h. */
20362 #include <readline/readline.h>
20363 _ACEOF
20364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20366 ac_status=$?
20367 grep -v '^ *+' conftest.er1 >conftest.err
20368 rm -f conftest.er1
20369 cat conftest.err >&5
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); } >/dev/null; then
20372 if test -s conftest.err; then
20373 ac_cpp_err=$ac_c_preproc_warn_flag
20374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20375 else
20376 ac_cpp_err=
20378 else
20379 ac_cpp_err=yes
20381 if test -z "$ac_cpp_err"; then
20382 have_readline=yes
20383 else
20384 echo "$as_me: failed program was:" >&5
20385 sed 's/^/| /' conftest.$ac_ext >&5
20387 have_readline=no
20389 rm -f conftest.err conftest.$ac_ext
20390 if test $have_readline = yes
20391 then
20392 cat >conftest.$ac_ext <<_ACEOF
20393 /* confdefs.h. */
20394 _ACEOF
20395 cat confdefs.h >>conftest.$ac_ext
20396 cat >>conftest.$ac_ext <<_ACEOF
20397 /* end confdefs.h. */
20398 #include <readline/readline.h>
20400 _ACEOF
20401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20402 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
20404 cat >>confdefs.h <<\_ACEOF
20405 #define HAVE_RL_CATCH_SIGNAL 1
20406 _ACEOF
20409 rm -f conftest*
20413 echo "$as_me:$LINENO: checking for broken nice()" >&5
20414 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
20415 if test "${ac_cv_broken_nice+set}" = set; then
20416 echo $ECHO_N "(cached) $ECHO_C" >&6
20417 else
20419 if test "$cross_compiling" = yes; then
20420 ac_cv_broken_nice=no
20421 else
20422 cat >conftest.$ac_ext <<_ACEOF
20423 /* confdefs.h. */
20424 _ACEOF
20425 cat confdefs.h >>conftest.$ac_ext
20426 cat >>conftest.$ac_ext <<_ACEOF
20427 /* end confdefs.h. */
20429 int main()
20431 int val1 = nice(1);
20432 if (val1 != -1 && val1 == nice(2))
20433 exit(0);
20434 exit(1);
20437 _ACEOF
20438 rm -f conftest$ac_exeext
20439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20440 (eval $ac_link) 2>&5
20441 ac_status=$?
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20445 (eval $ac_try) 2>&5
20446 ac_status=$?
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); }; }; then
20449 ac_cv_broken_nice=yes
20450 else
20451 echo "$as_me: program exited with status $ac_status" >&5
20452 echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20455 ( exit $ac_status )
20456 ac_cv_broken_nice=no
20458 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20462 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
20463 echo "${ECHO_T}$ac_cv_broken_nice" >&6
20464 if test "$ac_cv_broken_nice" = yes
20465 then
20467 cat >>confdefs.h <<\_ACEOF
20468 #define HAVE_BROKEN_NICE 1
20469 _ACEOF
20473 echo "$as_me:$LINENO: checking for broken poll()" >&5
20474 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6
20475 if test "$cross_compiling" = yes; then
20476 ac_cv_broken_poll=no
20477 else
20478 cat >conftest.$ac_ext <<_ACEOF
20479 /* confdefs.h. */
20480 _ACEOF
20481 cat confdefs.h >>conftest.$ac_ext
20482 cat >>conftest.$ac_ext <<_ACEOF
20483 /* end confdefs.h. */
20485 #include <poll.h>
20487 int main (void)
20489 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
20491 close (42);
20493 int poll_test = poll (&poll_struct, 1, 0);
20495 if (poll_test < 0)
20497 exit(0);
20499 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
20501 exit(0);
20503 else
20505 exit(1);
20509 _ACEOF
20510 rm -f conftest$ac_exeext
20511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20512 (eval $ac_link) 2>&5
20513 ac_status=$?
20514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20517 (eval $ac_try) 2>&5
20518 ac_status=$?
20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); }; }; then
20521 ac_cv_broken_poll=yes
20522 else
20523 echo "$as_me: program exited with status $ac_status" >&5
20524 echo "$as_me: failed program was:" >&5
20525 sed 's/^/| /' conftest.$ac_ext >&5
20527 ( exit $ac_status )
20528 ac_cv_broken_poll=no
20530 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20532 echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
20533 echo "${ECHO_T}$ac_cv_broken_poll" >&6
20534 if test "$ac_cv_broken_poll" = yes
20535 then
20537 cat >>confdefs.h <<\_ACEOF
20538 #define HAVE_BROKEN_POLL 1
20539 _ACEOF
20543 # Before we can test tzset, we need to check if struct tm has a tm_zone
20544 # (which is not required by ISO C or UNIX spec) and/or if we support
20545 # tzname[]
20546 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20547 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20548 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20549 echo $ECHO_N "(cached) $ECHO_C" >&6
20550 else
20551 cat >conftest.$ac_ext <<_ACEOF
20552 /* confdefs.h. */
20553 _ACEOF
20554 cat confdefs.h >>conftest.$ac_ext
20555 cat >>conftest.$ac_ext <<_ACEOF
20556 /* end confdefs.h. */
20557 #include <sys/types.h>
20558 #include <$ac_cv_struct_tm>
20562 main ()
20564 static struct tm ac_aggr;
20565 if (ac_aggr.tm_zone)
20566 return 0;
20568 return 0;
20570 _ACEOF
20571 rm -f conftest.$ac_objext
20572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20573 (eval $ac_compile) 2>conftest.er1
20574 ac_status=$?
20575 grep -v '^ *+' conftest.er1 >conftest.err
20576 rm -f conftest.er1
20577 cat conftest.err >&5
20578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); } &&
20580 { ac_try='test -z "$ac_c_werror_flag"
20581 || test ! -s conftest.err'
20582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20583 (eval $ac_try) 2>&5
20584 ac_status=$?
20585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586 (exit $ac_status); }; } &&
20587 { ac_try='test -s conftest.$ac_objext'
20588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20589 (eval $ac_try) 2>&5
20590 ac_status=$?
20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592 (exit $ac_status); }; }; then
20593 ac_cv_member_struct_tm_tm_zone=yes
20594 else
20595 echo "$as_me: failed program was:" >&5
20596 sed 's/^/| /' conftest.$ac_ext >&5
20598 cat >conftest.$ac_ext <<_ACEOF
20599 /* confdefs.h. */
20600 _ACEOF
20601 cat confdefs.h >>conftest.$ac_ext
20602 cat >>conftest.$ac_ext <<_ACEOF
20603 /* end confdefs.h. */
20604 #include <sys/types.h>
20605 #include <$ac_cv_struct_tm>
20609 main ()
20611 static struct tm ac_aggr;
20612 if (sizeof ac_aggr.tm_zone)
20613 return 0;
20615 return 0;
20617 _ACEOF
20618 rm -f conftest.$ac_objext
20619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20620 (eval $ac_compile) 2>conftest.er1
20621 ac_status=$?
20622 grep -v '^ *+' conftest.er1 >conftest.err
20623 rm -f conftest.er1
20624 cat conftest.err >&5
20625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626 (exit $ac_status); } &&
20627 { ac_try='test -z "$ac_c_werror_flag"
20628 || test ! -s conftest.err'
20629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20630 (eval $ac_try) 2>&5
20631 ac_status=$?
20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633 (exit $ac_status); }; } &&
20634 { ac_try='test -s conftest.$ac_objext'
20635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20636 (eval $ac_try) 2>&5
20637 ac_status=$?
20638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639 (exit $ac_status); }; }; then
20640 ac_cv_member_struct_tm_tm_zone=yes
20641 else
20642 echo "$as_me: failed program was:" >&5
20643 sed 's/^/| /' conftest.$ac_ext >&5
20645 ac_cv_member_struct_tm_tm_zone=no
20647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20651 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20652 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20653 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20655 cat >>confdefs.h <<_ACEOF
20656 #define HAVE_STRUCT_TM_TM_ZONE 1
20657 _ACEOF
20662 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20664 cat >>confdefs.h <<\_ACEOF
20665 #define HAVE_TM_ZONE 1
20666 _ACEOF
20668 else
20669 echo "$as_me:$LINENO: checking for tzname" >&5
20670 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20671 if test "${ac_cv_var_tzname+set}" = set; then
20672 echo $ECHO_N "(cached) $ECHO_C" >&6
20673 else
20674 cat >conftest.$ac_ext <<_ACEOF
20675 /* confdefs.h. */
20676 _ACEOF
20677 cat confdefs.h >>conftest.$ac_ext
20678 cat >>conftest.$ac_ext <<_ACEOF
20679 /* end confdefs.h. */
20680 #include <time.h>
20681 #ifndef tzname /* For SGI. */
20682 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20683 #endif
20686 main ()
20688 atoi(*tzname);
20690 return 0;
20692 _ACEOF
20693 rm -f conftest.$ac_objext conftest$ac_exeext
20694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20695 (eval $ac_link) 2>conftest.er1
20696 ac_status=$?
20697 grep -v '^ *+' conftest.er1 >conftest.err
20698 rm -f conftest.er1
20699 cat conftest.err >&5
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); } &&
20702 { ac_try='test -z "$ac_c_werror_flag"
20703 || test ! -s conftest.err'
20704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20705 (eval $ac_try) 2>&5
20706 ac_status=$?
20707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708 (exit $ac_status); }; } &&
20709 { ac_try='test -s conftest$ac_exeext'
20710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20711 (eval $ac_try) 2>&5
20712 ac_status=$?
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); }; }; then
20715 ac_cv_var_tzname=yes
20716 else
20717 echo "$as_me: failed program was:" >&5
20718 sed 's/^/| /' conftest.$ac_ext >&5
20720 ac_cv_var_tzname=no
20722 rm -f conftest.err conftest.$ac_objext \
20723 conftest$ac_exeext conftest.$ac_ext
20725 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20726 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20727 if test $ac_cv_var_tzname = yes; then
20729 cat >>confdefs.h <<\_ACEOF
20730 #define HAVE_TZNAME 1
20731 _ACEOF
20737 # check tzset(3) exists and works like we expect it to
20738 echo "$as_me:$LINENO: checking for working tzset()" >&5
20739 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
20740 if test "${ac_cv_working_tzset+set}" = set; then
20741 echo $ECHO_N "(cached) $ECHO_C" >&6
20742 else
20744 if test "$cross_compiling" = yes; then
20745 ac_cv_working_tzset=no
20746 else
20747 cat >conftest.$ac_ext <<_ACEOF
20748 /* confdefs.h. */
20749 _ACEOF
20750 cat confdefs.h >>conftest.$ac_ext
20751 cat >>conftest.$ac_ext <<_ACEOF
20752 /* end confdefs.h. */
20754 #include <stdlib.h>
20755 #include <time.h>
20756 #include <string.h>
20758 #if HAVE_TZNAME
20759 extern char *tzname[];
20760 #endif
20762 int main()
20764 /* Note that we need to ensure that not only does tzset(3)
20765 do 'something' with localtime, but it works as documented
20766 in the library reference and as expected by the test suite.
20767 This includes making sure that tzname is set properly if
20768 tm->tm_zone does not exist since it is the alternative way
20769 of getting timezone info.
20771 Red Hat 6.2 doesn't understand the southern hemisphere
20772 after New Year's Day.
20775 time_t groundhogday = 1044144000; /* GMT-based */
20776 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
20778 putenv("TZ=UTC+0");
20779 tzset();
20780 if (localtime(&groundhogday)->tm_hour != 0)
20781 exit(1);
20782 #if HAVE_TZNAME
20783 /* For UTC, tzname[1] is sometimes "", sometimes " " */
20784 if (strcmp(tzname[0], "UTC") ||
20785 (tzname[1][0] != 0 && tzname[1][0] != ' '))
20786 exit(1);
20787 #endif
20789 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
20790 tzset();
20791 if (localtime(&groundhogday)->tm_hour != 19)
20792 exit(1);
20793 #if HAVE_TZNAME
20794 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
20795 exit(1);
20796 #endif
20798 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
20799 tzset();
20800 if (localtime(&groundhogday)->tm_hour != 11)
20801 exit(1);
20802 #if HAVE_TZNAME
20803 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
20804 exit(1);
20805 #endif
20807 #if HAVE_STRUCT_TM_TM_ZONE
20808 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
20809 exit(1);
20810 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
20811 exit(1);
20812 #endif
20814 exit(0);
20817 _ACEOF
20818 rm -f conftest$ac_exeext
20819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20820 (eval $ac_link) 2>&5
20821 ac_status=$?
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20825 (eval $ac_try) 2>&5
20826 ac_status=$?
20827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828 (exit $ac_status); }; }; then
20829 ac_cv_working_tzset=yes
20830 else
20831 echo "$as_me: program exited with status $ac_status" >&5
20832 echo "$as_me: failed program was:" >&5
20833 sed 's/^/| /' conftest.$ac_ext >&5
20835 ( exit $ac_status )
20836 ac_cv_working_tzset=no
20838 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20842 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
20843 echo "${ECHO_T}$ac_cv_working_tzset" >&6
20844 if test "$ac_cv_working_tzset" = yes
20845 then
20847 cat >>confdefs.h <<\_ACEOF
20848 #define HAVE_WORKING_TZSET 1
20849 _ACEOF
20853 # Look for subsecond timestamps in struct stat
20854 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
20855 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
20856 if test "${ac_cv_stat_tv_nsec+set}" = set; then
20857 echo $ECHO_N "(cached) $ECHO_C" >&6
20858 else
20859 cat >conftest.$ac_ext <<_ACEOF
20860 /* confdefs.h. */
20861 _ACEOF
20862 cat confdefs.h >>conftest.$ac_ext
20863 cat >>conftest.$ac_ext <<_ACEOF
20864 /* end confdefs.h. */
20865 #include <sys/stat.h>
20867 main ()
20870 struct stat st;
20871 st.st_mtim.tv_nsec = 1;
20874 return 0;
20876 _ACEOF
20877 rm -f conftest.$ac_objext
20878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20879 (eval $ac_compile) 2>conftest.er1
20880 ac_status=$?
20881 grep -v '^ *+' conftest.er1 >conftest.err
20882 rm -f conftest.er1
20883 cat conftest.err >&5
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); } &&
20886 { ac_try='test -z "$ac_c_werror_flag"
20887 || test ! -s conftest.err'
20888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20889 (eval $ac_try) 2>&5
20890 ac_status=$?
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); }; } &&
20893 { ac_try='test -s conftest.$ac_objext'
20894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20895 (eval $ac_try) 2>&5
20896 ac_status=$?
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); }; }; then
20899 ac_cv_stat_tv_nsec=yes
20900 else
20901 echo "$as_me: failed program was:" >&5
20902 sed 's/^/| /' conftest.$ac_ext >&5
20904 ac_cv_stat_tv_nsec=no
20906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20909 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
20910 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
20911 if test "$ac_cv_stat_tv_nsec" = yes
20912 then
20914 cat >>confdefs.h <<\_ACEOF
20915 #define HAVE_STAT_TV_NSEC 1
20916 _ACEOF
20920 # Look for BSD style subsecond timestamps in struct stat
20921 echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
20922 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6
20923 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
20924 echo $ECHO_N "(cached) $ECHO_C" >&6
20925 else
20926 cat >conftest.$ac_ext <<_ACEOF
20927 /* confdefs.h. */
20928 _ACEOF
20929 cat confdefs.h >>conftest.$ac_ext
20930 cat >>conftest.$ac_ext <<_ACEOF
20931 /* end confdefs.h. */
20932 #include <sys/stat.h>
20934 main ()
20937 struct stat st;
20938 st.st_mtimespec.tv_nsec = 1;
20941 return 0;
20943 _ACEOF
20944 rm -f conftest.$ac_objext
20945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20946 (eval $ac_compile) 2>conftest.er1
20947 ac_status=$?
20948 grep -v '^ *+' conftest.er1 >conftest.err
20949 rm -f conftest.er1
20950 cat conftest.err >&5
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); } &&
20953 { ac_try='test -z "$ac_c_werror_flag"
20954 || test ! -s conftest.err'
20955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20956 (eval $ac_try) 2>&5
20957 ac_status=$?
20958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959 (exit $ac_status); }; } &&
20960 { ac_try='test -s conftest.$ac_objext'
20961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20962 (eval $ac_try) 2>&5
20963 ac_status=$?
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965 (exit $ac_status); }; }; then
20966 ac_cv_stat_tv_nsec2=yes
20967 else
20968 echo "$as_me: failed program was:" >&5
20969 sed 's/^/| /' conftest.$ac_ext >&5
20971 ac_cv_stat_tv_nsec2=no
20973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20976 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
20977 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6
20978 if test "$ac_cv_stat_tv_nsec2" = yes
20979 then
20981 cat >>confdefs.h <<\_ACEOF
20982 #define HAVE_STAT_TV_NSEC2 1
20983 _ACEOF
20987 # On HP/UX 11.0, mvwdelch is a block with a return statement
20988 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
20989 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
20990 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
20991 echo $ECHO_N "(cached) $ECHO_C" >&6
20992 else
20993 cat >conftest.$ac_ext <<_ACEOF
20994 /* confdefs.h. */
20995 _ACEOF
20996 cat confdefs.h >>conftest.$ac_ext
20997 cat >>conftest.$ac_ext <<_ACEOF
20998 /* end confdefs.h. */
20999 #include <curses.h>
21001 main ()
21004 int rtn;
21005 rtn = mvwdelch(0,0,0);
21008 return 0;
21010 _ACEOF
21011 rm -f conftest.$ac_objext
21012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21013 (eval $ac_compile) 2>conftest.er1
21014 ac_status=$?
21015 grep -v '^ *+' conftest.er1 >conftest.err
21016 rm -f conftest.er1
21017 cat conftest.err >&5
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); } &&
21020 { ac_try='test -z "$ac_c_werror_flag"
21021 || test ! -s conftest.err'
21022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21023 (eval $ac_try) 2>&5
21024 ac_status=$?
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); }; } &&
21027 { ac_try='test -s conftest.$ac_objext'
21028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21029 (eval $ac_try) 2>&5
21030 ac_status=$?
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); }; }; then
21033 ac_cv_mvwdelch_is_expression=yes
21034 else
21035 echo "$as_me: failed program was:" >&5
21036 sed 's/^/| /' conftest.$ac_ext >&5
21038 ac_cv_mvwdelch_is_expression=no
21040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21043 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
21044 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
21046 if test "$ac_cv_mvwdelch_is_expression" = yes
21047 then
21049 cat >>confdefs.h <<\_ACEOF
21050 #define MVWDELCH_IS_EXPRESSION 1
21051 _ACEOF
21055 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
21056 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
21057 if test "${ac_cv_window_has_flags+set}" = set; then
21058 echo $ECHO_N "(cached) $ECHO_C" >&6
21059 else
21060 cat >conftest.$ac_ext <<_ACEOF
21061 /* confdefs.h. */
21062 _ACEOF
21063 cat confdefs.h >>conftest.$ac_ext
21064 cat >>conftest.$ac_ext <<_ACEOF
21065 /* end confdefs.h. */
21066 #include <curses.h>
21068 main ()
21071 WINDOW *w;
21072 w->_flags = 0;
21075 return 0;
21077 _ACEOF
21078 rm -f conftest.$ac_objext
21079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21080 (eval $ac_compile) 2>conftest.er1
21081 ac_status=$?
21082 grep -v '^ *+' conftest.er1 >conftest.err
21083 rm -f conftest.er1
21084 cat conftest.err >&5
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); } &&
21087 { ac_try='test -z "$ac_c_werror_flag"
21088 || test ! -s conftest.err'
21089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21090 (eval $ac_try) 2>&5
21091 ac_status=$?
21092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093 (exit $ac_status); }; } &&
21094 { ac_try='test -s conftest.$ac_objext'
21095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21096 (eval $ac_try) 2>&5
21097 ac_status=$?
21098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099 (exit $ac_status); }; }; then
21100 ac_cv_window_has_flags=yes
21101 else
21102 echo "$as_me: failed program was:" >&5
21103 sed 's/^/| /' conftest.$ac_ext >&5
21105 ac_cv_window_has_flags=no
21107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21110 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
21111 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
21114 if test "$ac_cv_window_has_flags" = yes
21115 then
21117 cat >>confdefs.h <<\_ACEOF
21118 #define WINDOW_HAS_FLAGS 1
21119 _ACEOF
21123 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
21124 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
21126 if test -e /dev/ptmx
21127 then
21128 echo "$as_me:$LINENO: result: yes" >&5
21129 echo "${ECHO_T}yes" >&6
21131 cat >>confdefs.h <<\_ACEOF
21132 #define HAVE_DEV_PTMX 1
21133 _ACEOF
21135 else
21136 echo "$as_me:$LINENO: result: no" >&5
21137 echo "${ECHO_T}no" >&6
21140 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
21141 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
21143 if test -e /dev/ptc
21144 then
21145 echo "$as_me:$LINENO: result: yes" >&5
21146 echo "${ECHO_T}yes" >&6
21148 cat >>confdefs.h <<\_ACEOF
21149 #define HAVE_DEV_PTC 1
21150 _ACEOF
21152 else
21153 echo "$as_me:$LINENO: result: no" >&5
21154 echo "${ECHO_T}no" >&6
21157 echo "$as_me:$LINENO: checking for socklen_t" >&5
21158 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21159 if test "${ac_cv_type_socklen_t+set}" = set; then
21160 echo $ECHO_N "(cached) $ECHO_C" >&6
21161 else
21162 cat >conftest.$ac_ext <<_ACEOF
21163 /* confdefs.h. */
21164 _ACEOF
21165 cat confdefs.h >>conftest.$ac_ext
21166 cat >>conftest.$ac_ext <<_ACEOF
21167 /* end confdefs.h. */
21169 #ifdef HAVE_SYS_TYPES_H
21170 #include <sys/types.h>
21171 #endif
21172 #ifdef HAVE_SYS_SOCKET_H
21173 #include <sys/socket.h>
21174 #endif
21178 main ()
21180 if ((socklen_t *) 0)
21181 return 0;
21182 if (sizeof (socklen_t))
21183 return 0;
21185 return 0;
21187 _ACEOF
21188 rm -f conftest.$ac_objext
21189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21190 (eval $ac_compile) 2>conftest.er1
21191 ac_status=$?
21192 grep -v '^ *+' conftest.er1 >conftest.err
21193 rm -f conftest.er1
21194 cat conftest.err >&5
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); } &&
21197 { ac_try='test -z "$ac_c_werror_flag"
21198 || test ! -s conftest.err'
21199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21200 (eval $ac_try) 2>&5
21201 ac_status=$?
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); }; } &&
21204 { ac_try='test -s conftest.$ac_objext'
21205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21206 (eval $ac_try) 2>&5
21207 ac_status=$?
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); }; }; then
21210 ac_cv_type_socklen_t=yes
21211 else
21212 echo "$as_me: failed program was:" >&5
21213 sed 's/^/| /' conftest.$ac_ext >&5
21215 ac_cv_type_socklen_t=no
21217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21219 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21220 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
21221 if test $ac_cv_type_socklen_t = yes; then
21223 else
21225 cat >>confdefs.h <<\_ACEOF
21226 #define socklen_t int
21227 _ACEOF
21234 for h in `(cd $srcdir;echo Python/thread_*.h)`
21236 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
21237 done
21240 SRCDIRS="Parser Grammar Objects Python Modules Mac"
21241 echo "$as_me:$LINENO: checking for build directories" >&5
21242 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
21243 for dir in $SRCDIRS; do
21244 if test ! -d $dir; then
21245 mkdir $dir
21247 done
21248 echo "$as_me:$LINENO: result: done" >&5
21249 echo "${ECHO_T}done" >&6
21251 # generate output files
21252 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
21254 cat >confcache <<\_ACEOF
21255 # This file is a shell script that caches the results of configure
21256 # tests run on this system so they can be shared between configure
21257 # scripts and configure runs, see configure's option --config-cache.
21258 # It is not useful on other systems. If it contains results you don't
21259 # want to keep, you may remove or edit it.
21261 # config.status only pays attention to the cache file if you give it
21262 # the --recheck option to rerun configure.
21264 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21265 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21266 # following values.
21268 _ACEOF
21270 # The following way of writing the cache mishandles newlines in values,
21271 # but we know of no workaround that is simple, portable, and efficient.
21272 # So, don't put newlines in cache variables' values.
21273 # Ultrix sh set writes to stderr and can't be redirected directly,
21274 # and sets the high bit in the cache file unless we assign to the vars.
21276 (set) 2>&1 |
21277 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21278 *ac_space=\ *)
21279 # `set' does not quote correctly, so add quotes (double-quote
21280 # substitution turns \\\\ into \\, and sed turns \\ into \).
21281 sed -n \
21282 "s/'/'\\\\''/g;
21283 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21286 # `set' quotes correctly as required by POSIX, so do not add quotes.
21287 sed -n \
21288 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21290 esac;
21292 sed '
21293 t clear
21294 : clear
21295 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21296 t end
21297 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21298 : end' >>confcache
21299 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21300 if test -w $cache_file; then
21301 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21302 cat confcache >$cache_file
21303 else
21304 echo "not updating unwritable cache $cache_file"
21307 rm -f confcache
21309 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21310 # Let make expand exec_prefix.
21311 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21313 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21314 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21315 # trailing colons and then remove the whole line if VPATH becomes empty
21316 # (actually we leave an empty line to preserve line numbers).
21317 if test "x$srcdir" = x.; then
21318 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21319 s/:*\$(srcdir):*/:/;
21320 s/:*\${srcdir}:*/:/;
21321 s/:*@srcdir@:*/:/;
21322 s/^\([^=]*=[ ]*\):*/\1/;
21323 s/:*$//;
21324 s/^[^=]*=[ ]*$//;
21328 DEFS=-DHAVE_CONFIG_H
21330 ac_libobjs=
21331 ac_ltlibobjs=
21332 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21333 # 1. Remove the extension, and $U if already installed.
21334 ac_i=`echo "$ac_i" |
21335 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21336 # 2. Add them.
21337 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21338 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21339 done
21340 LIBOBJS=$ac_libobjs
21342 LTLIBOBJS=$ac_ltlibobjs
21346 : ${CONFIG_STATUS=./config.status}
21347 ac_clean_files_save=$ac_clean_files
21348 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21349 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21350 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21351 cat >$CONFIG_STATUS <<_ACEOF
21352 #! $SHELL
21353 # Generated by $as_me.
21354 # Run this file to recreate the current configuration.
21355 # Compiler output produced by configure, useful for debugging
21356 # configure, is in config.log if it exists.
21358 debug=false
21359 ac_cs_recheck=false
21360 ac_cs_silent=false
21361 SHELL=\${CONFIG_SHELL-$SHELL}
21362 _ACEOF
21364 cat >>$CONFIG_STATUS <<\_ACEOF
21365 ## --------------------- ##
21366 ## M4sh Initialization. ##
21367 ## --------------------- ##
21369 # Be Bourne compatible
21370 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21371 emulate sh
21372 NULLCMD=:
21373 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21374 # is contrary to our usage. Disable this feature.
21375 alias -g '${1+"$@"}'='"$@"'
21376 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21377 set -o posix
21379 DUALCASE=1; export DUALCASE # for MKS sh
21381 # Support unset when possible.
21382 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21383 as_unset=unset
21384 else
21385 as_unset=false
21389 # Work around bugs in pre-3.0 UWIN ksh.
21390 $as_unset ENV MAIL MAILPATH
21391 PS1='$ '
21392 PS2='> '
21393 PS4='+ '
21395 # NLS nuisances.
21396 for as_var in \
21397 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21398 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21399 LC_TELEPHONE LC_TIME
21401 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21402 eval $as_var=C; export $as_var
21403 else
21404 $as_unset $as_var
21406 done
21408 # Required to use basename.
21409 if expr a : '\(a\)' >/dev/null 2>&1; then
21410 as_expr=expr
21411 else
21412 as_expr=false
21415 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21416 as_basename=basename
21417 else
21418 as_basename=false
21422 # Name of the executable.
21423 as_me=`$as_basename "$0" ||
21424 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21425 X"$0" : 'X\(//\)$' \| \
21426 X"$0" : 'X\(/\)$' \| \
21427 . : '\(.\)' 2>/dev/null ||
21428 echo X/"$0" |
21429 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21430 /^X\/\(\/\/\)$/{ s//\1/; q; }
21431 /^X\/\(\/\).*/{ s//\1/; q; }
21432 s/.*/./; q'`
21435 # PATH needs CR, and LINENO needs CR and PATH.
21436 # Avoid depending upon Character Ranges.
21437 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21438 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21439 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21440 as_cr_digits='0123456789'
21441 as_cr_alnum=$as_cr_Letters$as_cr_digits
21443 # The user is always right.
21444 if test "${PATH_SEPARATOR+set}" != set; then
21445 echo "#! /bin/sh" >conf$$.sh
21446 echo "exit 0" >>conf$$.sh
21447 chmod +x conf$$.sh
21448 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21449 PATH_SEPARATOR=';'
21450 else
21451 PATH_SEPARATOR=:
21453 rm -f conf$$.sh
21457 as_lineno_1=$LINENO
21458 as_lineno_2=$LINENO
21459 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21460 test "x$as_lineno_1" != "x$as_lineno_2" &&
21461 test "x$as_lineno_3" = "x$as_lineno_2" || {
21462 # Find who we are. Look in the path if we contain no path at all
21463 # relative or not.
21464 case $0 in
21465 *[\\/]* ) as_myself=$0 ;;
21466 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21467 for as_dir in $PATH
21469 IFS=$as_save_IFS
21470 test -z "$as_dir" && as_dir=.
21471 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21472 done
21475 esac
21476 # We did not find ourselves, most probably we were run as `sh COMMAND'
21477 # in which case we are not to be found in the path.
21478 if test "x$as_myself" = x; then
21479 as_myself=$0
21481 if test ! -f "$as_myself"; then
21482 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21483 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21484 { (exit 1); exit 1; }; }
21486 case $CONFIG_SHELL in
21488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21489 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21491 IFS=$as_save_IFS
21492 test -z "$as_dir" && as_dir=.
21493 for as_base in sh bash ksh sh5; do
21494 case $as_dir in
21496 if ("$as_dir/$as_base" -c '
21497 as_lineno_1=$LINENO
21498 as_lineno_2=$LINENO
21499 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21500 test "x$as_lineno_1" != "x$as_lineno_2" &&
21501 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21502 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21503 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21504 CONFIG_SHELL=$as_dir/$as_base
21505 export CONFIG_SHELL
21506 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21507 fi;;
21508 esac
21509 done
21510 done
21512 esac
21514 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21515 # uniformly replaced by the line number. The first 'sed' inserts a
21516 # line-number line before each line; the second 'sed' does the real
21517 # work. The second script uses 'N' to pair each line-number line
21518 # with the numbered line, and appends trailing '-' during
21519 # substitution so that $LINENO is not a special case at line end.
21520 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21521 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21522 sed '=' <$as_myself |
21523 sed '
21525 s,$,-,
21526 : loop
21527 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21528 t loop
21529 s,-$,,
21530 s,^['$as_cr_digits']*\n,,
21531 ' >$as_me.lineno &&
21532 chmod +x $as_me.lineno ||
21533 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21534 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21535 { (exit 1); exit 1; }; }
21537 # Don't try to exec as it changes $[0], causing all sort of problems
21538 # (the dirname of $[0] is not the place where we might find the
21539 # original and so on. Autoconf is especially sensible to this).
21540 . ./$as_me.lineno
21541 # Exit status is that of the last command.
21542 exit
21546 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21547 *c*,-n*) ECHO_N= ECHO_C='
21548 ' ECHO_T=' ' ;;
21549 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21550 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21551 esac
21553 if expr a : '\(a\)' >/dev/null 2>&1; then
21554 as_expr=expr
21555 else
21556 as_expr=false
21559 rm -f conf$$ conf$$.exe conf$$.file
21560 echo >conf$$.file
21561 if ln -s conf$$.file conf$$ 2>/dev/null; then
21562 # We could just check for DJGPP; but this test a) works b) is more generic
21563 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21564 if test -f conf$$.exe; then
21565 # Don't use ln at all; we don't have any links
21566 as_ln_s='cp -p'
21567 else
21568 as_ln_s='ln -s'
21570 elif ln conf$$.file conf$$ 2>/dev/null; then
21571 as_ln_s=ln
21572 else
21573 as_ln_s='cp -p'
21575 rm -f conf$$ conf$$.exe conf$$.file
21577 if mkdir -p . 2>/dev/null; then
21578 as_mkdir_p=:
21579 else
21580 test -d ./-p && rmdir ./-p
21581 as_mkdir_p=false
21584 as_executable_p="test -f"
21586 # Sed expression to map a string onto a valid CPP name.
21587 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21589 # Sed expression to map a string onto a valid variable name.
21590 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21593 # IFS
21594 # We need space, tab and new line, in precisely that order.
21595 as_nl='
21597 IFS=" $as_nl"
21599 # CDPATH.
21600 $as_unset CDPATH
21602 exec 6>&1
21604 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21605 # report actual input values of CONFIG_FILES etc. instead of their
21606 # values after options handling. Logging --version etc. is OK.
21607 exec 5>>config.log
21609 echo
21610 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21611 ## Running $as_me. ##
21612 _ASBOX
21613 } >&5
21614 cat >&5 <<_CSEOF
21616 This file was extended by python $as_me 2.5, which was
21617 generated by GNU Autoconf 2.59. Invocation command line was
21619 CONFIG_FILES = $CONFIG_FILES
21620 CONFIG_HEADERS = $CONFIG_HEADERS
21621 CONFIG_LINKS = $CONFIG_LINKS
21622 CONFIG_COMMANDS = $CONFIG_COMMANDS
21623 $ $0 $@
21625 _CSEOF
21626 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21627 echo >&5
21628 _ACEOF
21630 # Files that config.status was made for.
21631 if test -n "$ac_config_files"; then
21632 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21635 if test -n "$ac_config_headers"; then
21636 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21639 if test -n "$ac_config_links"; then
21640 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21643 if test -n "$ac_config_commands"; then
21644 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21647 cat >>$CONFIG_STATUS <<\_ACEOF
21649 ac_cs_usage="\
21650 \`$as_me' instantiates files from templates according to the
21651 current configuration.
21653 Usage: $0 [OPTIONS] [FILE]...
21655 -h, --help print this help, then exit
21656 -V, --version print version number, then exit
21657 -q, --quiet do not print progress messages
21658 -d, --debug don't remove temporary files
21659 --recheck update $as_me by reconfiguring in the same conditions
21660 --file=FILE[:TEMPLATE]
21661 instantiate the configuration file FILE
21662 --header=FILE[:TEMPLATE]
21663 instantiate the configuration header FILE
21665 Configuration files:
21666 $config_files
21668 Configuration headers:
21669 $config_headers
21671 Report bugs to <bug-autoconf@gnu.org>."
21672 _ACEOF
21674 cat >>$CONFIG_STATUS <<_ACEOF
21675 ac_cs_version="\\
21676 python config.status 2.5
21677 configured by $0, generated by GNU Autoconf 2.59,
21678 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21680 Copyright (C) 2003 Free Software Foundation, Inc.
21681 This config.status script is free software; the Free Software Foundation
21682 gives unlimited permission to copy, distribute and modify it."
21683 srcdir=$srcdir
21684 INSTALL="$INSTALL"
21685 _ACEOF
21687 cat >>$CONFIG_STATUS <<\_ACEOF
21688 # If no file are specified by the user, then we need to provide default
21689 # value. By we need to know if files were specified by the user.
21690 ac_need_defaults=:
21691 while test $# != 0
21693 case $1 in
21694 --*=*)
21695 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21696 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21697 ac_shift=:
21700 ac_option=$1
21701 ac_optarg=$2
21702 ac_shift=shift
21704 *) # This is not an option, so the user has probably given explicit
21705 # arguments.
21706 ac_option=$1
21707 ac_need_defaults=false;;
21708 esac
21710 case $ac_option in
21711 # Handling of the options.
21712 _ACEOF
21713 cat >>$CONFIG_STATUS <<\_ACEOF
21714 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21715 ac_cs_recheck=: ;;
21716 --version | --vers* | -V )
21717 echo "$ac_cs_version"; exit 0 ;;
21718 --he | --h)
21719 # Conflict between --help and --header
21720 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21721 Try \`$0 --help' for more information." >&5
21722 echo "$as_me: error: ambiguous option: $1
21723 Try \`$0 --help' for more information." >&2;}
21724 { (exit 1); exit 1; }; };;
21725 --help | --hel | -h )
21726 echo "$ac_cs_usage"; exit 0 ;;
21727 --debug | --d* | -d )
21728 debug=: ;;
21729 --file | --fil | --fi | --f )
21730 $ac_shift
21731 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21732 ac_need_defaults=false;;
21733 --header | --heade | --head | --hea )
21734 $ac_shift
21735 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21736 ac_need_defaults=false;;
21737 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21738 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21739 ac_cs_silent=: ;;
21741 # This is an error.
21742 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21743 Try \`$0 --help' for more information." >&5
21744 echo "$as_me: error: unrecognized option: $1
21745 Try \`$0 --help' for more information." >&2;}
21746 { (exit 1); exit 1; }; } ;;
21748 *) ac_config_targets="$ac_config_targets $1" ;;
21750 esac
21751 shift
21752 done
21754 ac_configure_extra_args=
21756 if $ac_cs_silent; then
21757 exec 6>/dev/null
21758 ac_configure_extra_args="$ac_configure_extra_args --silent"
21761 _ACEOF
21762 cat >>$CONFIG_STATUS <<_ACEOF
21763 if \$ac_cs_recheck; then
21764 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21765 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21768 _ACEOF
21774 cat >>$CONFIG_STATUS <<\_ACEOF
21775 for ac_config_target in $ac_config_targets
21777 case "$ac_config_target" in
21778 # Handling of arguments.
21779 "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
21780 "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
21781 "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
21782 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21783 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21784 { (exit 1); exit 1; }; };;
21785 esac
21786 done
21788 # If the user did not use the arguments to specify the items to instantiate,
21789 # then the envvar interface is used. Set only those that are not.
21790 # We use the long form for the default assignment because of an extremely
21791 # bizarre bug on SunOS 4.1.3.
21792 if $ac_need_defaults; then
21793 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21794 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21797 # Have a temporary directory for convenience. Make it in the build tree
21798 # simply because there is no reason to put it here, and in addition,
21799 # creating and moving files from /tmp can sometimes cause problems.
21800 # Create a temporary directory, and hook for its removal unless debugging.
21801 $debug ||
21803 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21804 trap '{ (exit 1); exit 1; }' 1 2 13 15
21807 # Create a (secure) tmp directory for tmp files.
21810 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21811 test -n "$tmp" && test -d "$tmp"
21812 } ||
21814 tmp=./confstat$$-$RANDOM
21815 (umask 077 && mkdir $tmp)
21816 } ||
21818 echo "$me: cannot create a temporary directory in ." >&2
21819 { (exit 1); exit 1; }
21822 _ACEOF
21824 cat >>$CONFIG_STATUS <<_ACEOF
21827 # CONFIG_FILES section.
21830 # No need to generate the scripts if there are no CONFIG_FILES.
21831 # This happens for instance when ./config.status config.h
21832 if test -n "\$CONFIG_FILES"; then
21833 # Protect against being on the right side of a sed subst in config.status.
21834 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21835 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21836 s,@SHELL@,$SHELL,;t t
21837 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21838 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21839 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21840 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21841 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21842 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21843 s,@exec_prefix@,$exec_prefix,;t t
21844 s,@prefix@,$prefix,;t t
21845 s,@program_transform_name@,$program_transform_name,;t t
21846 s,@bindir@,$bindir,;t t
21847 s,@sbindir@,$sbindir,;t t
21848 s,@libexecdir@,$libexecdir,;t t
21849 s,@datadir@,$datadir,;t t
21850 s,@sysconfdir@,$sysconfdir,;t t
21851 s,@sharedstatedir@,$sharedstatedir,;t t
21852 s,@localstatedir@,$localstatedir,;t t
21853 s,@libdir@,$libdir,;t t
21854 s,@includedir@,$includedir,;t t
21855 s,@oldincludedir@,$oldincludedir,;t t
21856 s,@infodir@,$infodir,;t t
21857 s,@mandir@,$mandir,;t t
21858 s,@build_alias@,$build_alias,;t t
21859 s,@host_alias@,$host_alias,;t t
21860 s,@target_alias@,$target_alias,;t t
21861 s,@DEFS@,$DEFS,;t t
21862 s,@ECHO_C@,$ECHO_C,;t t
21863 s,@ECHO_N@,$ECHO_N,;t t
21864 s,@ECHO_T@,$ECHO_T,;t t
21865 s,@LIBS@,$LIBS,;t t
21866 s,@VERSION@,$VERSION,;t t
21867 s,@SOVERSION@,$SOVERSION,;t t
21868 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
21869 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
21870 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
21871 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
21872 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
21873 s,@MACHDEP@,$MACHDEP,;t t
21874 s,@SGI_ABI@,$SGI_ABI,;t t
21875 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
21876 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
21877 s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t
21878 s,@CXX@,$CXX,;t t
21879 s,@MAINOBJ@,$MAINOBJ,;t t
21880 s,@EXEEXT@,$EXEEXT,;t t
21881 s,@CC@,$CC,;t t
21882 s,@CFLAGS@,$CFLAGS,;t t
21883 s,@LDFLAGS@,$LDFLAGS,;t t
21884 s,@CPPFLAGS@,$CPPFLAGS,;t t
21885 s,@ac_ct_CC@,$ac_ct_CC,;t t
21886 s,@OBJEXT@,$OBJEXT,;t t
21887 s,@CPP@,$CPP,;t t
21888 s,@EGREP@,$EGREP,;t t
21889 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
21890 s,@LIBRARY@,$LIBRARY,;t t
21891 s,@LDLIBRARY@,$LDLIBRARY,;t t
21892 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
21893 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
21894 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
21895 s,@INSTSONAME@,$INSTSONAME,;t t
21896 s,@RUNSHARED@,$RUNSHARED,;t t
21897 s,@LINKCC@,$LINKCC,;t t
21898 s,@RANLIB@,$RANLIB,;t t
21899 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21900 s,@AR@,$AR,;t t
21901 s,@SVNVERSION@,$SVNVERSION,;t t
21902 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21903 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21904 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21905 s,@LN@,$LN,;t t
21906 s,@OPT@,$OPT,;t t
21907 s,@BASECFLAGS@,$BASECFLAGS,;t t
21908 s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t
21909 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
21910 s,@SO@,$SO,;t t
21911 s,@LDSHARED@,$LDSHARED,;t t
21912 s,@BLDSHARED@,$BLDSHARED,;t t
21913 s,@CCSHARED@,$CCSHARED,;t t
21914 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
21915 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
21916 s,@SHLIBS@,$SHLIBS,;t t
21917 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
21918 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
21919 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
21920 s,@LDLAST@,$LDLAST,;t t
21921 s,@THREADOBJ@,$THREADOBJ,;t t
21922 s,@DLINCLDIR@,$DLINCLDIR,;t t
21923 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
21924 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
21925 s,@TRUE@,$TRUE,;t t
21926 s,@LIBOBJS@,$LIBOBJS,;t t
21927 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
21928 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
21929 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
21930 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
21931 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
21932 s,@LIBM@,$LIBM,;t t
21933 s,@LIBC@,$LIBC,;t t
21934 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
21935 s,@THREADHEADERS@,$THREADHEADERS,;t t
21936 s,@SRCDIRS@,$SRCDIRS,;t t
21937 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21938 CEOF
21940 _ACEOF
21942 cat >>$CONFIG_STATUS <<\_ACEOF
21943 # Split the substitutions into bite-sized pieces for seds with
21944 # small command number limits, like on Digital OSF/1 and HP-UX.
21945 ac_max_sed_lines=48
21946 ac_sed_frag=1 # Number of current file.
21947 ac_beg=1 # First line for current file.
21948 ac_end=$ac_max_sed_lines # Line after last line for current file.
21949 ac_more_lines=:
21950 ac_sed_cmds=
21951 while $ac_more_lines; do
21952 if test $ac_beg -gt 1; then
21953 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21954 else
21955 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21957 if test ! -s $tmp/subs.frag; then
21958 ac_more_lines=false
21959 else
21960 # The purpose of the label and of the branching condition is to
21961 # speed up the sed processing (if there are no `@' at all, there
21962 # is no need to browse any of the substitutions).
21963 # These are the two extra sed commands mentioned above.
21964 (echo ':t
21965 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21966 if test -z "$ac_sed_cmds"; then
21967 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21968 else
21969 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21971 ac_sed_frag=`expr $ac_sed_frag + 1`
21972 ac_beg=$ac_end
21973 ac_end=`expr $ac_end + $ac_max_sed_lines`
21975 done
21976 if test -z "$ac_sed_cmds"; then
21977 ac_sed_cmds=cat
21979 fi # test -n "$CONFIG_FILES"
21981 _ACEOF
21982 cat >>$CONFIG_STATUS <<\_ACEOF
21983 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21984 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21985 case $ac_file in
21986 - | *:- | *:-:* ) # input from stdin
21987 cat >$tmp/stdin
21988 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21989 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21990 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21991 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21992 * ) ac_file_in=$ac_file.in ;;
21993 esac
21995 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21996 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21997 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21998 X"$ac_file" : 'X\(//\)[^/]' \| \
21999 X"$ac_file" : 'X\(//\)$' \| \
22000 X"$ac_file" : 'X\(/\)' \| \
22001 . : '\(.\)' 2>/dev/null ||
22002 echo X"$ac_file" |
22003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22004 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22005 /^X\(\/\/\)$/{ s//\1/; q; }
22006 /^X\(\/\).*/{ s//\1/; q; }
22007 s/.*/./; q'`
22008 { if $as_mkdir_p; then
22009 mkdir -p "$ac_dir"
22010 else
22011 as_dir="$ac_dir"
22012 as_dirs=
22013 while test ! -d "$as_dir"; do
22014 as_dirs="$as_dir $as_dirs"
22015 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22016 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22017 X"$as_dir" : 'X\(//\)[^/]' \| \
22018 X"$as_dir" : 'X\(//\)$' \| \
22019 X"$as_dir" : 'X\(/\)' \| \
22020 . : '\(.\)' 2>/dev/null ||
22021 echo X"$as_dir" |
22022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22023 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22024 /^X\(\/\/\)$/{ s//\1/; q; }
22025 /^X\(\/\).*/{ s//\1/; q; }
22026 s/.*/./; q'`
22027 done
22028 test ! -n "$as_dirs" || mkdir $as_dirs
22029 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22030 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22031 { (exit 1); exit 1; }; }; }
22033 ac_builddir=.
22035 if test "$ac_dir" != .; then
22036 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22037 # A "../" for each directory in $ac_dir_suffix.
22038 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22039 else
22040 ac_dir_suffix= ac_top_builddir=
22043 case $srcdir in
22044 .) # No --srcdir option. We are building in place.
22045 ac_srcdir=.
22046 if test -z "$ac_top_builddir"; then
22047 ac_top_srcdir=.
22048 else
22049 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22050 fi ;;
22051 [\\/]* | ?:[\\/]* ) # Absolute path.
22052 ac_srcdir=$srcdir$ac_dir_suffix;
22053 ac_top_srcdir=$srcdir ;;
22054 *) # Relative path.
22055 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22056 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22057 esac
22059 # Do not use `cd foo && pwd` to compute absolute paths, because
22060 # the directories may not exist.
22061 case `pwd` in
22062 .) ac_abs_builddir="$ac_dir";;
22064 case "$ac_dir" in
22065 .) ac_abs_builddir=`pwd`;;
22066 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22067 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22068 esac;;
22069 esac
22070 case $ac_abs_builddir in
22071 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22073 case ${ac_top_builddir}. in
22074 .) ac_abs_top_builddir=$ac_abs_builddir;;
22075 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22076 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22077 esac;;
22078 esac
22079 case $ac_abs_builddir in
22080 .) ac_abs_srcdir=$ac_srcdir;;
22082 case $ac_srcdir in
22083 .) ac_abs_srcdir=$ac_abs_builddir;;
22084 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22085 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22086 esac;;
22087 esac
22088 case $ac_abs_builddir in
22089 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22091 case $ac_top_srcdir in
22092 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22093 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22094 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22095 esac;;
22096 esac
22099 case $INSTALL in
22100 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22101 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22102 esac
22104 if test x"$ac_file" != x-; then
22105 { echo "$as_me:$LINENO: creating $ac_file" >&5
22106 echo "$as_me: creating $ac_file" >&6;}
22107 rm -f "$ac_file"
22109 # Let's still pretend it is `configure' which instantiates (i.e., don't
22110 # use $as_me), people would be surprised to read:
22111 # /* config.h. Generated by config.status. */
22112 if test x"$ac_file" = x-; then
22113 configure_input=
22114 else
22115 configure_input="$ac_file. "
22117 configure_input=$configure_input"Generated from `echo $ac_file_in |
22118 sed 's,.*/,,'` by configure."
22120 # First look for the input files in the build tree, otherwise in the
22121 # src tree.
22122 ac_file_inputs=`IFS=:
22123 for f in $ac_file_in; do
22124 case $f in
22125 -) echo $tmp/stdin ;;
22126 [\\/$]*)
22127 # Absolute (can't be DOS-style, as IFS=:)
22128 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22129 echo "$as_me: error: cannot find input file: $f" >&2;}
22130 { (exit 1); exit 1; }; }
22131 echo "$f";;
22132 *) # Relative
22133 if test -f "$f"; then
22134 # Build tree
22135 echo "$f"
22136 elif test -f "$srcdir/$f"; then
22137 # Source tree
22138 echo "$srcdir/$f"
22139 else
22140 # /dev/null tree
22141 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22142 echo "$as_me: error: cannot find input file: $f" >&2;}
22143 { (exit 1); exit 1; }; }
22144 fi;;
22145 esac
22146 done` || { (exit 1); exit 1; }
22147 _ACEOF
22148 cat >>$CONFIG_STATUS <<_ACEOF
22149 sed "$ac_vpsub
22150 $extrasub
22151 _ACEOF
22152 cat >>$CONFIG_STATUS <<\_ACEOF
22154 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22155 s,@configure_input@,$configure_input,;t t
22156 s,@srcdir@,$ac_srcdir,;t t
22157 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22158 s,@top_srcdir@,$ac_top_srcdir,;t t
22159 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22160 s,@builddir@,$ac_builddir,;t t
22161 s,@abs_builddir@,$ac_abs_builddir,;t t
22162 s,@top_builddir@,$ac_top_builddir,;t t
22163 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22164 s,@INSTALL@,$ac_INSTALL,;t t
22165 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22166 rm -f $tmp/stdin
22167 if test x"$ac_file" != x-; then
22168 mv $tmp/out $ac_file
22169 else
22170 cat $tmp/out
22171 rm -f $tmp/out
22174 done
22175 _ACEOF
22176 cat >>$CONFIG_STATUS <<\_ACEOF
22179 # CONFIG_HEADER section.
22182 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22183 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22185 # ac_d sets the value in "#define NAME VALUE" lines.
22186 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22187 ac_dB='[ ].*$,\1#\2'
22188 ac_dC=' '
22189 ac_dD=',;t'
22190 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22191 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22192 ac_uB='$,\1#\2define\3'
22193 ac_uC=' '
22194 ac_uD=',;t'
22196 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22197 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22198 case $ac_file in
22199 - | *:- | *:-:* ) # input from stdin
22200 cat >$tmp/stdin
22201 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22202 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22203 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22204 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22205 * ) ac_file_in=$ac_file.in ;;
22206 esac
22208 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22209 echo "$as_me: creating $ac_file" >&6;}
22211 # First look for the input files in the build tree, otherwise in the
22212 # src tree.
22213 ac_file_inputs=`IFS=:
22214 for f in $ac_file_in; do
22215 case $f in
22216 -) echo $tmp/stdin ;;
22217 [\\/$]*)
22218 # Absolute (can't be DOS-style, as IFS=:)
22219 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22220 echo "$as_me: error: cannot find input file: $f" >&2;}
22221 { (exit 1); exit 1; }; }
22222 # Do quote $f, to prevent DOS paths from being IFS'd.
22223 echo "$f";;
22224 *) # Relative
22225 if test -f "$f"; then
22226 # Build tree
22227 echo "$f"
22228 elif test -f "$srcdir/$f"; then
22229 # Source tree
22230 echo "$srcdir/$f"
22231 else
22232 # /dev/null tree
22233 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22234 echo "$as_me: error: cannot find input file: $f" >&2;}
22235 { (exit 1); exit 1; }; }
22236 fi;;
22237 esac
22238 done` || { (exit 1); exit 1; }
22239 # Remove the trailing spaces.
22240 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22242 _ACEOF
22244 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22245 # `conftest.undefs', that substitutes the proper values into
22246 # config.h.in to produce config.h. The first handles `#define'
22247 # templates, and the second `#undef' templates.
22248 # And first: Protect against being on the right side of a sed subst in
22249 # config.status. Protect against being in an unquoted here document
22250 # in config.status.
22251 rm -f conftest.defines conftest.undefs
22252 # Using a here document instead of a string reduces the quoting nightmare.
22253 # Putting comments in sed scripts is not portable.
22255 # `end' is used to avoid that the second main sed command (meant for
22256 # 0-ary CPP macros) applies to n-ary macro definitions.
22257 # See the Autoconf documentation for `clear'.
22258 cat >confdef2sed.sed <<\_ACEOF
22259 s/[\\&,]/\\&/g
22260 s,[\\$`],\\&,g
22261 t clear
22262 : clear
22263 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22264 t end
22265 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22266 : end
22267 _ACEOF
22268 # If some macros were called several times there might be several times
22269 # the same #defines, which is useless. Nevertheless, we may not want to
22270 # sort them, since we want the *last* AC-DEFINE to be honored.
22271 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22272 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22273 rm -f confdef2sed.sed
22275 # This sed command replaces #undef with comments. This is necessary, for
22276 # example, in the case of _POSIX_SOURCE, which is predefined and required
22277 # on some systems where configure will not decide to define it.
22278 cat >>conftest.undefs <<\_ACEOF
22279 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22280 _ACEOF
22282 # Break up conftest.defines because some shells have a limit on the size
22283 # of here documents, and old seds have small limits too (100 cmds).
22284 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22285 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22286 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22287 echo ' :' >>$CONFIG_STATUS
22288 rm -f conftest.tail
22289 while grep . conftest.defines >/dev/null
22291 # Write a limited-size here document to $tmp/defines.sed.
22292 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22293 # Speed up: don't consider the non `#define' lines.
22294 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22295 # Work around the forget-to-reset-the-flag bug.
22296 echo 't clr' >>$CONFIG_STATUS
22297 echo ': clr' >>$CONFIG_STATUS
22298 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22299 echo 'CEOF
22300 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22301 rm -f $tmp/in
22302 mv $tmp/out $tmp/in
22303 ' >>$CONFIG_STATUS
22304 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22305 rm -f conftest.defines
22306 mv conftest.tail conftest.defines
22307 done
22308 rm -f conftest.defines
22309 echo ' fi # grep' >>$CONFIG_STATUS
22310 echo >>$CONFIG_STATUS
22312 # Break up conftest.undefs because some shells have a limit on the size
22313 # of here documents, and old seds have small limits too (100 cmds).
22314 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22315 rm -f conftest.tail
22316 while grep . conftest.undefs >/dev/null
22318 # Write a limited-size here document to $tmp/undefs.sed.
22319 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22320 # Speed up: don't consider the non `#undef'
22321 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22322 # Work around the forget-to-reset-the-flag bug.
22323 echo 't clr' >>$CONFIG_STATUS
22324 echo ': clr' >>$CONFIG_STATUS
22325 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22326 echo 'CEOF
22327 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22328 rm -f $tmp/in
22329 mv $tmp/out $tmp/in
22330 ' >>$CONFIG_STATUS
22331 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22332 rm -f conftest.undefs
22333 mv conftest.tail conftest.undefs
22334 done
22335 rm -f conftest.undefs
22337 cat >>$CONFIG_STATUS <<\_ACEOF
22338 # Let's still pretend it is `configure' which instantiates (i.e., don't
22339 # use $as_me), people would be surprised to read:
22340 # /* config.h. Generated by config.status. */
22341 if test x"$ac_file" = x-; then
22342 echo "/* Generated by configure. */" >$tmp/config.h
22343 else
22344 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22346 cat $tmp/in >>$tmp/config.h
22347 rm -f $tmp/in
22348 if test x"$ac_file" != x-; then
22349 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22350 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22351 echo "$as_me: $ac_file is unchanged" >&6;}
22352 else
22353 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22354 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22355 X"$ac_file" : 'X\(//\)[^/]' \| \
22356 X"$ac_file" : 'X\(//\)$' \| \
22357 X"$ac_file" : 'X\(/\)' \| \
22358 . : '\(.\)' 2>/dev/null ||
22359 echo X"$ac_file" |
22360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22361 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22362 /^X\(\/\/\)$/{ s//\1/; q; }
22363 /^X\(\/\).*/{ s//\1/; q; }
22364 s/.*/./; q'`
22365 { if $as_mkdir_p; then
22366 mkdir -p "$ac_dir"
22367 else
22368 as_dir="$ac_dir"
22369 as_dirs=
22370 while test ! -d "$as_dir"; do
22371 as_dirs="$as_dir $as_dirs"
22372 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22373 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22374 X"$as_dir" : 'X\(//\)[^/]' \| \
22375 X"$as_dir" : 'X\(//\)$' \| \
22376 X"$as_dir" : 'X\(/\)' \| \
22377 . : '\(.\)' 2>/dev/null ||
22378 echo X"$as_dir" |
22379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22380 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22381 /^X\(\/\/\)$/{ s//\1/; q; }
22382 /^X\(\/\).*/{ s//\1/; q; }
22383 s/.*/./; q'`
22384 done
22385 test ! -n "$as_dirs" || mkdir $as_dirs
22386 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22387 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22388 { (exit 1); exit 1; }; }; }
22390 rm -f $ac_file
22391 mv $tmp/config.h $ac_file
22393 else
22394 cat $tmp/config.h
22395 rm -f $tmp/config.h
22397 done
22398 _ACEOF
22400 cat >>$CONFIG_STATUS <<\_ACEOF
22402 { (exit 0); exit 0; }
22403 _ACEOF
22404 chmod +x $CONFIG_STATUS
22405 ac_clean_files=$ac_clean_files_save
22408 # configure is writing to config.log, and then calls config.status.
22409 # config.status does its own redirection, appending to config.log.
22410 # Unfortunately, on DOS this fails, as config.log is still kept open
22411 # by configure, so config.status won't be able to write to it; its
22412 # output is simply discarded. So we exec the FD to /dev/null,
22413 # effectively closing config.log, so it can be properly (re)opened and
22414 # appended to by config.status. When coming back to configure, we
22415 # need to make the FD available again.
22416 if test "$no_create" != yes; then
22417 ac_cs_success=:
22418 ac_config_status_args=
22419 test "$silent" = yes &&
22420 ac_config_status_args="$ac_config_status_args --quiet"
22421 exec 5>/dev/null
22422 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22423 exec 5>>config.log
22424 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22425 # would make configure fail if this is the last instruction.
22426 $ac_cs_success || { (exit 1); exit 1; }
22430 echo "creating Setup"
22431 if test ! -f Modules/Setup
22432 then
22433 cp $srcdir/Modules/Setup.dist Modules/Setup
22436 echo "creating Setup.local"
22437 if test ! -f Modules/Setup.local
22438 then
22439 echo "# Edit this file for local setup changes" >Modules/Setup.local
22442 echo "creating Makefile"
22443 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
22444 -s Modules Modules/Setup.config \
22445 Modules/Setup.local Modules/Setup
22446 mv config.c Modules