pasted set_lk_detect line in wrong spot in previous commit. fixed. passes tests...
[python.git] / configure
blob1b94a914445c74e465e1485afacb008497867790
1 #! /bin/sh
2 # From configure.in Revision: 46700 .
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 UNIVERSALSDK PYTHONFRAMEWORK PYTHONFRAMEWORKDIR PYTHONFRAMEWORKPREFIX PYTHONFRAMEWORKINSTALLDIR FRAMEWORKINSTALLFIRST FRAMEWORKINSTALLLAST FRAMEWORKALTINSTALLFIRST FRAMEWORKALTINSTALLLAST FRAMEWORKUNIXTOOLSPREFIX MACHDEP SGI_ABI EXTRAPLATDIR EXTRAMACHDEPPATH CONFIGURE_MACOSX_DEPLOYMENT_TARGET EXPORT_MACOSX_DEPLOYMENT_TARGET CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX MAINCC 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-universalsdk[SDKDIR]
849 Build agains Mac OS X 10.4u SDK (ppc/i386)
850 --enable-framework[=INSTALLDIR]
851 Build (MacOSX|Darwin) framework
852 --enable-shared disable/enable building shared python library
853 --enable-profiling enable C-level code profiling
854 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
855 --enable-ipv6 Enable ipv6 (with ipv4) support
856 --disable-ipv6 Disable ipv6 support
857 --enable-unicode[=ucs[24]]
858 Enable Unicode strings (default is yes)
860 Optional Packages:
861 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
862 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
863 --without-gcc never use gcc
864 --with-cxx-main=<compiler>
865 compile main() and link python executable with C++
866 compiler
867 --with-suffix=.exe set executable suffix
868 --with-pydebug build with Py_DEBUG defined
869 --with-libs='lib1 ...' link against additional libs
870 --with-system-ffi build _ctypes module using an installed ffi library
871 --with-signal-module disable/enable signal module
872 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
873 --with(out)-threads[=DIRECTORY]
874 disable/enable thread support
875 --with(out)-thread[=DIRECTORY]
876 deprecated; use --with(out)-threads
877 --with-pth use GNU pth threading libraries
878 --with(out)-doc-strings disable/enable documentation strings
879 --with(out)-tsc enable/disable timestamp counter profile
880 --with(out)-pymalloc disable/enable specialized mallocs
881 --with-wctype-functions use wctype.h functions
882 --with-fpectl enable SIGFPE catching
883 --with-libm=STRING math library
884 --with-libc=STRING C library
886 Some influential environment variables:
887 CC C compiler command
888 CFLAGS C compiler flags
889 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
890 nonstandard directory <lib dir>
891 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
892 headers in a nonstandard directory <include dir>
893 CPP C preprocessor
895 Use these variables to override the choices made by `configure' or to help
896 it to find libraries and programs with nonstandard names/locations.
898 Report bugs to <http://www.python.org/python-bugs>.
899 _ACEOF
902 if test "$ac_init_help" = "recursive"; then
903 # If there are subdirs, report their specific --help.
904 ac_popdir=`pwd`
905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 test -d $ac_dir || continue
907 ac_builddir=.
909 if test "$ac_dir" != .; then
910 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
911 # A "../" for each directory in $ac_dir_suffix.
912 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
913 else
914 ac_dir_suffix= ac_top_builddir=
917 case $srcdir in
918 .) # No --srcdir option. We are building in place.
919 ac_srcdir=.
920 if test -z "$ac_top_builddir"; then
921 ac_top_srcdir=.
922 else
923 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
924 fi ;;
925 [\\/]* | ?:[\\/]* ) # Absolute path.
926 ac_srcdir=$srcdir$ac_dir_suffix;
927 ac_top_srcdir=$srcdir ;;
928 *) # Relative path.
929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
931 esac
933 # Do not use `cd foo && pwd` to compute absolute paths, because
934 # the directories may not exist.
935 case `pwd` in
936 .) ac_abs_builddir="$ac_dir";;
938 case "$ac_dir" in
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
942 esac;;
943 esac
944 case $ac_abs_builddir in
945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
947 case ${ac_top_builddir}. in
948 .) ac_abs_top_builddir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
951 esac;;
952 esac
953 case $ac_abs_builddir in
954 .) ac_abs_srcdir=$ac_srcdir;;
956 case $ac_srcdir in
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
960 esac;;
961 esac
962 case $ac_abs_builddir in
963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
965 case $ac_top_srcdir in
966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
969 esac;;
970 esac
972 cd $ac_dir
973 # Check for guested configure; otherwise get Cygnus style configure.
974 if test -f $ac_srcdir/configure.gnu; then
975 echo
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
978 echo
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
981 test -f $ac_srcdir/configure.in; then
982 echo
983 $ac_configure --help
984 else
985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987 cd $ac_popdir
988 done
991 test -n "$ac_init_help" && exit 0
992 if $ac_init_version; then
993 cat <<\_ACEOF
994 python configure 2.5
995 generated by GNU Autoconf 2.59
997 Copyright (C) 2003 Free Software Foundation, Inc.
998 This configure script is free software; the Free Software Foundation
999 gives unlimited permission to copy, distribute and modify it.
1000 _ACEOF
1001 exit 0
1003 exec 5>config.log
1004 cat >&5 <<_ACEOF
1005 This file contains any messages produced by compilers while
1006 running configure, to aid debugging if configure makes a mistake.
1008 It was created by python $as_me 2.5, which was
1009 generated by GNU Autoconf 2.59. Invocation command line was
1011 $ $0 $@
1013 _ACEOF
1015 cat <<_ASUNAME
1016 ## --------- ##
1017 ## Platform. ##
1018 ## --------- ##
1020 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1021 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1022 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1023 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1024 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1026 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1027 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1029 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1030 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1031 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1032 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1033 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1034 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1035 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1037 _ASUNAME
1039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1040 for as_dir in $PATH
1042 IFS=$as_save_IFS
1043 test -z "$as_dir" && as_dir=.
1044 echo "PATH: $as_dir"
1045 done
1047 } >&5
1049 cat >&5 <<_ACEOF
1052 ## ----------- ##
1053 ## Core tests. ##
1054 ## ----------- ##
1056 _ACEOF
1059 # Keep a trace of the command line.
1060 # Strip out --no-create and --no-recursion so they do not pile up.
1061 # Strip out --silent because we don't want to record it for future runs.
1062 # Also quote any args containing shell meta-characters.
1063 # Make two passes to allow for proper duplicate-argument suppression.
1064 ac_configure_args=
1065 ac_configure_args0=
1066 ac_configure_args1=
1067 ac_sep=
1068 ac_must_keep_next=false
1069 for ac_pass in 1 2
1071 for ac_arg
1073 case $ac_arg in
1074 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1077 continue ;;
1078 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1079 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1080 esac
1081 case $ac_pass in
1082 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1084 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1085 if test $ac_must_keep_next = true; then
1086 ac_must_keep_next=false # Got value, back to normal.
1087 else
1088 case $ac_arg in
1089 *=* | --config-cache | -C | -disable-* | --disable-* \
1090 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1091 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1092 | -with-* | --with-* | -without-* | --without-* | --x)
1093 case "$ac_configure_args0 " in
1094 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1095 esac
1097 -* ) ac_must_keep_next=true ;;
1098 esac
1100 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1101 # Get rid of the leading space.
1102 ac_sep=" "
1104 esac
1105 done
1106 done
1107 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1108 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1110 # When interrupted or exit'd, cleanup temporary files, and complete
1111 # config.log. We remove comments because anyway the quotes in there
1112 # would cause problems or look ugly.
1113 # WARNING: Be sure not to use single quotes in there, as some shells,
1114 # such as our DU 5.0 friend, will then `close' the trap.
1115 trap 'exit_status=$?
1116 # Save into config.log some information that might help in debugging.
1118 echo
1120 cat <<\_ASBOX
1121 ## ---------------- ##
1122 ## Cache variables. ##
1123 ## ---------------- ##
1124 _ASBOX
1125 echo
1126 # The following way of writing the cache mishandles newlines in values,
1128 (set) 2>&1 |
1129 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1130 *ac_space=\ *)
1131 sed -n \
1132 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1136 sed -n \
1137 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139 esac;
1141 echo
1143 cat <<\_ASBOX
1144 ## ----------------- ##
1145 ## Output variables. ##
1146 ## ----------------- ##
1147 _ASBOX
1148 echo
1149 for ac_var in $ac_subst_vars
1151 eval ac_val=$`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1153 done | sort
1154 echo
1156 if test -n "$ac_subst_files"; then
1157 cat <<\_ASBOX
1158 ## ------------- ##
1159 ## Output files. ##
1160 ## ------------- ##
1161 _ASBOX
1162 echo
1163 for ac_var in $ac_subst_files
1165 eval ac_val=$`echo $ac_var`
1166 echo "$ac_var='"'"'$ac_val'"'"'"
1167 done | sort
1168 echo
1171 if test -s confdefs.h; then
1172 cat <<\_ASBOX
1173 ## ----------- ##
1174 ## confdefs.h. ##
1175 ## ----------- ##
1176 _ASBOX
1177 echo
1178 sed "/^$/d" confdefs.h | sort
1179 echo
1181 test "$ac_signal" != 0 &&
1182 echo "$as_me: caught signal $ac_signal"
1183 echo "$as_me: exit $exit_status"
1184 } >&5
1185 rm -f core *.core &&
1186 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1187 exit $exit_status
1189 for ac_signal in 1 2 13 15; do
1190 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1191 done
1192 ac_signal=0
1194 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1195 rm -rf conftest* confdefs.h
1196 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1197 echo >confdefs.h
1199 # Predefined preprocessor variables.
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_NAME "$PACKAGE_NAME"
1203 _ACEOF
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1208 _ACEOF
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1213 _ACEOF
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_STRING "$PACKAGE_STRING"
1218 _ACEOF
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1223 _ACEOF
1226 # Let the site file select an alternate cache file if it wants to.
1227 # Prefer explicitly selected file to automatically selected ones.
1228 if test -z "$CONFIG_SITE"; then
1229 if test "x$prefix" != xNONE; then
1230 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1231 else
1232 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1235 for ac_site_file in $CONFIG_SITE; do
1236 if test -r "$ac_site_file"; then
1237 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1238 echo "$as_me: loading site script $ac_site_file" >&6;}
1239 sed 's/^/| /' "$ac_site_file" >&5
1240 . "$ac_site_file"
1242 done
1244 if test -r "$cache_file"; then
1245 # Some versions of bash will fail to source /dev/null (special
1246 # files actually), so we avoid doing that.
1247 if test -f "$cache_file"; then
1248 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1249 echo "$as_me: loading cache $cache_file" >&6;}
1250 case $cache_file in
1251 [\\/]* | ?:[\\/]* ) . $cache_file;;
1252 *) . ./$cache_file;;
1253 esac
1255 else
1256 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1257 echo "$as_me: creating cache $cache_file" >&6;}
1258 >$cache_file
1261 # Check that the precious variables saved in the cache have kept the same
1262 # value.
1263 ac_cache_corrupted=false
1264 for ac_var in `(set) 2>&1 |
1265 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1266 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1267 eval ac_new_set=\$ac_env_${ac_var}_set
1268 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1269 eval ac_new_val="\$ac_env_${ac_var}_value"
1270 case $ac_old_set,$ac_new_set in
1271 set,)
1272 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1274 ac_cache_corrupted=: ;;
1275 ,set)
1276 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1277 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1278 ac_cache_corrupted=: ;;
1279 ,);;
1281 if test "x$ac_old_val" != "x$ac_new_val"; then
1282 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1283 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1284 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1285 echo "$as_me: former value: $ac_old_val" >&2;}
1286 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1287 echo "$as_me: current value: $ac_new_val" >&2;}
1288 ac_cache_corrupted=:
1289 fi;;
1290 esac
1291 # Pass precious variables to config.status.
1292 if test "$ac_new_set" = set; then
1293 case $ac_new_val in
1294 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1296 *) ac_arg=$ac_var=$ac_new_val ;;
1297 esac
1298 case " $ac_configure_args " in
1299 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1300 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1301 esac
1303 done
1304 if $ac_cache_corrupted; then
1305 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1306 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1307 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1308 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1309 { (exit 1); exit 1; }; }
1312 ac_ext=c
1313 ac_cpp='$CPP $CPPFLAGS'
1314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1345 ac_config_headers="$ac_config_headers pyconfig.h"
1353 # We don't use PACKAGE_ variables, and they cause conflicts
1354 # with other autoconf-based packages that include Python.h
1355 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1356 rm confdefs.h
1357 mv confdefs.h.new confdefs.h
1360 VERSION=2.5
1363 SOVERSION=1.0
1365 # The later defininition of _XOPEN_SOURCE disables certain features
1366 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1368 cat >>confdefs.h <<\_ACEOF
1369 #define _GNU_SOURCE 1
1370 _ACEOF
1373 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1374 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1375 # them.
1377 cat >>confdefs.h <<\_ACEOF
1378 #define _NETBSD_SOURCE 1
1379 _ACEOF
1382 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1383 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1384 # them.
1386 cat >>confdefs.h <<\_ACEOF
1387 #define __BSD_VISIBLE 1
1388 _ACEOF
1391 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1392 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1394 cat >>confdefs.h <<\_ACEOF
1395 #define _BSD_TYPES 1
1396 _ACEOF
1399 define_xopen_source=yes
1401 # Arguments passed to configure.
1403 CONFIG_ARGS="$ac_configure_args"
1405 # Check whether --enable-universalsdk or --disable-universalsdk was given.
1406 if test "${enable_universalsdk+set}" = set; then
1407 enableval="$enable_universalsdk"
1409 case $enableval in
1410 yes)
1411 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1413 esac
1414 case $enableval in
1416 UNIVERSALSDK=
1417 enable_universalsdk=
1420 UNIVERSALSDK=$enableval
1422 esac
1424 else
1426 UNIVERSALSDK=
1427 enable_universalsdk=
1432 # Check whether --enable-framework or --disable-framework was given.
1433 if test "${enable_framework+set}" = set; then
1434 enableval="$enable_framework"
1436 case $enableval in
1437 yes)
1438 enableval=/Library/Frameworks
1439 esac
1440 case $enableval in
1442 PYTHONFRAMEWORK=
1443 PYTHONFRAMEWORKDIR=no-framework
1444 PYTHONFRAMEWORKPREFIX=
1445 PYTHONFRAMEWORKINSTALLDIR=
1446 FRAMEWORKINSTALLFIRST=
1447 FRAMEWORKINSTALLLAST=
1448 FRAMEWORKALTINSTALLFIRST=
1449 FRAMEWORKALTINSTALLLAST=
1450 if test "x${prefix}" = "xNONE"; then
1451 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1452 else
1453 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1455 enable_framework=
1458 PYTHONFRAMEWORK=Python
1459 PYTHONFRAMEWORKDIR=Python.framework
1460 PYTHONFRAMEWORKPREFIX=$enableval
1461 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1462 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1463 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1464 FRAMEWORKALTINSTALLFIRST="${FRAMEWORKINSTALLFIRST} bininstall maninstall"
1465 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1466 if test "x${prefix}" = "xNONE" ; then
1467 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1468 else
1469 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1471 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1473 # Add makefiles for Mac specific code to the list of output
1474 # files:
1475 ac_config_files="$ac_config_files Mac/Makefile"
1477 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
1479 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
1481 esac
1483 else
1485 PYTHONFRAMEWORK=
1486 PYTHONFRAMEWORKDIR=no-framework
1487 PYTHONFRAMEWORKPREFIX=
1488 PYTHONFRAMEWORKINSTALLDIR=
1489 FRAMEWORKINSTALLFIRST=
1490 FRAMEWORKINSTALLLAST=
1491 FRAMEWORKALTINSTALLFIRST=
1492 FRAMEWORKALTINSTALLLAST=
1493 if test "x${prefix}" = "xNONE" ; then
1494 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1495 else
1496 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1498 enable_framework=
1511 ##AC_ARG_WITH(dyld,
1512 ## AC_HELP_STRING(--with-dyld,
1513 ## Use (OpenStep|Rhapsody) dynamic linker))
1515 # Set name for machine-dependent library files
1517 echo "$as_me:$LINENO: checking MACHDEP" >&5
1518 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1519 if test -z "$MACHDEP"
1520 then
1521 ac_sys_system=`uname -s`
1522 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1523 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1524 ac_sys_release=`uname -v`
1525 else
1526 ac_sys_release=`uname -r`
1528 ac_md_system=`echo $ac_sys_system |
1529 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1530 ac_md_release=`echo $ac_sys_release |
1531 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
1532 MACHDEP="$ac_md_system$ac_md_release"
1534 case $MACHDEP in
1535 cygwin*) MACHDEP="cygwin";;
1536 darwin*) MACHDEP="darwin";;
1537 atheos*) MACHDEP="atheos";;
1538 irix646) MACHDEP="irix6";;
1539 '') MACHDEP="unknown";;
1540 esac
1543 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1544 # disable features if it is defined, without any means to access these
1545 # features as extensions. For these systems, we skip the definition of
1546 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1547 # some feature, make sure there is no alternative way to access this
1548 # feature. Also, when using wildcards, make sure you have verified the
1549 # need for not defining _XOPEN_SOURCE on all systems matching the
1550 # wildcard, and that the wildcard does not include future systems
1551 # (which may remove their limitations).
1552 case $ac_sys_system/$ac_sys_release in
1553 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
1554 # even though select is a POSIX function. Reported by J. Ribbens.
1555 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
1556 OpenBSD/2.* | OpenBSD/3.[0123456789])
1557 define_xopen_source=no;;
1558 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
1559 # of union __?sigval. Reported by Stuart Bishop.
1560 SunOS/5.6)
1561 define_xopen_source=no;;
1562 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
1563 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
1564 # Reconfirmed for 7.1.4 by Martin v. Loewis.
1565 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
1566 define_xopen_source=no;;
1567 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
1568 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
1569 SCO_SV/3.2)
1570 define_xopen_source=no;;
1571 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
1572 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
1573 # this is fixed in 10.3, which identifies itself as Darwin/7.*
1574 # This should hopefully be fixed in FreeBSD 4.9
1575 FreeBSD/4.8* | Darwin/6* )
1576 define_xopen_source=no;;
1577 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
1578 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
1579 # or has another value. By not (re)defining it, the defaults come in place.
1580 AIX/4)
1581 define_xopen_source=no;;
1582 AIX/5)
1583 if test `uname -r` -eq 1; then
1584 define_xopen_source=no
1587 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1588 # disables platform specific features beyond repair.
1589 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1590 # has no effect, don't bother defineing them
1591 Darwin/[78].*)
1592 define_xopen_source=no
1595 esac
1597 if test $define_xopen_source = yes
1598 then
1599 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
1600 # defined precisely as g++ defines it
1601 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
1602 # compiler
1603 case $ac_sys_system/$ac_sys_release in
1604 SunOS/5.8|SunOS/5.9|SunOS/5.10)
1606 cat >>confdefs.h <<\_ACEOF
1607 #define _XOPEN_SOURCE 500
1608 _ACEOF
1613 cat >>confdefs.h <<\_ACEOF
1614 #define _XOPEN_SOURCE 600
1615 _ACEOF
1618 esac
1620 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1621 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1622 # several APIs are not declared. Since this is also needed in some
1623 # cases for HP-UX, we define it globally.
1624 # except for Solaris 10, where it must not be defined,
1625 # as it implies XPG4.2
1626 case $ac_sys_system/$ac_sys_release in
1627 SunOS/5.10)
1631 cat >>confdefs.h <<\_ACEOF
1632 #define _XOPEN_SOURCE_EXTENDED 1
1633 _ACEOF
1636 esac
1639 cat >>confdefs.h <<\_ACEOF
1640 #define _POSIX_C_SOURCE 200112L
1641 _ACEOF
1647 # SGI compilers allow the specification of the both the ABI and the
1648 # ISA on the command line. Depending on the values of these switches,
1649 # different and often incompatable code will be generated.
1651 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1652 # thus supply support for various ABI/ISA combinations. The MACHDEP
1653 # variable is also adjusted.
1656 if test ! -z "$SGI_ABI"
1657 then
1658 CC="cc $SGI_ABI"
1659 LDFLAGS="$SGI_ABI $LDFLAGS"
1660 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1662 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1663 echo "${ECHO_T}$MACHDEP" >&6
1665 # And add extra plat-mac for darwin
1668 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1669 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1670 if test -z "$EXTRAPLATDIR"
1671 then
1672 case $MACHDEP in
1673 darwin)
1674 EXTRAPLATDIR="\$(PLATMACDIRS)"
1675 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
1678 EXTRAPLATDIR=""
1679 EXTRAMACHDEPPATH=""
1681 esac
1683 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1684 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1686 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
1687 # it may influence the way we can build extensions, so distutils
1688 # needs to check it
1691 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
1692 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
1694 # checks for alternative programs
1696 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1697 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1698 # just to get things to compile and link. Users are free to override OPT
1699 # when running configure or make. The build should not break if they do.
1700 # BASECFLAGS should generally not be messed with, however.
1702 # XXX shouldn't some/most/all of this code be merged with the stuff later
1703 # on that fiddles with OPT and BASECFLAGS?
1704 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1705 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1707 # Check whether --with-gcc or --without-gcc was given.
1708 if test "${with_gcc+set}" = set; then
1709 withval="$with_gcc"
1711 case $withval in
1712 no) CC=cc
1713 without_gcc=yes;;
1714 yes) CC=gcc
1715 without_gcc=no;;
1716 *) CC=$withval
1717 without_gcc=$withval;;
1718 esac
1719 else
1721 case $ac_sys_system in
1722 AIX*) CC=cc_r
1723 without_gcc=;;
1724 BeOS*)
1725 case $BE_HOST_CPU in
1726 ppc)
1727 CC=mwcc
1728 without_gcc=yes
1729 BASECFLAGS="$BASECFLAGS -export pragma"
1730 OPT="$OPT -O"
1731 LDFLAGS="$LDFLAGS -nodup"
1733 x86)
1734 CC=gcc
1735 without_gcc=no
1736 OPT="$OPT -O"
1739 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1740 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1741 { (exit 1); exit 1; }; }
1743 esac
1744 AR="\$(srcdir)/Modules/ar_beos"
1745 RANLIB=:
1747 Monterey*)
1748 RANLIB=:
1749 without_gcc=;;
1750 *) without_gcc=no;;
1751 esac
1753 echo "$as_me:$LINENO: result: $without_gcc" >&5
1754 echo "${ECHO_T}$without_gcc" >&6
1756 # If the user switches compilers, we can't believe the cache
1757 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1758 then
1759 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1760 (it is also a good idea to do 'make clean' before compiling)" >&5
1761 echo "$as_me: error: cached CC is different -- throw away $cache_file
1762 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1763 { (exit 1); exit 1; }; }
1766 ac_ext=c
1767 ac_cpp='$CPP $CPPFLAGS'
1768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1771 if test -n "$ac_tool_prefix"; then
1772 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1773 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1774 echo "$as_me:$LINENO: checking for $ac_word" >&5
1775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1776 if test "${ac_cv_prog_CC+set}" = set; then
1777 echo $ECHO_N "(cached) $ECHO_C" >&6
1778 else
1779 if test -n "$CC"; then
1780 ac_cv_prog_CC="$CC" # Let the user override the test.
1781 else
1782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1783 for as_dir in $PATH
1785 IFS=$as_save_IFS
1786 test -z "$as_dir" && as_dir=.
1787 for ac_exec_ext in '' $ac_executable_extensions; do
1788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1789 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1791 break 2
1793 done
1794 done
1798 CC=$ac_cv_prog_CC
1799 if test -n "$CC"; then
1800 echo "$as_me:$LINENO: result: $CC" >&5
1801 echo "${ECHO_T}$CC" >&6
1802 else
1803 echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1808 if test -z "$ac_cv_prog_CC"; then
1809 ac_ct_CC=$CC
1810 # Extract the first word of "gcc", so it can be a program name with args.
1811 set dummy gcc; ac_word=$2
1812 echo "$as_me:$LINENO: checking for $ac_word" >&5
1813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
1816 else
1817 if test -n "$ac_ct_CC"; then
1818 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1819 else
1820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1821 for as_dir in $PATH
1823 IFS=$as_save_IFS
1824 test -z "$as_dir" && as_dir=.
1825 for ac_exec_ext in '' $ac_executable_extensions; do
1826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1827 ac_cv_prog_ac_ct_CC="gcc"
1828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1829 break 2
1831 done
1832 done
1836 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1837 if test -n "$ac_ct_CC"; then
1838 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1839 echo "${ECHO_T}$ac_ct_CC" >&6
1840 else
1841 echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1845 CC=$ac_ct_CC
1846 else
1847 CC="$ac_cv_prog_CC"
1850 if test -z "$CC"; then
1851 if test -n "$ac_tool_prefix"; then
1852 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1853 set dummy ${ac_tool_prefix}cc; ac_word=$2
1854 echo "$as_me:$LINENO: checking for $ac_word" >&5
1855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856 if test "${ac_cv_prog_CC+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1858 else
1859 if test -n "$CC"; then
1860 ac_cv_prog_CC="$CC" # Let the user override the test.
1861 else
1862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863 for as_dir in $PATH
1865 IFS=$as_save_IFS
1866 test -z "$as_dir" && as_dir=.
1867 for ac_exec_ext in '' $ac_executable_extensions; do
1868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869 ac_cv_prog_CC="${ac_tool_prefix}cc"
1870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1871 break 2
1873 done
1874 done
1878 CC=$ac_cv_prog_CC
1879 if test -n "$CC"; then
1880 echo "$as_me:$LINENO: result: $CC" >&5
1881 echo "${ECHO_T}$CC" >&6
1882 else
1883 echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6
1888 if test -z "$ac_cv_prog_CC"; then
1889 ac_ct_CC=$CC
1890 # Extract the first word of "cc", so it can be a program name with args.
1891 set dummy cc; ac_word=$2
1892 echo "$as_me:$LINENO: checking for $ac_word" >&5
1893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1894 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1895 echo $ECHO_N "(cached) $ECHO_C" >&6
1896 else
1897 if test -n "$ac_ct_CC"; then
1898 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1899 else
1900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901 for as_dir in $PATH
1903 IFS=$as_save_IFS
1904 test -z "$as_dir" && as_dir=.
1905 for ac_exec_ext in '' $ac_executable_extensions; do
1906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1907 ac_cv_prog_ac_ct_CC="cc"
1908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1909 break 2
1911 done
1912 done
1916 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1917 if test -n "$ac_ct_CC"; then
1918 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1919 echo "${ECHO_T}$ac_ct_CC" >&6
1920 else
1921 echo "$as_me:$LINENO: result: no" >&5
1922 echo "${ECHO_T}no" >&6
1925 CC=$ac_ct_CC
1926 else
1927 CC="$ac_cv_prog_CC"
1931 if test -z "$CC"; then
1932 # Extract the first word of "cc", so it can be a program name with args.
1933 set dummy cc; ac_word=$2
1934 echo "$as_me:$LINENO: checking for $ac_word" >&5
1935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1936 if test "${ac_cv_prog_CC+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1938 else
1939 if test -n "$CC"; then
1940 ac_cv_prog_CC="$CC" # Let the user override the test.
1941 else
1942 ac_prog_rejected=no
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 for as_dir in $PATH
1946 IFS=$as_save_IFS
1947 test -z "$as_dir" && as_dir=.
1948 for ac_exec_ext in '' $ac_executable_extensions; do
1949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1950 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1951 ac_prog_rejected=yes
1952 continue
1954 ac_cv_prog_CC="cc"
1955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1956 break 2
1958 done
1959 done
1961 if test $ac_prog_rejected = yes; then
1962 # We found a bogon in the path, so make sure we never use it.
1963 set dummy $ac_cv_prog_CC
1964 shift
1965 if test $# != 0; then
1966 # We chose a different compiler from the bogus one.
1967 # However, it has the same basename, so the bogon will be chosen
1968 # first if we set CC to just the basename; use the full file name.
1969 shift
1970 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1975 CC=$ac_cv_prog_CC
1976 if test -n "$CC"; then
1977 echo "$as_me:$LINENO: result: $CC" >&5
1978 echo "${ECHO_T}$CC" >&6
1979 else
1980 echo "$as_me:$LINENO: result: no" >&5
1981 echo "${ECHO_T}no" >&6
1985 if test -z "$CC"; then
1986 if test -n "$ac_tool_prefix"; then
1987 for ac_prog in cl
1989 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1990 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1991 echo "$as_me:$LINENO: checking for $ac_word" >&5
1992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1993 if test "${ac_cv_prog_CC+set}" = set; then
1994 echo $ECHO_N "(cached) $ECHO_C" >&6
1995 else
1996 if test -n "$CC"; then
1997 ac_cv_prog_CC="$CC" # Let the user override the test.
1998 else
1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000 for as_dir in $PATH
2002 IFS=$as_save_IFS
2003 test -z "$as_dir" && as_dir=.
2004 for ac_exec_ext in '' $ac_executable_extensions; do
2005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2006 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2008 break 2
2010 done
2011 done
2015 CC=$ac_cv_prog_CC
2016 if test -n "$CC"; then
2017 echo "$as_me:$LINENO: result: $CC" >&5
2018 echo "${ECHO_T}$CC" >&6
2019 else
2020 echo "$as_me:$LINENO: result: no" >&5
2021 echo "${ECHO_T}no" >&6
2024 test -n "$CC" && break
2025 done
2027 if test -z "$CC"; then
2028 ac_ct_CC=$CC
2029 for ac_prog in cl
2031 # Extract the first word of "$ac_prog", so it can be a program name with args.
2032 set dummy $ac_prog; ac_word=$2
2033 echo "$as_me:$LINENO: checking for $ac_word" >&5
2034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2035 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2036 echo $ECHO_N "(cached) $ECHO_C" >&6
2037 else
2038 if test -n "$ac_ct_CC"; then
2039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2040 else
2041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042 for as_dir in $PATH
2044 IFS=$as_save_IFS
2045 test -z "$as_dir" && as_dir=.
2046 for ac_exec_ext in '' $ac_executable_extensions; do
2047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2048 ac_cv_prog_ac_ct_CC="$ac_prog"
2049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2050 break 2
2052 done
2053 done
2057 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2058 if test -n "$ac_ct_CC"; then
2059 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2060 echo "${ECHO_T}$ac_ct_CC" >&6
2061 else
2062 echo "$as_me:$LINENO: result: no" >&5
2063 echo "${ECHO_T}no" >&6
2066 test -n "$ac_ct_CC" && break
2067 done
2069 CC=$ac_ct_CC
2075 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2076 See \`config.log' for more details." >&5
2077 echo "$as_me: error: no acceptable C compiler found in \$PATH
2078 See \`config.log' for more details." >&2;}
2079 { (exit 1); exit 1; }; }
2081 # Provide some information about the compiler.
2082 echo "$as_me:$LINENO:" \
2083 "checking for C compiler version" >&5
2084 ac_compiler=`set X $ac_compile; echo $2`
2085 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2086 (eval $ac_compiler --version </dev/null >&5) 2>&5
2087 ac_status=$?
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }
2090 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2091 (eval $ac_compiler -v </dev/null >&5) 2>&5
2092 ac_status=$?
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }
2095 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2096 (eval $ac_compiler -V </dev/null >&5) 2>&5
2097 ac_status=$?
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }
2101 cat >conftest.$ac_ext <<_ACEOF
2102 /* confdefs.h. */
2103 _ACEOF
2104 cat confdefs.h >>conftest.$ac_ext
2105 cat >>conftest.$ac_ext <<_ACEOF
2106 /* end confdefs.h. */
2109 main ()
2113 return 0;
2115 _ACEOF
2116 ac_clean_files_save=$ac_clean_files
2117 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2118 # Try to create an executable without -o first, disregard a.out.
2119 # It will help us diagnose broken compilers, and finding out an intuition
2120 # of exeext.
2121 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2122 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2123 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2124 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2125 (eval $ac_link_default) 2>&5
2126 ac_status=$?
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }; then
2129 # Find the output, starting from the most likely. This scheme is
2130 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2131 # resort.
2133 # Be careful to initialize this variable, since it used to be cached.
2134 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2135 ac_cv_exeext=
2136 # b.out is created by i960 compilers.
2137 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2139 test -f "$ac_file" || continue
2140 case $ac_file in
2141 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2143 conftest.$ac_ext )
2144 # This is the source file.
2146 [ab].out )
2147 # We found the default executable, but exeext='' is most
2148 # certainly right.
2149 break;;
2150 *.* )
2151 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2152 # FIXME: I believe we export ac_cv_exeext for Libtool,
2153 # but it would be cool to find out if it's true. Does anybody
2154 # maintain Libtool? --akim.
2155 export ac_cv_exeext
2156 break;;
2158 break;;
2159 esac
2160 done
2161 else
2162 echo "$as_me: failed program was:" >&5
2163 sed 's/^/| /' conftest.$ac_ext >&5
2165 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2166 See \`config.log' for more details." >&5
2167 echo "$as_me: error: C compiler cannot create executables
2168 See \`config.log' for more details." >&2;}
2169 { (exit 77); exit 77; }; }
2172 ac_exeext=$ac_cv_exeext
2173 echo "$as_me:$LINENO: result: $ac_file" >&5
2174 echo "${ECHO_T}$ac_file" >&6
2176 # Check the compiler produces executables we can run. If not, either
2177 # the compiler is broken, or we cross compile.
2178 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2179 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2180 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2181 # If not cross compiling, check that we can run a simple program.
2182 if test "$cross_compiling" != yes; then
2183 if { ac_try='./$ac_file'
2184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185 (eval $ac_try) 2>&5
2186 ac_status=$?
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; }; then
2189 cross_compiling=no
2190 else
2191 if test "$cross_compiling" = maybe; then
2192 cross_compiling=yes
2193 else
2194 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2195 If you meant to cross compile, use \`--host'.
2196 See \`config.log' for more details." >&5
2197 echo "$as_me: error: cannot run C compiled programs.
2198 If you meant to cross compile, use \`--host'.
2199 See \`config.log' for more details." >&2;}
2200 { (exit 1); exit 1; }; }
2204 echo "$as_me:$LINENO: result: yes" >&5
2205 echo "${ECHO_T}yes" >&6
2207 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2208 ac_clean_files=$ac_clean_files_save
2209 # Check the compiler produces executables we can run. If not, either
2210 # the compiler is broken, or we cross compile.
2211 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2212 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2213 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2214 echo "${ECHO_T}$cross_compiling" >&6
2216 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2217 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2219 (eval $ac_link) 2>&5
2220 ac_status=$?
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }; then
2223 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2224 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2225 # work properly (i.e., refer to `conftest.exe'), while it won't with
2226 # `rm'.
2227 for ac_file in conftest.exe conftest conftest.*; do
2228 test -f "$ac_file" || continue
2229 case $ac_file in
2230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2231 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2232 export ac_cv_exeext
2233 break;;
2234 * ) break;;
2235 esac
2236 done
2237 else
2238 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2239 See \`config.log' for more details." >&5
2240 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2241 See \`config.log' for more details." >&2;}
2242 { (exit 1); exit 1; }; }
2245 rm -f conftest$ac_cv_exeext
2246 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2247 echo "${ECHO_T}$ac_cv_exeext" >&6
2249 rm -f conftest.$ac_ext
2250 EXEEXT=$ac_cv_exeext
2251 ac_exeext=$EXEEXT
2252 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2253 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2254 if test "${ac_cv_objext+set}" = set; then
2255 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 else
2257 cat >conftest.$ac_ext <<_ACEOF
2258 /* confdefs.h. */
2259 _ACEOF
2260 cat confdefs.h >>conftest.$ac_ext
2261 cat >>conftest.$ac_ext <<_ACEOF
2262 /* end confdefs.h. */
2265 main ()
2269 return 0;
2271 _ACEOF
2272 rm -f conftest.o conftest.obj
2273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274 (eval $ac_compile) 2>&5
2275 ac_status=$?
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; then
2278 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2279 case $ac_file in
2280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2281 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2282 break;;
2283 esac
2284 done
2285 else
2286 echo "$as_me: failed program was:" >&5
2287 sed 's/^/| /' conftest.$ac_ext >&5
2289 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2290 See \`config.log' for more details." >&5
2291 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2292 See \`config.log' for more details." >&2;}
2293 { (exit 1); exit 1; }; }
2296 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2298 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2299 echo "${ECHO_T}$ac_cv_objext" >&6
2300 OBJEXT=$ac_cv_objext
2301 ac_objext=$OBJEXT
2302 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2303 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2304 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2306 else
2307 cat >conftest.$ac_ext <<_ACEOF
2308 /* confdefs.h. */
2309 _ACEOF
2310 cat confdefs.h >>conftest.$ac_ext
2311 cat >>conftest.$ac_ext <<_ACEOF
2312 /* end confdefs.h. */
2315 main ()
2317 #ifndef __GNUC__
2318 choke me
2319 #endif
2322 return 0;
2324 _ACEOF
2325 rm -f conftest.$ac_objext
2326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2327 (eval $ac_compile) 2>conftest.er1
2328 ac_status=$?
2329 grep -v '^ *+' conftest.er1 >conftest.err
2330 rm -f conftest.er1
2331 cat conftest.err >&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); } &&
2334 { ac_try='test -z "$ac_c_werror_flag"
2335 || test ! -s conftest.err'
2336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337 (eval $ac_try) 2>&5
2338 ac_status=$?
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }; } &&
2341 { ac_try='test -s conftest.$ac_objext'
2342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343 (eval $ac_try) 2>&5
2344 ac_status=$?
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; }; then
2347 ac_compiler_gnu=yes
2348 else
2349 echo "$as_me: failed program was:" >&5
2350 sed 's/^/| /' conftest.$ac_ext >&5
2352 ac_compiler_gnu=no
2354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2355 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2358 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2359 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2360 GCC=`test $ac_compiler_gnu = yes && echo yes`
2361 ac_test_CFLAGS=${CFLAGS+set}
2362 ac_save_CFLAGS=$CFLAGS
2363 CFLAGS="-g"
2364 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2365 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2366 if test "${ac_cv_prog_cc_g+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 else
2369 cat >conftest.$ac_ext <<_ACEOF
2370 /* confdefs.h. */
2371 _ACEOF
2372 cat confdefs.h >>conftest.$ac_ext
2373 cat >>conftest.$ac_ext <<_ACEOF
2374 /* end confdefs.h. */
2377 main ()
2381 return 0;
2383 _ACEOF
2384 rm -f conftest.$ac_objext
2385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2386 (eval $ac_compile) 2>conftest.er1
2387 ac_status=$?
2388 grep -v '^ *+' conftest.er1 >conftest.err
2389 rm -f conftest.er1
2390 cat conftest.err >&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); } &&
2393 { ac_try='test -z "$ac_c_werror_flag"
2394 || test ! -s conftest.err'
2395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 (eval $ac_try) 2>&5
2397 ac_status=$?
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; } &&
2400 { ac_try='test -s conftest.$ac_objext'
2401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402 (eval $ac_try) 2>&5
2403 ac_status=$?
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; }; then
2406 ac_cv_prog_cc_g=yes
2407 else
2408 echo "$as_me: failed program was:" >&5
2409 sed 's/^/| /' conftest.$ac_ext >&5
2411 ac_cv_prog_cc_g=no
2413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2415 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2416 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2417 if test "$ac_test_CFLAGS" = set; then
2418 CFLAGS=$ac_save_CFLAGS
2419 elif test $ac_cv_prog_cc_g = yes; then
2420 if test "$GCC" = yes; then
2421 CFLAGS="-g -O2"
2422 else
2423 CFLAGS="-g"
2425 else
2426 if test "$GCC" = yes; then
2427 CFLAGS="-O2"
2428 else
2429 CFLAGS=
2432 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2433 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2434 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2436 else
2437 ac_cv_prog_cc_stdc=no
2438 ac_save_CC=$CC
2439 cat >conftest.$ac_ext <<_ACEOF
2440 /* confdefs.h. */
2441 _ACEOF
2442 cat confdefs.h >>conftest.$ac_ext
2443 cat >>conftest.$ac_ext <<_ACEOF
2444 /* end confdefs.h. */
2445 #include <stdarg.h>
2446 #include <stdio.h>
2447 #include <sys/types.h>
2448 #include <sys/stat.h>
2449 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2450 struct buf { int x; };
2451 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2452 static char *e (p, i)
2453 char **p;
2454 int i;
2456 return p[i];
2458 static char *f (char * (*g) (char **, int), char **p, ...)
2460 char *s;
2461 va_list v;
2462 va_start (v,p);
2463 s = g (p, va_arg (v,int));
2464 va_end (v);
2465 return s;
2468 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2469 function prototypes and stuff, but not '\xHH' hex character constants.
2470 These don't provoke an error unfortunately, instead are silently treated
2471 as 'x'. The following induces an error, until -std1 is added to get
2472 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2473 array size at least. It's necessary to write '\x00'==0 to get something
2474 that's true only with -std1. */
2475 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2477 int test (int i, double x);
2478 struct s1 {int (*f) (int a);};
2479 struct s2 {int (*f) (double a);};
2480 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2481 int argc;
2482 char **argv;
2484 main ()
2486 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2488 return 0;
2490 _ACEOF
2491 # Don't try gcc -ansi; that turns off useful extensions and
2492 # breaks some systems' header files.
2493 # AIX -qlanglvl=ansi
2494 # Ultrix and OSF/1 -std1
2495 # HP-UX 10.20 and later -Ae
2496 # HP-UX older versions -Aa -D_HPUX_SOURCE
2497 # SVR4 -Xc -D__EXTENSIONS__
2498 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2500 CC="$ac_save_CC $ac_arg"
2501 rm -f conftest.$ac_objext
2502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2503 (eval $ac_compile) 2>conftest.er1
2504 ac_status=$?
2505 grep -v '^ *+' conftest.er1 >conftest.err
2506 rm -f conftest.er1
2507 cat conftest.err >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); } &&
2510 { ac_try='test -z "$ac_c_werror_flag"
2511 || test ! -s conftest.err'
2512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513 (eval $ac_try) 2>&5
2514 ac_status=$?
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; } &&
2517 { ac_try='test -s conftest.$ac_objext'
2518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2519 (eval $ac_try) 2>&5
2520 ac_status=$?
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); }; }; then
2523 ac_cv_prog_cc_stdc=$ac_arg
2524 break
2525 else
2526 echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.$ac_ext >&5
2530 rm -f conftest.err conftest.$ac_objext
2531 done
2532 rm -f conftest.$ac_ext conftest.$ac_objext
2533 CC=$ac_save_CC
2537 case "x$ac_cv_prog_cc_stdc" in
2538 x|xno)
2539 echo "$as_me:$LINENO: result: none needed" >&5
2540 echo "${ECHO_T}none needed" >&6 ;;
2542 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2543 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2544 CC="$CC $ac_cv_prog_cc_stdc" ;;
2545 esac
2547 # Some people use a C++ compiler to compile C. Since we use `exit',
2548 # in C++ we need to declare it. In case someone uses the same compiler
2549 # for both compiling C and C++ we need to have the C++ compiler decide
2550 # the declaration of exit, since it's the most demanding environment.
2551 cat >conftest.$ac_ext <<_ACEOF
2552 #ifndef __cplusplus
2553 choke me
2554 #endif
2555 _ACEOF
2556 rm -f conftest.$ac_objext
2557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2558 (eval $ac_compile) 2>conftest.er1
2559 ac_status=$?
2560 grep -v '^ *+' conftest.er1 >conftest.err
2561 rm -f conftest.er1
2562 cat conftest.err >&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); } &&
2565 { ac_try='test -z "$ac_c_werror_flag"
2566 || test ! -s conftest.err'
2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568 (eval $ac_try) 2>&5
2569 ac_status=$?
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; } &&
2572 { ac_try='test -s conftest.$ac_objext'
2573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574 (eval $ac_try) 2>&5
2575 ac_status=$?
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }; }; then
2578 for ac_declaration in \
2579 '' \
2580 'extern "C" void std::exit (int) throw (); using std::exit;' \
2581 'extern "C" void std::exit (int); using std::exit;' \
2582 'extern "C" void exit (int) throw ();' \
2583 'extern "C" void exit (int);' \
2584 'void exit (int);'
2586 cat >conftest.$ac_ext <<_ACEOF
2587 /* confdefs.h. */
2588 _ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h. */
2592 $ac_declaration
2593 #include <stdlib.h>
2595 main ()
2597 exit (42);
2599 return 0;
2601 _ACEOF
2602 rm -f conftest.$ac_objext
2603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2604 (eval $ac_compile) 2>conftest.er1
2605 ac_status=$?
2606 grep -v '^ *+' conftest.er1 >conftest.err
2607 rm -f conftest.er1
2608 cat conftest.err >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); } &&
2611 { ac_try='test -z "$ac_c_werror_flag"
2612 || test ! -s conftest.err'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 (eval $ac_try) 2>&5
2615 ac_status=$?
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; } &&
2618 { ac_try='test -s conftest.$ac_objext'
2619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620 (eval $ac_try) 2>&5
2621 ac_status=$?
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }; }; then
2625 else
2626 echo "$as_me: failed program was:" >&5
2627 sed 's/^/| /' conftest.$ac_ext >&5
2629 continue
2631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2632 cat >conftest.$ac_ext <<_ACEOF
2633 /* confdefs.h. */
2634 _ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h. */
2638 $ac_declaration
2640 main ()
2642 exit (42);
2644 return 0;
2646 _ACEOF
2647 rm -f conftest.$ac_objext
2648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649 (eval $ac_compile) 2>conftest.er1
2650 ac_status=$?
2651 grep -v '^ *+' conftest.er1 >conftest.err
2652 rm -f conftest.er1
2653 cat conftest.err >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); } &&
2656 { ac_try='test -z "$ac_c_werror_flag"
2657 || test ! -s conftest.err'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659 (eval $ac_try) 2>&5
2660 ac_status=$?
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; } &&
2663 { ac_try='test -s conftest.$ac_objext'
2664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665 (eval $ac_try) 2>&5
2666 ac_status=$?
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }; }; then
2669 break
2670 else
2671 echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.$ac_ext >&5
2675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2676 done
2677 rm -f conftest*
2678 if test -n "$ac_declaration"; then
2679 echo '#ifdef __cplusplus' >>confdefs.h
2680 echo $ac_declaration >>confdefs.h
2681 echo '#endif' >>confdefs.h
2684 else
2685 echo "$as_me: failed program was:" >&5
2686 sed 's/^/| /' conftest.$ac_ext >&5
2689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2690 ac_ext=c
2691 ac_cpp='$CPP $CPPFLAGS'
2692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2699 echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
2700 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6
2702 # Check whether --with-cxx_main or --without-cxx_main was given.
2703 if test "${with_cxx_main+set}" = set; then
2704 withval="$with_cxx_main"
2707 case $withval in
2708 no) with_cxx_main=no
2709 MAINCC='$(CC)';;
2710 yes) with_cxx_main=yes
2711 MAINCC='$(CXX)';;
2712 *) with_cxx_main=yes
2713 MAINCC=$withval
2714 if test -z "$CXX"
2715 then
2716 CXX=$withval
2717 fi;;
2718 esac
2719 else
2721 with_cxx_main=no
2722 MAINCC='$(CC)'
2725 echo "$as_me:$LINENO: result: $with_cxx_main" >&5
2726 echo "${ECHO_T}$with_cxx_main" >&6
2728 preset_cxx="$CXX"
2729 if test -z "$CXX"
2730 then
2731 case "$CC" in
2732 gcc) # Extract the first word of "g++", so it can be a program name with args.
2733 set dummy g++; ac_word=$2
2734 echo "$as_me:$LINENO: checking for $ac_word" >&5
2735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2736 if test "${ac_cv_path_CXX+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" >&6
2738 else
2739 case $CXX in
2740 [\\/]* | ?:[\\/]*)
2741 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 for as_dir in notfound
2747 IFS=$as_save_IFS
2748 test -z "$as_dir" && as_dir=.
2749 for ac_exec_ext in '' $ac_executable_extensions; do
2750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2751 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
2752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2753 break 2
2755 done
2756 done
2758 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
2760 esac
2762 CXX=$ac_cv_path_CXX
2764 if test -n "$CXX"; then
2765 echo "$as_me:$LINENO: result: $CXX" >&5
2766 echo "${ECHO_T}$CXX" >&6
2767 else
2768 echo "$as_me:$LINENO: result: no" >&5
2769 echo "${ECHO_T}no" >&6
2772 cc) # Extract the first word of "c++", so it can be a program name with args.
2773 set dummy c++; ac_word=$2
2774 echo "$as_me:$LINENO: checking for $ac_word" >&5
2775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2776 if test "${ac_cv_path_CXX+set}" = set; then
2777 echo $ECHO_N "(cached) $ECHO_C" >&6
2778 else
2779 case $CXX in
2780 [\\/]* | ?:[\\/]*)
2781 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 for as_dir in notfound
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
2792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 break 2
2795 done
2796 done
2798 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
2800 esac
2802 CXX=$ac_cv_path_CXX
2804 if test -n "$CXX"; then
2805 echo "$as_me:$LINENO: result: $CXX" >&5
2806 echo "${ECHO_T}$CXX" >&6
2807 else
2808 echo "$as_me:$LINENO: result: no" >&5
2809 echo "${ECHO_T}no" >&6
2812 esac
2813 if test "$CXX" = "notfound"
2814 then
2815 CXX=""
2818 if test -z "$CXX"
2819 then
2820 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
2822 # Extract the first word of "$ac_prog", so it can be a program name with args.
2823 set dummy $ac_prog; ac_word=$2
2824 echo "$as_me:$LINENO: checking for $ac_word" >&5
2825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2826 if test "${ac_cv_prog_CXX+set}" = set; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2828 else
2829 if test -n "$CXX"; then
2830 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2831 else
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2835 IFS=$as_save_IFS
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2839 ac_cv_prog_CXX="$ac_prog"
2840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 break 2
2843 done
2844 done
2848 CXX=$ac_cv_prog_CXX
2849 if test -n "$CXX"; then
2850 echo "$as_me:$LINENO: result: $CXX" >&5
2851 echo "${ECHO_T}$CXX" >&6
2852 else
2853 echo "$as_me:$LINENO: result: no" >&5
2854 echo "${ECHO_T}no" >&6
2857 test -n "$CXX" && break
2858 done
2859 test -n "$CXX" || CXX="notfound"
2861 if test "$CXX" = "notfound"
2862 then
2863 CXX=""
2866 if test "$preset_cxx" != "$CXX"
2867 then
2868 { echo "$as_me:$LINENO: WARNING:
2870 By default, distutils will build C++ extension modules with \"$CXX\".
2871 If this is not intended, then set CXX on the configure command line.
2872 " >&5
2873 echo "$as_me: WARNING:
2875 By default, distutils will build C++ extension modules with \"$CXX\".
2876 If this is not intended, then set CXX on the configure command line.
2877 " >&2;}
2881 # checks for UNIX variants that set C preprocessor variables
2883 ac_ext=c
2884 ac_cpp='$CPP $CPPFLAGS'
2885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2888 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2889 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2890 # On Suns, sometimes $CPP names a directory.
2891 if test -n "$CPP" && test -d "$CPP"; then
2892 CPP=
2894 if test -z "$CPP"; then
2895 if test "${ac_cv_prog_CPP+set}" = set; then
2896 echo $ECHO_N "(cached) $ECHO_C" >&6
2897 else
2898 # Double quotes because CPP needs to be expanded
2899 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2901 ac_preproc_ok=false
2902 for ac_c_preproc_warn_flag in '' yes
2904 # Use a header file that comes with gcc, so configuring glibc
2905 # with a fresh cross-compiler works.
2906 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2907 # <limits.h> exists even on freestanding compilers.
2908 # On the NeXT, cc -E runs the code through the compiler's parser,
2909 # not just through cpp. "Syntax error" is here to catch this case.
2910 cat >conftest.$ac_ext <<_ACEOF
2911 /* confdefs.h. */
2912 _ACEOF
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>conftest.$ac_ext <<_ACEOF
2915 /* end confdefs.h. */
2916 #ifdef __STDC__
2917 # include <limits.h>
2918 #else
2919 # include <assert.h>
2920 #endif
2921 Syntax error
2922 _ACEOF
2923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2925 ac_status=$?
2926 grep -v '^ *+' conftest.er1 >conftest.err
2927 rm -f conftest.er1
2928 cat conftest.err >&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } >/dev/null; then
2931 if test -s conftest.err; then
2932 ac_cpp_err=$ac_c_preproc_warn_flag
2933 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2934 else
2935 ac_cpp_err=
2937 else
2938 ac_cpp_err=yes
2940 if test -z "$ac_cpp_err"; then
2942 else
2943 echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2946 # Broken: fails on valid input.
2947 continue
2949 rm -f conftest.err conftest.$ac_ext
2951 # OK, works on sane cases. Now check whether non-existent headers
2952 # can be detected and how.
2953 cat >conftest.$ac_ext <<_ACEOF
2954 /* confdefs.h. */
2955 _ACEOF
2956 cat confdefs.h >>conftest.$ac_ext
2957 cat >>conftest.$ac_ext <<_ACEOF
2958 /* end confdefs.h. */
2959 #include <ac_nonexistent.h>
2960 _ACEOF
2961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2963 ac_status=$?
2964 grep -v '^ *+' conftest.er1 >conftest.err
2965 rm -f conftest.er1
2966 cat conftest.err >&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); } >/dev/null; then
2969 if test -s conftest.err; then
2970 ac_cpp_err=$ac_c_preproc_warn_flag
2971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2972 else
2973 ac_cpp_err=
2975 else
2976 ac_cpp_err=yes
2978 if test -z "$ac_cpp_err"; then
2979 # Broken: success on invalid input.
2980 continue
2981 else
2982 echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2985 # Passes both tests.
2986 ac_preproc_ok=:
2987 break
2989 rm -f conftest.err conftest.$ac_ext
2991 done
2992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2993 rm -f conftest.err conftest.$ac_ext
2994 if $ac_preproc_ok; then
2995 break
2998 done
2999 ac_cv_prog_CPP=$CPP
3002 CPP=$ac_cv_prog_CPP
3003 else
3004 ac_cv_prog_CPP=$CPP
3006 echo "$as_me:$LINENO: result: $CPP" >&5
3007 echo "${ECHO_T}$CPP" >&6
3008 ac_preproc_ok=false
3009 for ac_c_preproc_warn_flag in '' yes
3011 # Use a header file that comes with gcc, so configuring glibc
3012 # with a fresh cross-compiler works.
3013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3014 # <limits.h> exists even on freestanding compilers.
3015 # On the NeXT, cc -E runs the code through the compiler's parser,
3016 # not just through cpp. "Syntax error" is here to catch this case.
3017 cat >conftest.$ac_ext <<_ACEOF
3018 /* confdefs.h. */
3019 _ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3023 #ifdef __STDC__
3024 # include <limits.h>
3025 #else
3026 # include <assert.h>
3027 #endif
3028 Syntax error
3029 _ACEOF
3030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3032 ac_status=$?
3033 grep -v '^ *+' conftest.er1 >conftest.err
3034 rm -f conftest.er1
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } >/dev/null; then
3038 if test -s conftest.err; then
3039 ac_cpp_err=$ac_c_preproc_warn_flag
3040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3041 else
3042 ac_cpp_err=
3044 else
3045 ac_cpp_err=yes
3047 if test -z "$ac_cpp_err"; then
3049 else
3050 echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.$ac_ext >&5
3053 # Broken: fails on valid input.
3054 continue
3056 rm -f conftest.err conftest.$ac_ext
3058 # OK, works on sane cases. Now check whether non-existent headers
3059 # can be detected and how.
3060 cat >conftest.$ac_ext <<_ACEOF
3061 /* confdefs.h. */
3062 _ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3066 #include <ac_nonexistent.h>
3067 _ACEOF
3068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3070 ac_status=$?
3071 grep -v '^ *+' conftest.er1 >conftest.err
3072 rm -f conftest.er1
3073 cat conftest.err >&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } >/dev/null; then
3076 if test -s conftest.err; then
3077 ac_cpp_err=$ac_c_preproc_warn_flag
3078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3079 else
3080 ac_cpp_err=
3082 else
3083 ac_cpp_err=yes
3085 if test -z "$ac_cpp_err"; then
3086 # Broken: success on invalid input.
3087 continue
3088 else
3089 echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3092 # Passes both tests.
3093 ac_preproc_ok=:
3094 break
3096 rm -f conftest.err conftest.$ac_ext
3098 done
3099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3100 rm -f conftest.err conftest.$ac_ext
3101 if $ac_preproc_ok; then
3103 else
3104 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3105 See \`config.log' for more details." >&5
3106 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3107 See \`config.log' for more details." >&2;}
3108 { (exit 1); exit 1; }; }
3111 ac_ext=c
3112 ac_cpp='$CPP $CPPFLAGS'
3113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3118 echo "$as_me:$LINENO: checking for egrep" >&5
3119 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3120 if test "${ac_cv_prog_egrep+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3122 else
3123 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3124 then ac_cv_prog_egrep='grep -E'
3125 else ac_cv_prog_egrep='egrep'
3128 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3129 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3130 EGREP=$ac_cv_prog_egrep
3134 echo "$as_me:$LINENO: checking for AIX" >&5
3135 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3136 cat >conftest.$ac_ext <<_ACEOF
3137 /* confdefs.h. */
3138 _ACEOF
3139 cat confdefs.h >>conftest.$ac_ext
3140 cat >>conftest.$ac_ext <<_ACEOF
3141 /* end confdefs.h. */
3142 #ifdef _AIX
3144 #endif
3146 _ACEOF
3147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3148 $EGREP "yes" >/dev/null 2>&1; then
3149 echo "$as_me:$LINENO: result: yes" >&5
3150 echo "${ECHO_T}yes" >&6
3151 cat >>confdefs.h <<\_ACEOF
3152 #define _ALL_SOURCE 1
3153 _ACEOF
3155 else
3156 echo "$as_me:$LINENO: result: no" >&5
3157 echo "${ECHO_T}no" >&6
3159 rm -f conftest*
3163 # Check for unsupported systems
3164 case $ac_sys_system/$ac_sys_release in
3165 Linux*/1*)
3166 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3167 echo See README for details.
3168 exit 1;;
3169 esac
3172 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3173 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3175 # Check whether --with-suffix or --without-suffix was given.
3176 if test "${with_suffix+set}" = set; then
3177 withval="$with_suffix"
3179 case $withval in
3180 no) EXEEXT=;;
3181 yes) EXEEXT=.exe;;
3182 *) EXEEXT=$withval;;
3183 esac
3185 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3186 echo "${ECHO_T}$EXEEXT" >&6
3188 # Test whether we're running on a non-case-sensitive system, in which
3189 # case we give a warning if no ext is given
3191 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3192 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3193 if test ! -d CaseSensitiveTestDir; then
3194 mkdir CaseSensitiveTestDir
3197 if test -d casesensitivetestdir
3198 then
3199 echo "$as_me:$LINENO: result: yes" >&5
3200 echo "${ECHO_T}yes" >&6
3201 BUILDEXEEXT=.exe
3202 else
3203 echo "$as_me:$LINENO: result: no" >&5
3204 echo "${ECHO_T}no" >&6
3205 BUILDEXEEXT=$EXEEXT
3207 rmdir CaseSensitiveTestDir
3209 case $MACHDEP in
3210 bsdos*)
3211 case $CC in
3212 gcc) CC="$CC -D_HAVE_BSDI";;
3213 esac;;
3214 esac
3216 case $ac_sys_system in
3217 hp*|HP*)
3218 case $CC in
3219 cc|*/cc) CC="$CC -Ae";;
3220 esac;;
3221 Monterey*)
3222 case $CC in
3223 cc) CC="$CC -Wl,-Bexport";;
3224 esac;;
3225 SunOS*)
3226 # Some functions have a prototype only with that define, e.g. confstr
3228 cat >>confdefs.h <<\_ACEOF
3229 #define __EXTENSIONS__ 1
3230 _ACEOF
3233 esac
3237 echo "$as_me:$LINENO: checking LIBRARY" >&5
3238 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3239 if test -z "$LIBRARY"
3240 then
3241 LIBRARY='libpython$(VERSION).a'
3243 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3244 echo "${ECHO_T}$LIBRARY" >&6
3246 # LDLIBRARY is the name of the library to link against (as opposed to the
3247 # name of the library into which to insert object files). BLDLIBRARY is also
3248 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3249 # is blank as the main program is not linked directly against LDLIBRARY.
3250 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3251 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3252 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3253 # DLLLIBRARY is the shared (i.e., DLL) library.
3255 # RUNSHARED is used to run shared python without installed libraries
3257 # INSTSONAME is the name of the shared library that will be use to install
3258 # on the system - some systems like version suffix, others don't
3265 LDLIBRARY="$LIBRARY"
3266 BLDLIBRARY='$(LDLIBRARY)'
3267 INSTSONAME='$(LDLIBRARY)'
3268 DLLLIBRARY=''
3269 LDLIBRARYDIR=''
3270 RUNSHARED=''
3272 # LINKCC is the command that links the python executable -- default is $(CC).
3273 # If CXX is set, and if it is needed to link a main function that was
3274 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3275 # python might then depend on the C++ runtime
3276 # This is altered for AIX in order to build the export list before
3277 # linking.
3279 echo "$as_me:$LINENO: checking LINKCC" >&5
3280 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3281 if test -z "$LINKCC"
3282 then
3283 LINKCC='$(PURIFY) $(MAINCC)'
3284 case $ac_sys_system in
3285 AIX*)
3286 exp_extra="\"\""
3287 if test $ac_sys_release -ge 5 -o \
3288 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3289 exp_extra="."
3291 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3292 Monterey64*)
3293 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3294 esac
3296 echo "$as_me:$LINENO: result: $LINKCC" >&5
3297 echo "${ECHO_T}$LINKCC" >&6
3299 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3300 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3301 # Check whether --enable-shared or --disable-shared was given.
3302 if test "${enable_shared+set}" = set; then
3303 enableval="$enable_shared"
3307 if test -z "$enable_shared"
3308 then
3309 case $ac_sys_system in
3310 CYGWIN* | atheos*)
3311 enable_shared="yes";;
3313 enable_shared="no";;
3314 esac
3316 echo "$as_me:$LINENO: result: $enable_shared" >&5
3317 echo "${ECHO_T}$enable_shared" >&6
3319 echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3320 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6
3321 # Check whether --enable-profiling or --disable-profiling was given.
3322 if test "${enable_profiling+set}" = set; then
3323 enableval="$enable_profiling"
3324 ac_save_cc="$CC"
3325 CC="$CC -pg"
3326 if test "$cross_compiling" = yes; then
3327 ac_enable_profiling="no"
3328 else
3329 cat >conftest.$ac_ext <<_ACEOF
3330 /* confdefs.h. */
3331 _ACEOF
3332 cat confdefs.h >>conftest.$ac_ext
3333 cat >>conftest.$ac_ext <<_ACEOF
3334 /* end confdefs.h. */
3335 int main() { return 0; }
3336 _ACEOF
3337 rm -f conftest$ac_exeext
3338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3339 (eval $ac_link) 2>&5
3340 ac_status=$?
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344 (eval $ac_try) 2>&5
3345 ac_status=$?
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; }; then
3348 ac_enable_profiling="yes"
3349 else
3350 echo "$as_me: program exited with status $ac_status" >&5
3351 echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3354 ( exit $ac_status )
3355 ac_enable_profiling="no"
3357 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3359 CC="$ac_save_cc"
3361 echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3362 echo "${ECHO_T}$ac_enable_profiling" >&6
3364 case "$ac_enable_profiling" in
3365 "yes")
3366 BASECFLAGS="-pg $BASECFLAGS"
3367 LDFLAGS="-pg $LDFLAGS"
3369 esac
3371 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3372 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3374 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3375 # library that we build, but we do not want to link against it (we
3376 # will find it with a -framework option). For this reason there is an
3377 # extra variable BLDLIBRARY against which Python and the extension
3378 # modules are linked, BLDLIBRARY. This is normally the same as
3379 # LDLIBRARY, but empty for MacOSX framework builds.
3380 if test "$enable_framework"
3381 then
3382 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3383 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
3384 BLDLIBRARY=''
3385 else
3386 BLDLIBRARY='$(LDLIBRARY)'
3389 # Other platforms follow
3390 if test $enable_shared = "yes"; then
3392 cat >>confdefs.h <<\_ACEOF
3393 #define Py_ENABLE_SHARED 1
3394 _ACEOF
3396 case $ac_sys_system in
3397 BeOS*)
3398 LDLIBRARY='libpython$(VERSION).so'
3400 CYGWIN*)
3401 LDLIBRARY='libpython$(VERSION).dll.a'
3402 DLLLIBRARY='libpython$(VERSION).dll'
3404 SunOS*)
3405 LDLIBRARY='libpython$(VERSION).so'
3406 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
3407 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3408 INSTSONAME="$LDLIBRARY".$SOVERSION
3410 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
3411 LDLIBRARY='libpython$(VERSION).so'
3412 BLDLIBRARY='-L. -lpython$(VERSION)'
3413 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3414 case $ac_sys_system in
3415 FreeBSD*)
3416 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
3418 esac
3419 INSTSONAME="$LDLIBRARY".$SOVERSION
3421 hp*|HP*)
3422 case `uname -m` in
3423 ia64)
3424 LDLIBRARY='libpython$(VERSION).so'
3427 LDLIBRARY='libpython$(VERSION).sl'
3429 esac
3430 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3431 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
3433 OSF*)
3434 LDLIBRARY='libpython$(VERSION).so'
3435 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3436 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3438 atheos*)
3439 LDLIBRARY='libpython$(VERSION).so'
3440 BLDLIBRARY='-L. -lpython$(VERSION)'
3441 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3443 esac
3444 else # shared is disabled
3445 case $ac_sys_system in
3446 CYGWIN*)
3447 BLDLIBRARY='$(LIBRARY)'
3448 LDLIBRARY='libpython$(VERSION).dll.a'
3450 esac
3453 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3454 echo "${ECHO_T}$LDLIBRARY" >&6
3456 if test -n "$ac_tool_prefix"; then
3457 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3458 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3459 echo "$as_me:$LINENO: checking for $ac_word" >&5
3460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3461 if test "${ac_cv_prog_RANLIB+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 else
3464 if test -n "$RANLIB"; then
3465 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3466 else
3467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3468 for as_dir in $PATH
3470 IFS=$as_save_IFS
3471 test -z "$as_dir" && as_dir=.
3472 for ac_exec_ext in '' $ac_executable_extensions; do
3473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3474 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3476 break 2
3478 done
3479 done
3483 RANLIB=$ac_cv_prog_RANLIB
3484 if test -n "$RANLIB"; then
3485 echo "$as_me:$LINENO: result: $RANLIB" >&5
3486 echo "${ECHO_T}$RANLIB" >&6
3487 else
3488 echo "$as_me:$LINENO: result: no" >&5
3489 echo "${ECHO_T}no" >&6
3493 if test -z "$ac_cv_prog_RANLIB"; then
3494 ac_ct_RANLIB=$RANLIB
3495 # Extract the first word of "ranlib", so it can be a program name with args.
3496 set dummy ranlib; ac_word=$2
3497 echo "$as_me:$LINENO: checking for $ac_word" >&5
3498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3499 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 else
3502 if test -n "$ac_ct_RANLIB"; then
3503 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3508 IFS=$as_save_IFS
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3512 ac_cv_prog_ac_ct_RANLIB="ranlib"
3513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3514 break 2
3516 done
3517 done
3519 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3522 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3523 if test -n "$ac_ct_RANLIB"; then
3524 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3525 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3526 else
3527 echo "$as_me:$LINENO: result: no" >&5
3528 echo "${ECHO_T}no" >&6
3531 RANLIB=$ac_ct_RANLIB
3532 else
3533 RANLIB="$ac_cv_prog_RANLIB"
3537 for ac_prog in ar aal
3539 # Extract the first word of "$ac_prog", so it can be a program name with args.
3540 set dummy $ac_prog; ac_word=$2
3541 echo "$as_me:$LINENO: checking for $ac_word" >&5
3542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3543 if test "${ac_cv_prog_AR+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546 if test -n "$AR"; then
3547 ac_cv_prog_AR="$AR" # Let the user override the test.
3548 else
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 for as_dir in $PATH
3552 IFS=$as_save_IFS
3553 test -z "$as_dir" && as_dir=.
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556 ac_cv_prog_AR="$ac_prog"
3557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3558 break 2
3560 done
3561 done
3565 AR=$ac_cv_prog_AR
3566 if test -n "$AR"; then
3567 echo "$as_me:$LINENO: result: $AR" >&5
3568 echo "${ECHO_T}$AR" >&6
3569 else
3570 echo "$as_me:$LINENO: result: no" >&5
3571 echo "${ECHO_T}no" >&6
3574 test -n "$AR" && break
3575 done
3576 test -n "$AR" || AR="ar"
3580 # Extract the first word of "svnversion", so it can be a program name with args.
3581 set dummy svnversion; ac_word=$2
3582 echo "$as_me:$LINENO: checking for $ac_word" >&5
3583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3584 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3586 else
3587 if test -n "$SVNVERSION"; then
3588 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
3589 else
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3593 IFS=$as_save_IFS
3594 test -z "$as_dir" && as_dir=.
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597 ac_cv_prog_SVNVERSION="found"
3598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3599 break 2
3601 done
3602 done
3604 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
3607 SVNVERSION=$ac_cv_prog_SVNVERSION
3608 if test -n "$SVNVERSION"; then
3609 echo "$as_me:$LINENO: result: $SVNVERSION" >&5
3610 echo "${ECHO_T}$SVNVERSION" >&6
3611 else
3612 echo "$as_me:$LINENO: result: no" >&5
3613 echo "${ECHO_T}no" >&6
3616 if test $SVNVERSION = found
3617 then
3618 SVNVERSION="svnversion \$(srcdir)"
3619 else
3620 SVNVERSION="echo exported"
3623 case $MACHDEP in
3624 bsdos*|hp*|HP*)
3625 # install -d does not work on BSDI or HP-UX
3626 if test -z "$INSTALL"
3627 then
3628 INSTALL="${srcdir}/install-sh -c"
3630 esac
3631 ac_aux_dir=
3632 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3633 if test -f $ac_dir/install-sh; then
3634 ac_aux_dir=$ac_dir
3635 ac_install_sh="$ac_aux_dir/install-sh -c"
3636 break
3637 elif test -f $ac_dir/install.sh; then
3638 ac_aux_dir=$ac_dir
3639 ac_install_sh="$ac_aux_dir/install.sh -c"
3640 break
3641 elif test -f $ac_dir/shtool; then
3642 ac_aux_dir=$ac_dir
3643 ac_install_sh="$ac_aux_dir/shtool install -c"
3644 break
3646 done
3647 if test -z "$ac_aux_dir"; then
3648 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3649 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3650 { (exit 1); exit 1; }; }
3652 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3653 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3654 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3656 # Find a good install program. We prefer a C program (faster),
3657 # so one script is as good as another. But avoid the broken or
3658 # incompatible versions:
3659 # SysV /etc/install, /usr/sbin/install
3660 # SunOS /usr/etc/install
3661 # IRIX /sbin/install
3662 # AIX /bin/install
3663 # AmigaOS /C/install, which installs bootblocks on floppy discs
3664 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3665 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3666 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3667 # OS/2's system install, which has a completely different semantic
3668 # ./install, which can be erroneously created by make from ./install.sh.
3669 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3670 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3671 if test -z "$INSTALL"; then
3672 if test "${ac_cv_path_install+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676 for as_dir in $PATH
3678 IFS=$as_save_IFS
3679 test -z "$as_dir" && as_dir=.
3680 # Account for people who put trailing slashes in PATH elements.
3681 case $as_dir/ in
3682 ./ | .// | /cC/* | \
3683 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3684 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3685 /usr/ucb/* ) ;;
3687 # OSF1 and SCO ODT 3.0 have their own names for install.
3688 # Don't use installbsd from OSF since it installs stuff as root
3689 # by default.
3690 for ac_prog in ginstall scoinst install; do
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3693 if test $ac_prog = install &&
3694 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3695 # AIX install. It has an incompatible calling convention.
3697 elif test $ac_prog = install &&
3698 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3699 # program-specific install script used by HP pwplus--don't use.
3701 else
3702 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3703 break 3
3706 done
3707 done
3709 esac
3710 done
3714 if test "${ac_cv_path_install+set}" = set; then
3715 INSTALL=$ac_cv_path_install
3716 else
3717 # As a last resort, use the slow shell script. We don't cache a
3718 # path for INSTALL within a source directory, because that will
3719 # break other packages using the cache if that directory is
3720 # removed, or if the path is relative.
3721 INSTALL=$ac_install_sh
3724 echo "$as_me:$LINENO: result: $INSTALL" >&5
3725 echo "${ECHO_T}$INSTALL" >&6
3727 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3728 # It thinks the first close brace ends the variable substitution.
3729 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3731 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3733 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3736 # Not every filesystem supports hard links
3738 if test -z "$LN" ; then
3739 case $ac_sys_system in
3740 BeOS*) LN="ln -s";;
3741 CYGWIN*) LN="ln -s";;
3742 atheos*) LN="ln -s";;
3743 *) LN=ln;;
3744 esac
3747 # Check for --with-pydebug
3748 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3749 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3751 # Check whether --with-pydebug or --without-pydebug was given.
3752 if test "${with_pydebug+set}" = set; then
3753 withval="$with_pydebug"
3755 if test "$withval" != no
3756 then
3758 cat >>confdefs.h <<\_ACEOF
3759 #define Py_DEBUG 1
3760 _ACEOF
3762 echo "$as_me:$LINENO: result: yes" >&5
3763 echo "${ECHO_T}yes" >&6;
3764 Py_DEBUG='true'
3765 else echo "$as_me:$LINENO: result: no" >&5
3766 echo "${ECHO_T}no" >&6; Py_DEBUG='false'
3768 else
3769 echo "$as_me:$LINENO: result: no" >&5
3770 echo "${ECHO_T}no" >&6
3773 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3774 # merged with this chunk of code?
3776 # Optimizer/debugger flags
3777 # ------------------------
3778 # (The following bit of code is complicated enough - please keep things
3779 # indented properly. Just pretend you're editing Python code. ;-)
3781 # There are two parallel sets of case statements below, one that checks to
3782 # see if OPT was set and one that does BASECFLAGS setting based upon
3783 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3784 # user set OPT.
3786 # tweak OPT based on compiler and platform, only if the user didn't set
3787 # it on the command line
3789 if test -z "$OPT"
3790 then
3791 case $GCC in
3792 yes)
3793 if test "$CC" != 'g++' ; then
3794 STRICT_PROTO="-Wstrict-prototypes"
3796 case $ac_cv_prog_cc_g in
3797 yes)
3798 if test "$Py_DEBUG" = 'true' ; then
3799 # Optimization messes up debuggers, so turn it off for
3800 # debug builds.
3801 OPT="-g -Wall $STRICT_PROTO"
3802 else
3803 OPT="-g -O3 -Wall $STRICT_PROTO"
3807 OPT="-O3 -Wall $STRICT_PROTO"
3809 esac
3810 case $ac_sys_system in
3811 SCO_SV*) OPT="$OPT -m486 -DSCO5"
3813 esac
3817 OPT="-O"
3819 esac
3821 # The current (beta) Monterey compiler dies with optimizations
3822 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3823 case $ac_sys_system in
3824 Monterey*)
3825 OPT=""
3827 esac
3832 # tweak BASECFLAGS based on compiler and platform
3833 case $GCC in
3834 yes)
3835 # Python violates C99 rules, by casting between incompatible
3836 # pointer types. GCC may generate bad code as a result of that,
3837 # so use -fno-strict-aliasing if supported.
3838 echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
3839 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6
3840 ac_save_cc="$CC"
3841 CC="$CC -fno-strict-aliasing"
3842 if test "$cross_compiling" = yes; then
3843 ac_cv_no_strict_aliasing_ok=no
3844 else
3845 cat >conftest.$ac_ext <<_ACEOF
3846 /* confdefs.h. */
3847 _ACEOF
3848 cat confdefs.h >>conftest.$ac_ext
3849 cat >>conftest.$ac_ext <<_ACEOF
3850 /* end confdefs.h. */
3851 int main() { return 0; }
3852 _ACEOF
3853 rm -f conftest$ac_exeext
3854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3855 (eval $ac_link) 2>&5
3856 ac_status=$?
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860 (eval $ac_try) 2>&5
3861 ac_status=$?
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); }; }; then
3864 ac_cv_no_strict_aliasing_ok=yes
3865 else
3866 echo "$as_me: program exited with status $ac_status" >&5
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3870 ( exit $ac_status )
3871 ac_cv_no_strict_aliasing_ok=no
3873 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3875 CC="$ac_save_cc"
3876 echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
3877 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
3878 if test $ac_cv_no_strict_aliasing_ok = yes
3879 then
3880 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
3882 case $ac_sys_system in
3883 SCO_SV*)
3884 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
3886 # is there any other compiler on Darwin besides gcc?
3887 Darwin*)
3888 BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
3889 if test "${enable_universalsdk}"; then
3890 BASECFLAGS="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
3894 OSF*)
3895 BASECFLAGS="$BASECFLAGS -mieee"
3897 esac
3901 case $ac_sys_system in
3902 OpenUNIX*|UnixWare*)
3903 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3905 OSF*)
3906 BASECFLAGS="$BASECFLAGS -ieee -std"
3908 SCO_SV*)
3909 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
3911 esac
3913 esac
3915 if test "$Py_DEBUG" = 'true'; then
3917 else
3918 OPT="-DNDEBUG $OPT"
3921 if test "$ac_arch_flags"
3922 then
3923 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
3926 # disable check for icc since it seems to pass, but generates a warning
3927 if test "$CC" = icc
3928 then
3929 ac_cv_opt_olimit_ok=no
3932 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3933 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3934 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 else
3937 ac_save_cc="$CC"
3938 CC="$CC -OPT:Olimit=0"
3939 if test "$cross_compiling" = yes; then
3940 ac_cv_opt_olimit_ok=no
3941 else
3942 cat >conftest.$ac_ext <<_ACEOF
3943 /* confdefs.h. */
3944 _ACEOF
3945 cat confdefs.h >>conftest.$ac_ext
3946 cat >>conftest.$ac_ext <<_ACEOF
3947 /* end confdefs.h. */
3948 int main() { return 0; }
3949 _ACEOF
3950 rm -f conftest$ac_exeext
3951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3952 (eval $ac_link) 2>&5
3953 ac_status=$?
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3957 (eval $ac_try) 2>&5
3958 ac_status=$?
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); }; }; then
3961 ac_cv_opt_olimit_ok=yes
3962 else
3963 echo "$as_me: program exited with status $ac_status" >&5
3964 echo "$as_me: failed program was:" >&5
3965 sed 's/^/| /' conftest.$ac_ext >&5
3967 ( exit $ac_status )
3968 ac_cv_opt_olimit_ok=no
3970 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3972 CC="$ac_save_cc"
3975 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3976 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3977 if test $ac_cv_opt_olimit_ok = yes; then
3978 case $ac_sys_system in
3979 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3980 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3981 # environment?
3982 Darwin*)
3985 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
3987 esac
3988 else
3989 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3990 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3991 if test "${ac_cv_olimit_ok+set}" = set; then
3992 echo $ECHO_N "(cached) $ECHO_C" >&6
3993 else
3994 ac_save_cc="$CC"
3995 CC="$CC -Olimit 1500"
3996 if test "$cross_compiling" = yes; then
3997 ac_cv_olimit_ok=no
3998 else
3999 cat >conftest.$ac_ext <<_ACEOF
4000 /* confdefs.h. */
4001 _ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4005 int main() { return 0; }
4006 _ACEOF
4007 rm -f conftest$ac_exeext
4008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4009 (eval $ac_link) 2>&5
4010 ac_status=$?
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4014 (eval $ac_try) 2>&5
4015 ac_status=$?
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }; }; then
4018 ac_cv_olimit_ok=yes
4019 else
4020 echo "$as_me: program exited with status $ac_status" >&5
4021 echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4024 ( exit $ac_status )
4025 ac_cv_olimit_ok=no
4027 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4029 CC="$ac_save_cc"
4032 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4033 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
4034 if test $ac_cv_olimit_ok = yes; then
4035 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4039 # On some compilers, pthreads are available without further options
4040 # (e.g. MacOS X). On some of these systems, the compiler will not
4041 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4042 # So we have to see first whether pthreads are available without
4043 # options before we can check whether -Kpthread improves anything.
4044 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4045 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
4046 if test "${ac_cv_pthread_is_default+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 else
4049 if test "$cross_compiling" = yes; then
4050 ac_cv_pthread_is_default=no
4051 else
4052 cat >conftest.$ac_ext <<_ACEOF
4053 /* confdefs.h. */
4054 _ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4059 #include <pthread.h>
4061 void* routine(void* p){return NULL;}
4063 int main(){
4064 pthread_t p;
4065 if(pthread_create(&p,NULL,routine,NULL)!=0)
4066 return 1;
4067 (void)pthread_detach(p);
4068 return 0;
4071 _ACEOF
4072 rm -f conftest$ac_exeext
4073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4074 (eval $ac_link) 2>&5
4075 ac_status=$?
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079 (eval $ac_try) 2>&5
4080 ac_status=$?
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; }; then
4084 ac_cv_pthread_is_default=yes
4085 ac_cv_kthread=no
4086 ac_cv_pthread=no
4088 else
4089 echo "$as_me: program exited with status $ac_status" >&5
4090 echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.$ac_ext >&5
4093 ( exit $ac_status )
4094 ac_cv_pthread_is_default=no
4096 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4101 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4102 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
4105 if test $ac_cv_pthread_is_default = yes
4106 then
4107 ac_cv_kpthread=no
4108 else
4109 # -Kpthread, if available, provides the right #defines
4110 # and linker options to make pthread_create available
4111 # Some compilers won't report that they do not support -Kpthread,
4112 # so we need to run a program to see whether it really made the
4113 # function available.
4114 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4115 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
4116 if test "${ac_cv_kpthread+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 else
4119 ac_save_cc="$CC"
4120 CC="$CC -Kpthread"
4121 if test "$cross_compiling" = yes; then
4122 ac_cv_kpthread=no
4123 else
4124 cat >conftest.$ac_ext <<_ACEOF
4125 /* confdefs.h. */
4126 _ACEOF
4127 cat confdefs.h >>conftest.$ac_ext
4128 cat >>conftest.$ac_ext <<_ACEOF
4129 /* end confdefs.h. */
4131 #include <pthread.h>
4133 void* routine(void* p){return NULL;}
4135 int main(){
4136 pthread_t p;
4137 if(pthread_create(&p,NULL,routine,NULL)!=0)
4138 return 1;
4139 (void)pthread_detach(p);
4140 return 0;
4143 _ACEOF
4144 rm -f conftest$ac_exeext
4145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4146 (eval $ac_link) 2>&5
4147 ac_status=$?
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151 (eval $ac_try) 2>&5
4152 ac_status=$?
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; }; then
4155 ac_cv_kpthread=yes
4156 else
4157 echo "$as_me: program exited with status $ac_status" >&5
4158 echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4161 ( exit $ac_status )
4162 ac_cv_kpthread=no
4164 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4166 CC="$ac_save_cc"
4169 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4170 echo "${ECHO_T}$ac_cv_kpthread" >&6
4173 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
4174 then
4175 # -Kthread, if available, provides the right #defines
4176 # and linker options to make pthread_create available
4177 # Some compilers won't report that they do not support -Kthread,
4178 # so we need to run a program to see whether it really made the
4179 # function available.
4180 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4181 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
4182 if test "${ac_cv_kthread+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4184 else
4185 ac_save_cc="$CC"
4186 CC="$CC -Kthread"
4187 if test "$cross_compiling" = yes; then
4188 ac_cv_kthread=no
4189 else
4190 cat >conftest.$ac_ext <<_ACEOF
4191 /* confdefs.h. */
4192 _ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4197 #include <pthread.h>
4199 void* routine(void* p){return NULL;}
4201 int main(){
4202 pthread_t p;
4203 if(pthread_create(&p,NULL,routine,NULL)!=0)
4204 return 1;
4205 (void)pthread_detach(p);
4206 return 0;
4209 _ACEOF
4210 rm -f conftest$ac_exeext
4211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4212 (eval $ac_link) 2>&5
4213 ac_status=$?
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4217 (eval $ac_try) 2>&5
4218 ac_status=$?
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; }; then
4221 ac_cv_kthread=yes
4222 else
4223 echo "$as_me: program exited with status $ac_status" >&5
4224 echo "$as_me: failed program was:" >&5
4225 sed 's/^/| /' conftest.$ac_ext >&5
4227 ( exit $ac_status )
4228 ac_cv_kthread=no
4230 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4232 CC="$ac_save_cc"
4235 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4236 echo "${ECHO_T}$ac_cv_kthread" >&6
4239 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
4240 then
4241 # -pthread, if available, provides the right #defines
4242 # and linker options to make pthread_create available
4243 # Some compilers won't report that they do not support -pthread,
4244 # so we need to run a program to see whether it really made the
4245 # function available.
4246 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4247 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
4248 if test "${ac_cv_thread+set}" = set; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 else
4251 ac_save_cc="$CC"
4252 CC="$CC -pthread"
4253 if test "$cross_compiling" = yes; then
4254 ac_cv_pthread=no
4255 else
4256 cat >conftest.$ac_ext <<_ACEOF
4257 /* confdefs.h. */
4258 _ACEOF
4259 cat confdefs.h >>conftest.$ac_ext
4260 cat >>conftest.$ac_ext <<_ACEOF
4261 /* end confdefs.h. */
4263 #include <pthread.h>
4265 void* routine(void* p){return NULL;}
4267 int main(){
4268 pthread_t p;
4269 if(pthread_create(&p,NULL,routine,NULL)!=0)
4270 return 1;
4271 (void)pthread_detach(p);
4272 return 0;
4275 _ACEOF
4276 rm -f conftest$ac_exeext
4277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4278 (eval $ac_link) 2>&5
4279 ac_status=$?
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283 (eval $ac_try) 2>&5
4284 ac_status=$?
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }; }; then
4287 ac_cv_pthread=yes
4288 else
4289 echo "$as_me: program exited with status $ac_status" >&5
4290 echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.$ac_ext >&5
4293 ( exit $ac_status )
4294 ac_cv_pthread=no
4296 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4298 CC="$ac_save_cc"
4301 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4302 echo "${ECHO_T}$ac_cv_pthread" >&6
4305 # If we have set a CC compiler flag for thread support then
4306 # check if it works for CXX, too.
4307 ac_cv_cxx_thread=no
4308 if test ! -z "$CXX"
4309 then
4310 echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
4311 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6
4312 ac_save_cxx="$CXX"
4314 if test "$ac_cv_kpthread" = "yes"
4315 then
4316 CXX="$CXX -Kpthread"
4317 ac_cv_cxx_thread=yes
4318 elif test "$ac_cv_kthread" = "yes"
4319 then
4320 CXX="$CXX -Kthread"
4321 ac_cv_cxx_thread=yes
4322 elif test "$ac_cv_pthread" = "yes"
4323 then
4324 CXX="$CXX -pthread"
4325 ac_cv_cxx_thread=yes
4328 if test $ac_cv_cxx_thread = yes
4329 then
4330 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
4331 $CXX -c conftest.$ac_ext 2>&5
4332 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
4333 && test -s conftest$ac_exeext && ./conftest$ac_exeext
4334 then
4335 ac_cv_cxx_thread=yes
4336 else
4337 ac_cv_cxx_thread=no
4339 rm -fr conftest*
4341 echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
4342 echo "${ECHO_T}$ac_cv_cxx_thread" >&6
4344 CXX="$ac_save_cxx"
4347 # checks for header files
4348 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4349 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4350 if test "${ac_cv_header_stdc+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 else
4353 cat >conftest.$ac_ext <<_ACEOF
4354 /* confdefs.h. */
4355 _ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h. */
4359 #include <stdlib.h>
4360 #include <stdarg.h>
4361 #include <string.h>
4362 #include <float.h>
4365 main ()
4369 return 0;
4371 _ACEOF
4372 rm -f conftest.$ac_objext
4373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4374 (eval $ac_compile) 2>conftest.er1
4375 ac_status=$?
4376 grep -v '^ *+' conftest.er1 >conftest.err
4377 rm -f conftest.er1
4378 cat conftest.err >&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); } &&
4381 { ac_try='test -z "$ac_c_werror_flag"
4382 || test ! -s conftest.err'
4383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384 (eval $ac_try) 2>&5
4385 ac_status=$?
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; } &&
4388 { ac_try='test -s conftest.$ac_objext'
4389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4390 (eval $ac_try) 2>&5
4391 ac_status=$?
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }; }; then
4394 ac_cv_header_stdc=yes
4395 else
4396 echo "$as_me: failed program was:" >&5
4397 sed 's/^/| /' conftest.$ac_ext >&5
4399 ac_cv_header_stdc=no
4401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4403 if test $ac_cv_header_stdc = yes; then
4404 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4405 cat >conftest.$ac_ext <<_ACEOF
4406 /* confdefs.h. */
4407 _ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4411 #include <string.h>
4413 _ACEOF
4414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4415 $EGREP "memchr" >/dev/null 2>&1; then
4417 else
4418 ac_cv_header_stdc=no
4420 rm -f conftest*
4424 if test $ac_cv_header_stdc = yes; then
4425 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4426 cat >conftest.$ac_ext <<_ACEOF
4427 /* confdefs.h. */
4428 _ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4432 #include <stdlib.h>
4434 _ACEOF
4435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4436 $EGREP "free" >/dev/null 2>&1; then
4438 else
4439 ac_cv_header_stdc=no
4441 rm -f conftest*
4445 if test $ac_cv_header_stdc = yes; then
4446 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4447 if test "$cross_compiling" = yes; then
4449 else
4450 cat >conftest.$ac_ext <<_ACEOF
4451 /* confdefs.h. */
4452 _ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4456 #include <ctype.h>
4457 #if ((' ' & 0x0FF) == 0x020)
4458 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4459 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4460 #else
4461 # define ISLOWER(c) \
4462 (('a' <= (c) && (c) <= 'i') \
4463 || ('j' <= (c) && (c) <= 'r') \
4464 || ('s' <= (c) && (c) <= 'z'))
4465 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4466 #endif
4468 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4470 main ()
4472 int i;
4473 for (i = 0; i < 256; i++)
4474 if (XOR (islower (i), ISLOWER (i))
4475 || toupper (i) != TOUPPER (i))
4476 exit(2);
4477 exit (0);
4479 _ACEOF
4480 rm -f conftest$ac_exeext
4481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4482 (eval $ac_link) 2>&5
4483 ac_status=$?
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487 (eval $ac_try) 2>&5
4488 ac_status=$?
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; }; then
4492 else
4493 echo "$as_me: program exited with status $ac_status" >&5
4494 echo "$as_me: failed program was:" >&5
4495 sed 's/^/| /' conftest.$ac_ext >&5
4497 ( exit $ac_status )
4498 ac_cv_header_stdc=no
4500 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4504 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4505 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4506 if test $ac_cv_header_stdc = yes; then
4508 cat >>confdefs.h <<\_ACEOF
4509 #define STDC_HEADERS 1
4510 _ACEOF
4514 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4524 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4525 inttypes.h stdint.h unistd.h
4527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4528 echo "$as_me:$LINENO: checking for $ac_header" >&5
4529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533 cat >conftest.$ac_ext <<_ACEOF
4534 /* confdefs.h. */
4535 _ACEOF
4536 cat confdefs.h >>conftest.$ac_ext
4537 cat >>conftest.$ac_ext <<_ACEOF
4538 /* end confdefs.h. */
4539 $ac_includes_default
4541 #include <$ac_header>
4542 _ACEOF
4543 rm -f conftest.$ac_objext
4544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4545 (eval $ac_compile) 2>conftest.er1
4546 ac_status=$?
4547 grep -v '^ *+' conftest.er1 >conftest.err
4548 rm -f conftest.er1
4549 cat conftest.err >&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } &&
4552 { ac_try='test -z "$ac_c_werror_flag"
4553 || test ! -s conftest.err'
4554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555 (eval $ac_try) 2>&5
4556 ac_status=$?
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; } &&
4559 { ac_try='test -s conftest.$ac_objext'
4560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561 (eval $ac_try) 2>&5
4562 ac_status=$?
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; }; then
4565 eval "$as_ac_Header=yes"
4566 else
4567 echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.$ac_ext >&5
4570 eval "$as_ac_Header=no"
4572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4577 cat >>confdefs.h <<_ACEOF
4578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4579 _ACEOF
4583 done
4626 for ac_header in asm/types.h curses.h dlfcn.h fcntl.h grp.h \
4627 shadow.h langinfo.h libintl.h ncurses.h poll.h pthread.h \
4628 stropts.h termios.h thread.h \
4629 unistd.h utime.h \
4630 sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
4631 sys/modem.h \
4632 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/time.h \
4633 sys/times.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
4634 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
4635 bluetooth/bluetooth.h
4637 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4639 echo "$as_me:$LINENO: checking for $ac_header" >&5
4640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4646 else
4647 # Is the header compilable?
4648 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4649 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4650 cat >conftest.$ac_ext <<_ACEOF
4651 /* confdefs.h. */
4652 _ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h. */
4656 $ac_includes_default
4657 #include <$ac_header>
4658 _ACEOF
4659 rm -f conftest.$ac_objext
4660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4661 (eval $ac_compile) 2>conftest.er1
4662 ac_status=$?
4663 grep -v '^ *+' conftest.er1 >conftest.err
4664 rm -f conftest.er1
4665 cat conftest.err >&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); } &&
4668 { ac_try='test -z "$ac_c_werror_flag"
4669 || test ! -s conftest.err'
4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671 (eval $ac_try) 2>&5
4672 ac_status=$?
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; } &&
4675 { ac_try='test -s conftest.$ac_objext'
4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677 (eval $ac_try) 2>&5
4678 ac_status=$?
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; }; then
4681 ac_header_compiler=yes
4682 else
4683 echo "$as_me: failed program was:" >&5
4684 sed 's/^/| /' conftest.$ac_ext >&5
4686 ac_header_compiler=no
4688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4689 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4690 echo "${ECHO_T}$ac_header_compiler" >&6
4692 # Is the header present?
4693 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4694 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4695 cat >conftest.$ac_ext <<_ACEOF
4696 /* confdefs.h. */
4697 _ACEOF
4698 cat confdefs.h >>conftest.$ac_ext
4699 cat >>conftest.$ac_ext <<_ACEOF
4700 /* end confdefs.h. */
4701 #include <$ac_header>
4702 _ACEOF
4703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4705 ac_status=$?
4706 grep -v '^ *+' conftest.er1 >conftest.err
4707 rm -f conftest.er1
4708 cat conftest.err >&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); } >/dev/null; then
4711 if test -s conftest.err; then
4712 ac_cpp_err=$ac_c_preproc_warn_flag
4713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4714 else
4715 ac_cpp_err=
4717 else
4718 ac_cpp_err=yes
4720 if test -z "$ac_cpp_err"; then
4721 ac_header_preproc=yes
4722 else
4723 echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.$ac_ext >&5
4726 ac_header_preproc=no
4728 rm -f conftest.err conftest.$ac_ext
4729 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4730 echo "${ECHO_T}$ac_header_preproc" >&6
4732 # So? What about this header?
4733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4734 yes:no: )
4735 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4736 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4738 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4739 ac_header_preproc=yes
4741 no:yes:* )
4742 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4743 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4744 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4745 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4746 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4747 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4748 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4749 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4751 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4752 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4753 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4755 cat <<\_ASBOX
4756 ## ------------------------------------------------ ##
4757 ## Report this to http://www.python.org/python-bugs ##
4758 ## ------------------------------------------------ ##
4759 _ASBOX
4761 sed "s/^/$as_me: WARNING: /" >&2
4763 esac
4764 echo "$as_me:$LINENO: checking for $ac_header" >&5
4765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4768 else
4769 eval "$as_ac_Header=\$ac_header_preproc"
4771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4776 cat >>confdefs.h <<_ACEOF
4777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4778 _ACEOF
4782 done
4789 ac_header_dirent=no
4790 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4791 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4792 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4793 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4796 else
4797 cat >conftest.$ac_ext <<_ACEOF
4798 /* confdefs.h. */
4799 _ACEOF
4800 cat confdefs.h >>conftest.$ac_ext
4801 cat >>conftest.$ac_ext <<_ACEOF
4802 /* end confdefs.h. */
4803 #include <sys/types.h>
4804 #include <$ac_hdr>
4807 main ()
4809 if ((DIR *) 0)
4810 return 0;
4812 return 0;
4814 _ACEOF
4815 rm -f conftest.$ac_objext
4816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4817 (eval $ac_compile) 2>conftest.er1
4818 ac_status=$?
4819 grep -v '^ *+' conftest.er1 >conftest.err
4820 rm -f conftest.er1
4821 cat conftest.err >&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); } &&
4824 { ac_try='test -z "$ac_c_werror_flag"
4825 || test ! -s conftest.err'
4826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827 (eval $ac_try) 2>&5
4828 ac_status=$?
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); }; } &&
4831 { ac_try='test -s conftest.$ac_objext'
4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4833 (eval $ac_try) 2>&5
4834 ac_status=$?
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; }; then
4837 eval "$as_ac_Header=yes"
4838 else
4839 echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.$ac_ext >&5
4842 eval "$as_ac_Header=no"
4844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4849 cat >>confdefs.h <<_ACEOF
4850 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4851 _ACEOF
4853 ac_header_dirent=$ac_hdr; break
4856 done
4857 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4858 if test $ac_header_dirent = dirent.h; then
4859 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4860 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4861 if test "${ac_cv_search_opendir+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4863 else
4864 ac_func_search_save_LIBS=$LIBS
4865 ac_cv_search_opendir=no
4866 cat >conftest.$ac_ext <<_ACEOF
4867 /* confdefs.h. */
4868 _ACEOF
4869 cat confdefs.h >>conftest.$ac_ext
4870 cat >>conftest.$ac_ext <<_ACEOF
4871 /* end confdefs.h. */
4873 /* Override any gcc2 internal prototype to avoid an error. */
4874 #ifdef __cplusplus
4875 extern "C"
4876 #endif
4877 /* We use char because int might match the return type of a gcc2
4878 builtin and then its argument prototype would still apply. */
4879 char opendir ();
4881 main ()
4883 opendir ();
4885 return 0;
4887 _ACEOF
4888 rm -f conftest.$ac_objext conftest$ac_exeext
4889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4890 (eval $ac_link) 2>conftest.er1
4891 ac_status=$?
4892 grep -v '^ *+' conftest.er1 >conftest.err
4893 rm -f conftest.er1
4894 cat conftest.err >&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); } &&
4897 { ac_try='test -z "$ac_c_werror_flag"
4898 || test ! -s conftest.err'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 (eval $ac_try) 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; } &&
4904 { ac_try='test -s conftest$ac_exeext'
4905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4906 (eval $ac_try) 2>&5
4907 ac_status=$?
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); }; }; then
4910 ac_cv_search_opendir="none required"
4911 else
4912 echo "$as_me: failed program was:" >&5
4913 sed 's/^/| /' conftest.$ac_ext >&5
4916 rm -f conftest.err conftest.$ac_objext \
4917 conftest$ac_exeext conftest.$ac_ext
4918 if test "$ac_cv_search_opendir" = no; then
4919 for ac_lib in dir; do
4920 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4921 cat >conftest.$ac_ext <<_ACEOF
4922 /* confdefs.h. */
4923 _ACEOF
4924 cat confdefs.h >>conftest.$ac_ext
4925 cat >>conftest.$ac_ext <<_ACEOF
4926 /* end confdefs.h. */
4928 /* Override any gcc2 internal prototype to avoid an error. */
4929 #ifdef __cplusplus
4930 extern "C"
4931 #endif
4932 /* We use char because int might match the return type of a gcc2
4933 builtin and then its argument prototype would still apply. */
4934 char opendir ();
4936 main ()
4938 opendir ();
4940 return 0;
4942 _ACEOF
4943 rm -f conftest.$ac_objext conftest$ac_exeext
4944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4945 (eval $ac_link) 2>conftest.er1
4946 ac_status=$?
4947 grep -v '^ *+' conftest.er1 >conftest.err
4948 rm -f conftest.er1
4949 cat conftest.err >&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); } &&
4952 { ac_try='test -z "$ac_c_werror_flag"
4953 || test ! -s conftest.err'
4954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4955 (eval $ac_try) 2>&5
4956 ac_status=$?
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); }; } &&
4959 { ac_try='test -s conftest$ac_exeext'
4960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961 (eval $ac_try) 2>&5
4962 ac_status=$?
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }; }; then
4965 ac_cv_search_opendir="-l$ac_lib"
4966 break
4967 else
4968 echo "$as_me: failed program was:" >&5
4969 sed 's/^/| /' conftest.$ac_ext >&5
4972 rm -f conftest.err conftest.$ac_objext \
4973 conftest$ac_exeext conftest.$ac_ext
4974 done
4976 LIBS=$ac_func_search_save_LIBS
4978 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4979 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4980 if test "$ac_cv_search_opendir" != no; then
4981 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4985 else
4986 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4987 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4988 if test "${ac_cv_search_opendir+set}" = set; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4990 else
4991 ac_func_search_save_LIBS=$LIBS
4992 ac_cv_search_opendir=no
4993 cat >conftest.$ac_ext <<_ACEOF
4994 /* confdefs.h. */
4995 _ACEOF
4996 cat confdefs.h >>conftest.$ac_ext
4997 cat >>conftest.$ac_ext <<_ACEOF
4998 /* end confdefs.h. */
5000 /* Override any gcc2 internal prototype to avoid an error. */
5001 #ifdef __cplusplus
5002 extern "C"
5003 #endif
5004 /* We use char because int might match the return type of a gcc2
5005 builtin and then its argument prototype would still apply. */
5006 char opendir ();
5008 main ()
5010 opendir ();
5012 return 0;
5014 _ACEOF
5015 rm -f conftest.$ac_objext conftest$ac_exeext
5016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5017 (eval $ac_link) 2>conftest.er1
5018 ac_status=$?
5019 grep -v '^ *+' conftest.er1 >conftest.err
5020 rm -f conftest.er1
5021 cat conftest.err >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); } &&
5024 { ac_try='test -z "$ac_c_werror_flag"
5025 || test ! -s conftest.err'
5026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5027 (eval $ac_try) 2>&5
5028 ac_status=$?
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); }; } &&
5031 { ac_try='test -s conftest$ac_exeext'
5032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033 (eval $ac_try) 2>&5
5034 ac_status=$?
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); }; }; then
5037 ac_cv_search_opendir="none required"
5038 else
5039 echo "$as_me: failed program was:" >&5
5040 sed 's/^/| /' conftest.$ac_ext >&5
5043 rm -f conftest.err conftest.$ac_objext \
5044 conftest$ac_exeext conftest.$ac_ext
5045 if test "$ac_cv_search_opendir" = no; then
5046 for ac_lib in x; do
5047 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5048 cat >conftest.$ac_ext <<_ACEOF
5049 /* confdefs.h. */
5050 _ACEOF
5051 cat confdefs.h >>conftest.$ac_ext
5052 cat >>conftest.$ac_ext <<_ACEOF
5053 /* end confdefs.h. */
5055 /* Override any gcc2 internal prototype to avoid an error. */
5056 #ifdef __cplusplus
5057 extern "C"
5058 #endif
5059 /* We use char because int might match the return type of a gcc2
5060 builtin and then its argument prototype would still apply. */
5061 char opendir ();
5063 main ()
5065 opendir ();
5067 return 0;
5069 _ACEOF
5070 rm -f conftest.$ac_objext conftest$ac_exeext
5071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5072 (eval $ac_link) 2>conftest.er1
5073 ac_status=$?
5074 grep -v '^ *+' conftest.er1 >conftest.err
5075 rm -f conftest.er1
5076 cat conftest.err >&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); } &&
5079 { ac_try='test -z "$ac_c_werror_flag"
5080 || test ! -s conftest.err'
5081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082 (eval $ac_try) 2>&5
5083 ac_status=$?
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); }; } &&
5086 { ac_try='test -s conftest$ac_exeext'
5087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5088 (eval $ac_try) 2>&5
5089 ac_status=$?
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); }; }; then
5092 ac_cv_search_opendir="-l$ac_lib"
5093 break
5094 else
5095 echo "$as_me: failed program was:" >&5
5096 sed 's/^/| /' conftest.$ac_ext >&5
5099 rm -f conftest.err conftest.$ac_objext \
5100 conftest$ac_exeext conftest.$ac_ext
5101 done
5103 LIBS=$ac_func_search_save_LIBS
5105 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5106 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5107 if test "$ac_cv_search_opendir" != no; then
5108 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5114 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5115 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5116 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5117 echo $ECHO_N "(cached) $ECHO_C" >&6
5118 else
5119 cat >conftest.$ac_ext <<_ACEOF
5120 /* confdefs.h. */
5121 _ACEOF
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h. */
5125 #include <sys/types.h>
5127 main ()
5129 return makedev(0, 0);
5131 return 0;
5133 _ACEOF
5134 rm -f conftest.$ac_objext conftest$ac_exeext
5135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5136 (eval $ac_link) 2>conftest.er1
5137 ac_status=$?
5138 grep -v '^ *+' conftest.er1 >conftest.err
5139 rm -f conftest.er1
5140 cat conftest.err >&5
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); } &&
5143 { ac_try='test -z "$ac_c_werror_flag"
5144 || test ! -s conftest.err'
5145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146 (eval $ac_try) 2>&5
5147 ac_status=$?
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); }; } &&
5150 { ac_try='test -s conftest$ac_exeext'
5151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5152 (eval $ac_try) 2>&5
5153 ac_status=$?
5154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155 (exit $ac_status); }; }; then
5156 ac_cv_header_sys_types_h_makedev=yes
5157 else
5158 echo "$as_me: failed program was:" >&5
5159 sed 's/^/| /' conftest.$ac_ext >&5
5161 ac_cv_header_sys_types_h_makedev=no
5163 rm -f conftest.err conftest.$ac_objext \
5164 conftest$ac_exeext conftest.$ac_ext
5167 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5168 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5170 if test $ac_cv_header_sys_types_h_makedev = no; then
5171 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5172 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5173 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5174 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5178 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5179 else
5180 # Is the header compilable?
5181 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5182 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
5183 cat >conftest.$ac_ext <<_ACEOF
5184 /* confdefs.h. */
5185 _ACEOF
5186 cat confdefs.h >>conftest.$ac_ext
5187 cat >>conftest.$ac_ext <<_ACEOF
5188 /* end confdefs.h. */
5189 $ac_includes_default
5190 #include <sys/mkdev.h>
5191 _ACEOF
5192 rm -f conftest.$ac_objext
5193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5194 (eval $ac_compile) 2>conftest.er1
5195 ac_status=$?
5196 grep -v '^ *+' conftest.er1 >conftest.err
5197 rm -f conftest.er1
5198 cat conftest.err >&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); } &&
5201 { ac_try='test -z "$ac_c_werror_flag"
5202 || test ! -s conftest.err'
5203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5204 (eval $ac_try) 2>&5
5205 ac_status=$?
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); }; } &&
5208 { ac_try='test -s conftest.$ac_objext'
5209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5210 (eval $ac_try) 2>&5
5211 ac_status=$?
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); }; }; then
5214 ac_header_compiler=yes
5215 else
5216 echo "$as_me: failed program was:" >&5
5217 sed 's/^/| /' conftest.$ac_ext >&5
5219 ac_header_compiler=no
5221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5222 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5223 echo "${ECHO_T}$ac_header_compiler" >&6
5225 # Is the header present?
5226 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5227 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
5228 cat >conftest.$ac_ext <<_ACEOF
5229 /* confdefs.h. */
5230 _ACEOF
5231 cat confdefs.h >>conftest.$ac_ext
5232 cat >>conftest.$ac_ext <<_ACEOF
5233 /* end confdefs.h. */
5234 #include <sys/mkdev.h>
5235 _ACEOF
5236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5238 ac_status=$?
5239 grep -v '^ *+' conftest.er1 >conftest.err
5240 rm -f conftest.er1
5241 cat conftest.err >&5
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); } >/dev/null; then
5244 if test -s conftest.err; then
5245 ac_cpp_err=$ac_c_preproc_warn_flag
5246 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5247 else
5248 ac_cpp_err=
5250 else
5251 ac_cpp_err=yes
5253 if test -z "$ac_cpp_err"; then
5254 ac_header_preproc=yes
5255 else
5256 echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.$ac_ext >&5
5259 ac_header_preproc=no
5261 rm -f conftest.err conftest.$ac_ext
5262 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5263 echo "${ECHO_T}$ac_header_preproc" >&6
5265 # So? What about this header?
5266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5267 yes:no: )
5268 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5269 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5270 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5271 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5272 ac_header_preproc=yes
5274 no:yes:* )
5275 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5276 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5277 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5278 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5279 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5280 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5281 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5282 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5283 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5284 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5285 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5286 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5288 cat <<\_ASBOX
5289 ## ------------------------------------------------ ##
5290 ## Report this to http://www.python.org/python-bugs ##
5291 ## ------------------------------------------------ ##
5292 _ASBOX
5294 sed "s/^/$as_me: WARNING: /" >&2
5296 esac
5297 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5298 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5299 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5300 echo $ECHO_N "(cached) $ECHO_C" >&6
5301 else
5302 ac_cv_header_sys_mkdev_h=$ac_header_preproc
5304 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5305 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5308 if test $ac_cv_header_sys_mkdev_h = yes; then
5310 cat >>confdefs.h <<\_ACEOF
5311 #define MAJOR_IN_MKDEV 1
5312 _ACEOF
5318 if test $ac_cv_header_sys_mkdev_h = no; then
5319 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5320 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5321 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5322 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5325 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5326 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5327 else
5328 # Is the header compilable?
5329 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5330 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
5331 cat >conftest.$ac_ext <<_ACEOF
5332 /* confdefs.h. */
5333 _ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h. */
5337 $ac_includes_default
5338 #include <sys/sysmacros.h>
5339 _ACEOF
5340 rm -f conftest.$ac_objext
5341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5342 (eval $ac_compile) 2>conftest.er1
5343 ac_status=$?
5344 grep -v '^ *+' conftest.er1 >conftest.err
5345 rm -f conftest.er1
5346 cat conftest.err >&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); } &&
5349 { ac_try='test -z "$ac_c_werror_flag"
5350 || test ! -s conftest.err'
5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 (eval $ac_try) 2>&5
5353 ac_status=$?
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }; } &&
5356 { ac_try='test -s conftest.$ac_objext'
5357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358 (eval $ac_try) 2>&5
5359 ac_status=$?
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); }; }; then
5362 ac_header_compiler=yes
5363 else
5364 echo "$as_me: failed program was:" >&5
5365 sed 's/^/| /' conftest.$ac_ext >&5
5367 ac_header_compiler=no
5369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5370 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5371 echo "${ECHO_T}$ac_header_compiler" >&6
5373 # Is the header present?
5374 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
5375 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
5376 cat >conftest.$ac_ext <<_ACEOF
5377 /* confdefs.h. */
5378 _ACEOF
5379 cat confdefs.h >>conftest.$ac_ext
5380 cat >>conftest.$ac_ext <<_ACEOF
5381 /* end confdefs.h. */
5382 #include <sys/sysmacros.h>
5383 _ACEOF
5384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5386 ac_status=$?
5387 grep -v '^ *+' conftest.er1 >conftest.err
5388 rm -f conftest.er1
5389 cat conftest.err >&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); } >/dev/null; then
5392 if test -s conftest.err; then
5393 ac_cpp_err=$ac_c_preproc_warn_flag
5394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5395 else
5396 ac_cpp_err=
5398 else
5399 ac_cpp_err=yes
5401 if test -z "$ac_cpp_err"; then
5402 ac_header_preproc=yes
5403 else
5404 echo "$as_me: failed program was:" >&5
5405 sed 's/^/| /' conftest.$ac_ext >&5
5407 ac_header_preproc=no
5409 rm -f conftest.err conftest.$ac_ext
5410 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5411 echo "${ECHO_T}$ac_header_preproc" >&6
5413 # So? What about this header?
5414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5415 yes:no: )
5416 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
5417 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5418 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
5419 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
5420 ac_header_preproc=yes
5422 no:yes:* )
5423 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
5424 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
5425 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
5426 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
5427 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
5428 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
5429 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
5430 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
5431 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
5432 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
5433 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
5434 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
5436 cat <<\_ASBOX
5437 ## ------------------------------------------------ ##
5438 ## Report this to http://www.python.org/python-bugs ##
5439 ## ------------------------------------------------ ##
5440 _ASBOX
5442 sed "s/^/$as_me: WARNING: /" >&2
5444 esac
5445 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5446 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5447 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5448 echo $ECHO_N "(cached) $ECHO_C" >&6
5449 else
5450 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
5452 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5453 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5456 if test $ac_cv_header_sys_sysmacros_h = yes; then
5458 cat >>confdefs.h <<\_ACEOF
5459 #define MAJOR_IN_SYSMACROS 1
5460 _ACEOF
5469 # On Solaris, term.h requires curses.h
5471 for ac_header in term.h
5473 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5474 echo "$as_me:$LINENO: checking for $ac_header" >&5
5475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5478 else
5479 cat >conftest.$ac_ext <<_ACEOF
5480 /* confdefs.h. */
5481 _ACEOF
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h. */
5486 #ifdef HAVE_CURSES_H
5487 #include <curses.h>
5488 #endif
5491 #include <$ac_header>
5492 _ACEOF
5493 rm -f conftest.$ac_objext
5494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5495 (eval $ac_compile) 2>conftest.er1
5496 ac_status=$?
5497 grep -v '^ *+' conftest.er1 >conftest.err
5498 rm -f conftest.er1
5499 cat conftest.err >&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); } &&
5502 { ac_try='test -z "$ac_c_werror_flag"
5503 || test ! -s conftest.err'
5504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5505 (eval $ac_try) 2>&5
5506 ac_status=$?
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); }; } &&
5509 { ac_try='test -s conftest.$ac_objext'
5510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5511 (eval $ac_try) 2>&5
5512 ac_status=$?
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); }; }; then
5515 eval "$as_ac_Header=yes"
5516 else
5517 echo "$as_me: failed program was:" >&5
5518 sed 's/^/| /' conftest.$ac_ext >&5
5520 eval "$as_ac_Header=no"
5522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5527 cat >>confdefs.h <<_ACEOF
5528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5529 _ACEOF
5533 done
5536 # On Linux, netlink.h requires asm/types.h
5538 for ac_header in linux/netlink.h
5540 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5541 echo "$as_me:$LINENO: checking for $ac_header" >&5
5542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5544 echo $ECHO_N "(cached) $ECHO_C" >&6
5545 else
5546 cat >conftest.$ac_ext <<_ACEOF
5547 /* confdefs.h. */
5548 _ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h. */
5553 #ifdef HAVE_ASM_TYPES_H
5554 #include <asm/types.h>
5555 #endif
5556 #ifdef HAVE_SYS_SOCKET_H
5557 #include <sys/socket.h>
5558 #endif
5561 #include <$ac_header>
5562 _ACEOF
5563 rm -f conftest.$ac_objext
5564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5565 (eval $ac_compile) 2>conftest.er1
5566 ac_status=$?
5567 grep -v '^ *+' conftest.er1 >conftest.err
5568 rm -f conftest.er1
5569 cat conftest.err >&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); } &&
5572 { ac_try='test -z "$ac_c_werror_flag"
5573 || test ! -s conftest.err'
5574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5575 (eval $ac_try) 2>&5
5576 ac_status=$?
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); }; } &&
5579 { ac_try='test -s conftest.$ac_objext'
5580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5581 (eval $ac_try) 2>&5
5582 ac_status=$?
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); }; }; then
5585 eval "$as_ac_Header=yes"
5586 else
5587 echo "$as_me: failed program was:" >&5
5588 sed 's/^/| /' conftest.$ac_ext >&5
5590 eval "$as_ac_Header=no"
5592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5597 cat >>confdefs.h <<_ACEOF
5598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5599 _ACEOF
5603 done
5606 # checks for typedefs
5607 was_it_defined=no
5608 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
5609 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
5610 cat >conftest.$ac_ext <<_ACEOF
5611 /* confdefs.h. */
5612 _ACEOF
5613 cat confdefs.h >>conftest.$ac_ext
5614 cat >>conftest.$ac_ext <<_ACEOF
5615 /* end confdefs.h. */
5616 #include <time.h>
5618 _ACEOF
5619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5620 $EGREP "clock_t" >/dev/null 2>&1; then
5621 was_it_defined=yes
5622 else
5625 cat >>confdefs.h <<\_ACEOF
5626 #define clock_t long
5627 _ACEOF
5631 rm -f conftest*
5633 echo "$as_me:$LINENO: result: $was_it_defined" >&5
5634 echo "${ECHO_T}$was_it_defined" >&6
5636 # Check whether using makedev requires defining _OSF_SOURCE
5637 echo "$as_me:$LINENO: checking for makedev" >&5
5638 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
5639 cat >conftest.$ac_ext <<_ACEOF
5640 /* confdefs.h. */
5641 _ACEOF
5642 cat confdefs.h >>conftest.$ac_ext
5643 cat >>conftest.$ac_ext <<_ACEOF
5644 /* end confdefs.h. */
5645 #include <sys/types.h>
5647 main ()
5649 makedev(0, 0)
5651 return 0;
5653 _ACEOF
5654 rm -f conftest.$ac_objext conftest$ac_exeext
5655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5656 (eval $ac_link) 2>conftest.er1
5657 ac_status=$?
5658 grep -v '^ *+' conftest.er1 >conftest.err
5659 rm -f conftest.er1
5660 cat conftest.err >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); } &&
5663 { ac_try='test -z "$ac_c_werror_flag"
5664 || test ! -s conftest.err'
5665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5666 (eval $ac_try) 2>&5
5667 ac_status=$?
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); }; } &&
5670 { ac_try='test -s conftest$ac_exeext'
5671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672 (eval $ac_try) 2>&5
5673 ac_status=$?
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; }; then
5676 ac_cv_has_makedev=yes
5677 else
5678 echo "$as_me: failed program was:" >&5
5679 sed 's/^/| /' conftest.$ac_ext >&5
5681 ac_cv_has_makedev=no
5683 rm -f conftest.err conftest.$ac_objext \
5684 conftest$ac_exeext conftest.$ac_ext
5685 if test "$ac_cv_has_makedev" = "no"; then
5686 # we didn't link, try if _OSF_SOURCE will allow us to link
5687 cat >conftest.$ac_ext <<_ACEOF
5688 /* confdefs.h. */
5689 _ACEOF
5690 cat confdefs.h >>conftest.$ac_ext
5691 cat >>conftest.$ac_ext <<_ACEOF
5692 /* end confdefs.h. */
5694 #define _OSF_SOURCE 1
5695 #include <sys/types.h>
5698 main ()
5700 makedev(0, 0)
5702 return 0;
5704 _ACEOF
5705 rm -f conftest.$ac_objext conftest$ac_exeext
5706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5707 (eval $ac_link) 2>conftest.er1
5708 ac_status=$?
5709 grep -v '^ *+' conftest.er1 >conftest.err
5710 rm -f conftest.er1
5711 cat conftest.err >&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); } &&
5714 { ac_try='test -z "$ac_c_werror_flag"
5715 || test ! -s conftest.err'
5716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717 (eval $ac_try) 2>&5
5718 ac_status=$?
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }; } &&
5721 { ac_try='test -s conftest$ac_exeext'
5722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723 (eval $ac_try) 2>&5
5724 ac_status=$?
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; }; then
5727 ac_cv_has_makedev=yes
5728 else
5729 echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5732 ac_cv_has_makedev=no
5734 rm -f conftest.err conftest.$ac_objext \
5735 conftest$ac_exeext conftest.$ac_ext
5736 if test "$ac_cv_has_makedev" = "yes"; then
5738 cat >>confdefs.h <<\_ACEOF
5739 #define _OSF_SOURCE 1
5740 _ACEOF
5744 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
5745 echo "${ECHO_T}$ac_cv_has_makedev" >&6
5746 if test "$ac_cv_has_makedev" = "yes"; then
5748 cat >>confdefs.h <<\_ACEOF
5749 #define HAVE_MAKEDEV 1
5750 _ACEOF
5754 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5755 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5756 # defined, but the compiler does not support pragma redefine_extname,
5757 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5758 # structures (such as rlimit64) without declaring them. As a
5759 # work-around, disable LFS on such configurations
5761 use_lfs=yes
5762 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5763 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5764 cat >conftest.$ac_ext <<_ACEOF
5765 /* confdefs.h. */
5766 _ACEOF
5767 cat confdefs.h >>conftest.$ac_ext
5768 cat >>conftest.$ac_ext <<_ACEOF
5769 /* end confdefs.h. */
5771 #define _LARGEFILE_SOURCE 1
5772 #define _FILE_OFFSET_BITS 64
5773 #include <sys/resource.h>
5776 main ()
5778 struct rlimit foo;
5780 return 0;
5782 _ACEOF
5783 rm -f conftest.$ac_objext
5784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5785 (eval $ac_compile) 2>conftest.er1
5786 ac_status=$?
5787 grep -v '^ *+' conftest.er1 >conftest.err
5788 rm -f conftest.er1
5789 cat conftest.err >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); } &&
5792 { ac_try='test -z "$ac_c_werror_flag"
5793 || test ! -s conftest.err'
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795 (eval $ac_try) 2>&5
5796 ac_status=$?
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; } &&
5799 { ac_try='test -s conftest.$ac_objext'
5800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5801 (eval $ac_try) 2>&5
5802 ac_status=$?
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); }; }; then
5805 sol_lfs_bug=no
5806 else
5807 echo "$as_me: failed program was:" >&5
5808 sed 's/^/| /' conftest.$ac_ext >&5
5810 sol_lfs_bug=yes
5812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5813 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5814 echo "${ECHO_T}$sol_lfs_bug" >&6
5815 if test "$sol_lfs_bug" = "yes"; then
5816 use_lfs=no
5819 if test "$use_lfs" = "yes"; then
5820 # Two defines needed to enable largefile support on various platforms
5821 # These may affect some typedefs
5823 cat >>confdefs.h <<\_ACEOF
5824 #define _LARGEFILE_SOURCE 1
5825 _ACEOF
5828 cat >>confdefs.h <<\_ACEOF
5829 #define _FILE_OFFSET_BITS 64
5830 _ACEOF
5834 # Add some code to confdefs.h so that the test for off_t works on SCO
5835 cat >> confdefs.h <<\EOF
5836 #if defined(SCO_DS)
5837 #undef _OFF_T
5838 #endif
5841 # Type availability checks
5842 echo "$as_me:$LINENO: checking for mode_t" >&5
5843 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5844 if test "${ac_cv_type_mode_t+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5846 else
5847 cat >conftest.$ac_ext <<_ACEOF
5848 /* confdefs.h. */
5849 _ACEOF
5850 cat confdefs.h >>conftest.$ac_ext
5851 cat >>conftest.$ac_ext <<_ACEOF
5852 /* end confdefs.h. */
5853 $ac_includes_default
5855 main ()
5857 if ((mode_t *) 0)
5858 return 0;
5859 if (sizeof (mode_t))
5860 return 0;
5862 return 0;
5864 _ACEOF
5865 rm -f conftest.$ac_objext
5866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5867 (eval $ac_compile) 2>conftest.er1
5868 ac_status=$?
5869 grep -v '^ *+' conftest.er1 >conftest.err
5870 rm -f conftest.er1
5871 cat conftest.err >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } &&
5874 { ac_try='test -z "$ac_c_werror_flag"
5875 || test ! -s conftest.err'
5876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877 (eval $ac_try) 2>&5
5878 ac_status=$?
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; } &&
5881 { ac_try='test -s conftest.$ac_objext'
5882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883 (eval $ac_try) 2>&5
5884 ac_status=$?
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; }; then
5887 ac_cv_type_mode_t=yes
5888 else
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5892 ac_cv_type_mode_t=no
5894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5896 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5897 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5898 if test $ac_cv_type_mode_t = yes; then
5900 else
5902 cat >>confdefs.h <<_ACEOF
5903 #define mode_t int
5904 _ACEOF
5908 echo "$as_me:$LINENO: checking for off_t" >&5
5909 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5910 if test "${ac_cv_type_off_t+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5912 else
5913 cat >conftest.$ac_ext <<_ACEOF
5914 /* confdefs.h. */
5915 _ACEOF
5916 cat confdefs.h >>conftest.$ac_ext
5917 cat >>conftest.$ac_ext <<_ACEOF
5918 /* end confdefs.h. */
5919 $ac_includes_default
5921 main ()
5923 if ((off_t *) 0)
5924 return 0;
5925 if (sizeof (off_t))
5926 return 0;
5928 return 0;
5930 _ACEOF
5931 rm -f conftest.$ac_objext
5932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5933 (eval $ac_compile) 2>conftest.er1
5934 ac_status=$?
5935 grep -v '^ *+' conftest.er1 >conftest.err
5936 rm -f conftest.er1
5937 cat conftest.err >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } &&
5940 { ac_try='test -z "$ac_c_werror_flag"
5941 || test ! -s conftest.err'
5942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943 (eval $ac_try) 2>&5
5944 ac_status=$?
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; } &&
5947 { ac_try='test -s conftest.$ac_objext'
5948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949 (eval $ac_try) 2>&5
5950 ac_status=$?
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; }; then
5953 ac_cv_type_off_t=yes
5954 else
5955 echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.$ac_ext >&5
5958 ac_cv_type_off_t=no
5960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5962 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5963 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5964 if test $ac_cv_type_off_t = yes; then
5966 else
5968 cat >>confdefs.h <<_ACEOF
5969 #define off_t long
5970 _ACEOF
5974 echo "$as_me:$LINENO: checking for pid_t" >&5
5975 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5976 if test "${ac_cv_type_pid_t+set}" = set; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5978 else
5979 cat >conftest.$ac_ext <<_ACEOF
5980 /* confdefs.h. */
5981 _ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h. */
5985 $ac_includes_default
5987 main ()
5989 if ((pid_t *) 0)
5990 return 0;
5991 if (sizeof (pid_t))
5992 return 0;
5994 return 0;
5996 _ACEOF
5997 rm -f conftest.$ac_objext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5999 (eval $ac_compile) 2>conftest.er1
6000 ac_status=$?
6001 grep -v '^ *+' conftest.er1 >conftest.err
6002 rm -f conftest.er1
6003 cat conftest.err >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } &&
6006 { ac_try='test -z "$ac_c_werror_flag"
6007 || test ! -s conftest.err'
6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009 (eval $ac_try) 2>&5
6010 ac_status=$?
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; } &&
6013 { ac_try='test -s conftest.$ac_objext'
6014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015 (eval $ac_try) 2>&5
6016 ac_status=$?
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; }; then
6019 ac_cv_type_pid_t=yes
6020 else
6021 echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6024 ac_cv_type_pid_t=no
6026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6028 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6029 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6030 if test $ac_cv_type_pid_t = yes; then
6032 else
6034 cat >>confdefs.h <<_ACEOF
6035 #define pid_t int
6036 _ACEOF
6040 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6041 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6042 if test "${ac_cv_type_signal+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6044 else
6045 cat >conftest.$ac_ext <<_ACEOF
6046 /* confdefs.h. */
6047 _ACEOF
6048 cat confdefs.h >>conftest.$ac_ext
6049 cat >>conftest.$ac_ext <<_ACEOF
6050 /* end confdefs.h. */
6051 #include <sys/types.h>
6052 #include <signal.h>
6053 #ifdef signal
6054 # undef signal
6055 #endif
6056 #ifdef __cplusplus
6057 extern "C" void (*signal (int, void (*)(int)))(int);
6058 #else
6059 void (*signal ()) ();
6060 #endif
6063 main ()
6065 int i;
6067 return 0;
6069 _ACEOF
6070 rm -f conftest.$ac_objext
6071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6072 (eval $ac_compile) 2>conftest.er1
6073 ac_status=$?
6074 grep -v '^ *+' conftest.er1 >conftest.err
6075 rm -f conftest.er1
6076 cat conftest.err >&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); } &&
6079 { ac_try='test -z "$ac_c_werror_flag"
6080 || test ! -s conftest.err'
6081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6082 (eval $ac_try) 2>&5
6083 ac_status=$?
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); }; } &&
6086 { ac_try='test -s conftest.$ac_objext'
6087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088 (eval $ac_try) 2>&5
6089 ac_status=$?
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }; }; then
6092 ac_cv_type_signal=void
6093 else
6094 echo "$as_me: failed program was:" >&5
6095 sed 's/^/| /' conftest.$ac_ext >&5
6097 ac_cv_type_signal=int
6099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6101 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6102 echo "${ECHO_T}$ac_cv_type_signal" >&6
6104 cat >>confdefs.h <<_ACEOF
6105 #define RETSIGTYPE $ac_cv_type_signal
6106 _ACEOF
6109 echo "$as_me:$LINENO: checking for size_t" >&5
6110 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6111 if test "${ac_cv_type_size_t+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
6113 else
6114 cat >conftest.$ac_ext <<_ACEOF
6115 /* confdefs.h. */
6116 _ACEOF
6117 cat confdefs.h >>conftest.$ac_ext
6118 cat >>conftest.$ac_ext <<_ACEOF
6119 /* end confdefs.h. */
6120 $ac_includes_default
6122 main ()
6124 if ((size_t *) 0)
6125 return 0;
6126 if (sizeof (size_t))
6127 return 0;
6129 return 0;
6131 _ACEOF
6132 rm -f conftest.$ac_objext
6133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6134 (eval $ac_compile) 2>conftest.er1
6135 ac_status=$?
6136 grep -v '^ *+' conftest.er1 >conftest.err
6137 rm -f conftest.er1
6138 cat conftest.err >&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); } &&
6141 { ac_try='test -z "$ac_c_werror_flag"
6142 || test ! -s conftest.err'
6143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6144 (eval $ac_try) 2>&5
6145 ac_status=$?
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); }; } &&
6148 { ac_try='test -s conftest.$ac_objext'
6149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150 (eval $ac_try) 2>&5
6151 ac_status=$?
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; }; then
6154 ac_cv_type_size_t=yes
6155 else
6156 echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6159 ac_cv_type_size_t=no
6161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6163 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6164 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6165 if test $ac_cv_type_size_t = yes; then
6167 else
6169 cat >>confdefs.h <<_ACEOF
6170 #define size_t unsigned
6171 _ACEOF
6175 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6176 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6177 if test "${ac_cv_type_uid_t+set}" = set; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6179 else
6180 cat >conftest.$ac_ext <<_ACEOF
6181 /* confdefs.h. */
6182 _ACEOF
6183 cat confdefs.h >>conftest.$ac_ext
6184 cat >>conftest.$ac_ext <<_ACEOF
6185 /* end confdefs.h. */
6186 #include <sys/types.h>
6188 _ACEOF
6189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6190 $EGREP "uid_t" >/dev/null 2>&1; then
6191 ac_cv_type_uid_t=yes
6192 else
6193 ac_cv_type_uid_t=no
6195 rm -f conftest*
6198 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6199 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6200 if test $ac_cv_type_uid_t = no; then
6202 cat >>confdefs.h <<\_ACEOF
6203 #define uid_t int
6204 _ACEOF
6207 cat >>confdefs.h <<\_ACEOF
6208 #define gid_t int
6209 _ACEOF
6213 echo "$as_me:$LINENO: checking for ssize_t" >&5
6214 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6215 if test "${ac_cv_type_ssize_t+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 else
6218 cat >conftest.$ac_ext <<_ACEOF
6219 /* confdefs.h. */
6220 _ACEOF
6221 cat confdefs.h >>conftest.$ac_ext
6222 cat >>conftest.$ac_ext <<_ACEOF
6223 /* end confdefs.h. */
6224 $ac_includes_default
6226 main ()
6228 if ((ssize_t *) 0)
6229 return 0;
6230 if (sizeof (ssize_t))
6231 return 0;
6233 return 0;
6235 _ACEOF
6236 rm -f conftest.$ac_objext
6237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6238 (eval $ac_compile) 2>conftest.er1
6239 ac_status=$?
6240 grep -v '^ *+' conftest.er1 >conftest.err
6241 rm -f conftest.er1
6242 cat conftest.err >&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); } &&
6245 { ac_try='test -z "$ac_c_werror_flag"
6246 || test ! -s conftest.err'
6247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6248 (eval $ac_try) 2>&5
6249 ac_status=$?
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; } &&
6252 { ac_try='test -s conftest.$ac_objext'
6253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254 (eval $ac_try) 2>&5
6255 ac_status=$?
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; }; then
6258 ac_cv_type_ssize_t=yes
6259 else
6260 echo "$as_me: failed program was:" >&5
6261 sed 's/^/| /' conftest.$ac_ext >&5
6263 ac_cv_type_ssize_t=no
6265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6267 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6268 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6269 if test $ac_cv_type_ssize_t = yes; then
6271 cat >>confdefs.h <<\_ACEOF
6272 #define HAVE_SSIZE_T 1
6273 _ACEOF
6278 # Sizes of various common basic types
6279 # ANSI C requires sizeof(char) == 1, so no need to check it
6280 echo "$as_me:$LINENO: checking for int" >&5
6281 echo $ECHO_N "checking for int... $ECHO_C" >&6
6282 if test "${ac_cv_type_int+set}" = set; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
6284 else
6285 cat >conftest.$ac_ext <<_ACEOF
6286 /* confdefs.h. */
6287 _ACEOF
6288 cat confdefs.h >>conftest.$ac_ext
6289 cat >>conftest.$ac_ext <<_ACEOF
6290 /* end confdefs.h. */
6291 $ac_includes_default
6293 main ()
6295 if ((int *) 0)
6296 return 0;
6297 if (sizeof (int))
6298 return 0;
6300 return 0;
6302 _ACEOF
6303 rm -f conftest.$ac_objext
6304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6305 (eval $ac_compile) 2>conftest.er1
6306 ac_status=$?
6307 grep -v '^ *+' conftest.er1 >conftest.err
6308 rm -f conftest.er1
6309 cat conftest.err >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } &&
6312 { ac_try='test -z "$ac_c_werror_flag"
6313 || test ! -s conftest.err'
6314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6315 (eval $ac_try) 2>&5
6316 ac_status=$?
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }; } &&
6319 { ac_try='test -s conftest.$ac_objext'
6320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6321 (eval $ac_try) 2>&5
6322 ac_status=$?
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); }; }; then
6325 ac_cv_type_int=yes
6326 else
6327 echo "$as_me: failed program was:" >&5
6328 sed 's/^/| /' conftest.$ac_ext >&5
6330 ac_cv_type_int=no
6332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6334 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6335 echo "${ECHO_T}$ac_cv_type_int" >&6
6337 echo "$as_me:$LINENO: checking size of int" >&5
6338 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6339 if test "${ac_cv_sizeof_int+set}" = set; then
6340 echo $ECHO_N "(cached) $ECHO_C" >&6
6341 else
6342 if test "$ac_cv_type_int" = yes; then
6343 # The cast to unsigned long works around a bug in the HP C Compiler
6344 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6345 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6346 # This bug is HP SR number 8606223364.
6347 if test "$cross_compiling" = yes; then
6348 # Depending upon the size, compute the lo and hi bounds.
6349 cat >conftest.$ac_ext <<_ACEOF
6350 /* confdefs.h. */
6351 _ACEOF
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h. */
6355 $ac_includes_default
6357 main ()
6359 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6360 test_array [0] = 0
6363 return 0;
6365 _ACEOF
6366 rm -f conftest.$ac_objext
6367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6368 (eval $ac_compile) 2>conftest.er1
6369 ac_status=$?
6370 grep -v '^ *+' conftest.er1 >conftest.err
6371 rm -f conftest.er1
6372 cat conftest.err >&5
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); } &&
6375 { ac_try='test -z "$ac_c_werror_flag"
6376 || test ! -s conftest.err'
6377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378 (eval $ac_try) 2>&5
6379 ac_status=$?
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); }; } &&
6382 { ac_try='test -s conftest.$ac_objext'
6383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6384 (eval $ac_try) 2>&5
6385 ac_status=$?
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); }; }; then
6388 ac_lo=0 ac_mid=0
6389 while :; do
6390 cat >conftest.$ac_ext <<_ACEOF
6391 /* confdefs.h. */
6392 _ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6396 $ac_includes_default
6398 main ()
6400 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6401 test_array [0] = 0
6404 return 0;
6406 _ACEOF
6407 rm -f conftest.$ac_objext
6408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6409 (eval $ac_compile) 2>conftest.er1
6410 ac_status=$?
6411 grep -v '^ *+' conftest.er1 >conftest.err
6412 rm -f conftest.er1
6413 cat conftest.err >&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); } &&
6416 { ac_try='test -z "$ac_c_werror_flag"
6417 || test ! -s conftest.err'
6418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419 (eval $ac_try) 2>&5
6420 ac_status=$?
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); }; } &&
6423 { ac_try='test -s conftest.$ac_objext'
6424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425 (eval $ac_try) 2>&5
6426 ac_status=$?
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); }; }; then
6429 ac_hi=$ac_mid; break
6430 else
6431 echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6434 ac_lo=`expr $ac_mid + 1`
6435 if test $ac_lo -le $ac_mid; then
6436 ac_lo= ac_hi=
6437 break
6439 ac_mid=`expr 2 '*' $ac_mid + 1`
6441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6442 done
6443 else
6444 echo "$as_me: failed program was:" >&5
6445 sed 's/^/| /' conftest.$ac_ext >&5
6447 cat >conftest.$ac_ext <<_ACEOF
6448 /* confdefs.h. */
6449 _ACEOF
6450 cat confdefs.h >>conftest.$ac_ext
6451 cat >>conftest.$ac_ext <<_ACEOF
6452 /* end confdefs.h. */
6453 $ac_includes_default
6455 main ()
6457 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6458 test_array [0] = 0
6461 return 0;
6463 _ACEOF
6464 rm -f conftest.$ac_objext
6465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6466 (eval $ac_compile) 2>conftest.er1
6467 ac_status=$?
6468 grep -v '^ *+' conftest.er1 >conftest.err
6469 rm -f conftest.er1
6470 cat conftest.err >&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); } &&
6473 { ac_try='test -z "$ac_c_werror_flag"
6474 || test ! -s conftest.err'
6475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6476 (eval $ac_try) 2>&5
6477 ac_status=$?
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); }; } &&
6480 { ac_try='test -s conftest.$ac_objext'
6481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6482 (eval $ac_try) 2>&5
6483 ac_status=$?
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); }; }; then
6486 ac_hi=-1 ac_mid=-1
6487 while :; do
6488 cat >conftest.$ac_ext <<_ACEOF
6489 /* confdefs.h. */
6490 _ACEOF
6491 cat confdefs.h >>conftest.$ac_ext
6492 cat >>conftest.$ac_ext <<_ACEOF
6493 /* end confdefs.h. */
6494 $ac_includes_default
6496 main ()
6498 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6499 test_array [0] = 0
6502 return 0;
6504 _ACEOF
6505 rm -f conftest.$ac_objext
6506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6507 (eval $ac_compile) 2>conftest.er1
6508 ac_status=$?
6509 grep -v '^ *+' conftest.er1 >conftest.err
6510 rm -f conftest.er1
6511 cat conftest.err >&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); } &&
6514 { ac_try='test -z "$ac_c_werror_flag"
6515 || test ! -s conftest.err'
6516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517 (eval $ac_try) 2>&5
6518 ac_status=$?
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); }; } &&
6521 { ac_try='test -s conftest.$ac_objext'
6522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523 (eval $ac_try) 2>&5
6524 ac_status=$?
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }; }; then
6527 ac_lo=$ac_mid; break
6528 else
6529 echo "$as_me: failed program was:" >&5
6530 sed 's/^/| /' conftest.$ac_ext >&5
6532 ac_hi=`expr '(' $ac_mid ')' - 1`
6533 if test $ac_mid -le $ac_hi; then
6534 ac_lo= ac_hi=
6535 break
6537 ac_mid=`expr 2 '*' $ac_mid`
6539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6540 done
6541 else
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6545 ac_lo= ac_hi=
6547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6550 # Binary search between lo and hi bounds.
6551 while test "x$ac_lo" != "x$ac_hi"; do
6552 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6553 cat >conftest.$ac_ext <<_ACEOF
6554 /* confdefs.h. */
6555 _ACEOF
6556 cat confdefs.h >>conftest.$ac_ext
6557 cat >>conftest.$ac_ext <<_ACEOF
6558 /* end confdefs.h. */
6559 $ac_includes_default
6561 main ()
6563 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6564 test_array [0] = 0
6567 return 0;
6569 _ACEOF
6570 rm -f conftest.$ac_objext
6571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6572 (eval $ac_compile) 2>conftest.er1
6573 ac_status=$?
6574 grep -v '^ *+' conftest.er1 >conftest.err
6575 rm -f conftest.er1
6576 cat conftest.err >&5
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); } &&
6579 { ac_try='test -z "$ac_c_werror_flag"
6580 || test ! -s conftest.err'
6581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6582 (eval $ac_try) 2>&5
6583 ac_status=$?
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); }; } &&
6586 { ac_try='test -s conftest.$ac_objext'
6587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6588 (eval $ac_try) 2>&5
6589 ac_status=$?
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; }; then
6592 ac_hi=$ac_mid
6593 else
6594 echo "$as_me: failed program was:" >&5
6595 sed 's/^/| /' conftest.$ac_ext >&5
6597 ac_lo=`expr '(' $ac_mid ')' + 1`
6599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6600 done
6601 case $ac_lo in
6602 ?*) ac_cv_sizeof_int=$ac_lo;;
6603 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6604 See \`config.log' for more details." >&5
6605 echo "$as_me: error: cannot compute sizeof (int), 77
6606 See \`config.log' for more details." >&2;}
6607 { (exit 1); exit 1; }; } ;;
6608 esac
6609 else
6610 if test "$cross_compiling" = yes; then
6611 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6612 See \`config.log' for more details." >&5
6613 echo "$as_me: error: cannot run test program while cross compiling
6614 See \`config.log' for more details." >&2;}
6615 { (exit 1); exit 1; }; }
6616 else
6617 cat >conftest.$ac_ext <<_ACEOF
6618 /* confdefs.h. */
6619 _ACEOF
6620 cat confdefs.h >>conftest.$ac_ext
6621 cat >>conftest.$ac_ext <<_ACEOF
6622 /* end confdefs.h. */
6623 $ac_includes_default
6624 long longval () { return (long) (sizeof (int)); }
6625 unsigned long ulongval () { return (long) (sizeof (int)); }
6626 #include <stdio.h>
6627 #include <stdlib.h>
6629 main ()
6632 FILE *f = fopen ("conftest.val", "w");
6633 if (! f)
6634 exit (1);
6635 if (((long) (sizeof (int))) < 0)
6637 long i = longval ();
6638 if (i != ((long) (sizeof (int))))
6639 exit (1);
6640 fprintf (f, "%ld\n", i);
6642 else
6644 unsigned long i = ulongval ();
6645 if (i != ((long) (sizeof (int))))
6646 exit (1);
6647 fprintf (f, "%lu\n", i);
6649 exit (ferror (f) || fclose (f) != 0);
6652 return 0;
6654 _ACEOF
6655 rm -f conftest$ac_exeext
6656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6657 (eval $ac_link) 2>&5
6658 ac_status=$?
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662 (eval $ac_try) 2>&5
6663 ac_status=$?
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); }; }; then
6666 ac_cv_sizeof_int=`cat conftest.val`
6667 else
6668 echo "$as_me: program exited with status $ac_status" >&5
6669 echo "$as_me: failed program was:" >&5
6670 sed 's/^/| /' conftest.$ac_ext >&5
6672 ( exit $ac_status )
6673 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6674 See \`config.log' for more details." >&5
6675 echo "$as_me: error: cannot compute sizeof (int), 77
6676 See \`config.log' for more details." >&2;}
6677 { (exit 1); exit 1; }; }
6679 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6682 rm -f conftest.val
6683 else
6684 ac_cv_sizeof_int=0
6687 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6688 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6689 cat >>confdefs.h <<_ACEOF
6690 #define SIZEOF_INT $ac_cv_sizeof_int
6691 _ACEOF
6694 echo "$as_me:$LINENO: checking for long" >&5
6695 echo $ECHO_N "checking for long... $ECHO_C" >&6
6696 if test "${ac_cv_type_long+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6698 else
6699 cat >conftest.$ac_ext <<_ACEOF
6700 /* confdefs.h. */
6701 _ACEOF
6702 cat confdefs.h >>conftest.$ac_ext
6703 cat >>conftest.$ac_ext <<_ACEOF
6704 /* end confdefs.h. */
6705 $ac_includes_default
6707 main ()
6709 if ((long *) 0)
6710 return 0;
6711 if (sizeof (long))
6712 return 0;
6714 return 0;
6716 _ACEOF
6717 rm -f conftest.$ac_objext
6718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6719 (eval $ac_compile) 2>conftest.er1
6720 ac_status=$?
6721 grep -v '^ *+' conftest.er1 >conftest.err
6722 rm -f conftest.er1
6723 cat conftest.err >&5
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); } &&
6726 { ac_try='test -z "$ac_c_werror_flag"
6727 || test ! -s conftest.err'
6728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6729 (eval $ac_try) 2>&5
6730 ac_status=$?
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); }; } &&
6733 { ac_try='test -s conftest.$ac_objext'
6734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6735 (eval $ac_try) 2>&5
6736 ac_status=$?
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); }; }; then
6739 ac_cv_type_long=yes
6740 else
6741 echo "$as_me: failed program was:" >&5
6742 sed 's/^/| /' conftest.$ac_ext >&5
6744 ac_cv_type_long=no
6746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6748 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6749 echo "${ECHO_T}$ac_cv_type_long" >&6
6751 echo "$as_me:$LINENO: checking size of long" >&5
6752 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6753 if test "${ac_cv_sizeof_long+set}" = set; then
6754 echo $ECHO_N "(cached) $ECHO_C" >&6
6755 else
6756 if test "$ac_cv_type_long" = yes; then
6757 # The cast to unsigned long works around a bug in the HP C Compiler
6758 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6759 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6760 # This bug is HP SR number 8606223364.
6761 if test "$cross_compiling" = yes; then
6762 # Depending upon the size, compute the lo and hi bounds.
6763 cat >conftest.$ac_ext <<_ACEOF
6764 /* confdefs.h. */
6765 _ACEOF
6766 cat confdefs.h >>conftest.$ac_ext
6767 cat >>conftest.$ac_ext <<_ACEOF
6768 /* end confdefs.h. */
6769 $ac_includes_default
6771 main ()
6773 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6774 test_array [0] = 0
6777 return 0;
6779 _ACEOF
6780 rm -f conftest.$ac_objext
6781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6782 (eval $ac_compile) 2>conftest.er1
6783 ac_status=$?
6784 grep -v '^ *+' conftest.er1 >conftest.err
6785 rm -f conftest.er1
6786 cat conftest.err >&5
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); } &&
6789 { ac_try='test -z "$ac_c_werror_flag"
6790 || test ! -s conftest.err'
6791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6792 (eval $ac_try) 2>&5
6793 ac_status=$?
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); }; } &&
6796 { ac_try='test -s conftest.$ac_objext'
6797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6798 (eval $ac_try) 2>&5
6799 ac_status=$?
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); }; }; then
6802 ac_lo=0 ac_mid=0
6803 while :; do
6804 cat >conftest.$ac_ext <<_ACEOF
6805 /* confdefs.h. */
6806 _ACEOF
6807 cat confdefs.h >>conftest.$ac_ext
6808 cat >>conftest.$ac_ext <<_ACEOF
6809 /* end confdefs.h. */
6810 $ac_includes_default
6812 main ()
6814 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6815 test_array [0] = 0
6818 return 0;
6820 _ACEOF
6821 rm -f conftest.$ac_objext
6822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6823 (eval $ac_compile) 2>conftest.er1
6824 ac_status=$?
6825 grep -v '^ *+' conftest.er1 >conftest.err
6826 rm -f conftest.er1
6827 cat conftest.err >&5
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); } &&
6830 { ac_try='test -z "$ac_c_werror_flag"
6831 || test ! -s conftest.err'
6832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6833 (eval $ac_try) 2>&5
6834 ac_status=$?
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); }; } &&
6837 { ac_try='test -s conftest.$ac_objext'
6838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6839 (eval $ac_try) 2>&5
6840 ac_status=$?
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); }; }; then
6843 ac_hi=$ac_mid; break
6844 else
6845 echo "$as_me: failed program was:" >&5
6846 sed 's/^/| /' conftest.$ac_ext >&5
6848 ac_lo=`expr $ac_mid + 1`
6849 if test $ac_lo -le $ac_mid; then
6850 ac_lo= ac_hi=
6851 break
6853 ac_mid=`expr 2 '*' $ac_mid + 1`
6855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6856 done
6857 else
6858 echo "$as_me: failed program was:" >&5
6859 sed 's/^/| /' conftest.$ac_ext >&5
6861 cat >conftest.$ac_ext <<_ACEOF
6862 /* confdefs.h. */
6863 _ACEOF
6864 cat confdefs.h >>conftest.$ac_ext
6865 cat >>conftest.$ac_ext <<_ACEOF
6866 /* end confdefs.h. */
6867 $ac_includes_default
6869 main ()
6871 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6872 test_array [0] = 0
6875 return 0;
6877 _ACEOF
6878 rm -f conftest.$ac_objext
6879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6880 (eval $ac_compile) 2>conftest.er1
6881 ac_status=$?
6882 grep -v '^ *+' conftest.er1 >conftest.err
6883 rm -f conftest.er1
6884 cat conftest.err >&5
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); } &&
6887 { ac_try='test -z "$ac_c_werror_flag"
6888 || test ! -s conftest.err'
6889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890 (eval $ac_try) 2>&5
6891 ac_status=$?
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); }; } &&
6894 { ac_try='test -s conftest.$ac_objext'
6895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6896 (eval $ac_try) 2>&5
6897 ac_status=$?
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); }; }; then
6900 ac_hi=-1 ac_mid=-1
6901 while :; do
6902 cat >conftest.$ac_ext <<_ACEOF
6903 /* confdefs.h. */
6904 _ACEOF
6905 cat confdefs.h >>conftest.$ac_ext
6906 cat >>conftest.$ac_ext <<_ACEOF
6907 /* end confdefs.h. */
6908 $ac_includes_default
6910 main ()
6912 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6913 test_array [0] = 0
6916 return 0;
6918 _ACEOF
6919 rm -f conftest.$ac_objext
6920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6921 (eval $ac_compile) 2>conftest.er1
6922 ac_status=$?
6923 grep -v '^ *+' conftest.er1 >conftest.err
6924 rm -f conftest.er1
6925 cat conftest.err >&5
6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 (exit $ac_status); } &&
6928 { ac_try='test -z "$ac_c_werror_flag"
6929 || test ! -s conftest.err'
6930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6931 (eval $ac_try) 2>&5
6932 ac_status=$?
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); }; } &&
6935 { ac_try='test -s conftest.$ac_objext'
6936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6937 (eval $ac_try) 2>&5
6938 ac_status=$?
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); }; }; then
6941 ac_lo=$ac_mid; break
6942 else
6943 echo "$as_me: failed program was:" >&5
6944 sed 's/^/| /' conftest.$ac_ext >&5
6946 ac_hi=`expr '(' $ac_mid ')' - 1`
6947 if test $ac_mid -le $ac_hi; then
6948 ac_lo= ac_hi=
6949 break
6951 ac_mid=`expr 2 '*' $ac_mid`
6953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6954 done
6955 else
6956 echo "$as_me: failed program was:" >&5
6957 sed 's/^/| /' conftest.$ac_ext >&5
6959 ac_lo= ac_hi=
6961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6964 # Binary search between lo and hi bounds.
6965 while test "x$ac_lo" != "x$ac_hi"; do
6966 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6967 cat >conftest.$ac_ext <<_ACEOF
6968 /* confdefs.h. */
6969 _ACEOF
6970 cat confdefs.h >>conftest.$ac_ext
6971 cat >>conftest.$ac_ext <<_ACEOF
6972 /* end confdefs.h. */
6973 $ac_includes_default
6975 main ()
6977 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6978 test_array [0] = 0
6981 return 0;
6983 _ACEOF
6984 rm -f conftest.$ac_objext
6985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6986 (eval $ac_compile) 2>conftest.er1
6987 ac_status=$?
6988 grep -v '^ *+' conftest.er1 >conftest.err
6989 rm -f conftest.er1
6990 cat conftest.err >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); } &&
6993 { ac_try='test -z "$ac_c_werror_flag"
6994 || test ! -s conftest.err'
6995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996 (eval $ac_try) 2>&5
6997 ac_status=$?
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); }; } &&
7000 { ac_try='test -s conftest.$ac_objext'
7001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7002 (eval $ac_try) 2>&5
7003 ac_status=$?
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); }; }; then
7006 ac_hi=$ac_mid
7007 else
7008 echo "$as_me: failed program was:" >&5
7009 sed 's/^/| /' conftest.$ac_ext >&5
7011 ac_lo=`expr '(' $ac_mid ')' + 1`
7013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7014 done
7015 case $ac_lo in
7016 ?*) ac_cv_sizeof_long=$ac_lo;;
7017 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7018 See \`config.log' for more details." >&5
7019 echo "$as_me: error: cannot compute sizeof (long), 77
7020 See \`config.log' for more details." >&2;}
7021 { (exit 1); exit 1; }; } ;;
7022 esac
7023 else
7024 if test "$cross_compiling" = yes; then
7025 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7026 See \`config.log' for more details." >&5
7027 echo "$as_me: error: cannot run test program while cross compiling
7028 See \`config.log' for more details." >&2;}
7029 { (exit 1); exit 1; }; }
7030 else
7031 cat >conftest.$ac_ext <<_ACEOF
7032 /* confdefs.h. */
7033 _ACEOF
7034 cat confdefs.h >>conftest.$ac_ext
7035 cat >>conftest.$ac_ext <<_ACEOF
7036 /* end confdefs.h. */
7037 $ac_includes_default
7038 long longval () { return (long) (sizeof (long)); }
7039 unsigned long ulongval () { return (long) (sizeof (long)); }
7040 #include <stdio.h>
7041 #include <stdlib.h>
7043 main ()
7046 FILE *f = fopen ("conftest.val", "w");
7047 if (! f)
7048 exit (1);
7049 if (((long) (sizeof (long))) < 0)
7051 long i = longval ();
7052 if (i != ((long) (sizeof (long))))
7053 exit (1);
7054 fprintf (f, "%ld\n", i);
7056 else
7058 unsigned long i = ulongval ();
7059 if (i != ((long) (sizeof (long))))
7060 exit (1);
7061 fprintf (f, "%lu\n", i);
7063 exit (ferror (f) || fclose (f) != 0);
7066 return 0;
7068 _ACEOF
7069 rm -f conftest$ac_exeext
7070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7071 (eval $ac_link) 2>&5
7072 ac_status=$?
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7076 (eval $ac_try) 2>&5
7077 ac_status=$?
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); }; }; then
7080 ac_cv_sizeof_long=`cat conftest.val`
7081 else
7082 echo "$as_me: program exited with status $ac_status" >&5
7083 echo "$as_me: failed program was:" >&5
7084 sed 's/^/| /' conftest.$ac_ext >&5
7086 ( exit $ac_status )
7087 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7088 See \`config.log' for more details." >&5
7089 echo "$as_me: error: cannot compute sizeof (long), 77
7090 See \`config.log' for more details." >&2;}
7091 { (exit 1); exit 1; }; }
7093 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7096 rm -f conftest.val
7097 else
7098 ac_cv_sizeof_long=0
7101 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7102 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7103 cat >>confdefs.h <<_ACEOF
7104 #define SIZEOF_LONG $ac_cv_sizeof_long
7105 _ACEOF
7108 echo "$as_me:$LINENO: checking for void *" >&5
7109 echo $ECHO_N "checking for void *... $ECHO_C" >&6
7110 if test "${ac_cv_type_void_p+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7112 else
7113 cat >conftest.$ac_ext <<_ACEOF
7114 /* confdefs.h. */
7115 _ACEOF
7116 cat confdefs.h >>conftest.$ac_ext
7117 cat >>conftest.$ac_ext <<_ACEOF
7118 /* end confdefs.h. */
7119 $ac_includes_default
7121 main ()
7123 if ((void * *) 0)
7124 return 0;
7125 if (sizeof (void *))
7126 return 0;
7128 return 0;
7130 _ACEOF
7131 rm -f conftest.$ac_objext
7132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7133 (eval $ac_compile) 2>conftest.er1
7134 ac_status=$?
7135 grep -v '^ *+' conftest.er1 >conftest.err
7136 rm -f conftest.er1
7137 cat conftest.err >&5
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); } &&
7140 { ac_try='test -z "$ac_c_werror_flag"
7141 || test ! -s conftest.err'
7142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7143 (eval $ac_try) 2>&5
7144 ac_status=$?
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); }; } &&
7147 { ac_try='test -s conftest.$ac_objext'
7148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7149 (eval $ac_try) 2>&5
7150 ac_status=$?
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); }; }; then
7153 ac_cv_type_void_p=yes
7154 else
7155 echo "$as_me: failed program was:" >&5
7156 sed 's/^/| /' conftest.$ac_ext >&5
7158 ac_cv_type_void_p=no
7160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7162 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7163 echo "${ECHO_T}$ac_cv_type_void_p" >&6
7165 echo "$as_me:$LINENO: checking size of void *" >&5
7166 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7167 if test "${ac_cv_sizeof_void_p+set}" = set; then
7168 echo $ECHO_N "(cached) $ECHO_C" >&6
7169 else
7170 if test "$ac_cv_type_void_p" = yes; then
7171 # The cast to unsigned long works around a bug in the HP C Compiler
7172 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7173 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7174 # This bug is HP SR number 8606223364.
7175 if test "$cross_compiling" = yes; then
7176 # Depending upon the size, compute the lo and hi bounds.
7177 cat >conftest.$ac_ext <<_ACEOF
7178 /* confdefs.h. */
7179 _ACEOF
7180 cat confdefs.h >>conftest.$ac_ext
7181 cat >>conftest.$ac_ext <<_ACEOF
7182 /* end confdefs.h. */
7183 $ac_includes_default
7185 main ()
7187 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
7188 test_array [0] = 0
7191 return 0;
7193 _ACEOF
7194 rm -f conftest.$ac_objext
7195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7196 (eval $ac_compile) 2>conftest.er1
7197 ac_status=$?
7198 grep -v '^ *+' conftest.er1 >conftest.err
7199 rm -f conftest.er1
7200 cat conftest.err >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } &&
7203 { ac_try='test -z "$ac_c_werror_flag"
7204 || test ! -s conftest.err'
7205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206 (eval $ac_try) 2>&5
7207 ac_status=$?
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); }; } &&
7210 { ac_try='test -s conftest.$ac_objext'
7211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7212 (eval $ac_try) 2>&5
7213 ac_status=$?
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); }; }; then
7216 ac_lo=0 ac_mid=0
7217 while :; do
7218 cat >conftest.$ac_ext <<_ACEOF
7219 /* confdefs.h. */
7220 _ACEOF
7221 cat confdefs.h >>conftest.$ac_ext
7222 cat >>conftest.$ac_ext <<_ACEOF
7223 /* end confdefs.h. */
7224 $ac_includes_default
7226 main ()
7228 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7229 test_array [0] = 0
7232 return 0;
7234 _ACEOF
7235 rm -f conftest.$ac_objext
7236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7237 (eval $ac_compile) 2>conftest.er1
7238 ac_status=$?
7239 grep -v '^ *+' conftest.er1 >conftest.err
7240 rm -f conftest.er1
7241 cat conftest.err >&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); } &&
7244 { ac_try='test -z "$ac_c_werror_flag"
7245 || test ! -s conftest.err'
7246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7247 (eval $ac_try) 2>&5
7248 ac_status=$?
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); }; } &&
7251 { ac_try='test -s conftest.$ac_objext'
7252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7253 (eval $ac_try) 2>&5
7254 ac_status=$?
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); }; }; then
7257 ac_hi=$ac_mid; break
7258 else
7259 echo "$as_me: failed program was:" >&5
7260 sed 's/^/| /' conftest.$ac_ext >&5
7262 ac_lo=`expr $ac_mid + 1`
7263 if test $ac_lo -le $ac_mid; then
7264 ac_lo= ac_hi=
7265 break
7267 ac_mid=`expr 2 '*' $ac_mid + 1`
7269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7270 done
7271 else
7272 echo "$as_me: failed program was:" >&5
7273 sed 's/^/| /' conftest.$ac_ext >&5
7275 cat >conftest.$ac_ext <<_ACEOF
7276 /* confdefs.h. */
7277 _ACEOF
7278 cat confdefs.h >>conftest.$ac_ext
7279 cat >>conftest.$ac_ext <<_ACEOF
7280 /* end confdefs.h. */
7281 $ac_includes_default
7283 main ()
7285 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
7286 test_array [0] = 0
7289 return 0;
7291 _ACEOF
7292 rm -f conftest.$ac_objext
7293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7294 (eval $ac_compile) 2>conftest.er1
7295 ac_status=$?
7296 grep -v '^ *+' conftest.er1 >conftest.err
7297 rm -f conftest.er1
7298 cat conftest.err >&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); } &&
7301 { ac_try='test -z "$ac_c_werror_flag"
7302 || test ! -s conftest.err'
7303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7304 (eval $ac_try) 2>&5
7305 ac_status=$?
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); }; } &&
7308 { ac_try='test -s conftest.$ac_objext'
7309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7310 (eval $ac_try) 2>&5
7311 ac_status=$?
7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); }; }; then
7314 ac_hi=-1 ac_mid=-1
7315 while :; do
7316 cat >conftest.$ac_ext <<_ACEOF
7317 /* confdefs.h. */
7318 _ACEOF
7319 cat confdefs.h >>conftest.$ac_ext
7320 cat >>conftest.$ac_ext <<_ACEOF
7321 /* end confdefs.h. */
7322 $ac_includes_default
7324 main ()
7326 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
7327 test_array [0] = 0
7330 return 0;
7332 _ACEOF
7333 rm -f conftest.$ac_objext
7334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7335 (eval $ac_compile) 2>conftest.er1
7336 ac_status=$?
7337 grep -v '^ *+' conftest.er1 >conftest.err
7338 rm -f conftest.er1
7339 cat conftest.err >&5
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); } &&
7342 { ac_try='test -z "$ac_c_werror_flag"
7343 || test ! -s conftest.err'
7344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7345 (eval $ac_try) 2>&5
7346 ac_status=$?
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); }; } &&
7349 { ac_try='test -s conftest.$ac_objext'
7350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7351 (eval $ac_try) 2>&5
7352 ac_status=$?
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; }; then
7355 ac_lo=$ac_mid; break
7356 else
7357 echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.$ac_ext >&5
7360 ac_hi=`expr '(' $ac_mid ')' - 1`
7361 if test $ac_mid -le $ac_hi; then
7362 ac_lo= ac_hi=
7363 break
7365 ac_mid=`expr 2 '*' $ac_mid`
7367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7368 done
7369 else
7370 echo "$as_me: failed program was:" >&5
7371 sed 's/^/| /' conftest.$ac_ext >&5
7373 ac_lo= ac_hi=
7375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7378 # Binary search between lo and hi bounds.
7379 while test "x$ac_lo" != "x$ac_hi"; do
7380 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7381 cat >conftest.$ac_ext <<_ACEOF
7382 /* confdefs.h. */
7383 _ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7387 $ac_includes_default
7389 main ()
7391 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7392 test_array [0] = 0
7395 return 0;
7397 _ACEOF
7398 rm -f conftest.$ac_objext
7399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7400 (eval $ac_compile) 2>conftest.er1
7401 ac_status=$?
7402 grep -v '^ *+' conftest.er1 >conftest.err
7403 rm -f conftest.er1
7404 cat conftest.err >&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); } &&
7407 { ac_try='test -z "$ac_c_werror_flag"
7408 || test ! -s conftest.err'
7409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7410 (eval $ac_try) 2>&5
7411 ac_status=$?
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); }; } &&
7414 { ac_try='test -s conftest.$ac_objext'
7415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7416 (eval $ac_try) 2>&5
7417 ac_status=$?
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }; }; then
7420 ac_hi=$ac_mid
7421 else
7422 echo "$as_me: failed program was:" >&5
7423 sed 's/^/| /' conftest.$ac_ext >&5
7425 ac_lo=`expr '(' $ac_mid ')' + 1`
7427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7428 done
7429 case $ac_lo in
7430 ?*) ac_cv_sizeof_void_p=$ac_lo;;
7431 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7432 See \`config.log' for more details." >&5
7433 echo "$as_me: error: cannot compute sizeof (void *), 77
7434 See \`config.log' for more details." >&2;}
7435 { (exit 1); exit 1; }; } ;;
7436 esac
7437 else
7438 if test "$cross_compiling" = yes; then
7439 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7440 See \`config.log' for more details." >&5
7441 echo "$as_me: error: cannot run test program while cross compiling
7442 See \`config.log' for more details." >&2;}
7443 { (exit 1); exit 1; }; }
7444 else
7445 cat >conftest.$ac_ext <<_ACEOF
7446 /* confdefs.h. */
7447 _ACEOF
7448 cat confdefs.h >>conftest.$ac_ext
7449 cat >>conftest.$ac_ext <<_ACEOF
7450 /* end confdefs.h. */
7451 $ac_includes_default
7452 long longval () { return (long) (sizeof (void *)); }
7453 unsigned long ulongval () { return (long) (sizeof (void *)); }
7454 #include <stdio.h>
7455 #include <stdlib.h>
7457 main ()
7460 FILE *f = fopen ("conftest.val", "w");
7461 if (! f)
7462 exit (1);
7463 if (((long) (sizeof (void *))) < 0)
7465 long i = longval ();
7466 if (i != ((long) (sizeof (void *))))
7467 exit (1);
7468 fprintf (f, "%ld\n", i);
7470 else
7472 unsigned long i = ulongval ();
7473 if (i != ((long) (sizeof (void *))))
7474 exit (1);
7475 fprintf (f, "%lu\n", i);
7477 exit (ferror (f) || fclose (f) != 0);
7480 return 0;
7482 _ACEOF
7483 rm -f conftest$ac_exeext
7484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7485 (eval $ac_link) 2>&5
7486 ac_status=$?
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7490 (eval $ac_try) 2>&5
7491 ac_status=$?
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); }; }; then
7494 ac_cv_sizeof_void_p=`cat conftest.val`
7495 else
7496 echo "$as_me: program exited with status $ac_status" >&5
7497 echo "$as_me: failed program was:" >&5
7498 sed 's/^/| /' conftest.$ac_ext >&5
7500 ( exit $ac_status )
7501 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7502 See \`config.log' for more details." >&5
7503 echo "$as_me: error: cannot compute sizeof (void *), 77
7504 See \`config.log' for more details." >&2;}
7505 { (exit 1); exit 1; }; }
7507 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7510 rm -f conftest.val
7511 else
7512 ac_cv_sizeof_void_p=0
7515 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7516 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7517 cat >>confdefs.h <<_ACEOF
7518 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7519 _ACEOF
7522 echo "$as_me:$LINENO: checking for short" >&5
7523 echo $ECHO_N "checking for short... $ECHO_C" >&6
7524 if test "${ac_cv_type_short+set}" = set; then
7525 echo $ECHO_N "(cached) $ECHO_C" >&6
7526 else
7527 cat >conftest.$ac_ext <<_ACEOF
7528 /* confdefs.h. */
7529 _ACEOF
7530 cat confdefs.h >>conftest.$ac_ext
7531 cat >>conftest.$ac_ext <<_ACEOF
7532 /* end confdefs.h. */
7533 $ac_includes_default
7535 main ()
7537 if ((short *) 0)
7538 return 0;
7539 if (sizeof (short))
7540 return 0;
7542 return 0;
7544 _ACEOF
7545 rm -f conftest.$ac_objext
7546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7547 (eval $ac_compile) 2>conftest.er1
7548 ac_status=$?
7549 grep -v '^ *+' conftest.er1 >conftest.err
7550 rm -f conftest.er1
7551 cat conftest.err >&5
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); } &&
7554 { ac_try='test -z "$ac_c_werror_flag"
7555 || test ! -s conftest.err'
7556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7557 (eval $ac_try) 2>&5
7558 ac_status=$?
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); }; } &&
7561 { ac_try='test -s conftest.$ac_objext'
7562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7563 (eval $ac_try) 2>&5
7564 ac_status=$?
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); }; }; then
7567 ac_cv_type_short=yes
7568 else
7569 echo "$as_me: failed program was:" >&5
7570 sed 's/^/| /' conftest.$ac_ext >&5
7572 ac_cv_type_short=no
7574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7576 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7577 echo "${ECHO_T}$ac_cv_type_short" >&6
7579 echo "$as_me:$LINENO: checking size of short" >&5
7580 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7581 if test "${ac_cv_sizeof_short+set}" = set; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7583 else
7584 if test "$ac_cv_type_short" = yes; then
7585 # The cast to unsigned long works around a bug in the HP C Compiler
7586 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7587 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7588 # This bug is HP SR number 8606223364.
7589 if test "$cross_compiling" = yes; then
7590 # Depending upon the size, compute the lo and hi bounds.
7591 cat >conftest.$ac_ext <<_ACEOF
7592 /* confdefs.h. */
7593 _ACEOF
7594 cat confdefs.h >>conftest.$ac_ext
7595 cat >>conftest.$ac_ext <<_ACEOF
7596 /* end confdefs.h. */
7597 $ac_includes_default
7599 main ()
7601 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7602 test_array [0] = 0
7605 return 0;
7607 _ACEOF
7608 rm -f conftest.$ac_objext
7609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7610 (eval $ac_compile) 2>conftest.er1
7611 ac_status=$?
7612 grep -v '^ *+' conftest.er1 >conftest.err
7613 rm -f conftest.er1
7614 cat conftest.err >&5
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); } &&
7617 { ac_try='test -z "$ac_c_werror_flag"
7618 || test ! -s conftest.err'
7619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7620 (eval $ac_try) 2>&5
7621 ac_status=$?
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); }; } &&
7624 { ac_try='test -s conftest.$ac_objext'
7625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7626 (eval $ac_try) 2>&5
7627 ac_status=$?
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); }; }; then
7630 ac_lo=0 ac_mid=0
7631 while :; do
7632 cat >conftest.$ac_ext <<_ACEOF
7633 /* confdefs.h. */
7634 _ACEOF
7635 cat confdefs.h >>conftest.$ac_ext
7636 cat >>conftest.$ac_ext <<_ACEOF
7637 /* end confdefs.h. */
7638 $ac_includes_default
7640 main ()
7642 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7643 test_array [0] = 0
7646 return 0;
7648 _ACEOF
7649 rm -f conftest.$ac_objext
7650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7651 (eval $ac_compile) 2>conftest.er1
7652 ac_status=$?
7653 grep -v '^ *+' conftest.er1 >conftest.err
7654 rm -f conftest.er1
7655 cat conftest.err >&5
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); } &&
7658 { ac_try='test -z "$ac_c_werror_flag"
7659 || test ! -s conftest.err'
7660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7661 (eval $ac_try) 2>&5
7662 ac_status=$?
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); }; } &&
7665 { ac_try='test -s conftest.$ac_objext'
7666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7667 (eval $ac_try) 2>&5
7668 ac_status=$?
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); }; }; then
7671 ac_hi=$ac_mid; break
7672 else
7673 echo "$as_me: failed program was:" >&5
7674 sed 's/^/| /' conftest.$ac_ext >&5
7676 ac_lo=`expr $ac_mid + 1`
7677 if test $ac_lo -le $ac_mid; then
7678 ac_lo= ac_hi=
7679 break
7681 ac_mid=`expr 2 '*' $ac_mid + 1`
7683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7684 done
7685 else
7686 echo "$as_me: failed program was:" >&5
7687 sed 's/^/| /' conftest.$ac_ext >&5
7689 cat >conftest.$ac_ext <<_ACEOF
7690 /* confdefs.h. */
7691 _ACEOF
7692 cat confdefs.h >>conftest.$ac_ext
7693 cat >>conftest.$ac_ext <<_ACEOF
7694 /* end confdefs.h. */
7695 $ac_includes_default
7697 main ()
7699 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7700 test_array [0] = 0
7703 return 0;
7705 _ACEOF
7706 rm -f conftest.$ac_objext
7707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7708 (eval $ac_compile) 2>conftest.er1
7709 ac_status=$?
7710 grep -v '^ *+' conftest.er1 >conftest.err
7711 rm -f conftest.er1
7712 cat conftest.err >&5
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); } &&
7715 { ac_try='test -z "$ac_c_werror_flag"
7716 || test ! -s conftest.err'
7717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7718 (eval $ac_try) 2>&5
7719 ac_status=$?
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); }; } &&
7722 { ac_try='test -s conftest.$ac_objext'
7723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7724 (eval $ac_try) 2>&5
7725 ac_status=$?
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); }; }; then
7728 ac_hi=-1 ac_mid=-1
7729 while :; do
7730 cat >conftest.$ac_ext <<_ACEOF
7731 /* confdefs.h. */
7732 _ACEOF
7733 cat confdefs.h >>conftest.$ac_ext
7734 cat >>conftest.$ac_ext <<_ACEOF
7735 /* end confdefs.h. */
7736 $ac_includes_default
7738 main ()
7740 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7741 test_array [0] = 0
7744 return 0;
7746 _ACEOF
7747 rm -f conftest.$ac_objext
7748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7749 (eval $ac_compile) 2>conftest.er1
7750 ac_status=$?
7751 grep -v '^ *+' conftest.er1 >conftest.err
7752 rm -f conftest.er1
7753 cat conftest.err >&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); } &&
7756 { ac_try='test -z "$ac_c_werror_flag"
7757 || test ! -s conftest.err'
7758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7759 (eval $ac_try) 2>&5
7760 ac_status=$?
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); }; } &&
7763 { ac_try='test -s conftest.$ac_objext'
7764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7765 (eval $ac_try) 2>&5
7766 ac_status=$?
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); }; }; then
7769 ac_lo=$ac_mid; break
7770 else
7771 echo "$as_me: failed program was:" >&5
7772 sed 's/^/| /' conftest.$ac_ext >&5
7774 ac_hi=`expr '(' $ac_mid ')' - 1`
7775 if test $ac_mid -le $ac_hi; then
7776 ac_lo= ac_hi=
7777 break
7779 ac_mid=`expr 2 '*' $ac_mid`
7781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7782 done
7783 else
7784 echo "$as_me: failed program was:" >&5
7785 sed 's/^/| /' conftest.$ac_ext >&5
7787 ac_lo= ac_hi=
7789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7792 # Binary search between lo and hi bounds.
7793 while test "x$ac_lo" != "x$ac_hi"; do
7794 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7795 cat >conftest.$ac_ext <<_ACEOF
7796 /* confdefs.h. */
7797 _ACEOF
7798 cat confdefs.h >>conftest.$ac_ext
7799 cat >>conftest.$ac_ext <<_ACEOF
7800 /* end confdefs.h. */
7801 $ac_includes_default
7803 main ()
7805 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7806 test_array [0] = 0
7809 return 0;
7811 _ACEOF
7812 rm -f conftest.$ac_objext
7813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7814 (eval $ac_compile) 2>conftest.er1
7815 ac_status=$?
7816 grep -v '^ *+' conftest.er1 >conftest.err
7817 rm -f conftest.er1
7818 cat conftest.err >&5
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); } &&
7821 { ac_try='test -z "$ac_c_werror_flag"
7822 || test ! -s conftest.err'
7823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824 (eval $ac_try) 2>&5
7825 ac_status=$?
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); }; } &&
7828 { ac_try='test -s conftest.$ac_objext'
7829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830 (eval $ac_try) 2>&5
7831 ac_status=$?
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); }; }; then
7834 ac_hi=$ac_mid
7835 else
7836 echo "$as_me: failed program was:" >&5
7837 sed 's/^/| /' conftest.$ac_ext >&5
7839 ac_lo=`expr '(' $ac_mid ')' + 1`
7841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7842 done
7843 case $ac_lo in
7844 ?*) ac_cv_sizeof_short=$ac_lo;;
7845 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7846 See \`config.log' for more details." >&5
7847 echo "$as_me: error: cannot compute sizeof (short), 77
7848 See \`config.log' for more details." >&2;}
7849 { (exit 1); exit 1; }; } ;;
7850 esac
7851 else
7852 if test "$cross_compiling" = yes; then
7853 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7854 See \`config.log' for more details." >&5
7855 echo "$as_me: error: cannot run test program while cross compiling
7856 See \`config.log' for more details." >&2;}
7857 { (exit 1); exit 1; }; }
7858 else
7859 cat >conftest.$ac_ext <<_ACEOF
7860 /* confdefs.h. */
7861 _ACEOF
7862 cat confdefs.h >>conftest.$ac_ext
7863 cat >>conftest.$ac_ext <<_ACEOF
7864 /* end confdefs.h. */
7865 $ac_includes_default
7866 long longval () { return (long) (sizeof (short)); }
7867 unsigned long ulongval () { return (long) (sizeof (short)); }
7868 #include <stdio.h>
7869 #include <stdlib.h>
7871 main ()
7874 FILE *f = fopen ("conftest.val", "w");
7875 if (! f)
7876 exit (1);
7877 if (((long) (sizeof (short))) < 0)
7879 long i = longval ();
7880 if (i != ((long) (sizeof (short))))
7881 exit (1);
7882 fprintf (f, "%ld\n", i);
7884 else
7886 unsigned long i = ulongval ();
7887 if (i != ((long) (sizeof (short))))
7888 exit (1);
7889 fprintf (f, "%lu\n", i);
7891 exit (ferror (f) || fclose (f) != 0);
7894 return 0;
7896 _ACEOF
7897 rm -f conftest$ac_exeext
7898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7899 (eval $ac_link) 2>&5
7900 ac_status=$?
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904 (eval $ac_try) 2>&5
7905 ac_status=$?
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); }; }; then
7908 ac_cv_sizeof_short=`cat conftest.val`
7909 else
7910 echo "$as_me: program exited with status $ac_status" >&5
7911 echo "$as_me: failed program was:" >&5
7912 sed 's/^/| /' conftest.$ac_ext >&5
7914 ( exit $ac_status )
7915 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7916 See \`config.log' for more details." >&5
7917 echo "$as_me: error: cannot compute sizeof (short), 77
7918 See \`config.log' for more details." >&2;}
7919 { (exit 1); exit 1; }; }
7921 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7924 rm -f conftest.val
7925 else
7926 ac_cv_sizeof_short=0
7929 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7930 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7931 cat >>confdefs.h <<_ACEOF
7932 #define SIZEOF_SHORT $ac_cv_sizeof_short
7933 _ACEOF
7936 echo "$as_me:$LINENO: checking for float" >&5
7937 echo $ECHO_N "checking for float... $ECHO_C" >&6
7938 if test "${ac_cv_type_float+set}" = set; then
7939 echo $ECHO_N "(cached) $ECHO_C" >&6
7940 else
7941 cat >conftest.$ac_ext <<_ACEOF
7942 /* confdefs.h. */
7943 _ACEOF
7944 cat confdefs.h >>conftest.$ac_ext
7945 cat >>conftest.$ac_ext <<_ACEOF
7946 /* end confdefs.h. */
7947 $ac_includes_default
7949 main ()
7951 if ((float *) 0)
7952 return 0;
7953 if (sizeof (float))
7954 return 0;
7956 return 0;
7958 _ACEOF
7959 rm -f conftest.$ac_objext
7960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7961 (eval $ac_compile) 2>conftest.er1
7962 ac_status=$?
7963 grep -v '^ *+' conftest.er1 >conftest.err
7964 rm -f conftest.er1
7965 cat conftest.err >&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); } &&
7968 { ac_try='test -z "$ac_c_werror_flag"
7969 || test ! -s conftest.err'
7970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7971 (eval $ac_try) 2>&5
7972 ac_status=$?
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); }; } &&
7975 { ac_try='test -s conftest.$ac_objext'
7976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7977 (eval $ac_try) 2>&5
7978 ac_status=$?
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); }; }; then
7981 ac_cv_type_float=yes
7982 else
7983 echo "$as_me: failed program was:" >&5
7984 sed 's/^/| /' conftest.$ac_ext >&5
7986 ac_cv_type_float=no
7988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7990 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
7991 echo "${ECHO_T}$ac_cv_type_float" >&6
7993 echo "$as_me:$LINENO: checking size of float" >&5
7994 echo $ECHO_N "checking size of float... $ECHO_C" >&6
7995 if test "${ac_cv_sizeof_float+set}" = set; then
7996 echo $ECHO_N "(cached) $ECHO_C" >&6
7997 else
7998 if test "$ac_cv_type_float" = yes; then
7999 # The cast to unsigned long works around a bug in the HP C Compiler
8000 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8001 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8002 # This bug is HP SR number 8606223364.
8003 if test "$cross_compiling" = yes; then
8004 # Depending upon the size, compute the lo and hi bounds.
8005 cat >conftest.$ac_ext <<_ACEOF
8006 /* confdefs.h. */
8007 _ACEOF
8008 cat confdefs.h >>conftest.$ac_ext
8009 cat >>conftest.$ac_ext <<_ACEOF
8010 /* end confdefs.h. */
8011 $ac_includes_default
8013 main ()
8015 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
8016 test_array [0] = 0
8019 return 0;
8021 _ACEOF
8022 rm -f conftest.$ac_objext
8023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8024 (eval $ac_compile) 2>conftest.er1
8025 ac_status=$?
8026 grep -v '^ *+' conftest.er1 >conftest.err
8027 rm -f conftest.er1
8028 cat conftest.err >&5
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); } &&
8031 { ac_try='test -z "$ac_c_werror_flag"
8032 || test ! -s conftest.err'
8033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8034 (eval $ac_try) 2>&5
8035 ac_status=$?
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); }; } &&
8038 { ac_try='test -s conftest.$ac_objext'
8039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8040 (eval $ac_try) 2>&5
8041 ac_status=$?
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); }; }; then
8044 ac_lo=0 ac_mid=0
8045 while :; do
8046 cat >conftest.$ac_ext <<_ACEOF
8047 /* confdefs.h. */
8048 _ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h. */
8052 $ac_includes_default
8054 main ()
8056 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8057 test_array [0] = 0
8060 return 0;
8062 _ACEOF
8063 rm -f conftest.$ac_objext
8064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8065 (eval $ac_compile) 2>conftest.er1
8066 ac_status=$?
8067 grep -v '^ *+' conftest.er1 >conftest.err
8068 rm -f conftest.er1
8069 cat conftest.err >&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); } &&
8072 { ac_try='test -z "$ac_c_werror_flag"
8073 || test ! -s conftest.err'
8074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8075 (eval $ac_try) 2>&5
8076 ac_status=$?
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); }; } &&
8079 { ac_try='test -s conftest.$ac_objext'
8080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8081 (eval $ac_try) 2>&5
8082 ac_status=$?
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); }; }; then
8085 ac_hi=$ac_mid; break
8086 else
8087 echo "$as_me: failed program was:" >&5
8088 sed 's/^/| /' conftest.$ac_ext >&5
8090 ac_lo=`expr $ac_mid + 1`
8091 if test $ac_lo -le $ac_mid; then
8092 ac_lo= ac_hi=
8093 break
8095 ac_mid=`expr 2 '*' $ac_mid + 1`
8097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8098 done
8099 else
8100 echo "$as_me: failed program was:" >&5
8101 sed 's/^/| /' conftest.$ac_ext >&5
8103 cat >conftest.$ac_ext <<_ACEOF
8104 /* confdefs.h. */
8105 _ACEOF
8106 cat confdefs.h >>conftest.$ac_ext
8107 cat >>conftest.$ac_ext <<_ACEOF
8108 /* end confdefs.h. */
8109 $ac_includes_default
8111 main ()
8113 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
8114 test_array [0] = 0
8117 return 0;
8119 _ACEOF
8120 rm -f conftest.$ac_objext
8121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8122 (eval $ac_compile) 2>conftest.er1
8123 ac_status=$?
8124 grep -v '^ *+' conftest.er1 >conftest.err
8125 rm -f conftest.er1
8126 cat conftest.err >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } &&
8129 { ac_try='test -z "$ac_c_werror_flag"
8130 || test ! -s conftest.err'
8131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8132 (eval $ac_try) 2>&5
8133 ac_status=$?
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); }; } &&
8136 { ac_try='test -s conftest.$ac_objext'
8137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8138 (eval $ac_try) 2>&5
8139 ac_status=$?
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); }; }; then
8142 ac_hi=-1 ac_mid=-1
8143 while :; do
8144 cat >conftest.$ac_ext <<_ACEOF
8145 /* confdefs.h. */
8146 _ACEOF
8147 cat confdefs.h >>conftest.$ac_ext
8148 cat >>conftest.$ac_ext <<_ACEOF
8149 /* end confdefs.h. */
8150 $ac_includes_default
8152 main ()
8154 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
8155 test_array [0] = 0
8158 return 0;
8160 _ACEOF
8161 rm -f conftest.$ac_objext
8162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8163 (eval $ac_compile) 2>conftest.er1
8164 ac_status=$?
8165 grep -v '^ *+' conftest.er1 >conftest.err
8166 rm -f conftest.er1
8167 cat conftest.err >&5
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); } &&
8170 { ac_try='test -z "$ac_c_werror_flag"
8171 || test ! -s conftest.err'
8172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8173 (eval $ac_try) 2>&5
8174 ac_status=$?
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); }; } &&
8177 { ac_try='test -s conftest.$ac_objext'
8178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8179 (eval $ac_try) 2>&5
8180 ac_status=$?
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); }; }; then
8183 ac_lo=$ac_mid; break
8184 else
8185 echo "$as_me: failed program was:" >&5
8186 sed 's/^/| /' conftest.$ac_ext >&5
8188 ac_hi=`expr '(' $ac_mid ')' - 1`
8189 if test $ac_mid -le $ac_hi; then
8190 ac_lo= ac_hi=
8191 break
8193 ac_mid=`expr 2 '*' $ac_mid`
8195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8196 done
8197 else
8198 echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8201 ac_lo= ac_hi=
8203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8206 # Binary search between lo and hi bounds.
8207 while test "x$ac_lo" != "x$ac_hi"; do
8208 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8209 cat >conftest.$ac_ext <<_ACEOF
8210 /* confdefs.h. */
8211 _ACEOF
8212 cat confdefs.h >>conftest.$ac_ext
8213 cat >>conftest.$ac_ext <<_ACEOF
8214 /* end confdefs.h. */
8215 $ac_includes_default
8217 main ()
8219 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8220 test_array [0] = 0
8223 return 0;
8225 _ACEOF
8226 rm -f conftest.$ac_objext
8227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8228 (eval $ac_compile) 2>conftest.er1
8229 ac_status=$?
8230 grep -v '^ *+' conftest.er1 >conftest.err
8231 rm -f conftest.er1
8232 cat conftest.err >&5
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); } &&
8235 { ac_try='test -z "$ac_c_werror_flag"
8236 || test ! -s conftest.err'
8237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8238 (eval $ac_try) 2>&5
8239 ac_status=$?
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); }; } &&
8242 { ac_try='test -s conftest.$ac_objext'
8243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8244 (eval $ac_try) 2>&5
8245 ac_status=$?
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); }; }; then
8248 ac_hi=$ac_mid
8249 else
8250 echo "$as_me: failed program was:" >&5
8251 sed 's/^/| /' conftest.$ac_ext >&5
8253 ac_lo=`expr '(' $ac_mid ')' + 1`
8255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8256 done
8257 case $ac_lo in
8258 ?*) ac_cv_sizeof_float=$ac_lo;;
8259 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8260 See \`config.log' for more details." >&5
8261 echo "$as_me: error: cannot compute sizeof (float), 77
8262 See \`config.log' for more details." >&2;}
8263 { (exit 1); exit 1; }; } ;;
8264 esac
8265 else
8266 if test "$cross_compiling" = yes; then
8267 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8268 See \`config.log' for more details." >&5
8269 echo "$as_me: error: cannot run test program while cross compiling
8270 See \`config.log' for more details." >&2;}
8271 { (exit 1); exit 1; }; }
8272 else
8273 cat >conftest.$ac_ext <<_ACEOF
8274 /* confdefs.h. */
8275 _ACEOF
8276 cat confdefs.h >>conftest.$ac_ext
8277 cat >>conftest.$ac_ext <<_ACEOF
8278 /* end confdefs.h. */
8279 $ac_includes_default
8280 long longval () { return (long) (sizeof (float)); }
8281 unsigned long ulongval () { return (long) (sizeof (float)); }
8282 #include <stdio.h>
8283 #include <stdlib.h>
8285 main ()
8288 FILE *f = fopen ("conftest.val", "w");
8289 if (! f)
8290 exit (1);
8291 if (((long) (sizeof (float))) < 0)
8293 long i = longval ();
8294 if (i != ((long) (sizeof (float))))
8295 exit (1);
8296 fprintf (f, "%ld\n", i);
8298 else
8300 unsigned long i = ulongval ();
8301 if (i != ((long) (sizeof (float))))
8302 exit (1);
8303 fprintf (f, "%lu\n", i);
8305 exit (ferror (f) || fclose (f) != 0);
8308 return 0;
8310 _ACEOF
8311 rm -f conftest$ac_exeext
8312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8313 (eval $ac_link) 2>&5
8314 ac_status=$?
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8318 (eval $ac_try) 2>&5
8319 ac_status=$?
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); }; }; then
8322 ac_cv_sizeof_float=`cat conftest.val`
8323 else
8324 echo "$as_me: program exited with status $ac_status" >&5
8325 echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8328 ( exit $ac_status )
8329 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8330 See \`config.log' for more details." >&5
8331 echo "$as_me: error: cannot compute sizeof (float), 77
8332 See \`config.log' for more details." >&2;}
8333 { (exit 1); exit 1; }; }
8335 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8338 rm -f conftest.val
8339 else
8340 ac_cv_sizeof_float=0
8343 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8344 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
8345 cat >>confdefs.h <<_ACEOF
8346 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8347 _ACEOF
8350 echo "$as_me:$LINENO: checking for double" >&5
8351 echo $ECHO_N "checking for double... $ECHO_C" >&6
8352 if test "${ac_cv_type_double+set}" = set; then
8353 echo $ECHO_N "(cached) $ECHO_C" >&6
8354 else
8355 cat >conftest.$ac_ext <<_ACEOF
8356 /* confdefs.h. */
8357 _ACEOF
8358 cat confdefs.h >>conftest.$ac_ext
8359 cat >>conftest.$ac_ext <<_ACEOF
8360 /* end confdefs.h. */
8361 $ac_includes_default
8363 main ()
8365 if ((double *) 0)
8366 return 0;
8367 if (sizeof (double))
8368 return 0;
8370 return 0;
8372 _ACEOF
8373 rm -f conftest.$ac_objext
8374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8375 (eval $ac_compile) 2>conftest.er1
8376 ac_status=$?
8377 grep -v '^ *+' conftest.er1 >conftest.err
8378 rm -f conftest.er1
8379 cat conftest.err >&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); } &&
8382 { ac_try='test -z "$ac_c_werror_flag"
8383 || test ! -s conftest.err'
8384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385 (eval $ac_try) 2>&5
8386 ac_status=$?
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); }; } &&
8389 { ac_try='test -s conftest.$ac_objext'
8390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8391 (eval $ac_try) 2>&5
8392 ac_status=$?
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); }; }; then
8395 ac_cv_type_double=yes
8396 else
8397 echo "$as_me: failed program was:" >&5
8398 sed 's/^/| /' conftest.$ac_ext >&5
8400 ac_cv_type_double=no
8402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8404 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8405 echo "${ECHO_T}$ac_cv_type_double" >&6
8407 echo "$as_me:$LINENO: checking size of double" >&5
8408 echo $ECHO_N "checking size of double... $ECHO_C" >&6
8409 if test "${ac_cv_sizeof_double+set}" = set; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8411 else
8412 if test "$ac_cv_type_double" = yes; then
8413 # The cast to unsigned long works around a bug in the HP C Compiler
8414 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8415 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8416 # This bug is HP SR number 8606223364.
8417 if test "$cross_compiling" = yes; then
8418 # Depending upon the size, compute the lo and hi bounds.
8419 cat >conftest.$ac_ext <<_ACEOF
8420 /* confdefs.h. */
8421 _ACEOF
8422 cat confdefs.h >>conftest.$ac_ext
8423 cat >>conftest.$ac_ext <<_ACEOF
8424 /* end confdefs.h. */
8425 $ac_includes_default
8427 main ()
8429 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
8430 test_array [0] = 0
8433 return 0;
8435 _ACEOF
8436 rm -f conftest.$ac_objext
8437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8438 (eval $ac_compile) 2>conftest.er1
8439 ac_status=$?
8440 grep -v '^ *+' conftest.er1 >conftest.err
8441 rm -f conftest.er1
8442 cat conftest.err >&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); } &&
8445 { ac_try='test -z "$ac_c_werror_flag"
8446 || test ! -s conftest.err'
8447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8448 (eval $ac_try) 2>&5
8449 ac_status=$?
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); }; } &&
8452 { ac_try='test -s conftest.$ac_objext'
8453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454 (eval $ac_try) 2>&5
8455 ac_status=$?
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); }; }; then
8458 ac_lo=0 ac_mid=0
8459 while :; do
8460 cat >conftest.$ac_ext <<_ACEOF
8461 /* confdefs.h. */
8462 _ACEOF
8463 cat confdefs.h >>conftest.$ac_ext
8464 cat >>conftest.$ac_ext <<_ACEOF
8465 /* end confdefs.h. */
8466 $ac_includes_default
8468 main ()
8470 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8471 test_array [0] = 0
8474 return 0;
8476 _ACEOF
8477 rm -f conftest.$ac_objext
8478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8479 (eval $ac_compile) 2>conftest.er1
8480 ac_status=$?
8481 grep -v '^ *+' conftest.er1 >conftest.err
8482 rm -f conftest.er1
8483 cat conftest.err >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } &&
8486 { ac_try='test -z "$ac_c_werror_flag"
8487 || test ! -s conftest.err'
8488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8489 (eval $ac_try) 2>&5
8490 ac_status=$?
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); }; } &&
8493 { ac_try='test -s conftest.$ac_objext'
8494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8495 (eval $ac_try) 2>&5
8496 ac_status=$?
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); }; }; then
8499 ac_hi=$ac_mid; break
8500 else
8501 echo "$as_me: failed program was:" >&5
8502 sed 's/^/| /' conftest.$ac_ext >&5
8504 ac_lo=`expr $ac_mid + 1`
8505 if test $ac_lo -le $ac_mid; then
8506 ac_lo= ac_hi=
8507 break
8509 ac_mid=`expr 2 '*' $ac_mid + 1`
8511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8512 done
8513 else
8514 echo "$as_me: failed program was:" >&5
8515 sed 's/^/| /' conftest.$ac_ext >&5
8517 cat >conftest.$ac_ext <<_ACEOF
8518 /* confdefs.h. */
8519 _ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h. */
8523 $ac_includes_default
8525 main ()
8527 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
8528 test_array [0] = 0
8531 return 0;
8533 _ACEOF
8534 rm -f conftest.$ac_objext
8535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8536 (eval $ac_compile) 2>conftest.er1
8537 ac_status=$?
8538 grep -v '^ *+' conftest.er1 >conftest.err
8539 rm -f conftest.er1
8540 cat conftest.err >&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); } &&
8543 { ac_try='test -z "$ac_c_werror_flag"
8544 || test ! -s conftest.err'
8545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8546 (eval $ac_try) 2>&5
8547 ac_status=$?
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); }; } &&
8550 { ac_try='test -s conftest.$ac_objext'
8551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8552 (eval $ac_try) 2>&5
8553 ac_status=$?
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); }; }; then
8556 ac_hi=-1 ac_mid=-1
8557 while :; do
8558 cat >conftest.$ac_ext <<_ACEOF
8559 /* confdefs.h. */
8560 _ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h. */
8564 $ac_includes_default
8566 main ()
8568 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
8569 test_array [0] = 0
8572 return 0;
8574 _ACEOF
8575 rm -f conftest.$ac_objext
8576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8577 (eval $ac_compile) 2>conftest.er1
8578 ac_status=$?
8579 grep -v '^ *+' conftest.er1 >conftest.err
8580 rm -f conftest.er1
8581 cat conftest.err >&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); } &&
8584 { ac_try='test -z "$ac_c_werror_flag"
8585 || test ! -s conftest.err'
8586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8587 (eval $ac_try) 2>&5
8588 ac_status=$?
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); }; } &&
8591 { ac_try='test -s conftest.$ac_objext'
8592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8593 (eval $ac_try) 2>&5
8594 ac_status=$?
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); }; }; then
8597 ac_lo=$ac_mid; break
8598 else
8599 echo "$as_me: failed program was:" >&5
8600 sed 's/^/| /' conftest.$ac_ext >&5
8602 ac_hi=`expr '(' $ac_mid ')' - 1`
8603 if test $ac_mid -le $ac_hi; then
8604 ac_lo= ac_hi=
8605 break
8607 ac_mid=`expr 2 '*' $ac_mid`
8609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8610 done
8611 else
8612 echo "$as_me: failed program was:" >&5
8613 sed 's/^/| /' conftest.$ac_ext >&5
8615 ac_lo= ac_hi=
8617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8620 # Binary search between lo and hi bounds.
8621 while test "x$ac_lo" != "x$ac_hi"; do
8622 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8623 cat >conftest.$ac_ext <<_ACEOF
8624 /* confdefs.h. */
8625 _ACEOF
8626 cat confdefs.h >>conftest.$ac_ext
8627 cat >>conftest.$ac_ext <<_ACEOF
8628 /* end confdefs.h. */
8629 $ac_includes_default
8631 main ()
8633 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8634 test_array [0] = 0
8637 return 0;
8639 _ACEOF
8640 rm -f conftest.$ac_objext
8641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8642 (eval $ac_compile) 2>conftest.er1
8643 ac_status=$?
8644 grep -v '^ *+' conftest.er1 >conftest.err
8645 rm -f conftest.er1
8646 cat conftest.err >&5
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); } &&
8649 { ac_try='test -z "$ac_c_werror_flag"
8650 || test ! -s conftest.err'
8651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8652 (eval $ac_try) 2>&5
8653 ac_status=$?
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); }; } &&
8656 { ac_try='test -s conftest.$ac_objext'
8657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658 (eval $ac_try) 2>&5
8659 ac_status=$?
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); }; }; then
8662 ac_hi=$ac_mid
8663 else
8664 echo "$as_me: failed program was:" >&5
8665 sed 's/^/| /' conftest.$ac_ext >&5
8667 ac_lo=`expr '(' $ac_mid ')' + 1`
8669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8670 done
8671 case $ac_lo in
8672 ?*) ac_cv_sizeof_double=$ac_lo;;
8673 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8674 See \`config.log' for more details." >&5
8675 echo "$as_me: error: cannot compute sizeof (double), 77
8676 See \`config.log' for more details." >&2;}
8677 { (exit 1); exit 1; }; } ;;
8678 esac
8679 else
8680 if test "$cross_compiling" = yes; then
8681 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8682 See \`config.log' for more details." >&5
8683 echo "$as_me: error: cannot run test program while cross compiling
8684 See \`config.log' for more details." >&2;}
8685 { (exit 1); exit 1; }; }
8686 else
8687 cat >conftest.$ac_ext <<_ACEOF
8688 /* confdefs.h. */
8689 _ACEOF
8690 cat confdefs.h >>conftest.$ac_ext
8691 cat >>conftest.$ac_ext <<_ACEOF
8692 /* end confdefs.h. */
8693 $ac_includes_default
8694 long longval () { return (long) (sizeof (double)); }
8695 unsigned long ulongval () { return (long) (sizeof (double)); }
8696 #include <stdio.h>
8697 #include <stdlib.h>
8699 main ()
8702 FILE *f = fopen ("conftest.val", "w");
8703 if (! f)
8704 exit (1);
8705 if (((long) (sizeof (double))) < 0)
8707 long i = longval ();
8708 if (i != ((long) (sizeof (double))))
8709 exit (1);
8710 fprintf (f, "%ld\n", i);
8712 else
8714 unsigned long i = ulongval ();
8715 if (i != ((long) (sizeof (double))))
8716 exit (1);
8717 fprintf (f, "%lu\n", i);
8719 exit (ferror (f) || fclose (f) != 0);
8722 return 0;
8724 _ACEOF
8725 rm -f conftest$ac_exeext
8726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8727 (eval $ac_link) 2>&5
8728 ac_status=$?
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732 (eval $ac_try) 2>&5
8733 ac_status=$?
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); }; }; then
8736 ac_cv_sizeof_double=`cat conftest.val`
8737 else
8738 echo "$as_me: program exited with status $ac_status" >&5
8739 echo "$as_me: failed program was:" >&5
8740 sed 's/^/| /' conftest.$ac_ext >&5
8742 ( exit $ac_status )
8743 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8744 See \`config.log' for more details." >&5
8745 echo "$as_me: error: cannot compute sizeof (double), 77
8746 See \`config.log' for more details." >&2;}
8747 { (exit 1); exit 1; }; }
8749 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8752 rm -f conftest.val
8753 else
8754 ac_cv_sizeof_double=0
8757 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
8758 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
8759 cat >>confdefs.h <<_ACEOF
8760 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8761 _ACEOF
8764 echo "$as_me:$LINENO: checking for fpos_t" >&5
8765 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
8766 if test "${ac_cv_type_fpos_t+set}" = set; then
8767 echo $ECHO_N "(cached) $ECHO_C" >&6
8768 else
8769 cat >conftest.$ac_ext <<_ACEOF
8770 /* confdefs.h. */
8771 _ACEOF
8772 cat confdefs.h >>conftest.$ac_ext
8773 cat >>conftest.$ac_ext <<_ACEOF
8774 /* end confdefs.h. */
8775 $ac_includes_default
8777 main ()
8779 if ((fpos_t *) 0)
8780 return 0;
8781 if (sizeof (fpos_t))
8782 return 0;
8784 return 0;
8786 _ACEOF
8787 rm -f conftest.$ac_objext
8788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8789 (eval $ac_compile) 2>conftest.er1
8790 ac_status=$?
8791 grep -v '^ *+' conftest.er1 >conftest.err
8792 rm -f conftest.er1
8793 cat conftest.err >&5
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); } &&
8796 { ac_try='test -z "$ac_c_werror_flag"
8797 || test ! -s conftest.err'
8798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8799 (eval $ac_try) 2>&5
8800 ac_status=$?
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); }; } &&
8803 { ac_try='test -s conftest.$ac_objext'
8804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8805 (eval $ac_try) 2>&5
8806 ac_status=$?
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); }; }; then
8809 ac_cv_type_fpos_t=yes
8810 else
8811 echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8814 ac_cv_type_fpos_t=no
8816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8818 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
8819 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
8821 echo "$as_me:$LINENO: checking size of fpos_t" >&5
8822 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8823 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8824 echo $ECHO_N "(cached) $ECHO_C" >&6
8825 else
8826 if test "$ac_cv_type_fpos_t" = yes; then
8827 # The cast to unsigned long works around a bug in the HP C Compiler
8828 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8829 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8830 # This bug is HP SR number 8606223364.
8831 if test "$cross_compiling" = yes; then
8832 # Depending upon the size, compute the lo and hi bounds.
8833 cat >conftest.$ac_ext <<_ACEOF
8834 /* confdefs.h. */
8835 _ACEOF
8836 cat confdefs.h >>conftest.$ac_ext
8837 cat >>conftest.$ac_ext <<_ACEOF
8838 /* end confdefs.h. */
8839 $ac_includes_default
8841 main ()
8843 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8844 test_array [0] = 0
8847 return 0;
8849 _ACEOF
8850 rm -f conftest.$ac_objext
8851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8852 (eval $ac_compile) 2>conftest.er1
8853 ac_status=$?
8854 grep -v '^ *+' conftest.er1 >conftest.err
8855 rm -f conftest.er1
8856 cat conftest.err >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } &&
8859 { ac_try='test -z "$ac_c_werror_flag"
8860 || test ! -s conftest.err'
8861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862 (eval $ac_try) 2>&5
8863 ac_status=$?
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; } &&
8866 { ac_try='test -s conftest.$ac_objext'
8867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868 (eval $ac_try) 2>&5
8869 ac_status=$?
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; }; then
8872 ac_lo=0 ac_mid=0
8873 while :; do
8874 cat >conftest.$ac_ext <<_ACEOF
8875 /* confdefs.h. */
8876 _ACEOF
8877 cat confdefs.h >>conftest.$ac_ext
8878 cat >>conftest.$ac_ext <<_ACEOF
8879 /* end confdefs.h. */
8880 $ac_includes_default
8882 main ()
8884 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8885 test_array [0] = 0
8888 return 0;
8890 _ACEOF
8891 rm -f conftest.$ac_objext
8892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8893 (eval $ac_compile) 2>conftest.er1
8894 ac_status=$?
8895 grep -v '^ *+' conftest.er1 >conftest.err
8896 rm -f conftest.er1
8897 cat conftest.err >&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); } &&
8900 { ac_try='test -z "$ac_c_werror_flag"
8901 || test ! -s conftest.err'
8902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8903 (eval $ac_try) 2>&5
8904 ac_status=$?
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); }; } &&
8907 { ac_try='test -s conftest.$ac_objext'
8908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8909 (eval $ac_try) 2>&5
8910 ac_status=$?
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); }; }; then
8913 ac_hi=$ac_mid; break
8914 else
8915 echo "$as_me: failed program was:" >&5
8916 sed 's/^/| /' conftest.$ac_ext >&5
8918 ac_lo=`expr $ac_mid + 1`
8919 if test $ac_lo -le $ac_mid; then
8920 ac_lo= ac_hi=
8921 break
8923 ac_mid=`expr 2 '*' $ac_mid + 1`
8925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8926 done
8927 else
8928 echo "$as_me: failed program was:" >&5
8929 sed 's/^/| /' conftest.$ac_ext >&5
8931 cat >conftest.$ac_ext <<_ACEOF
8932 /* confdefs.h. */
8933 _ACEOF
8934 cat confdefs.h >>conftest.$ac_ext
8935 cat >>conftest.$ac_ext <<_ACEOF
8936 /* end confdefs.h. */
8937 $ac_includes_default
8939 main ()
8941 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
8942 test_array [0] = 0
8945 return 0;
8947 _ACEOF
8948 rm -f conftest.$ac_objext
8949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8950 (eval $ac_compile) 2>conftest.er1
8951 ac_status=$?
8952 grep -v '^ *+' conftest.er1 >conftest.err
8953 rm -f conftest.er1
8954 cat conftest.err >&5
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); } &&
8957 { ac_try='test -z "$ac_c_werror_flag"
8958 || test ! -s conftest.err'
8959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8960 (eval $ac_try) 2>&5
8961 ac_status=$?
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); }; } &&
8964 { ac_try='test -s conftest.$ac_objext'
8965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8966 (eval $ac_try) 2>&5
8967 ac_status=$?
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); }; }; then
8970 ac_hi=-1 ac_mid=-1
8971 while :; do
8972 cat >conftest.$ac_ext <<_ACEOF
8973 /* confdefs.h. */
8974 _ACEOF
8975 cat confdefs.h >>conftest.$ac_ext
8976 cat >>conftest.$ac_ext <<_ACEOF
8977 /* end confdefs.h. */
8978 $ac_includes_default
8980 main ()
8982 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
8983 test_array [0] = 0
8986 return 0;
8988 _ACEOF
8989 rm -f conftest.$ac_objext
8990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8991 (eval $ac_compile) 2>conftest.er1
8992 ac_status=$?
8993 grep -v '^ *+' conftest.er1 >conftest.err
8994 rm -f conftest.er1
8995 cat conftest.err >&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); } &&
8998 { ac_try='test -z "$ac_c_werror_flag"
8999 || test ! -s conftest.err'
9000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9001 (eval $ac_try) 2>&5
9002 ac_status=$?
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); }; } &&
9005 { ac_try='test -s conftest.$ac_objext'
9006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9007 (eval $ac_try) 2>&5
9008 ac_status=$?
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); }; }; then
9011 ac_lo=$ac_mid; break
9012 else
9013 echo "$as_me: failed program was:" >&5
9014 sed 's/^/| /' conftest.$ac_ext >&5
9016 ac_hi=`expr '(' $ac_mid ')' - 1`
9017 if test $ac_mid -le $ac_hi; then
9018 ac_lo= ac_hi=
9019 break
9021 ac_mid=`expr 2 '*' $ac_mid`
9023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9024 done
9025 else
9026 echo "$as_me: failed program was:" >&5
9027 sed 's/^/| /' conftest.$ac_ext >&5
9029 ac_lo= ac_hi=
9031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9034 # Binary search between lo and hi bounds.
9035 while test "x$ac_lo" != "x$ac_hi"; do
9036 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9037 cat >conftest.$ac_ext <<_ACEOF
9038 /* confdefs.h. */
9039 _ACEOF
9040 cat confdefs.h >>conftest.$ac_ext
9041 cat >>conftest.$ac_ext <<_ACEOF
9042 /* end confdefs.h. */
9043 $ac_includes_default
9045 main ()
9047 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
9048 test_array [0] = 0
9051 return 0;
9053 _ACEOF
9054 rm -f conftest.$ac_objext
9055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9056 (eval $ac_compile) 2>conftest.er1
9057 ac_status=$?
9058 grep -v '^ *+' conftest.er1 >conftest.err
9059 rm -f conftest.er1
9060 cat conftest.err >&5
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); } &&
9063 { ac_try='test -z "$ac_c_werror_flag"
9064 || test ! -s conftest.err'
9065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9066 (eval $ac_try) 2>&5
9067 ac_status=$?
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); }; } &&
9070 { ac_try='test -s conftest.$ac_objext'
9071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9072 (eval $ac_try) 2>&5
9073 ac_status=$?
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); }; }; then
9076 ac_hi=$ac_mid
9077 else
9078 echo "$as_me: failed program was:" >&5
9079 sed 's/^/| /' conftest.$ac_ext >&5
9081 ac_lo=`expr '(' $ac_mid ')' + 1`
9083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9084 done
9085 case $ac_lo in
9086 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9087 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9088 See \`config.log' for more details." >&5
9089 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9090 See \`config.log' for more details." >&2;}
9091 { (exit 1); exit 1; }; } ;;
9092 esac
9093 else
9094 if test "$cross_compiling" = yes; then
9095 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9096 See \`config.log' for more details." >&5
9097 echo "$as_me: error: cannot run test program while cross compiling
9098 See \`config.log' for more details." >&2;}
9099 { (exit 1); exit 1; }; }
9100 else
9101 cat >conftest.$ac_ext <<_ACEOF
9102 /* confdefs.h. */
9103 _ACEOF
9104 cat confdefs.h >>conftest.$ac_ext
9105 cat >>conftest.$ac_ext <<_ACEOF
9106 /* end confdefs.h. */
9107 $ac_includes_default
9108 long longval () { return (long) (sizeof (fpos_t)); }
9109 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
9110 #include <stdio.h>
9111 #include <stdlib.h>
9113 main ()
9116 FILE *f = fopen ("conftest.val", "w");
9117 if (! f)
9118 exit (1);
9119 if (((long) (sizeof (fpos_t))) < 0)
9121 long i = longval ();
9122 if (i != ((long) (sizeof (fpos_t))))
9123 exit (1);
9124 fprintf (f, "%ld\n", i);
9126 else
9128 unsigned long i = ulongval ();
9129 if (i != ((long) (sizeof (fpos_t))))
9130 exit (1);
9131 fprintf (f, "%lu\n", i);
9133 exit (ferror (f) || fclose (f) != 0);
9136 return 0;
9138 _ACEOF
9139 rm -f conftest$ac_exeext
9140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9141 (eval $ac_link) 2>&5
9142 ac_status=$?
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9146 (eval $ac_try) 2>&5
9147 ac_status=$?
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); }; }; then
9150 ac_cv_sizeof_fpos_t=`cat conftest.val`
9151 else
9152 echo "$as_me: program exited with status $ac_status" >&5
9153 echo "$as_me: failed program was:" >&5
9154 sed 's/^/| /' conftest.$ac_ext >&5
9156 ( exit $ac_status )
9157 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9158 See \`config.log' for more details." >&5
9159 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9160 See \`config.log' for more details." >&2;}
9161 { (exit 1); exit 1; }; }
9163 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9166 rm -f conftest.val
9167 else
9168 ac_cv_sizeof_fpos_t=0
9171 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9172 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
9173 cat >>confdefs.h <<_ACEOF
9174 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9175 _ACEOF
9178 echo "$as_me:$LINENO: checking for size_t" >&5
9179 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9180 if test "${ac_cv_type_size_t+set}" = set; then
9181 echo $ECHO_N "(cached) $ECHO_C" >&6
9182 else
9183 cat >conftest.$ac_ext <<_ACEOF
9184 /* confdefs.h. */
9185 _ACEOF
9186 cat confdefs.h >>conftest.$ac_ext
9187 cat >>conftest.$ac_ext <<_ACEOF
9188 /* end confdefs.h. */
9189 $ac_includes_default
9191 main ()
9193 if ((size_t *) 0)
9194 return 0;
9195 if (sizeof (size_t))
9196 return 0;
9198 return 0;
9200 _ACEOF
9201 rm -f conftest.$ac_objext
9202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9203 (eval $ac_compile) 2>conftest.er1
9204 ac_status=$?
9205 grep -v '^ *+' conftest.er1 >conftest.err
9206 rm -f conftest.er1
9207 cat conftest.err >&5
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); } &&
9210 { ac_try='test -z "$ac_c_werror_flag"
9211 || test ! -s conftest.err'
9212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9213 (eval $ac_try) 2>&5
9214 ac_status=$?
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); }; } &&
9217 { ac_try='test -s conftest.$ac_objext'
9218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9219 (eval $ac_try) 2>&5
9220 ac_status=$?
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); }; }; then
9223 ac_cv_type_size_t=yes
9224 else
9225 echo "$as_me: failed program was:" >&5
9226 sed 's/^/| /' conftest.$ac_ext >&5
9228 ac_cv_type_size_t=no
9230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9232 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9233 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9235 echo "$as_me:$LINENO: checking size of size_t" >&5
9236 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
9237 if test "${ac_cv_sizeof_size_t+set}" = set; then
9238 echo $ECHO_N "(cached) $ECHO_C" >&6
9239 else
9240 if test "$ac_cv_type_size_t" = yes; then
9241 # The cast to unsigned long works around a bug in the HP C Compiler
9242 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9243 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9244 # This bug is HP SR number 8606223364.
9245 if test "$cross_compiling" = yes; then
9246 # Depending upon the size, compute the lo and hi bounds.
9247 cat >conftest.$ac_ext <<_ACEOF
9248 /* confdefs.h. */
9249 _ACEOF
9250 cat confdefs.h >>conftest.$ac_ext
9251 cat >>conftest.$ac_ext <<_ACEOF
9252 /* end confdefs.h. */
9253 $ac_includes_default
9255 main ()
9257 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
9258 test_array [0] = 0
9261 return 0;
9263 _ACEOF
9264 rm -f conftest.$ac_objext
9265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9266 (eval $ac_compile) 2>conftest.er1
9267 ac_status=$?
9268 grep -v '^ *+' conftest.er1 >conftest.err
9269 rm -f conftest.er1
9270 cat conftest.err >&5
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); } &&
9273 { ac_try='test -z "$ac_c_werror_flag"
9274 || test ! -s conftest.err'
9275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9276 (eval $ac_try) 2>&5
9277 ac_status=$?
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); }; } &&
9280 { ac_try='test -s conftest.$ac_objext'
9281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9282 (eval $ac_try) 2>&5
9283 ac_status=$?
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); }; }; then
9286 ac_lo=0 ac_mid=0
9287 while :; do
9288 cat >conftest.$ac_ext <<_ACEOF
9289 /* confdefs.h. */
9290 _ACEOF
9291 cat confdefs.h >>conftest.$ac_ext
9292 cat >>conftest.$ac_ext <<_ACEOF
9293 /* end confdefs.h. */
9294 $ac_includes_default
9296 main ()
9298 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9299 test_array [0] = 0
9302 return 0;
9304 _ACEOF
9305 rm -f conftest.$ac_objext
9306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9307 (eval $ac_compile) 2>conftest.er1
9308 ac_status=$?
9309 grep -v '^ *+' conftest.er1 >conftest.err
9310 rm -f conftest.er1
9311 cat conftest.err >&5
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); } &&
9314 { ac_try='test -z "$ac_c_werror_flag"
9315 || test ! -s conftest.err'
9316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9317 (eval $ac_try) 2>&5
9318 ac_status=$?
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); }; } &&
9321 { ac_try='test -s conftest.$ac_objext'
9322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9323 (eval $ac_try) 2>&5
9324 ac_status=$?
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); }; }; then
9327 ac_hi=$ac_mid; break
9328 else
9329 echo "$as_me: failed program was:" >&5
9330 sed 's/^/| /' conftest.$ac_ext >&5
9332 ac_lo=`expr $ac_mid + 1`
9333 if test $ac_lo -le $ac_mid; then
9334 ac_lo= ac_hi=
9335 break
9337 ac_mid=`expr 2 '*' $ac_mid + 1`
9339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9340 done
9341 else
9342 echo "$as_me: failed program was:" >&5
9343 sed 's/^/| /' conftest.$ac_ext >&5
9345 cat >conftest.$ac_ext <<_ACEOF
9346 /* confdefs.h. */
9347 _ACEOF
9348 cat confdefs.h >>conftest.$ac_ext
9349 cat >>conftest.$ac_ext <<_ACEOF
9350 /* end confdefs.h. */
9351 $ac_includes_default
9353 main ()
9355 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
9356 test_array [0] = 0
9359 return 0;
9361 _ACEOF
9362 rm -f conftest.$ac_objext
9363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9364 (eval $ac_compile) 2>conftest.er1
9365 ac_status=$?
9366 grep -v '^ *+' conftest.er1 >conftest.err
9367 rm -f conftest.er1
9368 cat conftest.err >&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); } &&
9371 { ac_try='test -z "$ac_c_werror_flag"
9372 || test ! -s conftest.err'
9373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9374 (eval $ac_try) 2>&5
9375 ac_status=$?
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); }; } &&
9378 { ac_try='test -s conftest.$ac_objext'
9379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9380 (eval $ac_try) 2>&5
9381 ac_status=$?
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); }; }; then
9384 ac_hi=-1 ac_mid=-1
9385 while :; do
9386 cat >conftest.$ac_ext <<_ACEOF
9387 /* confdefs.h. */
9388 _ACEOF
9389 cat confdefs.h >>conftest.$ac_ext
9390 cat >>conftest.$ac_ext <<_ACEOF
9391 /* end confdefs.h. */
9392 $ac_includes_default
9394 main ()
9396 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
9397 test_array [0] = 0
9400 return 0;
9402 _ACEOF
9403 rm -f conftest.$ac_objext
9404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9405 (eval $ac_compile) 2>conftest.er1
9406 ac_status=$?
9407 grep -v '^ *+' conftest.er1 >conftest.err
9408 rm -f conftest.er1
9409 cat conftest.err >&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); } &&
9412 { ac_try='test -z "$ac_c_werror_flag"
9413 || test ! -s conftest.err'
9414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9415 (eval $ac_try) 2>&5
9416 ac_status=$?
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); }; } &&
9419 { ac_try='test -s conftest.$ac_objext'
9420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9421 (eval $ac_try) 2>&5
9422 ac_status=$?
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); }; }; then
9425 ac_lo=$ac_mid; break
9426 else
9427 echo "$as_me: failed program was:" >&5
9428 sed 's/^/| /' conftest.$ac_ext >&5
9430 ac_hi=`expr '(' $ac_mid ')' - 1`
9431 if test $ac_mid -le $ac_hi; then
9432 ac_lo= ac_hi=
9433 break
9435 ac_mid=`expr 2 '*' $ac_mid`
9437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9438 done
9439 else
9440 echo "$as_me: failed program was:" >&5
9441 sed 's/^/| /' conftest.$ac_ext >&5
9443 ac_lo= ac_hi=
9445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9448 # Binary search between lo and hi bounds.
9449 while test "x$ac_lo" != "x$ac_hi"; do
9450 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9451 cat >conftest.$ac_ext <<_ACEOF
9452 /* confdefs.h. */
9453 _ACEOF
9454 cat confdefs.h >>conftest.$ac_ext
9455 cat >>conftest.$ac_ext <<_ACEOF
9456 /* end confdefs.h. */
9457 $ac_includes_default
9459 main ()
9461 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9462 test_array [0] = 0
9465 return 0;
9467 _ACEOF
9468 rm -f conftest.$ac_objext
9469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9470 (eval $ac_compile) 2>conftest.er1
9471 ac_status=$?
9472 grep -v '^ *+' conftest.er1 >conftest.err
9473 rm -f conftest.er1
9474 cat conftest.err >&5
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); } &&
9477 { ac_try='test -z "$ac_c_werror_flag"
9478 || test ! -s conftest.err'
9479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9480 (eval $ac_try) 2>&5
9481 ac_status=$?
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); }; } &&
9484 { ac_try='test -s conftest.$ac_objext'
9485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9486 (eval $ac_try) 2>&5
9487 ac_status=$?
9488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489 (exit $ac_status); }; }; then
9490 ac_hi=$ac_mid
9491 else
9492 echo "$as_me: failed program was:" >&5
9493 sed 's/^/| /' conftest.$ac_ext >&5
9495 ac_lo=`expr '(' $ac_mid ')' + 1`
9497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9498 done
9499 case $ac_lo in
9500 ?*) ac_cv_sizeof_size_t=$ac_lo;;
9501 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9502 See \`config.log' for more details." >&5
9503 echo "$as_me: error: cannot compute sizeof (size_t), 77
9504 See \`config.log' for more details." >&2;}
9505 { (exit 1); exit 1; }; } ;;
9506 esac
9507 else
9508 if test "$cross_compiling" = yes; then
9509 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9510 See \`config.log' for more details." >&5
9511 echo "$as_me: error: cannot run test program while cross compiling
9512 See \`config.log' for more details." >&2;}
9513 { (exit 1); exit 1; }; }
9514 else
9515 cat >conftest.$ac_ext <<_ACEOF
9516 /* confdefs.h. */
9517 _ACEOF
9518 cat confdefs.h >>conftest.$ac_ext
9519 cat >>conftest.$ac_ext <<_ACEOF
9520 /* end confdefs.h. */
9521 $ac_includes_default
9522 long longval () { return (long) (sizeof (size_t)); }
9523 unsigned long ulongval () { return (long) (sizeof (size_t)); }
9524 #include <stdio.h>
9525 #include <stdlib.h>
9527 main ()
9530 FILE *f = fopen ("conftest.val", "w");
9531 if (! f)
9532 exit (1);
9533 if (((long) (sizeof (size_t))) < 0)
9535 long i = longval ();
9536 if (i != ((long) (sizeof (size_t))))
9537 exit (1);
9538 fprintf (f, "%ld\n", i);
9540 else
9542 unsigned long i = ulongval ();
9543 if (i != ((long) (sizeof (size_t))))
9544 exit (1);
9545 fprintf (f, "%lu\n", i);
9547 exit (ferror (f) || fclose (f) != 0);
9550 return 0;
9552 _ACEOF
9553 rm -f conftest$ac_exeext
9554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9555 (eval $ac_link) 2>&5
9556 ac_status=$?
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9560 (eval $ac_try) 2>&5
9561 ac_status=$?
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); }; }; then
9564 ac_cv_sizeof_size_t=`cat conftest.val`
9565 else
9566 echo "$as_me: program exited with status $ac_status" >&5
9567 echo "$as_me: failed program was:" >&5
9568 sed 's/^/| /' conftest.$ac_ext >&5
9570 ( exit $ac_status )
9571 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9572 See \`config.log' for more details." >&5
9573 echo "$as_me: error: cannot compute sizeof (size_t), 77
9574 See \`config.log' for more details." >&2;}
9575 { (exit 1); exit 1; }; }
9577 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9580 rm -f conftest.val
9581 else
9582 ac_cv_sizeof_size_t=0
9585 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
9586 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
9587 cat >>confdefs.h <<_ACEOF
9588 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9589 _ACEOF
9593 echo "$as_me:$LINENO: checking for long long support" >&5
9594 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
9595 have_long_long=no
9596 cat >conftest.$ac_ext <<_ACEOF
9597 /* confdefs.h. */
9598 _ACEOF
9599 cat confdefs.h >>conftest.$ac_ext
9600 cat >>conftest.$ac_ext <<_ACEOF
9601 /* end confdefs.h. */
9604 main ()
9606 long long x; x = (long long)0;
9608 return 0;
9610 _ACEOF
9611 rm -f conftest.$ac_objext
9612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9613 (eval $ac_compile) 2>conftest.er1
9614 ac_status=$?
9615 grep -v '^ *+' conftest.er1 >conftest.err
9616 rm -f conftest.er1
9617 cat conftest.err >&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); } &&
9620 { ac_try='test -z "$ac_c_werror_flag"
9621 || test ! -s conftest.err'
9622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9623 (eval $ac_try) 2>&5
9624 ac_status=$?
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); }; } &&
9627 { ac_try='test -s conftest.$ac_objext'
9628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629 (eval $ac_try) 2>&5
9630 ac_status=$?
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); }; }; then
9635 cat >>confdefs.h <<\_ACEOF
9636 #define HAVE_LONG_LONG 1
9637 _ACEOF
9639 have_long_long=yes
9641 else
9642 echo "$as_me: failed program was:" >&5
9643 sed 's/^/| /' conftest.$ac_ext >&5
9646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9647 echo "$as_me:$LINENO: result: $have_long_long" >&5
9648 echo "${ECHO_T}$have_long_long" >&6
9649 if test "$have_long_long" = yes ; then
9650 echo "$as_me:$LINENO: checking for long long" >&5
9651 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9652 if test "${ac_cv_type_long_long+set}" = set; then
9653 echo $ECHO_N "(cached) $ECHO_C" >&6
9654 else
9655 cat >conftest.$ac_ext <<_ACEOF
9656 /* confdefs.h. */
9657 _ACEOF
9658 cat confdefs.h >>conftest.$ac_ext
9659 cat >>conftest.$ac_ext <<_ACEOF
9660 /* end confdefs.h. */
9661 $ac_includes_default
9663 main ()
9665 if ((long long *) 0)
9666 return 0;
9667 if (sizeof (long long))
9668 return 0;
9670 return 0;
9672 _ACEOF
9673 rm -f conftest.$ac_objext
9674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9675 (eval $ac_compile) 2>conftest.er1
9676 ac_status=$?
9677 grep -v '^ *+' conftest.er1 >conftest.err
9678 rm -f conftest.er1
9679 cat conftest.err >&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); } &&
9682 { ac_try='test -z "$ac_c_werror_flag"
9683 || test ! -s conftest.err'
9684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685 (eval $ac_try) 2>&5
9686 ac_status=$?
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); }; } &&
9689 { ac_try='test -s conftest.$ac_objext'
9690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691 (eval $ac_try) 2>&5
9692 ac_status=$?
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); }; }; then
9695 ac_cv_type_long_long=yes
9696 else
9697 echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9700 ac_cv_type_long_long=no
9702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9704 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9705 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9707 echo "$as_me:$LINENO: checking size of long long" >&5
9708 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9709 if test "${ac_cv_sizeof_long_long+set}" = set; then
9710 echo $ECHO_N "(cached) $ECHO_C" >&6
9711 else
9712 if test "$ac_cv_type_long_long" = yes; then
9713 # The cast to unsigned long works around a bug in the HP C Compiler
9714 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9715 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9716 # This bug is HP SR number 8606223364.
9717 if test "$cross_compiling" = yes; then
9718 # Depending upon the size, compute the lo and hi bounds.
9719 cat >conftest.$ac_ext <<_ACEOF
9720 /* confdefs.h. */
9721 _ACEOF
9722 cat confdefs.h >>conftest.$ac_ext
9723 cat >>conftest.$ac_ext <<_ACEOF
9724 /* end confdefs.h. */
9725 $ac_includes_default
9727 main ()
9729 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9730 test_array [0] = 0
9733 return 0;
9735 _ACEOF
9736 rm -f conftest.$ac_objext
9737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9738 (eval $ac_compile) 2>conftest.er1
9739 ac_status=$?
9740 grep -v '^ *+' conftest.er1 >conftest.err
9741 rm -f conftest.er1
9742 cat conftest.err >&5
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); } &&
9745 { ac_try='test -z "$ac_c_werror_flag"
9746 || test ! -s conftest.err'
9747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748 (eval $ac_try) 2>&5
9749 ac_status=$?
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); }; } &&
9752 { ac_try='test -s conftest.$ac_objext'
9753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9754 (eval $ac_try) 2>&5
9755 ac_status=$?
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); }; }; then
9758 ac_lo=0 ac_mid=0
9759 while :; do
9760 cat >conftest.$ac_ext <<_ACEOF
9761 /* confdefs.h. */
9762 _ACEOF
9763 cat confdefs.h >>conftest.$ac_ext
9764 cat >>conftest.$ac_ext <<_ACEOF
9765 /* end confdefs.h. */
9766 $ac_includes_default
9768 main ()
9770 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9771 test_array [0] = 0
9774 return 0;
9776 _ACEOF
9777 rm -f conftest.$ac_objext
9778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9779 (eval $ac_compile) 2>conftest.er1
9780 ac_status=$?
9781 grep -v '^ *+' conftest.er1 >conftest.err
9782 rm -f conftest.er1
9783 cat conftest.err >&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } &&
9786 { ac_try='test -z "$ac_c_werror_flag"
9787 || test ! -s conftest.err'
9788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9789 (eval $ac_try) 2>&5
9790 ac_status=$?
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); }; } &&
9793 { ac_try='test -s conftest.$ac_objext'
9794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9795 (eval $ac_try) 2>&5
9796 ac_status=$?
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); }; }; then
9799 ac_hi=$ac_mid; break
9800 else
9801 echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.$ac_ext >&5
9804 ac_lo=`expr $ac_mid + 1`
9805 if test $ac_lo -le $ac_mid; then
9806 ac_lo= ac_hi=
9807 break
9809 ac_mid=`expr 2 '*' $ac_mid + 1`
9811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9812 done
9813 else
9814 echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9817 cat >conftest.$ac_ext <<_ACEOF
9818 /* confdefs.h. */
9819 _ACEOF
9820 cat confdefs.h >>conftest.$ac_ext
9821 cat >>conftest.$ac_ext <<_ACEOF
9822 /* end confdefs.h. */
9823 $ac_includes_default
9825 main ()
9827 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9828 test_array [0] = 0
9831 return 0;
9833 _ACEOF
9834 rm -f conftest.$ac_objext
9835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9836 (eval $ac_compile) 2>conftest.er1
9837 ac_status=$?
9838 grep -v '^ *+' conftest.er1 >conftest.err
9839 rm -f conftest.er1
9840 cat conftest.err >&5
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); } &&
9843 { ac_try='test -z "$ac_c_werror_flag"
9844 || test ! -s conftest.err'
9845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9846 (eval $ac_try) 2>&5
9847 ac_status=$?
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; } &&
9850 { ac_try='test -s conftest.$ac_objext'
9851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9852 (eval $ac_try) 2>&5
9853 ac_status=$?
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); }; }; then
9856 ac_hi=-1 ac_mid=-1
9857 while :; do
9858 cat >conftest.$ac_ext <<_ACEOF
9859 /* confdefs.h. */
9860 _ACEOF
9861 cat confdefs.h >>conftest.$ac_ext
9862 cat >>conftest.$ac_ext <<_ACEOF
9863 /* end confdefs.h. */
9864 $ac_includes_default
9866 main ()
9868 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9869 test_array [0] = 0
9872 return 0;
9874 _ACEOF
9875 rm -f conftest.$ac_objext
9876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9877 (eval $ac_compile) 2>conftest.er1
9878 ac_status=$?
9879 grep -v '^ *+' conftest.er1 >conftest.err
9880 rm -f conftest.er1
9881 cat conftest.err >&5
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); } &&
9884 { ac_try='test -z "$ac_c_werror_flag"
9885 || test ! -s conftest.err'
9886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9887 (eval $ac_try) 2>&5
9888 ac_status=$?
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); }; } &&
9891 { ac_try='test -s conftest.$ac_objext'
9892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9893 (eval $ac_try) 2>&5
9894 ac_status=$?
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; }; then
9897 ac_lo=$ac_mid; break
9898 else
9899 echo "$as_me: failed program was:" >&5
9900 sed 's/^/| /' conftest.$ac_ext >&5
9902 ac_hi=`expr '(' $ac_mid ')' - 1`
9903 if test $ac_mid -le $ac_hi; then
9904 ac_lo= ac_hi=
9905 break
9907 ac_mid=`expr 2 '*' $ac_mid`
9909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9910 done
9911 else
9912 echo "$as_me: failed program was:" >&5
9913 sed 's/^/| /' conftest.$ac_ext >&5
9915 ac_lo= ac_hi=
9917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9920 # Binary search between lo and hi bounds.
9921 while test "x$ac_lo" != "x$ac_hi"; do
9922 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9923 cat >conftest.$ac_ext <<_ACEOF
9924 /* confdefs.h. */
9925 _ACEOF
9926 cat confdefs.h >>conftest.$ac_ext
9927 cat >>conftest.$ac_ext <<_ACEOF
9928 /* end confdefs.h. */
9929 $ac_includes_default
9931 main ()
9933 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9934 test_array [0] = 0
9937 return 0;
9939 _ACEOF
9940 rm -f conftest.$ac_objext
9941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9942 (eval $ac_compile) 2>conftest.er1
9943 ac_status=$?
9944 grep -v '^ *+' conftest.er1 >conftest.err
9945 rm -f conftest.er1
9946 cat conftest.err >&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); } &&
9949 { ac_try='test -z "$ac_c_werror_flag"
9950 || test ! -s conftest.err'
9951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952 (eval $ac_try) 2>&5
9953 ac_status=$?
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; } &&
9956 { ac_try='test -s conftest.$ac_objext'
9957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9958 (eval $ac_try) 2>&5
9959 ac_status=$?
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); }; }; then
9962 ac_hi=$ac_mid
9963 else
9964 echo "$as_me: failed program was:" >&5
9965 sed 's/^/| /' conftest.$ac_ext >&5
9967 ac_lo=`expr '(' $ac_mid ')' + 1`
9969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9970 done
9971 case $ac_lo in
9972 ?*) ac_cv_sizeof_long_long=$ac_lo;;
9973 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9974 See \`config.log' for more details." >&5
9975 echo "$as_me: error: cannot compute sizeof (long long), 77
9976 See \`config.log' for more details." >&2;}
9977 { (exit 1); exit 1; }; } ;;
9978 esac
9979 else
9980 if test "$cross_compiling" = yes; then
9981 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9982 See \`config.log' for more details." >&5
9983 echo "$as_me: error: cannot run test program while cross compiling
9984 See \`config.log' for more details." >&2;}
9985 { (exit 1); exit 1; }; }
9986 else
9987 cat >conftest.$ac_ext <<_ACEOF
9988 /* confdefs.h. */
9989 _ACEOF
9990 cat confdefs.h >>conftest.$ac_ext
9991 cat >>conftest.$ac_ext <<_ACEOF
9992 /* end confdefs.h. */
9993 $ac_includes_default
9994 long longval () { return (long) (sizeof (long long)); }
9995 unsigned long ulongval () { return (long) (sizeof (long long)); }
9996 #include <stdio.h>
9997 #include <stdlib.h>
9999 main ()
10002 FILE *f = fopen ("conftest.val", "w");
10003 if (! f)
10004 exit (1);
10005 if (((long) (sizeof (long long))) < 0)
10007 long i = longval ();
10008 if (i != ((long) (sizeof (long long))))
10009 exit (1);
10010 fprintf (f, "%ld\n", i);
10012 else
10014 unsigned long i = ulongval ();
10015 if (i != ((long) (sizeof (long long))))
10016 exit (1);
10017 fprintf (f, "%lu\n", i);
10019 exit (ferror (f) || fclose (f) != 0);
10022 return 0;
10024 _ACEOF
10025 rm -f conftest$ac_exeext
10026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10027 (eval $ac_link) 2>&5
10028 ac_status=$?
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10033 ac_status=$?
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; }; then
10036 ac_cv_sizeof_long_long=`cat conftest.val`
10037 else
10038 echo "$as_me: program exited with status $ac_status" >&5
10039 echo "$as_me: failed program was:" >&5
10040 sed 's/^/| /' conftest.$ac_ext >&5
10042 ( exit $ac_status )
10043 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10044 See \`config.log' for more details." >&5
10045 echo "$as_me: error: cannot compute sizeof (long long), 77
10046 See \`config.log' for more details." >&2;}
10047 { (exit 1); exit 1; }; }
10049 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10052 rm -f conftest.val
10053 else
10054 ac_cv_sizeof_long_long=0
10057 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10058 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
10059 cat >>confdefs.h <<_ACEOF
10060 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10061 _ACEOF
10066 echo "$as_me:$LINENO: checking for uintptr_t support" >&5
10067 echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6
10068 have_uintptr_t=no
10069 cat >conftest.$ac_ext <<_ACEOF
10070 /* confdefs.h. */
10071 _ACEOF
10072 cat confdefs.h >>conftest.$ac_ext
10073 cat >>conftest.$ac_ext <<_ACEOF
10074 /* end confdefs.h. */
10077 main ()
10079 uintptr_t x; x = (uintptr_t)0;
10081 return 0;
10083 _ACEOF
10084 rm -f conftest.$ac_objext
10085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10086 (eval $ac_compile) 2>conftest.er1
10087 ac_status=$?
10088 grep -v '^ *+' conftest.er1 >conftest.err
10089 rm -f conftest.er1
10090 cat conftest.err >&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); } &&
10093 { ac_try='test -z "$ac_c_werror_flag"
10094 || test ! -s conftest.err'
10095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10096 (eval $ac_try) 2>&5
10097 ac_status=$?
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); }; } &&
10100 { ac_try='test -s conftest.$ac_objext'
10101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10102 (eval $ac_try) 2>&5
10103 ac_status=$?
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); }; }; then
10108 cat >>confdefs.h <<\_ACEOF
10109 #define HAVE_UINTPTR_T 1
10110 _ACEOF
10112 have_uintptr_t=yes
10114 else
10115 echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.$ac_ext >&5
10119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10120 echo "$as_me:$LINENO: result: $have_uintptr_t" >&5
10121 echo "${ECHO_T}$have_uintptr_t" >&6
10122 if test "$have_uintptr_t" = yes ; then
10123 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10124 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10125 if test "${ac_cv_type_uintptr_t+set}" = set; then
10126 echo $ECHO_N "(cached) $ECHO_C" >&6
10127 else
10128 cat >conftest.$ac_ext <<_ACEOF
10129 /* confdefs.h. */
10130 _ACEOF
10131 cat confdefs.h >>conftest.$ac_ext
10132 cat >>conftest.$ac_ext <<_ACEOF
10133 /* end confdefs.h. */
10134 $ac_includes_default
10136 main ()
10138 if ((uintptr_t *) 0)
10139 return 0;
10140 if (sizeof (uintptr_t))
10141 return 0;
10143 return 0;
10145 _ACEOF
10146 rm -f conftest.$ac_objext
10147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10148 (eval $ac_compile) 2>conftest.er1
10149 ac_status=$?
10150 grep -v '^ *+' conftest.er1 >conftest.err
10151 rm -f conftest.er1
10152 cat conftest.err >&5
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); } &&
10155 { ac_try='test -z "$ac_c_werror_flag"
10156 || test ! -s conftest.err'
10157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10158 (eval $ac_try) 2>&5
10159 ac_status=$?
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); }; } &&
10162 { ac_try='test -s conftest.$ac_objext'
10163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10164 (eval $ac_try) 2>&5
10165 ac_status=$?
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); }; }; then
10168 ac_cv_type_uintptr_t=yes
10169 else
10170 echo "$as_me: failed program was:" >&5
10171 sed 's/^/| /' conftest.$ac_ext >&5
10173 ac_cv_type_uintptr_t=no
10175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10177 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10178 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10180 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
10181 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
10182 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
10183 echo $ECHO_N "(cached) $ECHO_C" >&6
10184 else
10185 if test "$ac_cv_type_uintptr_t" = yes; then
10186 # The cast to unsigned long works around a bug in the HP C Compiler
10187 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10188 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10189 # This bug is HP SR number 8606223364.
10190 if test "$cross_compiling" = yes; then
10191 # Depending upon the size, compute the lo and hi bounds.
10192 cat >conftest.$ac_ext <<_ACEOF
10193 /* confdefs.h. */
10194 _ACEOF
10195 cat confdefs.h >>conftest.$ac_ext
10196 cat >>conftest.$ac_ext <<_ACEOF
10197 /* end confdefs.h. */
10198 $ac_includes_default
10200 main ()
10202 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
10203 test_array [0] = 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 ac_lo=0 ac_mid=0
10232 while :; do
10233 cat >conftest.$ac_ext <<_ACEOF
10234 /* confdefs.h. */
10235 _ACEOF
10236 cat confdefs.h >>conftest.$ac_ext
10237 cat >>conftest.$ac_ext <<_ACEOF
10238 /* end confdefs.h. */
10239 $ac_includes_default
10241 main ()
10243 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10244 test_array [0] = 0
10247 return 0;
10249 _ACEOF
10250 rm -f conftest.$ac_objext
10251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10252 (eval $ac_compile) 2>conftest.er1
10253 ac_status=$?
10254 grep -v '^ *+' conftest.er1 >conftest.err
10255 rm -f conftest.er1
10256 cat conftest.err >&5
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); } &&
10259 { ac_try='test -z "$ac_c_werror_flag"
10260 || test ! -s conftest.err'
10261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10262 (eval $ac_try) 2>&5
10263 ac_status=$?
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); }; } &&
10266 { ac_try='test -s conftest.$ac_objext'
10267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10268 (eval $ac_try) 2>&5
10269 ac_status=$?
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); }; }; then
10272 ac_hi=$ac_mid; break
10273 else
10274 echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.$ac_ext >&5
10277 ac_lo=`expr $ac_mid + 1`
10278 if test $ac_lo -le $ac_mid; then
10279 ac_lo= ac_hi=
10280 break
10282 ac_mid=`expr 2 '*' $ac_mid + 1`
10284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10285 done
10286 else
10287 echo "$as_me: failed program was:" >&5
10288 sed 's/^/| /' conftest.$ac_ext >&5
10290 cat >conftest.$ac_ext <<_ACEOF
10291 /* confdefs.h. */
10292 _ACEOF
10293 cat confdefs.h >>conftest.$ac_ext
10294 cat >>conftest.$ac_ext <<_ACEOF
10295 /* end confdefs.h. */
10296 $ac_includes_default
10298 main ()
10300 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
10301 test_array [0] = 0
10304 return 0;
10306 _ACEOF
10307 rm -f conftest.$ac_objext
10308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10309 (eval $ac_compile) 2>conftest.er1
10310 ac_status=$?
10311 grep -v '^ *+' conftest.er1 >conftest.err
10312 rm -f conftest.er1
10313 cat conftest.err >&5
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); } &&
10316 { ac_try='test -z "$ac_c_werror_flag"
10317 || test ! -s conftest.err'
10318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319 (eval $ac_try) 2>&5
10320 ac_status=$?
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); }; } &&
10323 { ac_try='test -s conftest.$ac_objext'
10324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325 (eval $ac_try) 2>&5
10326 ac_status=$?
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; }; then
10329 ac_hi=-1 ac_mid=-1
10330 while :; do
10331 cat >conftest.$ac_ext <<_ACEOF
10332 /* confdefs.h. */
10333 _ACEOF
10334 cat confdefs.h >>conftest.$ac_ext
10335 cat >>conftest.$ac_ext <<_ACEOF
10336 /* end confdefs.h. */
10337 $ac_includes_default
10339 main ()
10341 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
10342 test_array [0] = 0
10345 return 0;
10347 _ACEOF
10348 rm -f conftest.$ac_objext
10349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10350 (eval $ac_compile) 2>conftest.er1
10351 ac_status=$?
10352 grep -v '^ *+' conftest.er1 >conftest.err
10353 rm -f conftest.er1
10354 cat conftest.err >&5
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); } &&
10357 { ac_try='test -z "$ac_c_werror_flag"
10358 || test ! -s conftest.err'
10359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10360 (eval $ac_try) 2>&5
10361 ac_status=$?
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); }; } &&
10364 { ac_try='test -s conftest.$ac_objext'
10365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10366 (eval $ac_try) 2>&5
10367 ac_status=$?
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); }; }; then
10370 ac_lo=$ac_mid; break
10371 else
10372 echo "$as_me: failed program was:" >&5
10373 sed 's/^/| /' conftest.$ac_ext >&5
10375 ac_hi=`expr '(' $ac_mid ')' - 1`
10376 if test $ac_mid -le $ac_hi; then
10377 ac_lo= ac_hi=
10378 break
10380 ac_mid=`expr 2 '*' $ac_mid`
10382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10383 done
10384 else
10385 echo "$as_me: failed program was:" >&5
10386 sed 's/^/| /' conftest.$ac_ext >&5
10388 ac_lo= ac_hi=
10390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10393 # Binary search between lo and hi bounds.
10394 while test "x$ac_lo" != "x$ac_hi"; do
10395 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10396 cat >conftest.$ac_ext <<_ACEOF
10397 /* confdefs.h. */
10398 _ACEOF
10399 cat confdefs.h >>conftest.$ac_ext
10400 cat >>conftest.$ac_ext <<_ACEOF
10401 /* end confdefs.h. */
10402 $ac_includes_default
10404 main ()
10406 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10407 test_array [0] = 0
10410 return 0;
10412 _ACEOF
10413 rm -f conftest.$ac_objext
10414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10415 (eval $ac_compile) 2>conftest.er1
10416 ac_status=$?
10417 grep -v '^ *+' conftest.er1 >conftest.err
10418 rm -f conftest.er1
10419 cat conftest.err >&5
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); } &&
10422 { ac_try='test -z "$ac_c_werror_flag"
10423 || test ! -s conftest.err'
10424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10425 (eval $ac_try) 2>&5
10426 ac_status=$?
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); }; } &&
10429 { ac_try='test -s conftest.$ac_objext'
10430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10431 (eval $ac_try) 2>&5
10432 ac_status=$?
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }; }; then
10435 ac_hi=$ac_mid
10436 else
10437 echo "$as_me: failed program was:" >&5
10438 sed 's/^/| /' conftest.$ac_ext >&5
10440 ac_lo=`expr '(' $ac_mid ')' + 1`
10442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10443 done
10444 case $ac_lo in
10445 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
10446 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10447 See \`config.log' for more details." >&5
10448 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10449 See \`config.log' for more details." >&2;}
10450 { (exit 1); exit 1; }; } ;;
10451 esac
10452 else
10453 if test "$cross_compiling" = yes; then
10454 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10455 See \`config.log' for more details." >&5
10456 echo "$as_me: error: cannot run test program while cross compiling
10457 See \`config.log' for more details." >&2;}
10458 { (exit 1); exit 1; }; }
10459 else
10460 cat >conftest.$ac_ext <<_ACEOF
10461 /* confdefs.h. */
10462 _ACEOF
10463 cat confdefs.h >>conftest.$ac_ext
10464 cat >>conftest.$ac_ext <<_ACEOF
10465 /* end confdefs.h. */
10466 $ac_includes_default
10467 long longval () { return (long) (sizeof (uintptr_t)); }
10468 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
10469 #include <stdio.h>
10470 #include <stdlib.h>
10472 main ()
10475 FILE *f = fopen ("conftest.val", "w");
10476 if (! f)
10477 exit (1);
10478 if (((long) (sizeof (uintptr_t))) < 0)
10480 long i = longval ();
10481 if (i != ((long) (sizeof (uintptr_t))))
10482 exit (1);
10483 fprintf (f, "%ld\n", i);
10485 else
10487 unsigned long i = ulongval ();
10488 if (i != ((long) (sizeof (uintptr_t))))
10489 exit (1);
10490 fprintf (f, "%lu\n", i);
10492 exit (ferror (f) || fclose (f) != 0);
10495 return 0;
10497 _ACEOF
10498 rm -f conftest$ac_exeext
10499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10500 (eval $ac_link) 2>&5
10501 ac_status=$?
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10505 (eval $ac_try) 2>&5
10506 ac_status=$?
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); }; }; then
10509 ac_cv_sizeof_uintptr_t=`cat conftest.val`
10510 else
10511 echo "$as_me: program exited with status $ac_status" >&5
10512 echo "$as_me: failed program was:" >&5
10513 sed 's/^/| /' conftest.$ac_ext >&5
10515 ( exit $ac_status )
10516 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10517 See \`config.log' for more details." >&5
10518 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10519 See \`config.log' for more details." >&2;}
10520 { (exit 1); exit 1; }; }
10522 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10525 rm -f conftest.val
10526 else
10527 ac_cv_sizeof_uintptr_t=0
10530 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
10531 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
10532 cat >>confdefs.h <<_ACEOF
10533 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
10534 _ACEOF
10539 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
10540 echo "$as_me:$LINENO: checking size of off_t" >&5
10541 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
10542 if test "${ac_cv_sizeof_off_t+set}" = set; then
10543 echo $ECHO_N "(cached) $ECHO_C" >&6
10544 else
10545 if test "$cross_compiling" = yes; then
10546 ac_cv_sizeof_off_t=4
10547 else
10548 cat >conftest.$ac_ext <<_ACEOF
10549 /* confdefs.h. */
10550 _ACEOF
10551 cat confdefs.h >>conftest.$ac_ext
10552 cat >>conftest.$ac_ext <<_ACEOF
10553 /* end confdefs.h. */
10554 #include <stdio.h>
10555 #include <sys/types.h>
10556 main()
10558 FILE *f=fopen("conftestval", "w");
10559 if (!f) exit(1);
10560 fprintf(f, "%d\n", sizeof(off_t));
10561 exit(0);
10563 _ACEOF
10564 rm -f conftest$ac_exeext
10565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10566 (eval $ac_link) 2>&5
10567 ac_status=$?
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571 (eval $ac_try) 2>&5
10572 ac_status=$?
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); }; }; then
10575 ac_cv_sizeof_off_t=`cat conftestval`
10576 else
10577 echo "$as_me: program exited with status $ac_status" >&5
10578 echo "$as_me: failed program was:" >&5
10579 sed 's/^/| /' conftest.$ac_ext >&5
10581 ( exit $ac_status )
10582 ac_cv_sizeof_off_t=0
10584 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10589 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
10590 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
10592 cat >>confdefs.h <<_ACEOF
10593 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10594 _ACEOF
10597 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
10598 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
10599 if test "$have_long_long" = yes -a \
10600 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
10601 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
10603 cat >>confdefs.h <<\_ACEOF
10604 #define HAVE_LARGEFILE_SUPPORT 1
10605 _ACEOF
10607 echo "$as_me:$LINENO: result: yes" >&5
10608 echo "${ECHO_T}yes" >&6
10609 else
10610 echo "$as_me:$LINENO: result: no" >&5
10611 echo "${ECHO_T}no" >&6
10614 # AC_CHECK_SIZEOF() doesn't include <time.h>.
10615 echo "$as_me:$LINENO: checking size of time_t" >&5
10616 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
10617 if test "${ac_cv_sizeof_time_t+set}" = set; then
10618 echo $ECHO_N "(cached) $ECHO_C" >&6
10619 else
10620 if test "$cross_compiling" = yes; then
10621 ac_cv_sizeof_time_t=4
10622 else
10623 cat >conftest.$ac_ext <<_ACEOF
10624 /* confdefs.h. */
10625 _ACEOF
10626 cat confdefs.h >>conftest.$ac_ext
10627 cat >>conftest.$ac_ext <<_ACEOF
10628 /* end confdefs.h. */
10629 #include <stdio.h>
10630 #include <time.h>
10631 main()
10633 FILE *f=fopen("conftestval", "w");
10634 if (!f) exit(1);
10635 fprintf(f, "%d\n", sizeof(time_t));
10636 exit(0);
10638 _ACEOF
10639 rm -f conftest$ac_exeext
10640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10641 (eval $ac_link) 2>&5
10642 ac_status=$?
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646 (eval $ac_try) 2>&5
10647 ac_status=$?
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); }; }; then
10650 ac_cv_sizeof_time_t=`cat conftestval`
10651 else
10652 echo "$as_me: program exited with status $ac_status" >&5
10653 echo "$as_me: failed program was:" >&5
10654 sed 's/^/| /' conftest.$ac_ext >&5
10656 ( exit $ac_status )
10657 ac_cv_sizeof_time_t=0
10659 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10664 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
10665 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
10667 cat >>confdefs.h <<_ACEOF
10668 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10669 _ACEOF
10673 # if have pthread_t then define SIZEOF_PTHREAD_T
10674 ac_save_cc="$CC"
10675 if test "$ac_cv_kpthread" = "yes"
10676 then CC="$CC -Kpthread"
10677 elif test "$ac_cv_kthread" = "yes"
10678 then CC="$CC -Kthread"
10679 elif test "$ac_cv_pthread" = "yes"
10680 then CC="$CC -pthread"
10682 echo "$as_me:$LINENO: checking for pthread_t" >&5
10683 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
10684 have_pthread_t=no
10685 cat >conftest.$ac_ext <<_ACEOF
10686 /* confdefs.h. */
10687 _ACEOF
10688 cat confdefs.h >>conftest.$ac_ext
10689 cat >>conftest.$ac_ext <<_ACEOF
10690 /* end confdefs.h. */
10691 #include <pthread.h>
10693 main ()
10695 pthread_t x; x = *(pthread_t*)0;
10697 return 0;
10699 _ACEOF
10700 rm -f conftest.$ac_objext
10701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10702 (eval $ac_compile) 2>conftest.er1
10703 ac_status=$?
10704 grep -v '^ *+' conftest.er1 >conftest.err
10705 rm -f conftest.er1
10706 cat conftest.err >&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } &&
10709 { ac_try='test -z "$ac_c_werror_flag"
10710 || test ! -s conftest.err'
10711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10712 (eval $ac_try) 2>&5
10713 ac_status=$?
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); }; } &&
10716 { ac_try='test -s conftest.$ac_objext'
10717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10718 (eval $ac_try) 2>&5
10719 ac_status=$?
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); }; }; then
10722 have_pthread_t=yes
10723 else
10724 echo "$as_me: failed program was:" >&5
10725 sed 's/^/| /' conftest.$ac_ext >&5
10728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10729 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
10730 echo "${ECHO_T}$have_pthread_t" >&6
10731 if test "$have_pthread_t" = yes ; then
10732 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
10733 echo "$as_me:$LINENO: checking size of pthread_t" >&5
10734 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
10735 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
10736 echo $ECHO_N "(cached) $ECHO_C" >&6
10737 else
10738 if test "$cross_compiling" = yes; then
10739 ac_cv_sizeof_pthread_t=4
10740 else
10741 cat >conftest.$ac_ext <<_ACEOF
10742 /* confdefs.h. */
10743 _ACEOF
10744 cat confdefs.h >>conftest.$ac_ext
10745 cat >>conftest.$ac_ext <<_ACEOF
10746 /* end confdefs.h. */
10747 #include <stdio.h>
10748 #include <pthread.h>
10749 main()
10751 FILE *f=fopen("conftestval", "w");
10752 if (!f) exit(1);
10753 fprintf(f, "%d\n", sizeof(pthread_t));
10754 exit(0);
10756 _ACEOF
10757 rm -f conftest$ac_exeext
10758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10759 (eval $ac_link) 2>&5
10760 ac_status=$?
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764 (eval $ac_try) 2>&5
10765 ac_status=$?
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); }; }; then
10768 ac_cv_sizeof_pthread_t=`cat conftestval`
10769 else
10770 echo "$as_me: program exited with status $ac_status" >&5
10771 echo "$as_me: failed program was:" >&5
10772 sed 's/^/| /' conftest.$ac_ext >&5
10774 ( exit $ac_status )
10775 ac_cv_sizeof_pthread_t=0
10777 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10782 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
10783 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
10785 cat >>confdefs.h <<_ACEOF
10786 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
10787 _ACEOF
10790 CC="$ac_save_cc"
10792 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
10793 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
10794 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
10795 if test "${enable_toolbox_glue+set}" = set; then
10796 enableval="$enable_toolbox_glue"
10800 if test -z "$enable_toolbox_glue"
10801 then
10802 case $ac_sys_system/$ac_sys_release in
10803 Darwin/*)
10804 enable_toolbox_glue="yes";;
10806 enable_toolbox_glue="no";;
10807 esac
10809 case "$enable_toolbox_glue" in
10810 yes)
10811 extra_machdep_objs="Python/mactoolboxglue.o"
10812 extra_undefs="-u _PyMac_Error"
10814 cat >>confdefs.h <<\_ACEOF
10815 #define USE_TOOLBOX_OBJECT_GLUE 1
10816 _ACEOF
10820 extra_machdep_objs=""
10821 extra_undefs=""
10823 esac
10824 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
10825 echo "${ECHO_T}$enable_toolbox_glue" >&6
10828 case $ac_sys_system/$ac_sys_release in
10829 Darwin/[01567]\..*)
10830 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
10832 Darwin/*)
10833 OTHER_LIBTOOL_OPT=""
10835 esac
10838 case $ac_sys_system/$ac_sys_release in
10839 Darwin/[01567]\..*)
10840 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
10841 if test "${enable_universalsdk}"; then
10843 else
10844 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
10846 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10847 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10848 Darwin/*)
10849 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
10850 if test ${gcc_version} '<' 4.0
10851 then
10852 LIBTOOL_CRUFT="-lcc_dynamic"
10853 else
10854 LIBTOOL_CRUFT=""
10856 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
10857 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10858 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10859 esac
10861 echo "$as_me:$LINENO: checking for --enable-framework" >&5
10862 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
10863 if test "$enable_framework"
10864 then
10865 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
10866 # -F. is needed to allow linking to the framework while
10867 # in the build location.
10869 cat >>confdefs.h <<\_ACEOF
10870 #define WITH_NEXT_FRAMEWORK 1
10871 _ACEOF
10873 echo "$as_me:$LINENO: result: yes" >&5
10874 echo "${ECHO_T}yes" >&6
10875 else
10876 echo "$as_me:$LINENO: result: no" >&5
10877 echo "${ECHO_T}no" >&6
10880 echo "$as_me:$LINENO: checking for dyld" >&5
10881 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
10882 case $ac_sys_system/$ac_sys_release in
10883 Darwin/*)
10885 cat >>confdefs.h <<\_ACEOF
10886 #define WITH_DYLD 1
10887 _ACEOF
10889 echo "$as_me:$LINENO: result: always on for Darwin" >&5
10890 echo "${ECHO_T}always on for Darwin" >&6
10893 echo "$as_me:$LINENO: result: no" >&5
10894 echo "${ECHO_T}no" >&6
10896 esac
10898 # Set info about shared libraries.
10904 # SO is the extension of shared libraries `(including the dot!)
10905 # -- usually .so, .sl on HP-UX, .dll on Cygwin
10906 echo "$as_me:$LINENO: checking SO" >&5
10907 echo $ECHO_N "checking SO... $ECHO_C" >&6
10908 if test -z "$SO"
10909 then
10910 case $ac_sys_system in
10911 hp*|HP*)
10912 case `uname -m` in
10913 ia64) SO=.so;;
10914 *) SO=.sl;;
10915 esac
10917 CYGWIN*) SO=.dll;;
10918 *) SO=.so;;
10919 esac
10920 else
10921 # this might also be a termcap variable, see #610332
10922 echo
10923 echo '====================================================================='
10924 echo '+ +'
10925 echo '+ WARNING: You have set SO in your environment. +'
10926 echo '+ Do you really mean to change the extension for shared libraries? +'
10927 echo '+ Continuing in 10 seconds to let you to ponder. +'
10928 echo '+ +'
10929 echo '====================================================================='
10930 sleep 10
10932 echo "$as_me:$LINENO: result: $SO" >&5
10933 echo "${ECHO_T}$SO" >&6
10935 cat >>confdefs.h <<_ACEOF
10936 #define SHLIB_EXT "$SO"
10937 _ACEOF
10939 # LDSHARED is the ld *command* used to create shared library
10940 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
10941 # (Shared libraries in this instance are shared modules to be loaded into
10942 # Python, as opposed to building Python itself as a shared library.)
10943 echo "$as_me:$LINENO: checking LDSHARED" >&5
10944 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
10945 if test -z "$LDSHARED"
10946 then
10947 case $ac_sys_system/$ac_sys_release in
10948 AIX*)
10949 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
10950 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
10952 BeOS*)
10953 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
10954 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
10956 IRIX/5*) LDSHARED="ld -shared";;
10957 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
10958 SunOS/5*)
10959 if test "$GCC" = "yes"
10960 then LDSHARED='$(CC) -shared'
10961 else LDSHARED='$(CC) -G';
10962 fi ;;
10963 hp*|HP*) LDSHARED="ld -b";;
10964 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
10965 Darwin/1.3*)
10966 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10967 if test "$enable_framework" ; then
10968 # Link against the framework. All externals should be defined.
10969 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10970 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10971 else
10972 # No framework. Ignore undefined symbols, assuming they come from Python
10973 LDSHARED="$LDSHARED -undefined suppress"
10974 fi ;;
10975 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
10976 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10977 if test "$enable_framework" ; then
10978 # Link against the framework. All externals should be defined.
10979 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10980 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10981 else
10982 # No framework, use the Python app as bundle-loader
10983 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10984 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10985 fi ;;
10986 Darwin/*)
10987 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
10988 # This allows an extension to be used in any Python
10989 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
10990 if test ${cur_target} '>' 10.2; then
10991 cur_target=10.3
10993 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
10994 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
10995 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
10996 then
10997 if test "${enable_universalsdk}"; then
10998 LDFLAGS="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
11000 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
11001 BLDSHARED="$LDSHARED"
11002 else
11003 LDSHARED='$(CC) $(LDFLAGS) -bundle'
11004 if test "$enable_framework" ; then
11005 # Link against the framework. All externals should be defined.
11006 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11007 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11008 else
11009 # No framework, use the Python app as bundle-loader
11010 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
11011 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
11015 Linux*|GNU*) LDSHARED='$(CC) -shared';;
11016 BSD/OS*/4*) LDSHARED="gcc -shared";;
11017 FreeBSD*)
11018 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11019 then
11020 LDSHARED="$CC -shared ${LDFLAGS}"
11021 else
11022 LDSHARED="ld -Bshareable ${LDFLAGS}"
11023 fi;;
11024 OpenBSD*)
11025 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11026 then
11027 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11028 else
11029 case `uname -r` in
11030 [01].* | 2.[0-7] | 2.[0-7].*)
11031 LDSHARED="ld -Bshareable ${LDFLAGS}"
11034 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11036 esac
11037 fi;;
11038 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
11039 OpenUNIX*|UnixWare*)
11040 if test "$GCC" = "yes"
11041 then LDSHARED='$(CC) -shared'
11042 else LDSHARED='$(CC) -G'
11043 fi;;
11044 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
11045 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
11046 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
11047 atheos*) LDSHARED="gcc -shared";;
11048 *) LDSHARED="ld";;
11049 esac
11051 echo "$as_me:$LINENO: result: $LDSHARED" >&5
11052 echo "${ECHO_T}$LDSHARED" >&6
11053 BLDSHARED=${BLDSHARED-$LDSHARED}
11054 # CCSHARED are the C *flags* used to create objects to go into a shared
11055 # library (module) -- this is only needed for a few systems
11056 echo "$as_me:$LINENO: checking CCSHARED" >&5
11057 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
11058 if test -z "$CCSHARED"
11059 then
11060 case $ac_sys_system/$ac_sys_release in
11061 SunOS*) if test "$GCC" = yes;
11062 then CCSHARED="-fPIC";
11063 else CCSHARED="-xcode=pic32";
11064 fi;;
11065 hp*|HP*) if test "$GCC" = yes;
11066 then CCSHARED="-fPIC";
11067 else CCSHARED="+z";
11068 fi;;
11069 Linux*|GNU*) CCSHARED="-fPIC";;
11070 BSD/OS*/4*) CCSHARED="-fpic";;
11071 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
11072 OpenUNIX*|UnixWare*)
11073 if test "$GCC" = "yes"
11074 then CCSHARED="-fPIC"
11075 else CCSHARED="-KPIC"
11076 fi;;
11077 SCO_SV*)
11078 if test "$GCC" = "yes"
11079 then CCSHARED="-fPIC"
11080 else CCSHARED="-Kpic -belf"
11081 fi;;
11082 Monterey*) CCSHARED="-G";;
11083 IRIX*/6*) case $CC in
11084 *gcc*) CCSHARED="-shared";;
11085 *) CCSHARED="";;
11086 esac;;
11087 atheos*) CCSHARED="-fPIC";;
11088 esac
11090 echo "$as_me:$LINENO: result: $CCSHARED" >&5
11091 echo "${ECHO_T}$CCSHARED" >&6
11092 # LINKFORSHARED are the flags passed to the $(CC) command that links
11093 # the python executable -- this is only needed for a few systems
11094 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
11095 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
11096 if test -z "$LINKFORSHARED"
11097 then
11098 case $ac_sys_system/$ac_sys_release in
11099 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
11100 hp*|HP*)
11101 LINKFORSHARED="-Wl,-E -Wl,+s";;
11102 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
11103 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
11104 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
11105 # -u libsys_s pulls in all symbols in libsys
11106 Darwin/*)
11107 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
11108 # which is
11109 # not used by the core itself but which needs to be in the core so
11110 # that dynamically loaded extension modules have access to it.
11111 # -prebind is no longer used, because it actually seems to give a
11112 # slowdown in stead of a speedup, maybe due to the large number of
11113 # dynamic loads Python does.
11115 LINKFORSHARED="$extra_undefs"
11116 if test "$enable_framework"
11117 then
11118 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11120 LINKFORSHARED="$LINKFORSHARED";;
11121 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
11122 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
11123 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
11124 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
11125 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11126 then
11127 LINKFORSHARED="-Wl,--export-dynamic"
11128 fi;;
11129 SunOS/5*) case $CC in
11130 *gcc*)
11131 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
11132 then
11133 LINKFORSHARED="-Xlinker --export-dynamic"
11134 fi;;
11135 esac;;
11136 CYGWIN*)
11137 if test $enable_shared = "no"
11138 then
11139 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
11140 fi;;
11141 esac
11143 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
11144 echo "${ECHO_T}$LINKFORSHARED" >&6
11147 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
11148 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
11149 if test ! "$LIBRARY" = "$LDLIBRARY"
11150 then
11151 case $ac_sys_system in
11152 CYGWIN*)
11153 # Cygwin needs CCSHARED when building extension DLLs
11154 # but not when building the interpreter DLL.
11155 CFLAGSFORSHARED='';;
11157 CFLAGSFORSHARED='$(CCSHARED)'
11158 esac
11160 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
11161 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
11163 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
11164 # library (with --enable-shared).
11165 # For platforms on which shared libraries are not allowed to have unresolved
11166 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
11167 # if it is not required, since it creates a dependency of the shared library
11168 # to LIBS. This, in turn, means that applications linking the shared libpython
11169 # don't need to link LIBS explicitly. The default should be only changed
11170 # on systems where this approach causes problems.
11172 echo "$as_me:$LINENO: checking SHLIBS" >&5
11173 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
11174 case "$ac_sys_system" in
11176 SHLIBS='$(LIBS)';;
11177 esac
11178 echo "$as_me:$LINENO: result: $SHLIBS" >&5
11179 echo "${ECHO_T}$SHLIBS" >&6
11182 # checks for libraries
11184 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11185 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11186 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11187 echo $ECHO_N "(cached) $ECHO_C" >&6
11188 else
11189 ac_check_lib_save_LIBS=$LIBS
11190 LIBS="-ldl $LIBS"
11191 cat >conftest.$ac_ext <<_ACEOF
11192 /* confdefs.h. */
11193 _ACEOF
11194 cat confdefs.h >>conftest.$ac_ext
11195 cat >>conftest.$ac_ext <<_ACEOF
11196 /* end confdefs.h. */
11198 /* Override any gcc2 internal prototype to avoid an error. */
11199 #ifdef __cplusplus
11200 extern "C"
11201 #endif
11202 /* We use char because int might match the return type of a gcc2
11203 builtin and then its argument prototype would still apply. */
11204 char dlopen ();
11206 main ()
11208 dlopen ();
11210 return 0;
11212 _ACEOF
11213 rm -f conftest.$ac_objext conftest$ac_exeext
11214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11215 (eval $ac_link) 2>conftest.er1
11216 ac_status=$?
11217 grep -v '^ *+' conftest.er1 >conftest.err
11218 rm -f conftest.er1
11219 cat conftest.err >&5
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); } &&
11222 { ac_try='test -z "$ac_c_werror_flag"
11223 || test ! -s conftest.err'
11224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11225 (eval $ac_try) 2>&5
11226 ac_status=$?
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); }; } &&
11229 { ac_try='test -s conftest$ac_exeext'
11230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11231 (eval $ac_try) 2>&5
11232 ac_status=$?
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); }; }; then
11235 ac_cv_lib_dl_dlopen=yes
11236 else
11237 echo "$as_me: failed program was:" >&5
11238 sed 's/^/| /' conftest.$ac_ext >&5
11240 ac_cv_lib_dl_dlopen=no
11242 rm -f conftest.err conftest.$ac_objext \
11243 conftest$ac_exeext conftest.$ac_ext
11244 LIBS=$ac_check_lib_save_LIBS
11246 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11247 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11248 if test $ac_cv_lib_dl_dlopen = yes; then
11249 cat >>confdefs.h <<_ACEOF
11250 #define HAVE_LIBDL 1
11251 _ACEOF
11253 LIBS="-ldl $LIBS"
11256 # Dynamic linking for SunOS/Solaris and SYSV
11258 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11259 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11260 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11261 echo $ECHO_N "(cached) $ECHO_C" >&6
11262 else
11263 ac_check_lib_save_LIBS=$LIBS
11264 LIBS="-ldld $LIBS"
11265 cat >conftest.$ac_ext <<_ACEOF
11266 /* confdefs.h. */
11267 _ACEOF
11268 cat confdefs.h >>conftest.$ac_ext
11269 cat >>conftest.$ac_ext <<_ACEOF
11270 /* end confdefs.h. */
11272 /* Override any gcc2 internal prototype to avoid an error. */
11273 #ifdef __cplusplus
11274 extern "C"
11275 #endif
11276 /* We use char because int might match the return type of a gcc2
11277 builtin and then its argument prototype would still apply. */
11278 char shl_load ();
11280 main ()
11282 shl_load ();
11284 return 0;
11286 _ACEOF
11287 rm -f conftest.$ac_objext conftest$ac_exeext
11288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11289 (eval $ac_link) 2>conftest.er1
11290 ac_status=$?
11291 grep -v '^ *+' conftest.er1 >conftest.err
11292 rm -f conftest.er1
11293 cat conftest.err >&5
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); } &&
11296 { ac_try='test -z "$ac_c_werror_flag"
11297 || test ! -s conftest.err'
11298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11299 (eval $ac_try) 2>&5
11300 ac_status=$?
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); }; } &&
11303 { ac_try='test -s conftest$ac_exeext'
11304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11305 (eval $ac_try) 2>&5
11306 ac_status=$?
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); }; }; then
11309 ac_cv_lib_dld_shl_load=yes
11310 else
11311 echo "$as_me: failed program was:" >&5
11312 sed 's/^/| /' conftest.$ac_ext >&5
11314 ac_cv_lib_dld_shl_load=no
11316 rm -f conftest.err conftest.$ac_objext \
11317 conftest$ac_exeext conftest.$ac_ext
11318 LIBS=$ac_check_lib_save_LIBS
11320 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11321 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11322 if test $ac_cv_lib_dld_shl_load = yes; then
11323 cat >>confdefs.h <<_ACEOF
11324 #define HAVE_LIBDLD 1
11325 _ACEOF
11327 LIBS="-ldld $LIBS"
11330 # Dynamic linking for HP-UX
11332 # only check for sem_ini if thread support is requested
11333 if test "$with_threads" = "yes" -o -z "$with_threads"; then
11334 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
11335 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
11336 if test "${ac_cv_search_sem_init+set}" = set; then
11337 echo $ECHO_N "(cached) $ECHO_C" >&6
11338 else
11339 ac_func_search_save_LIBS=$LIBS
11340 ac_cv_search_sem_init=no
11341 cat >conftest.$ac_ext <<_ACEOF
11342 /* confdefs.h. */
11343 _ACEOF
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h. */
11348 /* Override any gcc2 internal prototype to avoid an error. */
11349 #ifdef __cplusplus
11350 extern "C"
11351 #endif
11352 /* We use char because int might match the return type of a gcc2
11353 builtin and then its argument prototype would still apply. */
11354 char sem_init ();
11356 main ()
11358 sem_init ();
11360 return 0;
11362 _ACEOF
11363 rm -f conftest.$ac_objext conftest$ac_exeext
11364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11365 (eval $ac_link) 2>conftest.er1
11366 ac_status=$?
11367 grep -v '^ *+' conftest.er1 >conftest.err
11368 rm -f conftest.er1
11369 cat conftest.err >&5
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); } &&
11372 { ac_try='test -z "$ac_c_werror_flag"
11373 || test ! -s conftest.err'
11374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11375 (eval $ac_try) 2>&5
11376 ac_status=$?
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); }; } &&
11379 { ac_try='test -s conftest$ac_exeext'
11380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11381 (eval $ac_try) 2>&5
11382 ac_status=$?
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); }; }; then
11385 ac_cv_search_sem_init="none required"
11386 else
11387 echo "$as_me: failed program was:" >&5
11388 sed 's/^/| /' conftest.$ac_ext >&5
11391 rm -f conftest.err conftest.$ac_objext \
11392 conftest$ac_exeext conftest.$ac_ext
11393 if test "$ac_cv_search_sem_init" = no; then
11394 for ac_lib in pthread rt posix4; do
11395 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11396 cat >conftest.$ac_ext <<_ACEOF
11397 /* confdefs.h. */
11398 _ACEOF
11399 cat confdefs.h >>conftest.$ac_ext
11400 cat >>conftest.$ac_ext <<_ACEOF
11401 /* end confdefs.h. */
11403 /* Override any gcc2 internal prototype to avoid an error. */
11404 #ifdef __cplusplus
11405 extern "C"
11406 #endif
11407 /* We use char because int might match the return type of a gcc2
11408 builtin and then its argument prototype would still apply. */
11409 char sem_init ();
11411 main ()
11413 sem_init ();
11415 return 0;
11417 _ACEOF
11418 rm -f conftest.$ac_objext conftest$ac_exeext
11419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11420 (eval $ac_link) 2>conftest.er1
11421 ac_status=$?
11422 grep -v '^ *+' conftest.er1 >conftest.err
11423 rm -f conftest.er1
11424 cat conftest.err >&5
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); } &&
11427 { ac_try='test -z "$ac_c_werror_flag"
11428 || test ! -s conftest.err'
11429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11430 (eval $ac_try) 2>&5
11431 ac_status=$?
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); }; } &&
11434 { ac_try='test -s conftest$ac_exeext'
11435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11436 (eval $ac_try) 2>&5
11437 ac_status=$?
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); }; }; then
11440 ac_cv_search_sem_init="-l$ac_lib"
11441 break
11442 else
11443 echo "$as_me: failed program was:" >&5
11444 sed 's/^/| /' conftest.$ac_ext >&5
11447 rm -f conftest.err conftest.$ac_objext \
11448 conftest$ac_exeext conftest.$ac_ext
11449 done
11451 LIBS=$ac_func_search_save_LIBS
11453 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
11454 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
11455 if test "$ac_cv_search_sem_init" != no; then
11456 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
11459 # 'Real Time' functions on Solaris
11460 # posix4 on Solaris 2.6
11461 # pthread (first!) on Linux
11464 # check if we need libintl for locale functions
11465 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
11466 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
11467 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
11468 echo $ECHO_N "(cached) $ECHO_C" >&6
11469 else
11470 ac_check_lib_save_LIBS=$LIBS
11471 LIBS="-lintl $LIBS"
11472 cat >conftest.$ac_ext <<_ACEOF
11473 /* confdefs.h. */
11474 _ACEOF
11475 cat confdefs.h >>conftest.$ac_ext
11476 cat >>conftest.$ac_ext <<_ACEOF
11477 /* end confdefs.h. */
11479 /* Override any gcc2 internal prototype to avoid an error. */
11480 #ifdef __cplusplus
11481 extern "C"
11482 #endif
11483 /* We use char because int might match the return type of a gcc2
11484 builtin and then its argument prototype would still apply. */
11485 char textdomain ();
11487 main ()
11489 textdomain ();
11491 return 0;
11493 _ACEOF
11494 rm -f conftest.$ac_objext conftest$ac_exeext
11495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11496 (eval $ac_link) 2>conftest.er1
11497 ac_status=$?
11498 grep -v '^ *+' conftest.er1 >conftest.err
11499 rm -f conftest.er1
11500 cat conftest.err >&5
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); } &&
11503 { ac_try='test -z "$ac_c_werror_flag"
11504 || test ! -s conftest.err'
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11507 ac_status=$?
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; } &&
11510 { ac_try='test -s conftest$ac_exeext'
11511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11512 (eval $ac_try) 2>&5
11513 ac_status=$?
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; }; then
11516 ac_cv_lib_intl_textdomain=yes
11517 else
11518 echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.$ac_ext >&5
11521 ac_cv_lib_intl_textdomain=no
11523 rm -f conftest.err conftest.$ac_objext \
11524 conftest$ac_exeext conftest.$ac_ext
11525 LIBS=$ac_check_lib_save_LIBS
11527 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
11528 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
11529 if test $ac_cv_lib_intl_textdomain = yes; then
11531 cat >>confdefs.h <<\_ACEOF
11532 #define WITH_LIBINTL 1
11533 _ACEOF
11538 # checks for system dependent C++ extensions support
11539 case "$ac_sys_system" in
11540 AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
11541 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
11542 cat >conftest.$ac_ext <<_ACEOF
11543 /* confdefs.h. */
11544 _ACEOF
11545 cat confdefs.h >>conftest.$ac_ext
11546 cat >>conftest.$ac_ext <<_ACEOF
11547 /* end confdefs.h. */
11548 #include "/usr/lpp/xlC/include/load.h"
11550 main ()
11552 loadAndInit("", 0, "")
11554 return 0;
11556 _ACEOF
11557 rm -f conftest.$ac_objext conftest$ac_exeext
11558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11559 (eval $ac_link) 2>conftest.er1
11560 ac_status=$?
11561 grep -v '^ *+' conftest.er1 >conftest.err
11562 rm -f conftest.er1
11563 cat conftest.err >&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } &&
11566 { ac_try='test -z "$ac_c_werror_flag"
11567 || test ! -s conftest.err'
11568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569 (eval $ac_try) 2>&5
11570 ac_status=$?
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); }; } &&
11573 { ac_try='test -s conftest$ac_exeext'
11574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11575 (eval $ac_try) 2>&5
11576 ac_status=$?
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); }; }; then
11580 cat >>confdefs.h <<\_ACEOF
11581 #define AIX_GENUINE_CPLUSPLUS 1
11582 _ACEOF
11584 echo "$as_me:$LINENO: result: yes" >&5
11585 echo "${ECHO_T}yes" >&6
11586 else
11587 echo "$as_me: failed program was:" >&5
11588 sed 's/^/| /' conftest.$ac_ext >&5
11590 echo "$as_me:$LINENO: result: no" >&5
11591 echo "${ECHO_T}no" >&6
11593 rm -f conftest.err conftest.$ac_objext \
11594 conftest$ac_exeext conftest.$ac_ext;;
11595 *) ;;
11596 esac
11598 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
11599 # BeOS' sockets are stashed in libnet.
11600 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
11601 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
11602 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
11603 echo $ECHO_N "(cached) $ECHO_C" >&6
11604 else
11605 ac_check_lib_save_LIBS=$LIBS
11606 LIBS="-lnsl $LIBS"
11607 cat >conftest.$ac_ext <<_ACEOF
11608 /* confdefs.h. */
11609 _ACEOF
11610 cat confdefs.h >>conftest.$ac_ext
11611 cat >>conftest.$ac_ext <<_ACEOF
11612 /* end confdefs.h. */
11614 /* Override any gcc2 internal prototype to avoid an error. */
11615 #ifdef __cplusplus
11616 extern "C"
11617 #endif
11618 /* We use char because int might match the return type of a gcc2
11619 builtin and then its argument prototype would still apply. */
11620 char t_open ();
11622 main ()
11624 t_open ();
11626 return 0;
11628 _ACEOF
11629 rm -f conftest.$ac_objext conftest$ac_exeext
11630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11631 (eval $ac_link) 2>conftest.er1
11632 ac_status=$?
11633 grep -v '^ *+' conftest.er1 >conftest.err
11634 rm -f conftest.er1
11635 cat conftest.err >&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } &&
11638 { ac_try='test -z "$ac_c_werror_flag"
11639 || test ! -s conftest.err'
11640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11641 (eval $ac_try) 2>&5
11642 ac_status=$?
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); }; } &&
11645 { ac_try='test -s conftest$ac_exeext'
11646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11647 (eval $ac_try) 2>&5
11648 ac_status=$?
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); }; }; then
11651 ac_cv_lib_nsl_t_open=yes
11652 else
11653 echo "$as_me: failed program was:" >&5
11654 sed 's/^/| /' conftest.$ac_ext >&5
11656 ac_cv_lib_nsl_t_open=no
11658 rm -f conftest.err conftest.$ac_objext \
11659 conftest$ac_exeext conftest.$ac_ext
11660 LIBS=$ac_check_lib_save_LIBS
11662 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
11663 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
11664 if test $ac_cv_lib_nsl_t_open = yes; then
11665 LIBS="-lnsl $LIBS"
11667 # SVR4
11668 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
11669 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
11670 if test "${ac_cv_lib_socket_socket+set}" = set; then
11671 echo $ECHO_N "(cached) $ECHO_C" >&6
11672 else
11673 ac_check_lib_save_LIBS=$LIBS
11674 LIBS="-lsocket $LIBS $LIBS"
11675 cat >conftest.$ac_ext <<_ACEOF
11676 /* confdefs.h. */
11677 _ACEOF
11678 cat confdefs.h >>conftest.$ac_ext
11679 cat >>conftest.$ac_ext <<_ACEOF
11680 /* end confdefs.h. */
11682 /* Override any gcc2 internal prototype to avoid an error. */
11683 #ifdef __cplusplus
11684 extern "C"
11685 #endif
11686 /* We use char because int might match the return type of a gcc2
11687 builtin and then its argument prototype would still apply. */
11688 char socket ();
11690 main ()
11692 socket ();
11694 return 0;
11696 _ACEOF
11697 rm -f conftest.$ac_objext conftest$ac_exeext
11698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11699 (eval $ac_link) 2>conftest.er1
11700 ac_status=$?
11701 grep -v '^ *+' conftest.er1 >conftest.err
11702 rm -f conftest.er1
11703 cat conftest.err >&5
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); } &&
11706 { ac_try='test -z "$ac_c_werror_flag"
11707 || test ! -s conftest.err'
11708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11709 (eval $ac_try) 2>&5
11710 ac_status=$?
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); }; } &&
11713 { ac_try='test -s conftest$ac_exeext'
11714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11715 (eval $ac_try) 2>&5
11716 ac_status=$?
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); }; }; then
11719 ac_cv_lib_socket_socket=yes
11720 else
11721 echo "$as_me: failed program was:" >&5
11722 sed 's/^/| /' conftest.$ac_ext >&5
11724 ac_cv_lib_socket_socket=no
11726 rm -f conftest.err conftest.$ac_objext \
11727 conftest$ac_exeext conftest.$ac_ext
11728 LIBS=$ac_check_lib_save_LIBS
11730 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
11731 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
11732 if test $ac_cv_lib_socket_socket = yes; then
11733 LIBS="-lsocket $LIBS"
11735 # SVR4 sockets
11737 case "$ac_sys_system" in
11738 BeOS*)
11739 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
11740 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
11741 if test "${ac_cv_lib_net_socket+set}" = set; then
11742 echo $ECHO_N "(cached) $ECHO_C" >&6
11743 else
11744 ac_check_lib_save_LIBS=$LIBS
11745 LIBS="-lnet $LIBS $LIBS"
11746 cat >conftest.$ac_ext <<_ACEOF
11747 /* confdefs.h. */
11748 _ACEOF
11749 cat confdefs.h >>conftest.$ac_ext
11750 cat >>conftest.$ac_ext <<_ACEOF
11751 /* end confdefs.h. */
11753 /* Override any gcc2 internal prototype to avoid an error. */
11754 #ifdef __cplusplus
11755 extern "C"
11756 #endif
11757 /* We use char because int might match the return type of a gcc2
11758 builtin and then its argument prototype would still apply. */
11759 char socket ();
11761 main ()
11763 socket ();
11765 return 0;
11767 _ACEOF
11768 rm -f conftest.$ac_objext conftest$ac_exeext
11769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11770 (eval $ac_link) 2>conftest.er1
11771 ac_status=$?
11772 grep -v '^ *+' conftest.er1 >conftest.err
11773 rm -f conftest.er1
11774 cat conftest.err >&5
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); } &&
11777 { ac_try='test -z "$ac_c_werror_flag"
11778 || test ! -s conftest.err'
11779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11780 (eval $ac_try) 2>&5
11781 ac_status=$?
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); }; } &&
11784 { ac_try='test -s conftest$ac_exeext'
11785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11786 (eval $ac_try) 2>&5
11787 ac_status=$?
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); }; }; then
11790 ac_cv_lib_net_socket=yes
11791 else
11792 echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.$ac_ext >&5
11795 ac_cv_lib_net_socket=no
11797 rm -f conftest.err conftest.$ac_objext \
11798 conftest$ac_exeext conftest.$ac_ext
11799 LIBS=$ac_check_lib_save_LIBS
11801 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
11802 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
11803 if test $ac_cv_lib_net_socket = yes; then
11804 LIBS="-lnet $LIBS"
11806 # BeOS
11808 esac
11810 echo "$as_me:$LINENO: checking for --with-libs" >&5
11811 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
11813 # Check whether --with-libs or --without-libs was given.
11814 if test "${with_libs+set}" = set; then
11815 withval="$with_libs"
11817 echo "$as_me:$LINENO: result: $withval" >&5
11818 echo "${ECHO_T}$withval" >&6
11819 LIBS="$withval $LIBS"
11821 else
11822 echo "$as_me:$LINENO: result: no" >&5
11823 echo "${ECHO_T}no" >&6
11826 # Check for use of the system libffi library
11827 echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
11828 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6
11830 # Check whether --with-system_ffi or --without-system_ffi was given.
11831 if test "${with_system_ffi+set}" = set; then
11832 withval="$with_system_ffi"
11836 if test -z "$with_system_ffi"
11837 then with_system_ffi="no"
11839 echo "$as_me:$LINENO: result: $with_system_ffi" >&5
11840 echo "${ECHO_T}$with_system_ffi" >&6
11842 # Determine if signalmodule should be used.
11845 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
11846 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
11848 # Check whether --with-signal-module or --without-signal-module was given.
11849 if test "${with_signal_module+set}" = set; then
11850 withval="$with_signal_module"
11854 if test -z "$with_signal_module"
11855 then with_signal_module="yes"
11857 echo "$as_me:$LINENO: result: $with_signal_module" >&5
11858 echo "${ECHO_T}$with_signal_module" >&6
11860 if test "${with_signal_module}" = "yes"; then
11861 USE_SIGNAL_MODULE=""
11862 SIGNAL_OBJS=""
11863 else
11864 USE_SIGNAL_MODULE="#"
11865 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
11868 # This is used to generate Setup.config
11870 USE_THREAD_MODULE=""
11872 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
11873 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
11876 # Check whether --with-dec-threads or --without-dec-threads was given.
11877 if test "${with_dec_threads+set}" = set; then
11878 withval="$with_dec_threads"
11880 echo "$as_me:$LINENO: result: $withval" >&5
11881 echo "${ECHO_T}$withval" >&6
11882 LDLAST=-threads
11883 if test "${with_thread+set}" != set; then
11884 with_thread="$withval";
11886 else
11887 echo "$as_me:$LINENO: result: no" >&5
11888 echo "${ECHO_T}no" >&6
11891 # Templates for things AC_DEFINEd more than once.
11892 # For a single AC_DEFINE, no template is needed.
11900 echo "$as_me:$LINENO: checking for --with-threads" >&5
11901 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
11903 # Check whether --with-threads or --without-threads was given.
11904 if test "${with_threads+set}" = set; then
11905 withval="$with_threads"
11909 # --with-thread is deprecated, but check for it anyway
11911 # Check whether --with-thread or --without-thread was given.
11912 if test "${with_thread+set}" = set; then
11913 withval="$with_thread"
11914 with_threads=$with_thread
11917 if test -z "$with_threads"
11918 then with_threads="yes"
11920 echo "$as_me:$LINENO: result: $with_threads" >&5
11921 echo "${ECHO_T}$with_threads" >&6
11924 if test "$with_threads" = "no"
11925 then
11926 USE_THREAD_MODULE="#"
11927 elif test "$ac_cv_pthread_is_default" = yes
11928 then
11929 cat >>confdefs.h <<\_ACEOF
11930 #define WITH_THREAD 1
11931 _ACEOF
11933 # Defining _REENTRANT on system with POSIX threads should not hurt.
11934 cat >>confdefs.h <<\_ACEOF
11935 #define _REENTRANT 1
11936 _ACEOF
11938 posix_threads=yes
11939 THREADOBJ="Python/thread.o"
11940 elif test "$ac_cv_kpthread" = "yes"
11941 then
11942 CC="$CC -Kpthread"
11943 if test "$ac_cv_cxx_thread" = "yes"; then
11944 CXX="$CXX -Kpthread"
11946 cat >>confdefs.h <<\_ACEOF
11947 #define WITH_THREAD 1
11948 _ACEOF
11950 posix_threads=yes
11951 THREADOBJ="Python/thread.o"
11952 elif test "$ac_cv_kthread" = "yes"
11953 then
11954 CC="$CC -Kthread"
11955 if test "$ac_cv_cxx_thread" = "yes"; then
11956 CXX="$CXX -Kthread"
11958 cat >>confdefs.h <<\_ACEOF
11959 #define WITH_THREAD 1
11960 _ACEOF
11962 posix_threads=yes
11963 THREADOBJ="Python/thread.o"
11964 elif test "$ac_cv_pthread" = "yes"
11965 then
11966 CC="$CC -pthread"
11967 if test "$ac_cv_cxx_thread" = "yes"; then
11968 CXX="$CXX -pthread"
11970 cat >>confdefs.h <<\_ACEOF
11971 #define WITH_THREAD 1
11972 _ACEOF
11974 posix_threads=yes
11975 THREADOBJ="Python/thread.o"
11976 else
11977 if test ! -z "$with_threads" -a -d "$with_threads"
11978 then LDFLAGS="$LDFLAGS -L$with_threads"
11980 if test ! -z "$withval" -a -d "$withval"
11981 then LDFLAGS="$LDFLAGS -L$withval"
11984 # According to the POSIX spec, a pthreads implementation must
11985 # define _POSIX_THREADS in unistd.h. Some apparently don't
11986 # (e.g. gnu pth with pthread emulation)
11987 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
11988 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
11989 cat >conftest.$ac_ext <<_ACEOF
11990 /* confdefs.h. */
11991 _ACEOF
11992 cat confdefs.h >>conftest.$ac_ext
11993 cat >>conftest.$ac_ext <<_ACEOF
11994 /* end confdefs.h. */
11996 #include <unistd.h>
11997 #ifdef _POSIX_THREADS
11999 #endif
12001 _ACEOF
12002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12003 $EGREP "yes" >/dev/null 2>&1; then
12004 unistd_defines_pthreads=yes
12005 else
12006 unistd_defines_pthreads=no
12008 rm -f conftest*
12010 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
12011 echo "${ECHO_T}$unistd_defines_pthreads" >&6
12013 cat >>confdefs.h <<\_ACEOF
12014 #define _REENTRANT 1
12015 _ACEOF
12017 if test "${ac_cv_header_cthreads_h+set}" = set; then
12018 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12019 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12020 if test "${ac_cv_header_cthreads_h+set}" = set; then
12021 echo $ECHO_N "(cached) $ECHO_C" >&6
12023 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12024 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12025 else
12026 # Is the header compilable?
12027 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
12028 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
12029 cat >conftest.$ac_ext <<_ACEOF
12030 /* confdefs.h. */
12031 _ACEOF
12032 cat confdefs.h >>conftest.$ac_ext
12033 cat >>conftest.$ac_ext <<_ACEOF
12034 /* end confdefs.h. */
12035 $ac_includes_default
12036 #include <cthreads.h>
12037 _ACEOF
12038 rm -f conftest.$ac_objext
12039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12040 (eval $ac_compile) 2>conftest.er1
12041 ac_status=$?
12042 grep -v '^ *+' conftest.er1 >conftest.err
12043 rm -f conftest.er1
12044 cat conftest.err >&5
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); } &&
12047 { ac_try='test -z "$ac_c_werror_flag"
12048 || test ! -s conftest.err'
12049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050 (eval $ac_try) 2>&5
12051 ac_status=$?
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); }; } &&
12054 { ac_try='test -s conftest.$ac_objext'
12055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12056 (eval $ac_try) 2>&5
12057 ac_status=$?
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); }; }; then
12060 ac_header_compiler=yes
12061 else
12062 echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.$ac_ext >&5
12065 ac_header_compiler=no
12067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12068 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12069 echo "${ECHO_T}$ac_header_compiler" >&6
12071 # Is the header present?
12072 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
12073 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
12074 cat >conftest.$ac_ext <<_ACEOF
12075 /* confdefs.h. */
12076 _ACEOF
12077 cat confdefs.h >>conftest.$ac_ext
12078 cat >>conftest.$ac_ext <<_ACEOF
12079 /* end confdefs.h. */
12080 #include <cthreads.h>
12081 _ACEOF
12082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12084 ac_status=$?
12085 grep -v '^ *+' conftest.er1 >conftest.err
12086 rm -f conftest.er1
12087 cat conftest.err >&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); } >/dev/null; then
12090 if test -s conftest.err; then
12091 ac_cpp_err=$ac_c_preproc_warn_flag
12092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12093 else
12094 ac_cpp_err=
12096 else
12097 ac_cpp_err=yes
12099 if test -z "$ac_cpp_err"; then
12100 ac_header_preproc=yes
12101 else
12102 echo "$as_me: failed program was:" >&5
12103 sed 's/^/| /' conftest.$ac_ext >&5
12105 ac_header_preproc=no
12107 rm -f conftest.err conftest.$ac_ext
12108 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12109 echo "${ECHO_T}$ac_header_preproc" >&6
12111 # So? What about this header?
12112 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12113 yes:no: )
12114 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12115 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12116 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
12117 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
12118 ac_header_preproc=yes
12120 no:yes:* )
12121 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
12122 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
12123 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
12124 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
12125 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
12126 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
12127 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12128 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12129 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
12130 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
12131 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
12132 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
12134 cat <<\_ASBOX
12135 ## ------------------------------------------------ ##
12136 ## Report this to http://www.python.org/python-bugs ##
12137 ## ------------------------------------------------ ##
12138 _ASBOX
12140 sed "s/^/$as_me: WARNING: /" >&2
12142 esac
12143 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12144 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12145 if test "${ac_cv_header_cthreads_h+set}" = set; then
12146 echo $ECHO_N "(cached) $ECHO_C" >&6
12147 else
12148 ac_cv_header_cthreads_h=$ac_header_preproc
12150 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12151 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12154 if test $ac_cv_header_cthreads_h = yes; then
12155 cat >>confdefs.h <<\_ACEOF
12156 #define WITH_THREAD 1
12157 _ACEOF
12159 cat >>confdefs.h <<\_ACEOF
12160 #define C_THREADS 1
12161 _ACEOF
12164 cat >>confdefs.h <<\_ACEOF
12165 #define HURD_C_THREADS 1
12166 _ACEOF
12168 LIBS="$LIBS -lthreads"
12169 THREADOBJ="Python/thread.o"
12170 else
12172 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12173 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12174 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12175 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12176 echo $ECHO_N "(cached) $ECHO_C" >&6
12178 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12179 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12180 else
12181 # Is the header compilable?
12182 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
12183 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
12184 cat >conftest.$ac_ext <<_ACEOF
12185 /* confdefs.h. */
12186 _ACEOF
12187 cat confdefs.h >>conftest.$ac_ext
12188 cat >>conftest.$ac_ext <<_ACEOF
12189 /* end confdefs.h. */
12190 $ac_includes_default
12191 #include <mach/cthreads.h>
12192 _ACEOF
12193 rm -f conftest.$ac_objext
12194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12195 (eval $ac_compile) 2>conftest.er1
12196 ac_status=$?
12197 grep -v '^ *+' conftest.er1 >conftest.err
12198 rm -f conftest.er1
12199 cat conftest.err >&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); } &&
12202 { ac_try='test -z "$ac_c_werror_flag"
12203 || test ! -s conftest.err'
12204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12205 (eval $ac_try) 2>&5
12206 ac_status=$?
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); }; } &&
12209 { ac_try='test -s conftest.$ac_objext'
12210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211 (eval $ac_try) 2>&5
12212 ac_status=$?
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); }; }; then
12215 ac_header_compiler=yes
12216 else
12217 echo "$as_me: failed program was:" >&5
12218 sed 's/^/| /' conftest.$ac_ext >&5
12220 ac_header_compiler=no
12222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12223 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12224 echo "${ECHO_T}$ac_header_compiler" >&6
12226 # Is the header present?
12227 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
12228 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
12229 cat >conftest.$ac_ext <<_ACEOF
12230 /* confdefs.h. */
12231 _ACEOF
12232 cat confdefs.h >>conftest.$ac_ext
12233 cat >>conftest.$ac_ext <<_ACEOF
12234 /* end confdefs.h. */
12235 #include <mach/cthreads.h>
12236 _ACEOF
12237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12239 ac_status=$?
12240 grep -v '^ *+' conftest.er1 >conftest.err
12241 rm -f conftest.er1
12242 cat conftest.err >&5
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); } >/dev/null; then
12245 if test -s conftest.err; then
12246 ac_cpp_err=$ac_c_preproc_warn_flag
12247 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12248 else
12249 ac_cpp_err=
12251 else
12252 ac_cpp_err=yes
12254 if test -z "$ac_cpp_err"; then
12255 ac_header_preproc=yes
12256 else
12257 echo "$as_me: failed program was:" >&5
12258 sed 's/^/| /' conftest.$ac_ext >&5
12260 ac_header_preproc=no
12262 rm -f conftest.err conftest.$ac_ext
12263 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12264 echo "${ECHO_T}$ac_header_preproc" >&6
12266 # So? What about this header?
12267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12268 yes:no: )
12269 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12270 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12271 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
12272 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
12273 ac_header_preproc=yes
12275 no:yes:* )
12276 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
12277 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
12278 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
12279 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
12280 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
12281 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
12282 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12283 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12284 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
12285 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
12286 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
12287 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
12289 cat <<\_ASBOX
12290 ## ------------------------------------------------ ##
12291 ## Report this to http://www.python.org/python-bugs ##
12292 ## ------------------------------------------------ ##
12293 _ASBOX
12295 sed "s/^/$as_me: WARNING: /" >&2
12297 esac
12298 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12299 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12300 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12301 echo $ECHO_N "(cached) $ECHO_C" >&6
12302 else
12303 ac_cv_header_mach_cthreads_h=$ac_header_preproc
12305 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12306 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12309 if test $ac_cv_header_mach_cthreads_h = yes; then
12310 cat >>confdefs.h <<\_ACEOF
12311 #define WITH_THREAD 1
12312 _ACEOF
12314 cat >>confdefs.h <<\_ACEOF
12315 #define C_THREADS 1
12316 _ACEOF
12319 cat >>confdefs.h <<\_ACEOF
12320 #define MACH_C_THREADS 1
12321 _ACEOF
12323 THREADOBJ="Python/thread.o"
12324 else
12326 echo "$as_me:$LINENO: checking for --with-pth" >&5
12327 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
12329 # Check whether --with-pth or --without-pth was given.
12330 if test "${with_pth+set}" = set; then
12331 withval="$with_pth"
12332 echo "$as_me:$LINENO: result: $withval" >&5
12333 echo "${ECHO_T}$withval" >&6
12334 cat >>confdefs.h <<\_ACEOF
12335 #define WITH_THREAD 1
12336 _ACEOF
12339 cat >>confdefs.h <<\_ACEOF
12340 #define HAVE_PTH 1
12341 _ACEOF
12343 LIBS="-lpth $LIBS"
12344 THREADOBJ="Python/thread.o"
12345 else
12346 echo "$as_me:$LINENO: result: no" >&5
12347 echo "${ECHO_T}no" >&6
12349 # Just looking for pthread_create in libpthread is not enough:
12350 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
12351 # So we really have to include pthread.h, and then link.
12352 _libs=$LIBS
12353 LIBS="$LIBS -lpthread"
12354 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
12355 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
12356 cat >conftest.$ac_ext <<_ACEOF
12357 /* confdefs.h. */
12358 _ACEOF
12359 cat confdefs.h >>conftest.$ac_ext
12360 cat >>conftest.$ac_ext <<_ACEOF
12361 /* end confdefs.h. */
12362 #include <pthread.h>
12364 void * start_routine (void *arg) { exit (0); }
12366 main ()
12369 pthread_create (NULL, NULL, start_routine, NULL)
12371 return 0;
12373 _ACEOF
12374 rm -f conftest.$ac_objext conftest$ac_exeext
12375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12376 (eval $ac_link) 2>conftest.er1
12377 ac_status=$?
12378 grep -v '^ *+' conftest.er1 >conftest.err
12379 rm -f conftest.er1
12380 cat conftest.err >&5
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); } &&
12383 { ac_try='test -z "$ac_c_werror_flag"
12384 || test ! -s conftest.err'
12385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12386 (eval $ac_try) 2>&5
12387 ac_status=$?
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); }; } &&
12390 { ac_try='test -s conftest$ac_exeext'
12391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12392 (eval $ac_try) 2>&5
12393 ac_status=$?
12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); }; }; then
12397 echo "$as_me:$LINENO: result: yes" >&5
12398 echo "${ECHO_T}yes" >&6
12399 cat >>confdefs.h <<\_ACEOF
12400 #define WITH_THREAD 1
12401 _ACEOF
12403 posix_threads=yes
12404 THREADOBJ="Python/thread.o"
12405 else
12406 echo "$as_me: failed program was:" >&5
12407 sed 's/^/| /' conftest.$ac_ext >&5
12410 LIBS=$_libs
12411 echo "$as_me:$LINENO: checking for pthread_detach" >&5
12412 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
12413 if test "${ac_cv_func_pthread_detach+set}" = set; then
12414 echo $ECHO_N "(cached) $ECHO_C" >&6
12415 else
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. */
12422 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
12423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12424 #define pthread_detach innocuous_pthread_detach
12426 /* System header to define __stub macros and hopefully few prototypes,
12427 which can conflict with char pthread_detach (); below.
12428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12429 <limits.h> exists even on freestanding compilers. */
12431 #ifdef __STDC__
12432 # include <limits.h>
12433 #else
12434 # include <assert.h>
12435 #endif
12437 #undef pthread_detach
12439 /* Override any gcc2 internal prototype to avoid an error. */
12440 #ifdef __cplusplus
12441 extern "C"
12443 #endif
12444 /* We use char because int might match the return type of a gcc2
12445 builtin and then its argument prototype would still apply. */
12446 char pthread_detach ();
12447 /* The GNU C library defines this for functions which it implements
12448 to always fail with ENOSYS. Some functions are actually named
12449 something starting with __ and the normal name is an alias. */
12450 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
12451 choke me
12452 #else
12453 char (*f) () = pthread_detach;
12454 #endif
12455 #ifdef __cplusplus
12457 #endif
12460 main ()
12462 return f != pthread_detach;
12464 return 0;
12466 _ACEOF
12467 rm -f conftest.$ac_objext conftest$ac_exeext
12468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12469 (eval $ac_link) 2>conftest.er1
12470 ac_status=$?
12471 grep -v '^ *+' conftest.er1 >conftest.err
12472 rm -f conftest.er1
12473 cat conftest.err >&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); } &&
12476 { ac_try='test -z "$ac_c_werror_flag"
12477 || test ! -s conftest.err'
12478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12479 (eval $ac_try) 2>&5
12480 ac_status=$?
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); }; } &&
12483 { ac_try='test -s conftest$ac_exeext'
12484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12485 (eval $ac_try) 2>&5
12486 ac_status=$?
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); }; }; then
12489 ac_cv_func_pthread_detach=yes
12490 else
12491 echo "$as_me: failed program was:" >&5
12492 sed 's/^/| /' conftest.$ac_ext >&5
12494 ac_cv_func_pthread_detach=no
12496 rm -f conftest.err conftest.$ac_objext \
12497 conftest$ac_exeext conftest.$ac_ext
12499 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
12500 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
12501 if test $ac_cv_func_pthread_detach = yes; then
12502 cat >>confdefs.h <<\_ACEOF
12503 #define WITH_THREAD 1
12504 _ACEOF
12506 posix_threads=yes
12507 THREADOBJ="Python/thread.o"
12508 else
12510 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12511 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12512 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12513 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12516 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12517 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12518 else
12519 # Is the header compilable?
12520 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
12521 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
12522 cat >conftest.$ac_ext <<_ACEOF
12523 /* confdefs.h. */
12524 _ACEOF
12525 cat confdefs.h >>conftest.$ac_ext
12526 cat >>conftest.$ac_ext <<_ACEOF
12527 /* end confdefs.h. */
12528 $ac_includes_default
12529 #include <atheos/threads.h>
12530 _ACEOF
12531 rm -f conftest.$ac_objext
12532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12533 (eval $ac_compile) 2>conftest.er1
12534 ac_status=$?
12535 grep -v '^ *+' conftest.er1 >conftest.err
12536 rm -f conftest.er1
12537 cat conftest.err >&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); } &&
12540 { ac_try='test -z "$ac_c_werror_flag"
12541 || test ! -s conftest.err'
12542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12543 (eval $ac_try) 2>&5
12544 ac_status=$?
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); }; } &&
12547 { ac_try='test -s conftest.$ac_objext'
12548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12549 (eval $ac_try) 2>&5
12550 ac_status=$?
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; }; then
12553 ac_header_compiler=yes
12554 else
12555 echo "$as_me: failed program was:" >&5
12556 sed 's/^/| /' conftest.$ac_ext >&5
12558 ac_header_compiler=no
12560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12561 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12562 echo "${ECHO_T}$ac_header_compiler" >&6
12564 # Is the header present?
12565 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
12566 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
12567 cat >conftest.$ac_ext <<_ACEOF
12568 /* confdefs.h. */
12569 _ACEOF
12570 cat confdefs.h >>conftest.$ac_ext
12571 cat >>conftest.$ac_ext <<_ACEOF
12572 /* end confdefs.h. */
12573 #include <atheos/threads.h>
12574 _ACEOF
12575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12577 ac_status=$?
12578 grep -v '^ *+' conftest.er1 >conftest.err
12579 rm -f conftest.er1
12580 cat conftest.err >&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); } >/dev/null; then
12583 if test -s conftest.err; then
12584 ac_cpp_err=$ac_c_preproc_warn_flag
12585 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12586 else
12587 ac_cpp_err=
12589 else
12590 ac_cpp_err=yes
12592 if test -z "$ac_cpp_err"; then
12593 ac_header_preproc=yes
12594 else
12595 echo "$as_me: failed program was:" >&5
12596 sed 's/^/| /' conftest.$ac_ext >&5
12598 ac_header_preproc=no
12600 rm -f conftest.err conftest.$ac_ext
12601 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12602 echo "${ECHO_T}$ac_header_preproc" >&6
12604 # So? What about this header?
12605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12606 yes:no: )
12607 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12608 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12609 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
12610 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
12611 ac_header_preproc=yes
12613 no:yes:* )
12614 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
12615 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
12616 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
12617 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
12618 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
12619 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
12620 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
12621 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12622 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
12623 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
12624 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
12625 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
12627 cat <<\_ASBOX
12628 ## ------------------------------------------------ ##
12629 ## Report this to http://www.python.org/python-bugs ##
12630 ## ------------------------------------------------ ##
12631 _ASBOX
12633 sed "s/^/$as_me: WARNING: /" >&2
12635 esac
12636 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12637 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12638 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12639 echo $ECHO_N "(cached) $ECHO_C" >&6
12640 else
12641 ac_cv_header_atheos_threads_h=$ac_header_preproc
12643 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12644 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12647 if test $ac_cv_header_atheos_threads_h = yes; then
12648 cat >>confdefs.h <<\_ACEOF
12649 #define WITH_THREAD 1
12650 _ACEOF
12653 cat >>confdefs.h <<\_ACEOF
12654 #define ATHEOS_THREADS 1
12655 _ACEOF
12657 THREADOBJ="Python/thread.o"
12658 else
12660 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12661 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12662 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12663 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12664 echo $ECHO_N "(cached) $ECHO_C" >&6
12666 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12667 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12668 else
12669 # Is the header compilable?
12670 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
12671 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
12672 cat >conftest.$ac_ext <<_ACEOF
12673 /* confdefs.h. */
12674 _ACEOF
12675 cat confdefs.h >>conftest.$ac_ext
12676 cat >>conftest.$ac_ext <<_ACEOF
12677 /* end confdefs.h. */
12678 $ac_includes_default
12679 #include <kernel/OS.h>
12680 _ACEOF
12681 rm -f conftest.$ac_objext
12682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12683 (eval $ac_compile) 2>conftest.er1
12684 ac_status=$?
12685 grep -v '^ *+' conftest.er1 >conftest.err
12686 rm -f conftest.er1
12687 cat conftest.err >&5
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); } &&
12690 { ac_try='test -z "$ac_c_werror_flag"
12691 || test ! -s conftest.err'
12692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12693 (eval $ac_try) 2>&5
12694 ac_status=$?
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); }; } &&
12697 { ac_try='test -s conftest.$ac_objext'
12698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12699 (eval $ac_try) 2>&5
12700 ac_status=$?
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); }; }; then
12703 ac_header_compiler=yes
12704 else
12705 echo "$as_me: failed program was:" >&5
12706 sed 's/^/| /' conftest.$ac_ext >&5
12708 ac_header_compiler=no
12710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12712 echo "${ECHO_T}$ac_header_compiler" >&6
12714 # Is the header present?
12715 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
12716 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
12717 cat >conftest.$ac_ext <<_ACEOF
12718 /* confdefs.h. */
12719 _ACEOF
12720 cat confdefs.h >>conftest.$ac_ext
12721 cat >>conftest.$ac_ext <<_ACEOF
12722 /* end confdefs.h. */
12723 #include <kernel/OS.h>
12724 _ACEOF
12725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12727 ac_status=$?
12728 grep -v '^ *+' conftest.er1 >conftest.err
12729 rm -f conftest.er1
12730 cat conftest.err >&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } >/dev/null; then
12733 if test -s conftest.err; then
12734 ac_cpp_err=$ac_c_preproc_warn_flag
12735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12736 else
12737 ac_cpp_err=
12739 else
12740 ac_cpp_err=yes
12742 if test -z "$ac_cpp_err"; then
12743 ac_header_preproc=yes
12744 else
12745 echo "$as_me: failed program was:" >&5
12746 sed 's/^/| /' conftest.$ac_ext >&5
12748 ac_header_preproc=no
12750 rm -f conftest.err conftest.$ac_ext
12751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12752 echo "${ECHO_T}$ac_header_preproc" >&6
12754 # So? What about this header?
12755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12756 yes:no: )
12757 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
12758 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12759 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
12760 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
12761 ac_header_preproc=yes
12763 no:yes:* )
12764 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
12765 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
12766 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
12767 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
12768 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
12769 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
12770 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
12771 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
12772 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
12773 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
12774 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
12775 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
12777 cat <<\_ASBOX
12778 ## ------------------------------------------------ ##
12779 ## Report this to http://www.python.org/python-bugs ##
12780 ## ------------------------------------------------ ##
12781 _ASBOX
12783 sed "s/^/$as_me: WARNING: /" >&2
12785 esac
12786 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12787 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12788 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12789 echo $ECHO_N "(cached) $ECHO_C" >&6
12790 else
12791 ac_cv_header_kernel_OS_h=$ac_header_preproc
12793 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12794 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12797 if test $ac_cv_header_kernel_OS_h = yes; then
12798 cat >>confdefs.h <<\_ACEOF
12799 #define WITH_THREAD 1
12800 _ACEOF
12803 cat >>confdefs.h <<\_ACEOF
12804 #define BEOS_THREADS 1
12805 _ACEOF
12807 THREADOBJ="Python/thread.o"
12808 else
12810 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
12811 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
12812 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
12813 echo $ECHO_N "(cached) $ECHO_C" >&6
12814 else
12815 ac_check_lib_save_LIBS=$LIBS
12816 LIBS="-lpthreads $LIBS"
12817 cat >conftest.$ac_ext <<_ACEOF
12818 /* confdefs.h. */
12819 _ACEOF
12820 cat confdefs.h >>conftest.$ac_ext
12821 cat >>conftest.$ac_ext <<_ACEOF
12822 /* end confdefs.h. */
12824 /* Override any gcc2 internal prototype to avoid an error. */
12825 #ifdef __cplusplus
12826 extern "C"
12827 #endif
12828 /* We use char because int might match the return type of a gcc2
12829 builtin and then its argument prototype would still apply. */
12830 char pthread_create ();
12832 main ()
12834 pthread_create ();
12836 return 0;
12838 _ACEOF
12839 rm -f conftest.$ac_objext conftest$ac_exeext
12840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12841 (eval $ac_link) 2>conftest.er1
12842 ac_status=$?
12843 grep -v '^ *+' conftest.er1 >conftest.err
12844 rm -f conftest.er1
12845 cat conftest.err >&5
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); } &&
12848 { ac_try='test -z "$ac_c_werror_flag"
12849 || test ! -s conftest.err'
12850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12851 (eval $ac_try) 2>&5
12852 ac_status=$?
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); }; } &&
12855 { ac_try='test -s conftest$ac_exeext'
12856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12857 (eval $ac_try) 2>&5
12858 ac_status=$?
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); }; }; then
12861 ac_cv_lib_pthreads_pthread_create=yes
12862 else
12863 echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.$ac_ext >&5
12866 ac_cv_lib_pthreads_pthread_create=no
12868 rm -f conftest.err conftest.$ac_objext \
12869 conftest$ac_exeext conftest.$ac_ext
12870 LIBS=$ac_check_lib_save_LIBS
12872 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
12873 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
12874 if test $ac_cv_lib_pthreads_pthread_create = yes; then
12875 cat >>confdefs.h <<\_ACEOF
12876 #define WITH_THREAD 1
12877 _ACEOF
12879 posix_threads=yes
12880 LIBS="$LIBS -lpthreads"
12881 THREADOBJ="Python/thread.o"
12882 else
12884 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
12885 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
12886 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
12887 echo $ECHO_N "(cached) $ECHO_C" >&6
12888 else
12889 ac_check_lib_save_LIBS=$LIBS
12890 LIBS="-lc_r $LIBS"
12891 cat >conftest.$ac_ext <<_ACEOF
12892 /* confdefs.h. */
12893 _ACEOF
12894 cat confdefs.h >>conftest.$ac_ext
12895 cat >>conftest.$ac_ext <<_ACEOF
12896 /* end confdefs.h. */
12898 /* Override any gcc2 internal prototype to avoid an error. */
12899 #ifdef __cplusplus
12900 extern "C"
12901 #endif
12902 /* We use char because int might match the return type of a gcc2
12903 builtin and then its argument prototype would still apply. */
12904 char pthread_create ();
12906 main ()
12908 pthread_create ();
12910 return 0;
12912 _ACEOF
12913 rm -f conftest.$ac_objext conftest$ac_exeext
12914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12915 (eval $ac_link) 2>conftest.er1
12916 ac_status=$?
12917 grep -v '^ *+' conftest.er1 >conftest.err
12918 rm -f conftest.er1
12919 cat conftest.err >&5
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); } &&
12922 { ac_try='test -z "$ac_c_werror_flag"
12923 || test ! -s conftest.err'
12924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12925 (eval $ac_try) 2>&5
12926 ac_status=$?
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); }; } &&
12929 { ac_try='test -s conftest$ac_exeext'
12930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12931 (eval $ac_try) 2>&5
12932 ac_status=$?
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); }; }; then
12935 ac_cv_lib_c_r_pthread_create=yes
12936 else
12937 echo "$as_me: failed program was:" >&5
12938 sed 's/^/| /' conftest.$ac_ext >&5
12940 ac_cv_lib_c_r_pthread_create=no
12942 rm -f conftest.err conftest.$ac_objext \
12943 conftest$ac_exeext conftest.$ac_ext
12944 LIBS=$ac_check_lib_save_LIBS
12946 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
12947 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
12948 if test $ac_cv_lib_c_r_pthread_create = yes; then
12949 cat >>confdefs.h <<\_ACEOF
12950 #define WITH_THREAD 1
12951 _ACEOF
12953 posix_threads=yes
12954 LIBS="$LIBS -lc_r"
12955 THREADOBJ="Python/thread.o"
12956 else
12958 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
12959 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
12960 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
12961 echo $ECHO_N "(cached) $ECHO_C" >&6
12962 else
12963 ac_check_lib_save_LIBS=$LIBS
12964 LIBS="-lpthread $LIBS"
12965 cat >conftest.$ac_ext <<_ACEOF
12966 /* confdefs.h. */
12967 _ACEOF
12968 cat confdefs.h >>conftest.$ac_ext
12969 cat >>conftest.$ac_ext <<_ACEOF
12970 /* end confdefs.h. */
12972 /* Override any gcc2 internal prototype to avoid an error. */
12973 #ifdef __cplusplus
12974 extern "C"
12975 #endif
12976 /* We use char because int might match the return type of a gcc2
12977 builtin and then its argument prototype would still apply. */
12978 char __pthread_create_system ();
12980 main ()
12982 __pthread_create_system ();
12984 return 0;
12986 _ACEOF
12987 rm -f conftest.$ac_objext conftest$ac_exeext
12988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12989 (eval $ac_link) 2>conftest.er1
12990 ac_status=$?
12991 grep -v '^ *+' conftest.er1 >conftest.err
12992 rm -f conftest.er1
12993 cat conftest.err >&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); } &&
12996 { ac_try='test -z "$ac_c_werror_flag"
12997 || test ! -s conftest.err'
12998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12999 (eval $ac_try) 2>&5
13000 ac_status=$?
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); }; } &&
13003 { ac_try='test -s conftest$ac_exeext'
13004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13005 (eval $ac_try) 2>&5
13006 ac_status=$?
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); }; }; then
13009 ac_cv_lib_pthread___pthread_create_system=yes
13010 else
13011 echo "$as_me: failed program was:" >&5
13012 sed 's/^/| /' conftest.$ac_ext >&5
13014 ac_cv_lib_pthread___pthread_create_system=no
13016 rm -f conftest.err conftest.$ac_objext \
13017 conftest$ac_exeext conftest.$ac_ext
13018 LIBS=$ac_check_lib_save_LIBS
13020 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
13021 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
13022 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
13023 cat >>confdefs.h <<\_ACEOF
13024 #define WITH_THREAD 1
13025 _ACEOF
13027 posix_threads=yes
13028 LIBS="$LIBS -lpthread"
13029 THREADOBJ="Python/thread.o"
13030 else
13032 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
13033 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
13034 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
13035 echo $ECHO_N "(cached) $ECHO_C" >&6
13036 else
13037 ac_check_lib_save_LIBS=$LIBS
13038 LIBS="-lcma $LIBS"
13039 cat >conftest.$ac_ext <<_ACEOF
13040 /* confdefs.h. */
13041 _ACEOF
13042 cat confdefs.h >>conftest.$ac_ext
13043 cat >>conftest.$ac_ext <<_ACEOF
13044 /* end confdefs.h. */
13046 /* Override any gcc2 internal prototype to avoid an error. */
13047 #ifdef __cplusplus
13048 extern "C"
13049 #endif
13050 /* We use char because int might match the return type of a gcc2
13051 builtin and then its argument prototype would still apply. */
13052 char pthread_create ();
13054 main ()
13056 pthread_create ();
13058 return 0;
13060 _ACEOF
13061 rm -f conftest.$ac_objext conftest$ac_exeext
13062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13063 (eval $ac_link) 2>conftest.er1
13064 ac_status=$?
13065 grep -v '^ *+' conftest.er1 >conftest.err
13066 rm -f conftest.er1
13067 cat conftest.err >&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); } &&
13070 { ac_try='test -z "$ac_c_werror_flag"
13071 || test ! -s conftest.err'
13072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13073 (eval $ac_try) 2>&5
13074 ac_status=$?
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); }; } &&
13077 { ac_try='test -s conftest$ac_exeext'
13078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13079 (eval $ac_try) 2>&5
13080 ac_status=$?
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); }; }; then
13083 ac_cv_lib_cma_pthread_create=yes
13084 else
13085 echo "$as_me: failed program was:" >&5
13086 sed 's/^/| /' conftest.$ac_ext >&5
13088 ac_cv_lib_cma_pthread_create=no
13090 rm -f conftest.err conftest.$ac_objext \
13091 conftest$ac_exeext conftest.$ac_ext
13092 LIBS=$ac_check_lib_save_LIBS
13094 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
13095 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
13096 if test $ac_cv_lib_cma_pthread_create = yes; then
13097 cat >>confdefs.h <<\_ACEOF
13098 #define WITH_THREAD 1
13099 _ACEOF
13101 posix_threads=yes
13102 LIBS="$LIBS -lcma"
13103 THREADOBJ="Python/thread.o"
13104 else
13106 USE_THREAD_MODULE="#"
13125 rm -f conftest.err conftest.$ac_objext \
13126 conftest$ac_exeext conftest.$ac_ext
13135 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
13136 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
13137 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
13138 echo $ECHO_N "(cached) $ECHO_C" >&6
13139 else
13140 ac_check_lib_save_LIBS=$LIBS
13141 LIBS="-lmpc $LIBS"
13142 cat >conftest.$ac_ext <<_ACEOF
13143 /* confdefs.h. */
13144 _ACEOF
13145 cat confdefs.h >>conftest.$ac_ext
13146 cat >>conftest.$ac_ext <<_ACEOF
13147 /* end confdefs.h. */
13149 /* Override any gcc2 internal prototype to avoid an error. */
13150 #ifdef __cplusplus
13151 extern "C"
13152 #endif
13153 /* We use char because int might match the return type of a gcc2
13154 builtin and then its argument prototype would still apply. */
13155 char usconfig ();
13157 main ()
13159 usconfig ();
13161 return 0;
13163 _ACEOF
13164 rm -f conftest.$ac_objext conftest$ac_exeext
13165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13166 (eval $ac_link) 2>conftest.er1
13167 ac_status=$?
13168 grep -v '^ *+' conftest.er1 >conftest.err
13169 rm -f conftest.er1
13170 cat conftest.err >&5
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); } &&
13173 { ac_try='test -z "$ac_c_werror_flag"
13174 || test ! -s conftest.err'
13175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13176 (eval $ac_try) 2>&5
13177 ac_status=$?
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); }; } &&
13180 { ac_try='test -s conftest$ac_exeext'
13181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13182 (eval $ac_try) 2>&5
13183 ac_status=$?
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }; }; then
13186 ac_cv_lib_mpc_usconfig=yes
13187 else
13188 echo "$as_me: failed program was:" >&5
13189 sed 's/^/| /' conftest.$ac_ext >&5
13191 ac_cv_lib_mpc_usconfig=no
13193 rm -f conftest.err conftest.$ac_objext \
13194 conftest$ac_exeext conftest.$ac_ext
13195 LIBS=$ac_check_lib_save_LIBS
13197 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
13198 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
13199 if test $ac_cv_lib_mpc_usconfig = yes; then
13200 cat >>confdefs.h <<\_ACEOF
13201 #define WITH_THREAD 1
13202 _ACEOF
13204 LIBS="$LIBS -lmpc"
13205 THREADOBJ="Python/thread.o"
13206 USE_THREAD_MODULE=""
13210 if test "$posix_threads" != "yes"; then
13211 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
13212 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
13213 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
13214 echo $ECHO_N "(cached) $ECHO_C" >&6
13215 else
13216 ac_check_lib_save_LIBS=$LIBS
13217 LIBS="-lthread $LIBS"
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 /* Override any gcc2 internal prototype to avoid an error. */
13226 #ifdef __cplusplus
13227 extern "C"
13228 #endif
13229 /* We use char because int might match the return type of a gcc2
13230 builtin and then its argument prototype would still apply. */
13231 char thr_create ();
13233 main ()
13235 thr_create ();
13237 return 0;
13239 _ACEOF
13240 rm -f conftest.$ac_objext conftest$ac_exeext
13241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13242 (eval $ac_link) 2>conftest.er1
13243 ac_status=$?
13244 grep -v '^ *+' conftest.er1 >conftest.err
13245 rm -f conftest.er1
13246 cat conftest.err >&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } &&
13249 { ac_try='test -z "$ac_c_werror_flag"
13250 || test ! -s conftest.err'
13251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13252 (eval $ac_try) 2>&5
13253 ac_status=$?
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); }; } &&
13256 { ac_try='test -s conftest$ac_exeext'
13257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258 (eval $ac_try) 2>&5
13259 ac_status=$?
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }; }; then
13262 ac_cv_lib_thread_thr_create=yes
13263 else
13264 echo "$as_me: failed program was:" >&5
13265 sed 's/^/| /' conftest.$ac_ext >&5
13267 ac_cv_lib_thread_thr_create=no
13269 rm -f conftest.err conftest.$ac_objext \
13270 conftest$ac_exeext conftest.$ac_ext
13271 LIBS=$ac_check_lib_save_LIBS
13273 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
13274 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
13275 if test $ac_cv_lib_thread_thr_create = yes; then
13276 cat >>confdefs.h <<\_ACEOF
13277 #define WITH_THREAD 1
13278 _ACEOF
13280 LIBS="$LIBS -lthread"
13281 THREADOBJ="Python/thread.o"
13282 USE_THREAD_MODULE=""
13287 if test "$USE_THREAD_MODULE" != "#"
13288 then
13289 # If the above checks didn't disable threads, (at least) OSF1
13290 # needs this '-threads' argument during linking.
13291 case $ac_sys_system in
13292 OSF1) LDLAST=-threads;;
13293 esac
13297 if test "$posix_threads" = "yes"; then
13298 if test "$unistd_defines_pthreads" = "no"; then
13300 cat >>confdefs.h <<\_ACEOF
13301 #define _POSIX_THREADS 1
13302 _ACEOF
13306 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
13307 case $ac_sys_system/$ac_sys_release in
13308 SunOS/5.6)
13309 cat >>confdefs.h <<\_ACEOF
13310 #define HAVE_PTHREAD_DESTRUCTOR 1
13311 _ACEOF
13314 SunOS/5.8)
13315 cat >>confdefs.h <<\_ACEOF
13316 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
13317 _ACEOF
13320 esac
13322 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
13323 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
13324 if test "${ac_cv_pthread_system_supported+set}" = set; then
13325 echo $ECHO_N "(cached) $ECHO_C" >&6
13326 else
13327 if test "$cross_compiling" = yes; then
13328 ac_cv_pthread_system_supported=no
13329 else
13330 cat >conftest.$ac_ext <<_ACEOF
13331 /* confdefs.h. */
13332 _ACEOF
13333 cat confdefs.h >>conftest.$ac_ext
13334 cat >>conftest.$ac_ext <<_ACEOF
13335 /* end confdefs.h. */
13336 #include <pthread.h>
13337 void *foo(void *parm) {
13338 return NULL;
13340 main() {
13341 pthread_attr_t attr;
13342 pthread_t id;
13343 if (pthread_attr_init(&attr)) exit(-1);
13344 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
13345 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
13346 exit(0);
13348 _ACEOF
13349 rm -f conftest$ac_exeext
13350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13351 (eval $ac_link) 2>&5
13352 ac_status=$?
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13356 (eval $ac_try) 2>&5
13357 ac_status=$?
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); }; }; then
13360 ac_cv_pthread_system_supported=yes
13361 else
13362 echo "$as_me: program exited with status $ac_status" >&5
13363 echo "$as_me: failed program was:" >&5
13364 sed 's/^/| /' conftest.$ac_ext >&5
13366 ( exit $ac_status )
13367 ac_cv_pthread_system_supported=no
13369 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13374 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
13375 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
13376 if test "$ac_cv_pthread_system_supported" = "yes"; then
13378 cat >>confdefs.h <<\_ACEOF
13379 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
13380 _ACEOF
13384 for ac_func in pthread_sigmask
13386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13387 echo "$as_me:$LINENO: checking for $ac_func" >&5
13388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13389 if eval "test \"\${$as_ac_var+set}\" = set"; then
13390 echo $ECHO_N "(cached) $ECHO_C" >&6
13391 else
13392 cat >conftest.$ac_ext <<_ACEOF
13393 /* confdefs.h. */
13394 _ACEOF
13395 cat confdefs.h >>conftest.$ac_ext
13396 cat >>conftest.$ac_ext <<_ACEOF
13397 /* end confdefs.h. */
13398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13400 #define $ac_func innocuous_$ac_func
13402 /* System header to define __stub macros and hopefully few prototypes,
13403 which can conflict with char $ac_func (); below.
13404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13405 <limits.h> exists even on freestanding compilers. */
13407 #ifdef __STDC__
13408 # include <limits.h>
13409 #else
13410 # include <assert.h>
13411 #endif
13413 #undef $ac_func
13415 /* Override any gcc2 internal prototype to avoid an error. */
13416 #ifdef __cplusplus
13417 extern "C"
13419 #endif
13420 /* We use char because int might match the return type of a gcc2
13421 builtin and then its argument prototype would still apply. */
13422 char $ac_func ();
13423 /* The GNU C library defines this for functions which it implements
13424 to always fail with ENOSYS. Some functions are actually named
13425 something starting with __ and the normal name is an alias. */
13426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13427 choke me
13428 #else
13429 char (*f) () = $ac_func;
13430 #endif
13431 #ifdef __cplusplus
13433 #endif
13436 main ()
13438 return f != $ac_func;
13440 return 0;
13442 _ACEOF
13443 rm -f conftest.$ac_objext conftest$ac_exeext
13444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13445 (eval $ac_link) 2>conftest.er1
13446 ac_status=$?
13447 grep -v '^ *+' conftest.er1 >conftest.err
13448 rm -f conftest.er1
13449 cat conftest.err >&5
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); } &&
13452 { ac_try='test -z "$ac_c_werror_flag"
13453 || test ! -s conftest.err'
13454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13455 (eval $ac_try) 2>&5
13456 ac_status=$?
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); }; } &&
13459 { ac_try='test -s conftest$ac_exeext'
13460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13461 (eval $ac_try) 2>&5
13462 ac_status=$?
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); }; }; then
13465 eval "$as_ac_var=yes"
13466 else
13467 echo "$as_me: failed program was:" >&5
13468 sed 's/^/| /' conftest.$ac_ext >&5
13470 eval "$as_ac_var=no"
13472 rm -f conftest.err conftest.$ac_objext \
13473 conftest$ac_exeext conftest.$ac_ext
13475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13476 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13477 if test `eval echo '${'$as_ac_var'}'` = yes; then
13478 cat >>confdefs.h <<_ACEOF
13479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13480 _ACEOF
13481 case $ac_sys_system in
13482 CYGWIN*)
13484 cat >>confdefs.h <<\_ACEOF
13485 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
13486 _ACEOF
13489 esac
13491 done
13496 # Check for enable-ipv6
13499 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
13500 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
13501 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13502 if test "${enable_ipv6+set}" = set; then
13503 enableval="$enable_ipv6"
13504 case "$enableval" in
13506 echo "$as_me:$LINENO: result: no" >&5
13507 echo "${ECHO_T}no" >&6
13508 ipv6=no
13510 *) echo "$as_me:$LINENO: result: yes" >&5
13511 echo "${ECHO_T}yes" >&6
13512 cat >>confdefs.h <<\_ACEOF
13513 #define ENABLE_IPV6 1
13514 _ACEOF
13516 ipv6=yes
13518 esac
13519 else
13521 if test "$cross_compiling" = yes; then
13522 echo "$as_me:$LINENO: result: no" >&5
13523 echo "${ECHO_T}no" >&6
13524 ipv6=no
13526 else
13527 cat >conftest.$ac_ext <<_ACEOF
13528 /* confdefs.h. */
13529 _ACEOF
13530 cat confdefs.h >>conftest.$ac_ext
13531 cat >>conftest.$ac_ext <<_ACEOF
13532 /* end confdefs.h. */
13533 /* AF_INET6 available check */
13534 #include <sys/types.h>
13535 #include <sys/socket.h>
13536 main()
13538 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
13539 exit(1);
13540 else
13541 exit(0);
13544 _ACEOF
13545 rm -f conftest$ac_exeext
13546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13547 (eval $ac_link) 2>&5
13548 ac_status=$?
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13552 (eval $ac_try) 2>&5
13553 ac_status=$?
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); }; }; then
13556 echo "$as_me:$LINENO: result: yes" >&5
13557 echo "${ECHO_T}yes" >&6
13558 ipv6=yes
13559 else
13560 echo "$as_me: program exited with status $ac_status" >&5
13561 echo "$as_me: failed program was:" >&5
13562 sed 's/^/| /' conftest.$ac_ext >&5
13564 ( exit $ac_status )
13565 echo "$as_me:$LINENO: result: no" >&5
13566 echo "${ECHO_T}no" >&6
13567 ipv6=no
13569 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13572 if test "$ipv6" = "yes"; then
13573 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
13574 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
13575 cat >conftest.$ac_ext <<_ACEOF
13576 /* confdefs.h. */
13577 _ACEOF
13578 cat confdefs.h >>conftest.$ac_ext
13579 cat >>conftest.$ac_ext <<_ACEOF
13580 /* end confdefs.h. */
13581 #include <sys/types.h>
13582 #include <netinet/in.h>
13584 main ()
13586 struct sockaddr_in6 x;
13587 x.sin6_scope_id;
13589 return 0;
13591 _ACEOF
13592 rm -f conftest.$ac_objext
13593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13594 (eval $ac_compile) 2>conftest.er1
13595 ac_status=$?
13596 grep -v '^ *+' conftest.er1 >conftest.err
13597 rm -f conftest.er1
13598 cat conftest.err >&5
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); } &&
13601 { ac_try='test -z "$ac_c_werror_flag"
13602 || test ! -s conftest.err'
13603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13604 (eval $ac_try) 2>&5
13605 ac_status=$?
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); }; } &&
13608 { ac_try='test -s conftest.$ac_objext'
13609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13610 (eval $ac_try) 2>&5
13611 ac_status=$?
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); }; }; then
13614 echo "$as_me:$LINENO: result: yes" >&5
13615 echo "${ECHO_T}yes" >&6
13616 ipv6=yes
13617 else
13618 echo "$as_me: failed program was:" >&5
13619 sed 's/^/| /' conftest.$ac_ext >&5
13621 echo "$as_me:$LINENO: result: no" >&5
13622 echo "${ECHO_T}no" >&6
13623 ipv6=no
13625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13628 if test "$ipv6" = "yes"; then
13629 cat >>confdefs.h <<\_ACEOF
13630 #define ENABLE_IPV6 1
13631 _ACEOF
13637 ipv6type=unknown
13638 ipv6lib=none
13639 ipv6trylibc=no
13641 if test "$ipv6" = "yes"; then
13642 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
13643 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
13644 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
13646 case $i in
13647 inria)
13648 cat >conftest.$ac_ext <<_ACEOF
13649 /* confdefs.h. */
13650 _ACEOF
13651 cat confdefs.h >>conftest.$ac_ext
13652 cat >>conftest.$ac_ext <<_ACEOF
13653 /* end confdefs.h. */
13655 #include <netinet/in.h>
13656 #ifdef IPV6_INRIA_VERSION
13658 #endif
13659 _ACEOF
13660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13661 $EGREP "yes" >/dev/null 2>&1; then
13662 ipv6type=$i
13664 rm -f conftest*
13667 kame)
13668 cat >conftest.$ac_ext <<_ACEOF
13669 /* confdefs.h. */
13670 _ACEOF
13671 cat confdefs.h >>conftest.$ac_ext
13672 cat >>conftest.$ac_ext <<_ACEOF
13673 /* end confdefs.h. */
13675 #include <netinet/in.h>
13676 #ifdef __KAME__
13678 #endif
13679 _ACEOF
13680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13681 $EGREP "yes" >/dev/null 2>&1; then
13682 ipv6type=$i;
13683 ipv6lib=inet6
13684 ipv6libdir=/usr/local/v6/lib
13685 ipv6trylibc=yes
13687 rm -f conftest*
13690 linux-glibc)
13691 cat >conftest.$ac_ext <<_ACEOF
13692 /* confdefs.h. */
13693 _ACEOF
13694 cat confdefs.h >>conftest.$ac_ext
13695 cat >>conftest.$ac_ext <<_ACEOF
13696 /* end confdefs.h. */
13698 #include <features.h>
13699 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
13701 #endif
13702 _ACEOF
13703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13704 $EGREP "yes" >/dev/null 2>&1; then
13705 ipv6type=$i;
13706 ipv6trylibc=yes
13708 rm -f conftest*
13711 linux-inet6)
13712 if test -d /usr/inet6; then
13713 ipv6type=$i
13714 ipv6lib=inet6
13715 ipv6libdir=/usr/inet6/lib
13716 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
13719 solaris)
13720 if test -f /etc/netconfig; then
13721 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
13722 ipv6type=$i
13723 ipv6trylibc=yes
13727 toshiba)
13728 cat >conftest.$ac_ext <<_ACEOF
13729 /* confdefs.h. */
13730 _ACEOF
13731 cat confdefs.h >>conftest.$ac_ext
13732 cat >>conftest.$ac_ext <<_ACEOF
13733 /* end confdefs.h. */
13735 #include <sys/param.h>
13736 #ifdef _TOSHIBA_INET6
13738 #endif
13739 _ACEOF
13740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13741 $EGREP "yes" >/dev/null 2>&1; then
13742 ipv6type=$i;
13743 ipv6lib=inet6;
13744 ipv6libdir=/usr/local/v6/lib
13746 rm -f conftest*
13749 v6d)
13750 cat >conftest.$ac_ext <<_ACEOF
13751 /* confdefs.h. */
13752 _ACEOF
13753 cat confdefs.h >>conftest.$ac_ext
13754 cat >>conftest.$ac_ext <<_ACEOF
13755 /* end confdefs.h. */
13757 #include </usr/local/v6/include/sys/v6config.h>
13758 #ifdef __V6D__
13760 #endif
13761 _ACEOF
13762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13763 $EGREP "yes" >/dev/null 2>&1; then
13764 ipv6type=$i;
13765 ipv6lib=v6;
13766 ipv6libdir=/usr/local/v6/lib;
13767 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
13769 rm -f conftest*
13772 zeta)
13773 cat >conftest.$ac_ext <<_ACEOF
13774 /* confdefs.h. */
13775 _ACEOF
13776 cat confdefs.h >>conftest.$ac_ext
13777 cat >>conftest.$ac_ext <<_ACEOF
13778 /* end confdefs.h. */
13780 #include <sys/param.h>
13781 #ifdef _ZETA_MINAMI_INET6
13783 #endif
13784 _ACEOF
13785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13786 $EGREP "yes" >/dev/null 2>&1; then
13787 ipv6type=$i;
13788 ipv6lib=inet6;
13789 ipv6libdir=/usr/local/v6/lib
13791 rm -f conftest*
13794 esac
13795 if test "$ipv6type" != "unknown"; then
13796 break
13798 done
13799 echo "$as_me:$LINENO: result: $ipv6type" >&5
13800 echo "${ECHO_T}$ipv6type" >&6
13803 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
13804 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
13805 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
13806 echo "using lib$ipv6lib"
13807 else
13808 if test $ipv6trylibc = "yes"; then
13809 echo "using libc"
13810 else
13811 echo 'Fatal: no $ipv6lib library found. cannot continue.'
13812 echo "You need to fetch lib$ipv6lib.a from appropriate"
13813 echo 'ipv6 kit and compile beforehand.'
13814 exit 1
13819 # Check for --with-doc-strings
13820 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
13821 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
13823 # Check whether --with-doc-strings or --without-doc-strings was given.
13824 if test "${with_doc_strings+set}" = set; then
13825 withval="$with_doc_strings"
13829 if test -z "$with_doc_strings"
13830 then with_doc_strings="yes"
13832 if test "$with_doc_strings" != "no"
13833 then
13835 cat >>confdefs.h <<\_ACEOF
13836 #define WITH_DOC_STRINGS 1
13837 _ACEOF
13840 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
13841 echo "${ECHO_T}$with_doc_strings" >&6
13843 # Check for Python-specific malloc support
13844 echo "$as_me:$LINENO: checking for --with-tsc" >&5
13845 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6
13847 # Check whether --with-tsc or --without-tsc was given.
13848 if test "${with_tsc+set}" = set; then
13849 withval="$with_tsc"
13851 if test "$withval" != no
13852 then
13854 cat >>confdefs.h <<\_ACEOF
13855 #define WITH_TSC 1
13856 _ACEOF
13858 echo "$as_me:$LINENO: result: yes" >&5
13859 echo "${ECHO_T}yes" >&6
13860 else echo "$as_me:$LINENO: result: no" >&5
13861 echo "${ECHO_T}no" >&6
13863 else
13864 echo "$as_me:$LINENO: result: no" >&5
13865 echo "${ECHO_T}no" >&6
13868 # Check for Python-specific malloc support
13869 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
13870 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
13872 # Check whether --with-pymalloc or --without-pymalloc was given.
13873 if test "${with_pymalloc+set}" = set; then
13874 withval="$with_pymalloc"
13878 if test -z "$with_pymalloc"
13879 then with_pymalloc="yes"
13881 if test "$with_pymalloc" != "no"
13882 then
13884 cat >>confdefs.h <<\_ACEOF
13885 #define WITH_PYMALLOC 1
13886 _ACEOF
13889 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
13890 echo "${ECHO_T}$with_pymalloc" >&6
13892 # Check for --with-wctype-functions
13893 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
13894 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
13896 # Check whether --with-wctype-functions or --without-wctype-functions was given.
13897 if test "${with_wctype_functions+set}" = set; then
13898 withval="$with_wctype_functions"
13900 if test "$withval" != no
13901 then
13903 cat >>confdefs.h <<\_ACEOF
13904 #define WANT_WCTYPE_FUNCTIONS 1
13905 _ACEOF
13907 echo "$as_me:$LINENO: result: yes" >&5
13908 echo "${ECHO_T}yes" >&6
13909 else echo "$as_me:$LINENO: result: no" >&5
13910 echo "${ECHO_T}no" >&6
13912 else
13913 echo "$as_me:$LINENO: result: no" >&5
13914 echo "${ECHO_T}no" >&6
13917 # -I${DLINCLDIR} is added to the compile rule for importdl.o
13919 DLINCLDIR=.
13921 # the dlopen() function means we might want to use dynload_shlib.o. some
13922 # platforms, such as AIX, have dlopen(), but don't want to use it.
13924 for ac_func in dlopen
13926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13927 echo "$as_me:$LINENO: checking for $ac_func" >&5
13928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13929 if eval "test \"\${$as_ac_var+set}\" = set"; then
13930 echo $ECHO_N "(cached) $ECHO_C" >&6
13931 else
13932 cat >conftest.$ac_ext <<_ACEOF
13933 /* confdefs.h. */
13934 _ACEOF
13935 cat confdefs.h >>conftest.$ac_ext
13936 cat >>conftest.$ac_ext <<_ACEOF
13937 /* end confdefs.h. */
13938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13940 #define $ac_func innocuous_$ac_func
13942 /* System header to define __stub macros and hopefully few prototypes,
13943 which can conflict with char $ac_func (); below.
13944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13945 <limits.h> exists even on freestanding compilers. */
13947 #ifdef __STDC__
13948 # include <limits.h>
13949 #else
13950 # include <assert.h>
13951 #endif
13953 #undef $ac_func
13955 /* Override any gcc2 internal prototype to avoid an error. */
13956 #ifdef __cplusplus
13957 extern "C"
13959 #endif
13960 /* We use char because int might match the return type of a gcc2
13961 builtin and then its argument prototype would still apply. */
13962 char $ac_func ();
13963 /* The GNU C library defines this for functions which it implements
13964 to always fail with ENOSYS. Some functions are actually named
13965 something starting with __ and the normal name is an alias. */
13966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13967 choke me
13968 #else
13969 char (*f) () = $ac_func;
13970 #endif
13971 #ifdef __cplusplus
13973 #endif
13976 main ()
13978 return f != $ac_func;
13980 return 0;
13982 _ACEOF
13983 rm -f conftest.$ac_objext conftest$ac_exeext
13984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13985 (eval $ac_link) 2>conftest.er1
13986 ac_status=$?
13987 grep -v '^ *+' conftest.er1 >conftest.err
13988 rm -f conftest.er1
13989 cat conftest.err >&5
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); } &&
13992 { ac_try='test -z "$ac_c_werror_flag"
13993 || test ! -s conftest.err'
13994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13995 (eval $ac_try) 2>&5
13996 ac_status=$?
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); }; } &&
13999 { ac_try='test -s conftest$ac_exeext'
14000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14001 (eval $ac_try) 2>&5
14002 ac_status=$?
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); }; }; then
14005 eval "$as_ac_var=yes"
14006 else
14007 echo "$as_me: failed program was:" >&5
14008 sed 's/^/| /' conftest.$ac_ext >&5
14010 eval "$as_ac_var=no"
14012 rm -f conftest.err conftest.$ac_objext \
14013 conftest$ac_exeext conftest.$ac_ext
14015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14016 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14017 if test `eval echo '${'$as_ac_var'}'` = yes; then
14018 cat >>confdefs.h <<_ACEOF
14019 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14020 _ACEOF
14023 done
14026 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
14027 # loading of modules.
14029 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
14030 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
14031 if test -z "$DYNLOADFILE"
14032 then
14033 case $ac_sys_system/$ac_sys_release in
14034 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
14035 if test "$ac_cv_func_dlopen" = yes
14036 then DYNLOADFILE="dynload_shlib.o"
14037 else DYNLOADFILE="dynload_aix.o"
14040 BeOS*) DYNLOADFILE="dynload_beos.o";;
14041 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
14042 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
14043 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
14044 atheos*) DYNLOADFILE="dynload_atheos.o";;
14046 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
14047 # out any dynamic loading
14048 if test "$ac_cv_func_dlopen" = yes
14049 then DYNLOADFILE="dynload_shlib.o"
14050 else DYNLOADFILE="dynload_stub.o"
14053 esac
14055 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
14056 echo "${ECHO_T}$DYNLOADFILE" >&6
14057 if test "$DYNLOADFILE" != "dynload_stub.o"
14058 then
14060 cat >>confdefs.h <<\_ACEOF
14061 #define HAVE_DYNAMIC_LOADING 1
14062 _ACEOF
14066 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
14069 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
14070 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
14071 if test -z "$MACHDEP_OBJS"
14072 then
14073 MACHDEP_OBJS=$extra_machdep_objs
14074 else
14075 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
14077 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
14078 echo "${ECHO_T}MACHDEP_OBJS" >&6
14080 # checks for library functions
14157 for ac_func in alarm bind_textdomain_codeset chown clock confstr ctermid \
14158 execv fork fpathconf ftime ftruncate \
14159 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
14160 getpriority getpwent getspnam getspent getsid getwd \
14161 kill killpg lchown lstat mkfifo mknod mktime \
14162 mremap nice pathconf pause plock poll pthread_init \
14163 putenv readlink realpath \
14164 select setegid seteuid setgid \
14165 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
14166 sigaction siginterrupt sigrelse strftime \
14167 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
14168 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
14170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14171 echo "$as_me:$LINENO: checking for $ac_func" >&5
14172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14173 if eval "test \"\${$as_ac_var+set}\" = set"; then
14174 echo $ECHO_N "(cached) $ECHO_C" >&6
14175 else
14176 cat >conftest.$ac_ext <<_ACEOF
14177 /* confdefs.h. */
14178 _ACEOF
14179 cat confdefs.h >>conftest.$ac_ext
14180 cat >>conftest.$ac_ext <<_ACEOF
14181 /* end confdefs.h. */
14182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14184 #define $ac_func innocuous_$ac_func
14186 /* System header to define __stub macros and hopefully few prototypes,
14187 which can conflict with char $ac_func (); below.
14188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14189 <limits.h> exists even on freestanding compilers. */
14191 #ifdef __STDC__
14192 # include <limits.h>
14193 #else
14194 # include <assert.h>
14195 #endif
14197 #undef $ac_func
14199 /* Override any gcc2 internal prototype to avoid an error. */
14200 #ifdef __cplusplus
14201 extern "C"
14203 #endif
14204 /* We use char because int might match the return type of a gcc2
14205 builtin and then its argument prototype would still apply. */
14206 char $ac_func ();
14207 /* The GNU C library defines this for functions which it implements
14208 to always fail with ENOSYS. Some functions are actually named
14209 something starting with __ and the normal name is an alias. */
14210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14211 choke me
14212 #else
14213 char (*f) () = $ac_func;
14214 #endif
14215 #ifdef __cplusplus
14217 #endif
14220 main ()
14222 return f != $ac_func;
14224 return 0;
14226 _ACEOF
14227 rm -f conftest.$ac_objext conftest$ac_exeext
14228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14229 (eval $ac_link) 2>conftest.er1
14230 ac_status=$?
14231 grep -v '^ *+' conftest.er1 >conftest.err
14232 rm -f conftest.er1
14233 cat conftest.err >&5
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); } &&
14236 { ac_try='test -z "$ac_c_werror_flag"
14237 || test ! -s conftest.err'
14238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14239 (eval $ac_try) 2>&5
14240 ac_status=$?
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); }; } &&
14243 { ac_try='test -s conftest$ac_exeext'
14244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14245 (eval $ac_try) 2>&5
14246 ac_status=$?
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); }; }; then
14249 eval "$as_ac_var=yes"
14250 else
14251 echo "$as_me: failed program was:" >&5
14252 sed 's/^/| /' conftest.$ac_ext >&5
14254 eval "$as_ac_var=no"
14256 rm -f conftest.err conftest.$ac_objext \
14257 conftest$ac_exeext conftest.$ac_ext
14259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14260 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14261 if test `eval echo '${'$as_ac_var'}'` = yes; then
14262 cat >>confdefs.h <<_ACEOF
14263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14264 _ACEOF
14267 done
14270 # For some functions, having a definition is not sufficient, since
14271 # we want to take their address.
14272 echo "$as_me:$LINENO: checking for chroot" >&5
14273 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
14274 cat >conftest.$ac_ext <<_ACEOF
14275 /* confdefs.h. */
14276 _ACEOF
14277 cat confdefs.h >>conftest.$ac_ext
14278 cat >>conftest.$ac_ext <<_ACEOF
14279 /* end confdefs.h. */
14280 #include <unistd.h>
14282 main ()
14284 void *x=chroot
14286 return 0;
14288 _ACEOF
14289 rm -f conftest.$ac_objext
14290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14291 (eval $ac_compile) 2>conftest.er1
14292 ac_status=$?
14293 grep -v '^ *+' conftest.er1 >conftest.err
14294 rm -f conftest.er1
14295 cat conftest.err >&5
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); } &&
14298 { ac_try='test -z "$ac_c_werror_flag"
14299 || test ! -s conftest.err'
14300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14301 (eval $ac_try) 2>&5
14302 ac_status=$?
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); }; } &&
14305 { ac_try='test -s conftest.$ac_objext'
14306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14307 (eval $ac_try) 2>&5
14308 ac_status=$?
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); }; }; then
14312 cat >>confdefs.h <<\_ACEOF
14313 #define HAVE_CHROOT 1
14314 _ACEOF
14316 echo "$as_me:$LINENO: result: yes" >&5
14317 echo "${ECHO_T}yes" >&6
14318 else
14319 echo "$as_me: failed program was:" >&5
14320 sed 's/^/| /' conftest.$ac_ext >&5
14322 echo "$as_me:$LINENO: result: no" >&5
14323 echo "${ECHO_T}no" >&6
14326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14327 echo "$as_me:$LINENO: checking for link" >&5
14328 echo $ECHO_N "checking for link... $ECHO_C" >&6
14329 cat >conftest.$ac_ext <<_ACEOF
14330 /* confdefs.h. */
14331 _ACEOF
14332 cat confdefs.h >>conftest.$ac_ext
14333 cat >>conftest.$ac_ext <<_ACEOF
14334 /* end confdefs.h. */
14335 #include <unistd.h>
14337 main ()
14339 void *x=link
14341 return 0;
14343 _ACEOF
14344 rm -f conftest.$ac_objext
14345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14346 (eval $ac_compile) 2>conftest.er1
14347 ac_status=$?
14348 grep -v '^ *+' conftest.er1 >conftest.err
14349 rm -f conftest.er1
14350 cat conftest.err >&5
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); } &&
14353 { ac_try='test -z "$ac_c_werror_flag"
14354 || test ! -s conftest.err'
14355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14356 (eval $ac_try) 2>&5
14357 ac_status=$?
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); }; } &&
14360 { ac_try='test -s conftest.$ac_objext'
14361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14362 (eval $ac_try) 2>&5
14363 ac_status=$?
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 (exit $ac_status); }; }; then
14367 cat >>confdefs.h <<\_ACEOF
14368 #define HAVE_LINK 1
14369 _ACEOF
14371 echo "$as_me:$LINENO: result: yes" >&5
14372 echo "${ECHO_T}yes" >&6
14373 else
14374 echo "$as_me: failed program was:" >&5
14375 sed 's/^/| /' conftest.$ac_ext >&5
14377 echo "$as_me:$LINENO: result: no" >&5
14378 echo "${ECHO_T}no" >&6
14381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14382 echo "$as_me:$LINENO: checking for symlink" >&5
14383 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
14384 cat >conftest.$ac_ext <<_ACEOF
14385 /* confdefs.h. */
14386 _ACEOF
14387 cat confdefs.h >>conftest.$ac_ext
14388 cat >>conftest.$ac_ext <<_ACEOF
14389 /* end confdefs.h. */
14390 #include <unistd.h>
14392 main ()
14394 void *x=symlink
14396 return 0;
14398 _ACEOF
14399 rm -f conftest.$ac_objext
14400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14401 (eval $ac_compile) 2>conftest.er1
14402 ac_status=$?
14403 grep -v '^ *+' conftest.er1 >conftest.err
14404 rm -f conftest.er1
14405 cat conftest.err >&5
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); } &&
14408 { ac_try='test -z "$ac_c_werror_flag"
14409 || test ! -s conftest.err'
14410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14411 (eval $ac_try) 2>&5
14412 ac_status=$?
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); }; } &&
14415 { ac_try='test -s conftest.$ac_objext'
14416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14417 (eval $ac_try) 2>&5
14418 ac_status=$?
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); }; }; then
14422 cat >>confdefs.h <<\_ACEOF
14423 #define HAVE_SYMLINK 1
14424 _ACEOF
14426 echo "$as_me:$LINENO: result: yes" >&5
14427 echo "${ECHO_T}yes" >&6
14428 else
14429 echo "$as_me: failed program was:" >&5
14430 sed 's/^/| /' conftest.$ac_ext >&5
14432 echo "$as_me:$LINENO: result: no" >&5
14433 echo "${ECHO_T}no" >&6
14436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14437 echo "$as_me:$LINENO: checking for fchdir" >&5
14438 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
14439 cat >conftest.$ac_ext <<_ACEOF
14440 /* confdefs.h. */
14441 _ACEOF
14442 cat confdefs.h >>conftest.$ac_ext
14443 cat >>conftest.$ac_ext <<_ACEOF
14444 /* end confdefs.h. */
14445 #include <unistd.h>
14447 main ()
14449 void *x=fchdir
14451 return 0;
14453 _ACEOF
14454 rm -f conftest.$ac_objext
14455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14456 (eval $ac_compile) 2>conftest.er1
14457 ac_status=$?
14458 grep -v '^ *+' conftest.er1 >conftest.err
14459 rm -f conftest.er1
14460 cat conftest.err >&5
14461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462 (exit $ac_status); } &&
14463 { ac_try='test -z "$ac_c_werror_flag"
14464 || test ! -s conftest.err'
14465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14466 (eval $ac_try) 2>&5
14467 ac_status=$?
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); }; } &&
14470 { ac_try='test -s conftest.$ac_objext'
14471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14472 (eval $ac_try) 2>&5
14473 ac_status=$?
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); }; }; then
14477 cat >>confdefs.h <<\_ACEOF
14478 #define HAVE_FCHDIR 1
14479 _ACEOF
14481 echo "$as_me:$LINENO: result: yes" >&5
14482 echo "${ECHO_T}yes" >&6
14483 else
14484 echo "$as_me: failed program was:" >&5
14485 sed 's/^/| /' conftest.$ac_ext >&5
14487 echo "$as_me:$LINENO: result: no" >&5
14488 echo "${ECHO_T}no" >&6
14491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14492 echo "$as_me:$LINENO: checking for fsync" >&5
14493 echo $ECHO_N "checking for fsync... $ECHO_C" >&6
14494 cat >conftest.$ac_ext <<_ACEOF
14495 /* confdefs.h. */
14496 _ACEOF
14497 cat confdefs.h >>conftest.$ac_ext
14498 cat >>conftest.$ac_ext <<_ACEOF
14499 /* end confdefs.h. */
14500 #include <unistd.h>
14502 main ()
14504 void *x=fsync
14506 return 0;
14508 _ACEOF
14509 rm -f conftest.$ac_objext
14510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14511 (eval $ac_compile) 2>conftest.er1
14512 ac_status=$?
14513 grep -v '^ *+' conftest.er1 >conftest.err
14514 rm -f conftest.er1
14515 cat conftest.err >&5
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); } &&
14518 { ac_try='test -z "$ac_c_werror_flag"
14519 || test ! -s conftest.err'
14520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14521 (eval $ac_try) 2>&5
14522 ac_status=$?
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); }; } &&
14525 { ac_try='test -s conftest.$ac_objext'
14526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14527 (eval $ac_try) 2>&5
14528 ac_status=$?
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); }; }; then
14532 cat >>confdefs.h <<\_ACEOF
14533 #define HAVE_FSYNC 1
14534 _ACEOF
14536 echo "$as_me:$LINENO: result: yes" >&5
14537 echo "${ECHO_T}yes" >&6
14538 else
14539 echo "$as_me: failed program was:" >&5
14540 sed 's/^/| /' conftest.$ac_ext >&5
14542 echo "$as_me:$LINENO: result: no" >&5
14543 echo "${ECHO_T}no" >&6
14546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14547 echo "$as_me:$LINENO: checking for fdatasync" >&5
14548 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
14549 cat >conftest.$ac_ext <<_ACEOF
14550 /* confdefs.h. */
14551 _ACEOF
14552 cat confdefs.h >>conftest.$ac_ext
14553 cat >>conftest.$ac_ext <<_ACEOF
14554 /* end confdefs.h. */
14555 #include <unistd.h>
14557 main ()
14559 void *x=fdatasync
14561 return 0;
14563 _ACEOF
14564 rm -f conftest.$ac_objext
14565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14566 (eval $ac_compile) 2>conftest.er1
14567 ac_status=$?
14568 grep -v '^ *+' conftest.er1 >conftest.err
14569 rm -f conftest.er1
14570 cat conftest.err >&5
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); } &&
14573 { ac_try='test -z "$ac_c_werror_flag"
14574 || test ! -s conftest.err'
14575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14576 (eval $ac_try) 2>&5
14577 ac_status=$?
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); }; } &&
14580 { ac_try='test -s conftest.$ac_objext'
14581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14582 (eval $ac_try) 2>&5
14583 ac_status=$?
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); }; }; then
14587 cat >>confdefs.h <<\_ACEOF
14588 #define HAVE_FDATASYNC 1
14589 _ACEOF
14591 echo "$as_me:$LINENO: result: yes" >&5
14592 echo "${ECHO_T}yes" >&6
14593 else
14594 echo "$as_me: failed program was:" >&5
14595 sed 's/^/| /' conftest.$ac_ext >&5
14597 echo "$as_me:$LINENO: result: no" >&5
14598 echo "${ECHO_T}no" >&6
14601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14603 # On some systems (eg. FreeBSD 5), we would find a definition of the
14604 # functions ctermid_r, setgroups in the library, but no prototype
14605 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
14606 # address to avoid compiler warnings and potential miscompilations
14607 # because of the missing prototypes.
14609 echo "$as_me:$LINENO: checking for ctermid_r" >&5
14610 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
14611 cat >conftest.$ac_ext <<_ACEOF
14612 /* confdefs.h. */
14613 _ACEOF
14614 cat confdefs.h >>conftest.$ac_ext
14615 cat >>conftest.$ac_ext <<_ACEOF
14616 /* end confdefs.h. */
14618 #include "confdefs.h"
14619 #include <stdio.h>
14622 main ()
14624 void* p = ctermid_r
14626 return 0;
14628 _ACEOF
14629 rm -f conftest.$ac_objext
14630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14631 (eval $ac_compile) 2>conftest.er1
14632 ac_status=$?
14633 grep -v '^ *+' conftest.er1 >conftest.err
14634 rm -f conftest.er1
14635 cat conftest.err >&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); } &&
14638 { ac_try='test -z "$ac_c_werror_flag"
14639 || test ! -s conftest.err'
14640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14641 (eval $ac_try) 2>&5
14642 ac_status=$?
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); }; } &&
14645 { ac_try='test -s conftest.$ac_objext'
14646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647 (eval $ac_try) 2>&5
14648 ac_status=$?
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); }; }; then
14652 cat >>confdefs.h <<\_ACEOF
14653 #define HAVE_CTERMID_R 1
14654 _ACEOF
14656 echo "$as_me:$LINENO: result: yes" >&5
14657 echo "${ECHO_T}yes" >&6
14658 else
14659 echo "$as_me: failed program was:" >&5
14660 sed 's/^/| /' conftest.$ac_ext >&5
14662 echo "$as_me:$LINENO: result: no" >&5
14663 echo "${ECHO_T}no" >&6
14666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14668 echo "$as_me:$LINENO: checking for flock" >&5
14669 echo $ECHO_N "checking for flock... $ECHO_C" >&6
14670 cat >conftest.$ac_ext <<_ACEOF
14671 /* confdefs.h. */
14672 _ACEOF
14673 cat confdefs.h >>conftest.$ac_ext
14674 cat >>conftest.$ac_ext <<_ACEOF
14675 /* end confdefs.h. */
14677 #include "confdefs.h"
14678 #include <sys/file.h>
14681 main ()
14683 void* p = flock
14685 return 0;
14687 _ACEOF
14688 rm -f conftest.$ac_objext
14689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14690 (eval $ac_compile) 2>conftest.er1
14691 ac_status=$?
14692 grep -v '^ *+' conftest.er1 >conftest.err
14693 rm -f conftest.er1
14694 cat conftest.err >&5
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); } &&
14697 { ac_try='test -z "$ac_c_werror_flag"
14698 || test ! -s conftest.err'
14699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14700 (eval $ac_try) 2>&5
14701 ac_status=$?
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); }; } &&
14704 { ac_try='test -s conftest.$ac_objext'
14705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14706 (eval $ac_try) 2>&5
14707 ac_status=$?
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); }; }; then
14711 cat >>confdefs.h <<\_ACEOF
14712 #define HAVE_FLOCK 1
14713 _ACEOF
14715 echo "$as_me:$LINENO: result: yes" >&5
14716 echo "${ECHO_T}yes" >&6
14717 else
14718 echo "$as_me: failed program was:" >&5
14719 sed 's/^/| /' conftest.$ac_ext >&5
14721 echo "$as_me:$LINENO: result: no" >&5
14722 echo "${ECHO_T}no" >&6
14725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14727 echo "$as_me:$LINENO: checking for getpagesize" >&5
14728 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
14729 cat >conftest.$ac_ext <<_ACEOF
14730 /* confdefs.h. */
14731 _ACEOF
14732 cat confdefs.h >>conftest.$ac_ext
14733 cat >>conftest.$ac_ext <<_ACEOF
14734 /* end confdefs.h. */
14736 #include "confdefs.h"
14737 #include <unistd.h>
14740 main ()
14742 void* p = getpagesize
14744 return 0;
14746 _ACEOF
14747 rm -f conftest.$ac_objext
14748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14749 (eval $ac_compile) 2>conftest.er1
14750 ac_status=$?
14751 grep -v '^ *+' conftest.er1 >conftest.err
14752 rm -f conftest.er1
14753 cat conftest.err >&5
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); } &&
14756 { ac_try='test -z "$ac_c_werror_flag"
14757 || test ! -s conftest.err'
14758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14759 (eval $ac_try) 2>&5
14760 ac_status=$?
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); }; } &&
14763 { ac_try='test -s conftest.$ac_objext'
14764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14765 (eval $ac_try) 2>&5
14766 ac_status=$?
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); }; }; then
14770 cat >>confdefs.h <<\_ACEOF
14771 #define HAVE_GETPAGESIZE 1
14772 _ACEOF
14774 echo "$as_me:$LINENO: result: yes" >&5
14775 echo "${ECHO_T}yes" >&6
14776 else
14777 echo "$as_me: failed program was:" >&5
14778 sed 's/^/| /' conftest.$ac_ext >&5
14780 echo "$as_me:$LINENO: result: no" >&5
14781 echo "${ECHO_T}no" >&6
14784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14786 for ac_prog in true
14788 # Extract the first word of "$ac_prog", so it can be a program name with args.
14789 set dummy $ac_prog; ac_word=$2
14790 echo "$as_me:$LINENO: checking for $ac_word" >&5
14791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14792 if test "${ac_cv_prog_TRUE+set}" = set; then
14793 echo $ECHO_N "(cached) $ECHO_C" >&6
14794 else
14795 if test -n "$TRUE"; then
14796 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
14797 else
14798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14799 for as_dir in $PATH
14801 IFS=$as_save_IFS
14802 test -z "$as_dir" && as_dir=.
14803 for ac_exec_ext in '' $ac_executable_extensions; do
14804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14805 ac_cv_prog_TRUE="$ac_prog"
14806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14807 break 2
14809 done
14810 done
14814 TRUE=$ac_cv_prog_TRUE
14815 if test -n "$TRUE"; then
14816 echo "$as_me:$LINENO: result: $TRUE" >&5
14817 echo "${ECHO_T}$TRUE" >&6
14818 else
14819 echo "$as_me:$LINENO: result: no" >&5
14820 echo "${ECHO_T}no" >&6
14823 test -n "$TRUE" && break
14824 done
14825 test -n "$TRUE" || TRUE="/bin/true"
14828 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
14829 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
14830 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
14831 echo $ECHO_N "(cached) $ECHO_C" >&6
14832 else
14833 ac_check_lib_save_LIBS=$LIBS
14834 LIBS="-lc $LIBS"
14835 cat >conftest.$ac_ext <<_ACEOF
14836 /* confdefs.h. */
14837 _ACEOF
14838 cat confdefs.h >>conftest.$ac_ext
14839 cat >>conftest.$ac_ext <<_ACEOF
14840 /* end confdefs.h. */
14842 /* Override any gcc2 internal prototype to avoid an error. */
14843 #ifdef __cplusplus
14844 extern "C"
14845 #endif
14846 /* We use char because int might match the return type of a gcc2
14847 builtin and then its argument prototype would still apply. */
14848 char inet_aton ();
14850 main ()
14852 inet_aton ();
14854 return 0;
14856 _ACEOF
14857 rm -f conftest.$ac_objext conftest$ac_exeext
14858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14859 (eval $ac_link) 2>conftest.er1
14860 ac_status=$?
14861 grep -v '^ *+' conftest.er1 >conftest.err
14862 rm -f conftest.er1
14863 cat conftest.err >&5
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); } &&
14866 { ac_try='test -z "$ac_c_werror_flag"
14867 || test ! -s conftest.err'
14868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14869 (eval $ac_try) 2>&5
14870 ac_status=$?
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); }; } &&
14873 { ac_try='test -s conftest$ac_exeext'
14874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14875 (eval $ac_try) 2>&5
14876 ac_status=$?
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); }; }; then
14879 ac_cv_lib_c_inet_aton=yes
14880 else
14881 echo "$as_me: failed program was:" >&5
14882 sed 's/^/| /' conftest.$ac_ext >&5
14884 ac_cv_lib_c_inet_aton=no
14886 rm -f conftest.err conftest.$ac_objext \
14887 conftest$ac_exeext conftest.$ac_ext
14888 LIBS=$ac_check_lib_save_LIBS
14890 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
14891 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
14892 if test $ac_cv_lib_c_inet_aton = yes; then
14893 $ac_cv_prog_TRUE
14894 else
14896 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
14897 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
14898 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
14899 echo $ECHO_N "(cached) $ECHO_C" >&6
14900 else
14901 ac_check_lib_save_LIBS=$LIBS
14902 LIBS="-lresolv $LIBS"
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. */
14910 /* Override any gcc2 internal prototype to avoid an error. */
14911 #ifdef __cplusplus
14912 extern "C"
14913 #endif
14914 /* We use char because int might match the return type of a gcc2
14915 builtin and then its argument prototype would still apply. */
14916 char inet_aton ();
14918 main ()
14920 inet_aton ();
14922 return 0;
14924 _ACEOF
14925 rm -f conftest.$ac_objext conftest$ac_exeext
14926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14927 (eval $ac_link) 2>conftest.er1
14928 ac_status=$?
14929 grep -v '^ *+' conftest.er1 >conftest.err
14930 rm -f conftest.er1
14931 cat conftest.err >&5
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); } &&
14934 { ac_try='test -z "$ac_c_werror_flag"
14935 || test ! -s conftest.err'
14936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14937 (eval $ac_try) 2>&5
14938 ac_status=$?
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); }; } &&
14941 { ac_try='test -s conftest$ac_exeext'
14942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14943 (eval $ac_try) 2>&5
14944 ac_status=$?
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); }; }; then
14947 ac_cv_lib_resolv_inet_aton=yes
14948 else
14949 echo "$as_me: failed program was:" >&5
14950 sed 's/^/| /' conftest.$ac_ext >&5
14952 ac_cv_lib_resolv_inet_aton=no
14954 rm -f conftest.err conftest.$ac_objext \
14955 conftest$ac_exeext conftest.$ac_ext
14956 LIBS=$ac_check_lib_save_LIBS
14958 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
14959 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
14960 if test $ac_cv_lib_resolv_inet_aton = yes; then
14961 cat >>confdefs.h <<_ACEOF
14962 #define HAVE_LIBRESOLV 1
14963 _ACEOF
14965 LIBS="-lresolv $LIBS"
14973 echo "$as_me:$LINENO: checking for hstrerror" >&5
14974 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
14975 cat >conftest.$ac_ext <<_ACEOF
14976 /* confdefs.h. */
14977 _ACEOF
14978 cat confdefs.h >>conftest.$ac_ext
14979 cat >>conftest.$ac_ext <<_ACEOF
14980 /* end confdefs.h. */
14982 #include "confdefs.h"
14983 #include <netdb.h>
14986 main ()
14988 void* p = hstrerror; hstrerror(0)
14990 return 0;
14992 _ACEOF
14993 rm -f conftest.$ac_objext conftest$ac_exeext
14994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14995 (eval $ac_link) 2>conftest.er1
14996 ac_status=$?
14997 grep -v '^ *+' conftest.er1 >conftest.err
14998 rm -f conftest.er1
14999 cat conftest.err >&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); } &&
15002 { ac_try='test -z "$ac_c_werror_flag"
15003 || test ! -s conftest.err'
15004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15005 (eval $ac_try) 2>&5
15006 ac_status=$?
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); }; } &&
15009 { ac_try='test -s conftest$ac_exeext'
15010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15011 (eval $ac_try) 2>&5
15012 ac_status=$?
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); }; }; then
15016 cat >>confdefs.h <<\_ACEOF
15017 #define HAVE_HSTRERROR 1
15018 _ACEOF
15020 echo "$as_me:$LINENO: result: yes" >&5
15021 echo "${ECHO_T}yes" >&6
15022 else
15023 echo "$as_me: failed program was:" >&5
15024 sed 's/^/| /' conftest.$ac_ext >&5
15026 echo "$as_me:$LINENO: result: no" >&5
15027 echo "${ECHO_T}no" >&6
15030 rm -f conftest.err conftest.$ac_objext \
15031 conftest$ac_exeext conftest.$ac_ext
15033 echo "$as_me:$LINENO: checking for inet_aton" >&5
15034 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
15035 cat >conftest.$ac_ext <<_ACEOF
15036 /* confdefs.h. */
15037 _ACEOF
15038 cat confdefs.h >>conftest.$ac_ext
15039 cat >>conftest.$ac_ext <<_ACEOF
15040 /* end confdefs.h. */
15042 #include "confdefs.h"
15043 #include <sys/types.h>
15044 #include <sys/socket.h>
15045 #include <netinet/in.h>
15046 #include <arpa/inet.h>
15049 main ()
15051 void* p = inet_aton;inet_aton(0,0)
15053 return 0;
15055 _ACEOF
15056 rm -f conftest.$ac_objext conftest$ac_exeext
15057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15058 (eval $ac_link) 2>conftest.er1
15059 ac_status=$?
15060 grep -v '^ *+' conftest.er1 >conftest.err
15061 rm -f conftest.er1
15062 cat conftest.err >&5
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); } &&
15065 { ac_try='test -z "$ac_c_werror_flag"
15066 || test ! -s conftest.err'
15067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15068 (eval $ac_try) 2>&5
15069 ac_status=$?
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); }; } &&
15072 { ac_try='test -s conftest$ac_exeext'
15073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15074 (eval $ac_try) 2>&5
15075 ac_status=$?
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); }; }; then
15079 cat >>confdefs.h <<\_ACEOF
15080 #define HAVE_INET_ATON 1
15081 _ACEOF
15083 echo "$as_me:$LINENO: result: yes" >&5
15084 echo "${ECHO_T}yes" >&6
15085 else
15086 echo "$as_me: failed program was:" >&5
15087 sed 's/^/| /' conftest.$ac_ext >&5
15089 echo "$as_me:$LINENO: result: no" >&5
15090 echo "${ECHO_T}no" >&6
15093 rm -f conftest.err conftest.$ac_objext \
15094 conftest$ac_exeext conftest.$ac_ext
15096 echo "$as_me:$LINENO: checking for inet_pton" >&5
15097 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
15098 cat >conftest.$ac_ext <<_ACEOF
15099 /* confdefs.h. */
15100 _ACEOF
15101 cat confdefs.h >>conftest.$ac_ext
15102 cat >>conftest.$ac_ext <<_ACEOF
15103 /* end confdefs.h. */
15105 #include "confdefs.h"
15106 #include <sys/types.h>
15107 #include <sys/socket.h>
15108 #include <netinet/in.h>
15109 #include <arpa/inet.h>
15112 main ()
15114 void* p = inet_pton
15116 return 0;
15118 _ACEOF
15119 rm -f conftest.$ac_objext
15120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15121 (eval $ac_compile) 2>conftest.er1
15122 ac_status=$?
15123 grep -v '^ *+' conftest.er1 >conftest.err
15124 rm -f conftest.er1
15125 cat conftest.err >&5
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); } &&
15128 { ac_try='test -z "$ac_c_werror_flag"
15129 || test ! -s conftest.err'
15130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15131 (eval $ac_try) 2>&5
15132 ac_status=$?
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); }; } &&
15135 { ac_try='test -s conftest.$ac_objext'
15136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15137 (eval $ac_try) 2>&5
15138 ac_status=$?
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); }; }; then
15142 cat >>confdefs.h <<\_ACEOF
15143 #define HAVE_INET_PTON 1
15144 _ACEOF
15146 echo "$as_me:$LINENO: result: yes" >&5
15147 echo "${ECHO_T}yes" >&6
15148 else
15149 echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.$ac_ext >&5
15152 echo "$as_me:$LINENO: result: no" >&5
15153 echo "${ECHO_T}no" >&6
15156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15158 # On some systems, setgroups is in unistd.h, on others, in grp.h
15159 echo "$as_me:$LINENO: checking for setgroups" >&5
15160 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
15161 cat >conftest.$ac_ext <<_ACEOF
15162 /* confdefs.h. */
15163 _ACEOF
15164 cat confdefs.h >>conftest.$ac_ext
15165 cat >>conftest.$ac_ext <<_ACEOF
15166 /* end confdefs.h. */
15168 #include "confdefs.h"
15169 #include <unistd.h>
15170 #ifdef HAVE_GRP_H
15171 #include <grp.h>
15172 #endif
15175 main ()
15177 void* p = setgroups
15179 return 0;
15181 _ACEOF
15182 rm -f conftest.$ac_objext
15183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15184 (eval $ac_compile) 2>conftest.er1
15185 ac_status=$?
15186 grep -v '^ *+' conftest.er1 >conftest.err
15187 rm -f conftest.er1
15188 cat conftest.err >&5
15189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190 (exit $ac_status); } &&
15191 { ac_try='test -z "$ac_c_werror_flag"
15192 || test ! -s conftest.err'
15193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15194 (eval $ac_try) 2>&5
15195 ac_status=$?
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); }; } &&
15198 { ac_try='test -s conftest.$ac_objext'
15199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15200 (eval $ac_try) 2>&5
15201 ac_status=$?
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); }; }; then
15205 cat >>confdefs.h <<\_ACEOF
15206 #define HAVE_SETGROUPS 1
15207 _ACEOF
15209 echo "$as_me:$LINENO: result: yes" >&5
15210 echo "${ECHO_T}yes" >&6
15211 else
15212 echo "$as_me: failed program was:" >&5
15213 sed 's/^/| /' conftest.$ac_ext >&5
15215 echo "$as_me:$LINENO: result: no" >&5
15216 echo "${ECHO_T}no" >&6
15219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15221 # check for openpty and forkpty
15224 for ac_func in openpty
15226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15227 echo "$as_me:$LINENO: checking for $ac_func" >&5
15228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15229 if eval "test \"\${$as_ac_var+set}\" = set"; then
15230 echo $ECHO_N "(cached) $ECHO_C" >&6
15231 else
15232 cat >conftest.$ac_ext <<_ACEOF
15233 /* confdefs.h. */
15234 _ACEOF
15235 cat confdefs.h >>conftest.$ac_ext
15236 cat >>conftest.$ac_ext <<_ACEOF
15237 /* end confdefs.h. */
15238 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15239 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15240 #define $ac_func innocuous_$ac_func
15242 /* System header to define __stub macros and hopefully few prototypes,
15243 which can conflict with char $ac_func (); below.
15244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15245 <limits.h> exists even on freestanding compilers. */
15247 #ifdef __STDC__
15248 # include <limits.h>
15249 #else
15250 # include <assert.h>
15251 #endif
15253 #undef $ac_func
15255 /* Override any gcc2 internal prototype to avoid an error. */
15256 #ifdef __cplusplus
15257 extern "C"
15259 #endif
15260 /* We use char because int might match the return type of a gcc2
15261 builtin and then its argument prototype would still apply. */
15262 char $ac_func ();
15263 /* The GNU C library defines this for functions which it implements
15264 to always fail with ENOSYS. Some functions are actually named
15265 something starting with __ and the normal name is an alias. */
15266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15267 choke me
15268 #else
15269 char (*f) () = $ac_func;
15270 #endif
15271 #ifdef __cplusplus
15273 #endif
15276 main ()
15278 return f != $ac_func;
15280 return 0;
15282 _ACEOF
15283 rm -f conftest.$ac_objext conftest$ac_exeext
15284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15285 (eval $ac_link) 2>conftest.er1
15286 ac_status=$?
15287 grep -v '^ *+' conftest.er1 >conftest.err
15288 rm -f conftest.er1
15289 cat conftest.err >&5
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); } &&
15292 { ac_try='test -z "$ac_c_werror_flag"
15293 || test ! -s conftest.err'
15294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15295 (eval $ac_try) 2>&5
15296 ac_status=$?
15297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); }; } &&
15299 { ac_try='test -s conftest$ac_exeext'
15300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15301 (eval $ac_try) 2>&5
15302 ac_status=$?
15303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304 (exit $ac_status); }; }; then
15305 eval "$as_ac_var=yes"
15306 else
15307 echo "$as_me: failed program was:" >&5
15308 sed 's/^/| /' conftest.$ac_ext >&5
15310 eval "$as_ac_var=no"
15312 rm -f conftest.err conftest.$ac_objext \
15313 conftest$ac_exeext conftest.$ac_ext
15315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15316 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15317 if test `eval echo '${'$as_ac_var'}'` = yes; then
15318 cat >>confdefs.h <<_ACEOF
15319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15320 _ACEOF
15322 else
15323 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15324 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15325 if test "${ac_cv_lib_util_openpty+set}" = set; then
15326 echo $ECHO_N "(cached) $ECHO_C" >&6
15327 else
15328 ac_check_lib_save_LIBS=$LIBS
15329 LIBS="-lutil $LIBS"
15330 cat >conftest.$ac_ext <<_ACEOF
15331 /* confdefs.h. */
15332 _ACEOF
15333 cat confdefs.h >>conftest.$ac_ext
15334 cat >>conftest.$ac_ext <<_ACEOF
15335 /* end confdefs.h. */
15337 /* Override any gcc2 internal prototype to avoid an error. */
15338 #ifdef __cplusplus
15339 extern "C"
15340 #endif
15341 /* We use char because int might match the return type of a gcc2
15342 builtin and then its argument prototype would still apply. */
15343 char openpty ();
15345 main ()
15347 openpty ();
15349 return 0;
15351 _ACEOF
15352 rm -f conftest.$ac_objext conftest$ac_exeext
15353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15354 (eval $ac_link) 2>conftest.er1
15355 ac_status=$?
15356 grep -v '^ *+' conftest.er1 >conftest.err
15357 rm -f conftest.er1
15358 cat conftest.err >&5
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); } &&
15361 { ac_try='test -z "$ac_c_werror_flag"
15362 || test ! -s conftest.err'
15363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15364 (eval $ac_try) 2>&5
15365 ac_status=$?
15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); }; } &&
15368 { ac_try='test -s conftest$ac_exeext'
15369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15370 (eval $ac_try) 2>&5
15371 ac_status=$?
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); }; }; then
15374 ac_cv_lib_util_openpty=yes
15375 else
15376 echo "$as_me: failed program was:" >&5
15377 sed 's/^/| /' conftest.$ac_ext >&5
15379 ac_cv_lib_util_openpty=no
15381 rm -f conftest.err conftest.$ac_objext \
15382 conftest$ac_exeext conftest.$ac_ext
15383 LIBS=$ac_check_lib_save_LIBS
15385 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15386 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15387 if test $ac_cv_lib_util_openpty = yes; then
15388 cat >>confdefs.h <<\_ACEOF
15389 #define HAVE_OPENPTY 1
15390 _ACEOF
15391 LIBS="$LIBS -lutil"
15392 else
15393 echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
15394 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6
15395 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
15396 echo $ECHO_N "(cached) $ECHO_C" >&6
15397 else
15398 ac_check_lib_save_LIBS=$LIBS
15399 LIBS="-lbsd $LIBS"
15400 cat >conftest.$ac_ext <<_ACEOF
15401 /* confdefs.h. */
15402 _ACEOF
15403 cat confdefs.h >>conftest.$ac_ext
15404 cat >>conftest.$ac_ext <<_ACEOF
15405 /* end confdefs.h. */
15407 /* Override any gcc2 internal prototype to avoid an error. */
15408 #ifdef __cplusplus
15409 extern "C"
15410 #endif
15411 /* We use char because int might match the return type of a gcc2
15412 builtin and then its argument prototype would still apply. */
15413 char openpty ();
15415 main ()
15417 openpty ();
15419 return 0;
15421 _ACEOF
15422 rm -f conftest.$ac_objext conftest$ac_exeext
15423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15424 (eval $ac_link) 2>conftest.er1
15425 ac_status=$?
15426 grep -v '^ *+' conftest.er1 >conftest.err
15427 rm -f conftest.er1
15428 cat conftest.err >&5
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); } &&
15431 { ac_try='test -z "$ac_c_werror_flag"
15432 || test ! -s conftest.err'
15433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15434 (eval $ac_try) 2>&5
15435 ac_status=$?
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); }; } &&
15438 { ac_try='test -s conftest$ac_exeext'
15439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440 (eval $ac_try) 2>&5
15441 ac_status=$?
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); }; }; then
15444 ac_cv_lib_bsd_openpty=yes
15445 else
15446 echo "$as_me: failed program was:" >&5
15447 sed 's/^/| /' conftest.$ac_ext >&5
15449 ac_cv_lib_bsd_openpty=no
15451 rm -f conftest.err conftest.$ac_objext \
15452 conftest$ac_exeext conftest.$ac_ext
15453 LIBS=$ac_check_lib_save_LIBS
15455 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
15456 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6
15457 if test $ac_cv_lib_bsd_openpty = yes; then
15458 cat >>confdefs.h <<\_ACEOF
15459 #define HAVE_OPENPTY 1
15460 _ACEOF
15461 LIBS="$LIBS -lbsd"
15469 done
15472 for ac_func in forkpty
15474 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15475 echo "$as_me:$LINENO: checking for $ac_func" >&5
15476 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15477 if eval "test \"\${$as_ac_var+set}\" = set"; then
15478 echo $ECHO_N "(cached) $ECHO_C" >&6
15479 else
15480 cat >conftest.$ac_ext <<_ACEOF
15481 /* confdefs.h. */
15482 _ACEOF
15483 cat confdefs.h >>conftest.$ac_ext
15484 cat >>conftest.$ac_ext <<_ACEOF
15485 /* end confdefs.h. */
15486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15488 #define $ac_func innocuous_$ac_func
15490 /* System header to define __stub macros and hopefully few prototypes,
15491 which can conflict with char $ac_func (); below.
15492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15493 <limits.h> exists even on freestanding compilers. */
15495 #ifdef __STDC__
15496 # include <limits.h>
15497 #else
15498 # include <assert.h>
15499 #endif
15501 #undef $ac_func
15503 /* Override any gcc2 internal prototype to avoid an error. */
15504 #ifdef __cplusplus
15505 extern "C"
15507 #endif
15508 /* We use char because int might match the return type of a gcc2
15509 builtin and then its argument prototype would still apply. */
15510 char $ac_func ();
15511 /* The GNU C library defines this for functions which it implements
15512 to always fail with ENOSYS. Some functions are actually named
15513 something starting with __ and the normal name is an alias. */
15514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15515 choke me
15516 #else
15517 char (*f) () = $ac_func;
15518 #endif
15519 #ifdef __cplusplus
15521 #endif
15524 main ()
15526 return f != $ac_func;
15528 return 0;
15530 _ACEOF
15531 rm -f conftest.$ac_objext conftest$ac_exeext
15532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15533 (eval $ac_link) 2>conftest.er1
15534 ac_status=$?
15535 grep -v '^ *+' conftest.er1 >conftest.err
15536 rm -f conftest.er1
15537 cat conftest.err >&5
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); } &&
15540 { ac_try='test -z "$ac_c_werror_flag"
15541 || test ! -s conftest.err'
15542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15543 (eval $ac_try) 2>&5
15544 ac_status=$?
15545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546 (exit $ac_status); }; } &&
15547 { ac_try='test -s conftest$ac_exeext'
15548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15549 (eval $ac_try) 2>&5
15550 ac_status=$?
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); }; }; then
15553 eval "$as_ac_var=yes"
15554 else
15555 echo "$as_me: failed program was:" >&5
15556 sed 's/^/| /' conftest.$ac_ext >&5
15558 eval "$as_ac_var=no"
15560 rm -f conftest.err conftest.$ac_objext \
15561 conftest$ac_exeext conftest.$ac_ext
15563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15564 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15565 if test `eval echo '${'$as_ac_var'}'` = yes; then
15566 cat >>confdefs.h <<_ACEOF
15567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15568 _ACEOF
15570 else
15571 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
15572 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
15573 if test "${ac_cv_lib_util_forkpty+set}" = set; then
15574 echo $ECHO_N "(cached) $ECHO_C" >&6
15575 else
15576 ac_check_lib_save_LIBS=$LIBS
15577 LIBS="-lutil $LIBS"
15578 cat >conftest.$ac_ext <<_ACEOF
15579 /* confdefs.h. */
15580 _ACEOF
15581 cat confdefs.h >>conftest.$ac_ext
15582 cat >>conftest.$ac_ext <<_ACEOF
15583 /* end confdefs.h. */
15585 /* Override any gcc2 internal prototype to avoid an error. */
15586 #ifdef __cplusplus
15587 extern "C"
15588 #endif
15589 /* We use char because int might match the return type of a gcc2
15590 builtin and then its argument prototype would still apply. */
15591 char forkpty ();
15593 main ()
15595 forkpty ();
15597 return 0;
15599 _ACEOF
15600 rm -f conftest.$ac_objext conftest$ac_exeext
15601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15602 (eval $ac_link) 2>conftest.er1
15603 ac_status=$?
15604 grep -v '^ *+' conftest.er1 >conftest.err
15605 rm -f conftest.er1
15606 cat conftest.err >&5
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); } &&
15609 { ac_try='test -z "$ac_c_werror_flag"
15610 || test ! -s conftest.err'
15611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15612 (eval $ac_try) 2>&5
15613 ac_status=$?
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); }; } &&
15616 { ac_try='test -s conftest$ac_exeext'
15617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15618 (eval $ac_try) 2>&5
15619 ac_status=$?
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); }; }; then
15622 ac_cv_lib_util_forkpty=yes
15623 else
15624 echo "$as_me: failed program was:" >&5
15625 sed 's/^/| /' conftest.$ac_ext >&5
15627 ac_cv_lib_util_forkpty=no
15629 rm -f conftest.err conftest.$ac_objext \
15630 conftest$ac_exeext conftest.$ac_ext
15631 LIBS=$ac_check_lib_save_LIBS
15633 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
15634 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
15635 if test $ac_cv_lib_util_forkpty = yes; then
15636 cat >>confdefs.h <<\_ACEOF
15637 #define HAVE_FORKPTY 1
15638 _ACEOF
15639 LIBS="$LIBS -lutil"
15640 else
15641 echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
15642 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6
15643 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
15644 echo $ECHO_N "(cached) $ECHO_C" >&6
15645 else
15646 ac_check_lib_save_LIBS=$LIBS
15647 LIBS="-lbsd $LIBS"
15648 cat >conftest.$ac_ext <<_ACEOF
15649 /* confdefs.h. */
15650 _ACEOF
15651 cat confdefs.h >>conftest.$ac_ext
15652 cat >>conftest.$ac_ext <<_ACEOF
15653 /* end confdefs.h. */
15655 /* Override any gcc2 internal prototype to avoid an error. */
15656 #ifdef __cplusplus
15657 extern "C"
15658 #endif
15659 /* We use char because int might match the return type of a gcc2
15660 builtin and then its argument prototype would still apply. */
15661 char forkpty ();
15663 main ()
15665 forkpty ();
15667 return 0;
15669 _ACEOF
15670 rm -f conftest.$ac_objext conftest$ac_exeext
15671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15672 (eval $ac_link) 2>conftest.er1
15673 ac_status=$?
15674 grep -v '^ *+' conftest.er1 >conftest.err
15675 rm -f conftest.er1
15676 cat conftest.err >&5
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); } &&
15679 { ac_try='test -z "$ac_c_werror_flag"
15680 || test ! -s conftest.err'
15681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15682 (eval $ac_try) 2>&5
15683 ac_status=$?
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); }; } &&
15686 { ac_try='test -s conftest$ac_exeext'
15687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15688 (eval $ac_try) 2>&5
15689 ac_status=$?
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); }; }; then
15692 ac_cv_lib_bsd_forkpty=yes
15693 else
15694 echo "$as_me: failed program was:" >&5
15695 sed 's/^/| /' conftest.$ac_ext >&5
15697 ac_cv_lib_bsd_forkpty=no
15699 rm -f conftest.err conftest.$ac_objext \
15700 conftest$ac_exeext conftest.$ac_ext
15701 LIBS=$ac_check_lib_save_LIBS
15703 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
15704 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6
15705 if test $ac_cv_lib_bsd_forkpty = yes; then
15706 cat >>confdefs.h <<\_ACEOF
15707 #define HAVE_FORKPTY 1
15708 _ACEOF
15709 LIBS="$LIBS -lbsd"
15717 done
15720 # check for long file support functions
15727 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
15729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15730 echo "$as_me:$LINENO: checking for $ac_func" >&5
15731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15732 if eval "test \"\${$as_ac_var+set}\" = set"; then
15733 echo $ECHO_N "(cached) $ECHO_C" >&6
15734 else
15735 cat >conftest.$ac_ext <<_ACEOF
15736 /* confdefs.h. */
15737 _ACEOF
15738 cat confdefs.h >>conftest.$ac_ext
15739 cat >>conftest.$ac_ext <<_ACEOF
15740 /* end confdefs.h. */
15741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15743 #define $ac_func innocuous_$ac_func
15745 /* System header to define __stub macros and hopefully few prototypes,
15746 which can conflict with char $ac_func (); below.
15747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15748 <limits.h> exists even on freestanding compilers. */
15750 #ifdef __STDC__
15751 # include <limits.h>
15752 #else
15753 # include <assert.h>
15754 #endif
15756 #undef $ac_func
15758 /* Override any gcc2 internal prototype to avoid an error. */
15759 #ifdef __cplusplus
15760 extern "C"
15762 #endif
15763 /* We use char because int might match the return type of a gcc2
15764 builtin and then its argument prototype would still apply. */
15765 char $ac_func ();
15766 /* The GNU C library defines this for functions which it implements
15767 to always fail with ENOSYS. Some functions are actually named
15768 something starting with __ and the normal name is an alias. */
15769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15770 choke me
15771 #else
15772 char (*f) () = $ac_func;
15773 #endif
15774 #ifdef __cplusplus
15776 #endif
15779 main ()
15781 return f != $ac_func;
15783 return 0;
15785 _ACEOF
15786 rm -f conftest.$ac_objext conftest$ac_exeext
15787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15788 (eval $ac_link) 2>conftest.er1
15789 ac_status=$?
15790 grep -v '^ *+' conftest.er1 >conftest.err
15791 rm -f conftest.er1
15792 cat conftest.err >&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); } &&
15795 { ac_try='test -z "$ac_c_werror_flag"
15796 || test ! -s conftest.err'
15797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798 (eval $ac_try) 2>&5
15799 ac_status=$?
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); }; } &&
15802 { ac_try='test -s conftest$ac_exeext'
15803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15804 (eval $ac_try) 2>&5
15805 ac_status=$?
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); }; }; then
15808 eval "$as_ac_var=yes"
15809 else
15810 echo "$as_me: failed program was:" >&5
15811 sed 's/^/| /' conftest.$ac_ext >&5
15813 eval "$as_ac_var=no"
15815 rm -f conftest.err conftest.$ac_objext \
15816 conftest$ac_exeext conftest.$ac_ext
15818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15819 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15820 if test `eval echo '${'$as_ac_var'}'` = yes; then
15821 cat >>confdefs.h <<_ACEOF
15822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15823 _ACEOF
15826 done
15834 for ac_func in dup2 getcwd strdup strerror memmove
15836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15837 echo "$as_me:$LINENO: checking for $ac_func" >&5
15838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15839 if eval "test \"\${$as_ac_var+set}\" = set"; then
15840 echo $ECHO_N "(cached) $ECHO_C" >&6
15841 else
15842 cat >conftest.$ac_ext <<_ACEOF
15843 /* confdefs.h. */
15844 _ACEOF
15845 cat confdefs.h >>conftest.$ac_ext
15846 cat >>conftest.$ac_ext <<_ACEOF
15847 /* end confdefs.h. */
15848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15850 #define $ac_func innocuous_$ac_func
15852 /* System header to define __stub macros and hopefully few prototypes,
15853 which can conflict with char $ac_func (); below.
15854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15855 <limits.h> exists even on freestanding compilers. */
15857 #ifdef __STDC__
15858 # include <limits.h>
15859 #else
15860 # include <assert.h>
15861 #endif
15863 #undef $ac_func
15865 /* Override any gcc2 internal prototype to avoid an error. */
15866 #ifdef __cplusplus
15867 extern "C"
15869 #endif
15870 /* We use char because int might match the return type of a gcc2
15871 builtin and then its argument prototype would still apply. */
15872 char $ac_func ();
15873 /* The GNU C library defines this for functions which it implements
15874 to always fail with ENOSYS. Some functions are actually named
15875 something starting with __ and the normal name is an alias. */
15876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15877 choke me
15878 #else
15879 char (*f) () = $ac_func;
15880 #endif
15881 #ifdef __cplusplus
15883 #endif
15886 main ()
15888 return f != $ac_func;
15890 return 0;
15892 _ACEOF
15893 rm -f conftest.$ac_objext conftest$ac_exeext
15894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15895 (eval $ac_link) 2>conftest.er1
15896 ac_status=$?
15897 grep -v '^ *+' conftest.er1 >conftest.err
15898 rm -f conftest.er1
15899 cat conftest.err >&5
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); } &&
15902 { ac_try='test -z "$ac_c_werror_flag"
15903 || test ! -s conftest.err'
15904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15905 (eval $ac_try) 2>&5
15906 ac_status=$?
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); }; } &&
15909 { ac_try='test -s conftest$ac_exeext'
15910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15911 (eval $ac_try) 2>&5
15912 ac_status=$?
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); }; }; then
15915 eval "$as_ac_var=yes"
15916 else
15917 echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.$ac_ext >&5
15920 eval "$as_ac_var=no"
15922 rm -f conftest.err conftest.$ac_objext \
15923 conftest$ac_exeext conftest.$ac_ext
15925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15926 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15927 if test `eval echo '${'$as_ac_var'}'` = yes; then
15928 cat >>confdefs.h <<_ACEOF
15929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15930 _ACEOF
15932 else
15933 case $LIBOBJS in
15934 "$ac_func.$ac_objext" | \
15935 *" $ac_func.$ac_objext" | \
15936 "$ac_func.$ac_objext "* | \
15937 *" $ac_func.$ac_objext "* ) ;;
15938 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
15939 esac
15942 done
15946 for ac_func in getpgrp
15948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15949 echo "$as_me:$LINENO: checking for $ac_func" >&5
15950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15951 if eval "test \"\${$as_ac_var+set}\" = set"; then
15952 echo $ECHO_N "(cached) $ECHO_C" >&6
15953 else
15954 cat >conftest.$ac_ext <<_ACEOF
15955 /* confdefs.h. */
15956 _ACEOF
15957 cat confdefs.h >>conftest.$ac_ext
15958 cat >>conftest.$ac_ext <<_ACEOF
15959 /* end confdefs.h. */
15960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15962 #define $ac_func innocuous_$ac_func
15964 /* System header to define __stub macros and hopefully few prototypes,
15965 which can conflict with char $ac_func (); below.
15966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15967 <limits.h> exists even on freestanding compilers. */
15969 #ifdef __STDC__
15970 # include <limits.h>
15971 #else
15972 # include <assert.h>
15973 #endif
15975 #undef $ac_func
15977 /* Override any gcc2 internal prototype to avoid an error. */
15978 #ifdef __cplusplus
15979 extern "C"
15981 #endif
15982 /* We use char because int might match the return type of a gcc2
15983 builtin and then its argument prototype would still apply. */
15984 char $ac_func ();
15985 /* The GNU C library defines this for functions which it implements
15986 to always fail with ENOSYS. Some functions are actually named
15987 something starting with __ and the normal name is an alias. */
15988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15989 choke me
15990 #else
15991 char (*f) () = $ac_func;
15992 #endif
15993 #ifdef __cplusplus
15995 #endif
15998 main ()
16000 return f != $ac_func;
16002 return 0;
16004 _ACEOF
16005 rm -f conftest.$ac_objext conftest$ac_exeext
16006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16007 (eval $ac_link) 2>conftest.er1
16008 ac_status=$?
16009 grep -v '^ *+' conftest.er1 >conftest.err
16010 rm -f conftest.er1
16011 cat conftest.err >&5
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); } &&
16014 { ac_try='test -z "$ac_c_werror_flag"
16015 || test ! -s conftest.err'
16016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16017 (eval $ac_try) 2>&5
16018 ac_status=$?
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); }; } &&
16021 { ac_try='test -s conftest$ac_exeext'
16022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16023 (eval $ac_try) 2>&5
16024 ac_status=$?
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); }; }; then
16027 eval "$as_ac_var=yes"
16028 else
16029 echo "$as_me: failed program was:" >&5
16030 sed 's/^/| /' conftest.$ac_ext >&5
16032 eval "$as_ac_var=no"
16034 rm -f conftest.err conftest.$ac_objext \
16035 conftest$ac_exeext conftest.$ac_ext
16037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16038 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16039 if test `eval echo '${'$as_ac_var'}'` = yes; then
16040 cat >>confdefs.h <<_ACEOF
16041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16042 _ACEOF
16043 cat >conftest.$ac_ext <<_ACEOF
16044 /* confdefs.h. */
16045 _ACEOF
16046 cat confdefs.h >>conftest.$ac_ext
16047 cat >>conftest.$ac_ext <<_ACEOF
16048 /* end confdefs.h. */
16049 #include <unistd.h>
16051 main ()
16053 getpgrp(0);
16055 return 0;
16057 _ACEOF
16058 rm -f conftest.$ac_objext
16059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16060 (eval $ac_compile) 2>conftest.er1
16061 ac_status=$?
16062 grep -v '^ *+' conftest.er1 >conftest.err
16063 rm -f conftest.er1
16064 cat conftest.err >&5
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); } &&
16067 { ac_try='test -z "$ac_c_werror_flag"
16068 || test ! -s conftest.err'
16069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16070 (eval $ac_try) 2>&5
16071 ac_status=$?
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); }; } &&
16074 { ac_try='test -s conftest.$ac_objext'
16075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16076 (eval $ac_try) 2>&5
16077 ac_status=$?
16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); }; }; then
16081 cat >>confdefs.h <<\_ACEOF
16082 #define GETPGRP_HAVE_ARG 1
16083 _ACEOF
16086 else
16087 echo "$as_me: failed program was:" >&5
16088 sed 's/^/| /' conftest.$ac_ext >&5
16091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16094 done
16097 for ac_func in setpgrp
16099 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16100 echo "$as_me:$LINENO: checking for $ac_func" >&5
16101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16102 if eval "test \"\${$as_ac_var+set}\" = set"; then
16103 echo $ECHO_N "(cached) $ECHO_C" >&6
16104 else
16105 cat >conftest.$ac_ext <<_ACEOF
16106 /* confdefs.h. */
16107 _ACEOF
16108 cat confdefs.h >>conftest.$ac_ext
16109 cat >>conftest.$ac_ext <<_ACEOF
16110 /* end confdefs.h. */
16111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16113 #define $ac_func innocuous_$ac_func
16115 /* System header to define __stub macros and hopefully few prototypes,
16116 which can conflict with char $ac_func (); below.
16117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16118 <limits.h> exists even on freestanding compilers. */
16120 #ifdef __STDC__
16121 # include <limits.h>
16122 #else
16123 # include <assert.h>
16124 #endif
16126 #undef $ac_func
16128 /* Override any gcc2 internal prototype to avoid an error. */
16129 #ifdef __cplusplus
16130 extern "C"
16132 #endif
16133 /* We use char because int might match the return type of a gcc2
16134 builtin and then its argument prototype would still apply. */
16135 char $ac_func ();
16136 /* The GNU C library defines this for functions which it implements
16137 to always fail with ENOSYS. Some functions are actually named
16138 something starting with __ and the normal name is an alias. */
16139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16140 choke me
16141 #else
16142 char (*f) () = $ac_func;
16143 #endif
16144 #ifdef __cplusplus
16146 #endif
16149 main ()
16151 return f != $ac_func;
16153 return 0;
16155 _ACEOF
16156 rm -f conftest.$ac_objext conftest$ac_exeext
16157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16158 (eval $ac_link) 2>conftest.er1
16159 ac_status=$?
16160 grep -v '^ *+' conftest.er1 >conftest.err
16161 rm -f conftest.er1
16162 cat conftest.err >&5
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164 (exit $ac_status); } &&
16165 { ac_try='test -z "$ac_c_werror_flag"
16166 || test ! -s conftest.err'
16167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16168 (eval $ac_try) 2>&5
16169 ac_status=$?
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); }; } &&
16172 { ac_try='test -s conftest$ac_exeext'
16173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16174 (eval $ac_try) 2>&5
16175 ac_status=$?
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); }; }; then
16178 eval "$as_ac_var=yes"
16179 else
16180 echo "$as_me: failed program was:" >&5
16181 sed 's/^/| /' conftest.$ac_ext >&5
16183 eval "$as_ac_var=no"
16185 rm -f conftest.err conftest.$ac_objext \
16186 conftest$ac_exeext conftest.$ac_ext
16188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16189 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16190 if test `eval echo '${'$as_ac_var'}'` = yes; then
16191 cat >>confdefs.h <<_ACEOF
16192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16193 _ACEOF
16194 cat >conftest.$ac_ext <<_ACEOF
16195 /* confdefs.h. */
16196 _ACEOF
16197 cat confdefs.h >>conftest.$ac_ext
16198 cat >>conftest.$ac_ext <<_ACEOF
16199 /* end confdefs.h. */
16200 #include <unistd.h>
16202 main ()
16204 setpgrp(0,0);
16206 return 0;
16208 _ACEOF
16209 rm -f conftest.$ac_objext
16210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16211 (eval $ac_compile) 2>conftest.er1
16212 ac_status=$?
16213 grep -v '^ *+' conftest.er1 >conftest.err
16214 rm -f conftest.er1
16215 cat conftest.err >&5
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); } &&
16218 { ac_try='test -z "$ac_c_werror_flag"
16219 || test ! -s conftest.err'
16220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16221 (eval $ac_try) 2>&5
16222 ac_status=$?
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); }; } &&
16225 { ac_try='test -s conftest.$ac_objext'
16226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16227 (eval $ac_try) 2>&5
16228 ac_status=$?
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); }; }; then
16232 cat >>confdefs.h <<\_ACEOF
16233 #define SETPGRP_HAVE_ARG 1
16234 _ACEOF
16237 else
16238 echo "$as_me: failed program was:" >&5
16239 sed 's/^/| /' conftest.$ac_ext >&5
16242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16245 done
16248 for ac_func in gettimeofday
16250 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16251 echo "$as_me:$LINENO: checking for $ac_func" >&5
16252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16253 if eval "test \"\${$as_ac_var+set}\" = set"; then
16254 echo $ECHO_N "(cached) $ECHO_C" >&6
16255 else
16256 cat >conftest.$ac_ext <<_ACEOF
16257 /* confdefs.h. */
16258 _ACEOF
16259 cat confdefs.h >>conftest.$ac_ext
16260 cat >>conftest.$ac_ext <<_ACEOF
16261 /* end confdefs.h. */
16262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16264 #define $ac_func innocuous_$ac_func
16266 /* System header to define __stub macros and hopefully few prototypes,
16267 which can conflict with char $ac_func (); below.
16268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16269 <limits.h> exists even on freestanding compilers. */
16271 #ifdef __STDC__
16272 # include <limits.h>
16273 #else
16274 # include <assert.h>
16275 #endif
16277 #undef $ac_func
16279 /* Override any gcc2 internal prototype to avoid an error. */
16280 #ifdef __cplusplus
16281 extern "C"
16283 #endif
16284 /* We use char because int might match the return type of a gcc2
16285 builtin and then its argument prototype would still apply. */
16286 char $ac_func ();
16287 /* The GNU C library defines this for functions which it implements
16288 to always fail with ENOSYS. Some functions are actually named
16289 something starting with __ and the normal name is an alias. */
16290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16291 choke me
16292 #else
16293 char (*f) () = $ac_func;
16294 #endif
16295 #ifdef __cplusplus
16297 #endif
16300 main ()
16302 return f != $ac_func;
16304 return 0;
16306 _ACEOF
16307 rm -f conftest.$ac_objext conftest$ac_exeext
16308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16309 (eval $ac_link) 2>conftest.er1
16310 ac_status=$?
16311 grep -v '^ *+' conftest.er1 >conftest.err
16312 rm -f conftest.er1
16313 cat conftest.err >&5
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); } &&
16316 { ac_try='test -z "$ac_c_werror_flag"
16317 || test ! -s conftest.err'
16318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16319 (eval $ac_try) 2>&5
16320 ac_status=$?
16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); }; } &&
16323 { ac_try='test -s conftest$ac_exeext'
16324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16325 (eval $ac_try) 2>&5
16326 ac_status=$?
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); }; }; then
16329 eval "$as_ac_var=yes"
16330 else
16331 echo "$as_me: failed program was:" >&5
16332 sed 's/^/| /' conftest.$ac_ext >&5
16334 eval "$as_ac_var=no"
16336 rm -f conftest.err conftest.$ac_objext \
16337 conftest$ac_exeext conftest.$ac_ext
16339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16340 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16341 if test `eval echo '${'$as_ac_var'}'` = yes; then
16342 cat >>confdefs.h <<_ACEOF
16343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16344 _ACEOF
16345 cat >conftest.$ac_ext <<_ACEOF
16346 /* confdefs.h. */
16347 _ACEOF
16348 cat confdefs.h >>conftest.$ac_ext
16349 cat >>conftest.$ac_ext <<_ACEOF
16350 /* end confdefs.h. */
16351 #include <sys/time.h>
16353 main ()
16355 gettimeofday((struct timeval*)0,(struct timezone*)0);
16357 return 0;
16359 _ACEOF
16360 rm -f conftest.$ac_objext
16361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16362 (eval $ac_compile) 2>conftest.er1
16363 ac_status=$?
16364 grep -v '^ *+' conftest.er1 >conftest.err
16365 rm -f conftest.er1
16366 cat conftest.err >&5
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); } &&
16369 { ac_try='test -z "$ac_c_werror_flag"
16370 || test ! -s conftest.err'
16371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16372 (eval $ac_try) 2>&5
16373 ac_status=$?
16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); }; } &&
16376 { ac_try='test -s conftest.$ac_objext'
16377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16378 (eval $ac_try) 2>&5
16379 ac_status=$?
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); }; }; then
16383 else
16384 echo "$as_me: failed program was:" >&5
16385 sed 's/^/| /' conftest.$ac_ext >&5
16388 cat >>confdefs.h <<\_ACEOF
16389 #define GETTIMEOFDAY_NO_TZ 1
16390 _ACEOF
16394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16397 done
16400 echo "$as_me:$LINENO: checking for major" >&5
16401 echo $ECHO_N "checking for major... $ECHO_C" >&6
16402 cat >conftest.$ac_ext <<_ACEOF
16403 /* confdefs.h. */
16404 _ACEOF
16405 cat confdefs.h >>conftest.$ac_ext
16406 cat >>conftest.$ac_ext <<_ACEOF
16407 /* end confdefs.h. */
16409 #if defined(MAJOR_IN_MKDEV)
16410 #include <sys/mkdev.h>
16411 #elif defined(MAJOR_IN_SYSMACROS)
16412 #include <sys/sysmacros.h>
16413 #else
16414 #include <sys/types.h>
16415 #endif
16418 main ()
16421 makedev(major(0),minor(0));
16424 return 0;
16426 _ACEOF
16427 rm -f conftest.$ac_objext conftest$ac_exeext
16428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16429 (eval $ac_link) 2>conftest.er1
16430 ac_status=$?
16431 grep -v '^ *+' conftest.er1 >conftest.err
16432 rm -f conftest.er1
16433 cat conftest.err >&5
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); } &&
16436 { ac_try='test -z "$ac_c_werror_flag"
16437 || test ! -s conftest.err'
16438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16439 (eval $ac_try) 2>&5
16440 ac_status=$?
16441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); }; } &&
16443 { ac_try='test -s conftest$ac_exeext'
16444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16445 (eval $ac_try) 2>&5
16446 ac_status=$?
16447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448 (exit $ac_status); }; }; then
16451 cat >>confdefs.h <<\_ACEOF
16452 #define HAVE_DEVICE_MACROS 1
16453 _ACEOF
16455 echo "$as_me:$LINENO: result: yes" >&5
16456 echo "${ECHO_T}yes" >&6
16458 else
16459 echo "$as_me: failed program was:" >&5
16460 sed 's/^/| /' conftest.$ac_ext >&5
16463 echo "$as_me:$LINENO: result: no" >&5
16464 echo "${ECHO_T}no" >&6
16467 rm -f conftest.err conftest.$ac_objext \
16468 conftest$ac_exeext conftest.$ac_ext
16470 # On OSF/1 V5.1, getaddrinfo is available, but a define
16471 # for [no]getaddrinfo in netdb.h.
16472 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
16473 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
16474 cat >conftest.$ac_ext <<_ACEOF
16475 /* confdefs.h. */
16476 _ACEOF
16477 cat confdefs.h >>conftest.$ac_ext
16478 cat >>conftest.$ac_ext <<_ACEOF
16479 /* end confdefs.h. */
16481 #include <sys/types.h>
16482 #include <sys/socket.h>
16483 #include <netdb.h>
16484 #include <stdio.h>
16487 main ()
16490 getaddrinfo(NULL, NULL, NULL, NULL);
16493 return 0;
16495 _ACEOF
16496 rm -f conftest.$ac_objext conftest$ac_exeext
16497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16498 (eval $ac_link) 2>conftest.er1
16499 ac_status=$?
16500 grep -v '^ *+' conftest.er1 >conftest.err
16501 rm -f conftest.er1
16502 cat conftest.err >&5
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); } &&
16505 { ac_try='test -z "$ac_c_werror_flag"
16506 || test ! -s conftest.err'
16507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16508 (eval $ac_try) 2>&5
16509 ac_status=$?
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); }; } &&
16512 { ac_try='test -s conftest$ac_exeext'
16513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16514 (eval $ac_try) 2>&5
16515 ac_status=$?
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); }; }; then
16519 echo "$as_me:$LINENO: result: yes" >&5
16520 echo "${ECHO_T}yes" >&6
16521 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
16522 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
16523 if test "$cross_compiling" = yes; then
16524 echo "$as_me:$LINENO: result: buggy" >&5
16525 echo "${ECHO_T}buggy" >&6
16526 buggygetaddrinfo=yes
16527 else
16528 cat >conftest.$ac_ext <<_ACEOF
16529 /* confdefs.h. */
16530 _ACEOF
16531 cat confdefs.h >>conftest.$ac_ext
16532 cat >>conftest.$ac_ext <<_ACEOF
16533 /* end confdefs.h. */
16535 #include <sys/types.h>
16536 #include <netdb.h>
16537 #include <string.h>
16538 #include <sys/socket.h>
16539 #include <netinet/in.h>
16541 main()
16543 int passive, gaierr, inet4 = 0, inet6 = 0;
16544 struct addrinfo hints, *ai, *aitop;
16545 char straddr[INET6_ADDRSTRLEN], strport[16];
16547 for (passive = 0; passive <= 1; passive++) {
16548 memset(&hints, 0, sizeof(hints));
16549 hints.ai_family = AF_UNSPEC;
16550 hints.ai_flags = passive ? AI_PASSIVE : 0;
16551 hints.ai_socktype = SOCK_STREAM;
16552 hints.ai_protocol = IPPROTO_TCP;
16553 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
16554 (void)gai_strerror(gaierr);
16555 goto bad;
16557 for (ai = aitop; ai; ai = ai->ai_next) {
16558 if (ai->ai_addr == NULL ||
16559 ai->ai_addrlen == 0 ||
16560 getnameinfo(ai->ai_addr, ai->ai_addrlen,
16561 straddr, sizeof(straddr), strport, sizeof(strport),
16562 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
16563 goto bad;
16565 switch (ai->ai_family) {
16566 case AF_INET:
16567 if (strcmp(strport, "54321") != 0) {
16568 goto bad;
16570 if (passive) {
16571 if (strcmp(straddr, "0.0.0.0") != 0) {
16572 goto bad;
16574 } else {
16575 if (strcmp(straddr, "127.0.0.1") != 0) {
16576 goto bad;
16579 inet4++;
16580 break;
16581 case AF_INET6:
16582 if (strcmp(strport, "54321") != 0) {
16583 goto bad;
16585 if (passive) {
16586 if (strcmp(straddr, "::") != 0) {
16587 goto bad;
16589 } else {
16590 if (strcmp(straddr, "::1") != 0) {
16591 goto bad;
16594 inet6++;
16595 break;
16596 case AF_UNSPEC:
16597 goto bad;
16598 break;
16599 default:
16600 /* another family support? */
16601 break;
16606 if (!(inet4 == 0 || inet4 == 2))
16607 goto bad;
16608 if (!(inet6 == 0 || inet6 == 2))
16609 goto bad;
16611 if (aitop)
16612 freeaddrinfo(aitop);
16613 exit(0);
16615 bad:
16616 if (aitop)
16617 freeaddrinfo(aitop);
16618 exit(1);
16621 _ACEOF
16622 rm -f conftest$ac_exeext
16623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16624 (eval $ac_link) 2>&5
16625 ac_status=$?
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16629 (eval $ac_try) 2>&5
16630 ac_status=$?
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); }; }; then
16633 echo "$as_me:$LINENO: result: good" >&5
16634 echo "${ECHO_T}good" >&6
16635 buggygetaddrinfo=no
16636 else
16637 echo "$as_me: program exited with status $ac_status" >&5
16638 echo "$as_me: failed program was:" >&5
16639 sed 's/^/| /' conftest.$ac_ext >&5
16641 ( exit $ac_status )
16642 echo "$as_me:$LINENO: result: buggy" >&5
16643 echo "${ECHO_T}buggy" >&6
16644 buggygetaddrinfo=yes
16646 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16648 else
16649 echo "$as_me: failed program was:" >&5
16650 sed 's/^/| /' conftest.$ac_ext >&5
16653 echo "$as_me:$LINENO: result: no" >&5
16654 echo "${ECHO_T}no" >&6
16655 buggygetaddrinfo=yes
16658 rm -f conftest.err conftest.$ac_objext \
16659 conftest$ac_exeext conftest.$ac_ext
16661 if test "$buggygetaddrinfo" = "yes"; then
16662 if test "$ipv6" = "yes"; then
16663 echo 'Fatal: You must get working getaddrinfo() function.'
16664 echo ' or you can specify "--disable-ipv6"'.
16665 exit 1
16667 else
16669 cat >>confdefs.h <<\_ACEOF
16670 #define HAVE_GETADDRINFO 1
16671 _ACEOF
16675 for ac_func in getnameinfo
16677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16678 echo "$as_me:$LINENO: checking for $ac_func" >&5
16679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16680 if eval "test \"\${$as_ac_var+set}\" = set"; then
16681 echo $ECHO_N "(cached) $ECHO_C" >&6
16682 else
16683 cat >conftest.$ac_ext <<_ACEOF
16684 /* confdefs.h. */
16685 _ACEOF
16686 cat confdefs.h >>conftest.$ac_ext
16687 cat >>conftest.$ac_ext <<_ACEOF
16688 /* end confdefs.h. */
16689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16691 #define $ac_func innocuous_$ac_func
16693 /* System header to define __stub macros and hopefully few prototypes,
16694 which can conflict with char $ac_func (); below.
16695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16696 <limits.h> exists even on freestanding compilers. */
16698 #ifdef __STDC__
16699 # include <limits.h>
16700 #else
16701 # include <assert.h>
16702 #endif
16704 #undef $ac_func
16706 /* Override any gcc2 internal prototype to avoid an error. */
16707 #ifdef __cplusplus
16708 extern "C"
16710 #endif
16711 /* We use char because int might match the return type of a gcc2
16712 builtin and then its argument prototype would still apply. */
16713 char $ac_func ();
16714 /* The GNU C library defines this for functions which it implements
16715 to always fail with ENOSYS. Some functions are actually named
16716 something starting with __ and the normal name is an alias. */
16717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16718 choke me
16719 #else
16720 char (*f) () = $ac_func;
16721 #endif
16722 #ifdef __cplusplus
16724 #endif
16727 main ()
16729 return f != $ac_func;
16731 return 0;
16733 _ACEOF
16734 rm -f conftest.$ac_objext conftest$ac_exeext
16735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16736 (eval $ac_link) 2>conftest.er1
16737 ac_status=$?
16738 grep -v '^ *+' conftest.er1 >conftest.err
16739 rm -f conftest.er1
16740 cat conftest.err >&5
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); } &&
16743 { ac_try='test -z "$ac_c_werror_flag"
16744 || test ! -s conftest.err'
16745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16746 (eval $ac_try) 2>&5
16747 ac_status=$?
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); }; } &&
16750 { ac_try='test -s conftest$ac_exeext'
16751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16752 (eval $ac_try) 2>&5
16753 ac_status=$?
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); }; }; then
16756 eval "$as_ac_var=yes"
16757 else
16758 echo "$as_me: failed program was:" >&5
16759 sed 's/^/| /' conftest.$ac_ext >&5
16761 eval "$as_ac_var=no"
16763 rm -f conftest.err conftest.$ac_objext \
16764 conftest$ac_exeext conftest.$ac_ext
16766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16767 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16768 if test `eval echo '${'$as_ac_var'}'` = yes; then
16769 cat >>confdefs.h <<_ACEOF
16770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16771 _ACEOF
16774 done
16777 # checks for structures
16778 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16779 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
16780 if test "${ac_cv_header_time+set}" = set; then
16781 echo $ECHO_N "(cached) $ECHO_C" >&6
16782 else
16783 cat >conftest.$ac_ext <<_ACEOF
16784 /* confdefs.h. */
16785 _ACEOF
16786 cat confdefs.h >>conftest.$ac_ext
16787 cat >>conftest.$ac_ext <<_ACEOF
16788 /* end confdefs.h. */
16789 #include <sys/types.h>
16790 #include <sys/time.h>
16791 #include <time.h>
16794 main ()
16796 if ((struct tm *) 0)
16797 return 0;
16799 return 0;
16801 _ACEOF
16802 rm -f conftest.$ac_objext
16803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16804 (eval $ac_compile) 2>conftest.er1
16805 ac_status=$?
16806 grep -v '^ *+' conftest.er1 >conftest.err
16807 rm -f conftest.er1
16808 cat conftest.err >&5
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); } &&
16811 { ac_try='test -z "$ac_c_werror_flag"
16812 || test ! -s conftest.err'
16813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814 (eval $ac_try) 2>&5
16815 ac_status=$?
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); }; } &&
16818 { ac_try='test -s conftest.$ac_objext'
16819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16820 (eval $ac_try) 2>&5
16821 ac_status=$?
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); }; }; then
16824 ac_cv_header_time=yes
16825 else
16826 echo "$as_me: failed program was:" >&5
16827 sed 's/^/| /' conftest.$ac_ext >&5
16829 ac_cv_header_time=no
16831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16833 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16834 echo "${ECHO_T}$ac_cv_header_time" >&6
16835 if test $ac_cv_header_time = yes; then
16837 cat >>confdefs.h <<\_ACEOF
16838 #define TIME_WITH_SYS_TIME 1
16839 _ACEOF
16843 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16844 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16845 if test "${ac_cv_struct_tm+set}" = set; then
16846 echo $ECHO_N "(cached) $ECHO_C" >&6
16847 else
16848 cat >conftest.$ac_ext <<_ACEOF
16849 /* confdefs.h. */
16850 _ACEOF
16851 cat confdefs.h >>conftest.$ac_ext
16852 cat >>conftest.$ac_ext <<_ACEOF
16853 /* end confdefs.h. */
16854 #include <sys/types.h>
16855 #include <time.h>
16858 main ()
16860 struct tm *tp; tp->tm_sec;
16862 return 0;
16864 _ACEOF
16865 rm -f conftest.$ac_objext
16866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16867 (eval $ac_compile) 2>conftest.er1
16868 ac_status=$?
16869 grep -v '^ *+' conftest.er1 >conftest.err
16870 rm -f conftest.er1
16871 cat conftest.err >&5
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); } &&
16874 { ac_try='test -z "$ac_c_werror_flag"
16875 || test ! -s conftest.err'
16876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16877 (eval $ac_try) 2>&5
16878 ac_status=$?
16879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); }; } &&
16881 { ac_try='test -s conftest.$ac_objext'
16882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16883 (eval $ac_try) 2>&5
16884 ac_status=$?
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); }; }; then
16887 ac_cv_struct_tm=time.h
16888 else
16889 echo "$as_me: failed program was:" >&5
16890 sed 's/^/| /' conftest.$ac_ext >&5
16892 ac_cv_struct_tm=sys/time.h
16894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16896 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16897 echo "${ECHO_T}$ac_cv_struct_tm" >&6
16898 if test $ac_cv_struct_tm = sys/time.h; then
16900 cat >>confdefs.h <<\_ACEOF
16901 #define TM_IN_SYS_TIME 1
16902 _ACEOF
16906 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16907 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16908 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16909 echo $ECHO_N "(cached) $ECHO_C" >&6
16910 else
16911 cat >conftest.$ac_ext <<_ACEOF
16912 /* confdefs.h. */
16913 _ACEOF
16914 cat confdefs.h >>conftest.$ac_ext
16915 cat >>conftest.$ac_ext <<_ACEOF
16916 /* end confdefs.h. */
16917 #include <sys/types.h>
16918 #include <$ac_cv_struct_tm>
16922 main ()
16924 static struct tm ac_aggr;
16925 if (ac_aggr.tm_zone)
16926 return 0;
16928 return 0;
16930 _ACEOF
16931 rm -f conftest.$ac_objext
16932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16933 (eval $ac_compile) 2>conftest.er1
16934 ac_status=$?
16935 grep -v '^ *+' conftest.er1 >conftest.err
16936 rm -f conftest.er1
16937 cat conftest.err >&5
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); } &&
16940 { ac_try='test -z "$ac_c_werror_flag"
16941 || test ! -s conftest.err'
16942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16943 (eval $ac_try) 2>&5
16944 ac_status=$?
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); }; } &&
16947 { ac_try='test -s conftest.$ac_objext'
16948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949 (eval $ac_try) 2>&5
16950 ac_status=$?
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; }; then
16953 ac_cv_member_struct_tm_tm_zone=yes
16954 else
16955 echo "$as_me: failed program was:" >&5
16956 sed 's/^/| /' conftest.$ac_ext >&5
16958 cat >conftest.$ac_ext <<_ACEOF
16959 /* confdefs.h. */
16960 _ACEOF
16961 cat confdefs.h >>conftest.$ac_ext
16962 cat >>conftest.$ac_ext <<_ACEOF
16963 /* end confdefs.h. */
16964 #include <sys/types.h>
16965 #include <$ac_cv_struct_tm>
16969 main ()
16971 static struct tm ac_aggr;
16972 if (sizeof ac_aggr.tm_zone)
16973 return 0;
16975 return 0;
16977 _ACEOF
16978 rm -f conftest.$ac_objext
16979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16980 (eval $ac_compile) 2>conftest.er1
16981 ac_status=$?
16982 grep -v '^ *+' conftest.er1 >conftest.err
16983 rm -f conftest.er1
16984 cat conftest.err >&5
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); } &&
16987 { ac_try='test -z "$ac_c_werror_flag"
16988 || test ! -s conftest.err'
16989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990 (eval $ac_try) 2>&5
16991 ac_status=$?
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; } &&
16994 { ac_try='test -s conftest.$ac_objext'
16995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996 (eval $ac_try) 2>&5
16997 ac_status=$?
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }; }; then
17000 ac_cv_member_struct_tm_tm_zone=yes
17001 else
17002 echo "$as_me: failed program was:" >&5
17003 sed 's/^/| /' conftest.$ac_ext >&5
17005 ac_cv_member_struct_tm_tm_zone=no
17007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17011 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
17012 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
17013 if test $ac_cv_member_struct_tm_tm_zone = yes; then
17015 cat >>confdefs.h <<_ACEOF
17016 #define HAVE_STRUCT_TM_TM_ZONE 1
17017 _ACEOF
17022 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17024 cat >>confdefs.h <<\_ACEOF
17025 #define HAVE_TM_ZONE 1
17026 _ACEOF
17028 else
17029 echo "$as_me:$LINENO: checking for tzname" >&5
17030 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
17031 if test "${ac_cv_var_tzname+set}" = set; then
17032 echo $ECHO_N "(cached) $ECHO_C" >&6
17033 else
17034 cat >conftest.$ac_ext <<_ACEOF
17035 /* confdefs.h. */
17036 _ACEOF
17037 cat confdefs.h >>conftest.$ac_ext
17038 cat >>conftest.$ac_ext <<_ACEOF
17039 /* end confdefs.h. */
17040 #include <time.h>
17041 #ifndef tzname /* For SGI. */
17042 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
17043 #endif
17046 main ()
17048 atoi(*tzname);
17050 return 0;
17052 _ACEOF
17053 rm -f conftest.$ac_objext conftest$ac_exeext
17054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17055 (eval $ac_link) 2>conftest.er1
17056 ac_status=$?
17057 grep -v '^ *+' conftest.er1 >conftest.err
17058 rm -f conftest.er1
17059 cat conftest.err >&5
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); } &&
17062 { ac_try='test -z "$ac_c_werror_flag"
17063 || test ! -s conftest.err'
17064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17065 (eval $ac_try) 2>&5
17066 ac_status=$?
17067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068 (exit $ac_status); }; } &&
17069 { ac_try='test -s conftest$ac_exeext'
17070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17071 (eval $ac_try) 2>&5
17072 ac_status=$?
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); }; }; then
17075 ac_cv_var_tzname=yes
17076 else
17077 echo "$as_me: failed program was:" >&5
17078 sed 's/^/| /' conftest.$ac_ext >&5
17080 ac_cv_var_tzname=no
17082 rm -f conftest.err conftest.$ac_objext \
17083 conftest$ac_exeext conftest.$ac_ext
17085 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17086 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17087 if test $ac_cv_var_tzname = yes; then
17089 cat >>confdefs.h <<\_ACEOF
17090 #define HAVE_TZNAME 1
17091 _ACEOF
17096 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
17097 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
17098 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
17099 echo $ECHO_N "(cached) $ECHO_C" >&6
17100 else
17101 cat >conftest.$ac_ext <<_ACEOF
17102 /* confdefs.h. */
17103 _ACEOF
17104 cat confdefs.h >>conftest.$ac_ext
17105 cat >>conftest.$ac_ext <<_ACEOF
17106 /* end confdefs.h. */
17107 $ac_includes_default
17109 main ()
17111 static struct stat ac_aggr;
17112 if (ac_aggr.st_rdev)
17113 return 0;
17115 return 0;
17117 _ACEOF
17118 rm -f conftest.$ac_objext
17119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17120 (eval $ac_compile) 2>conftest.er1
17121 ac_status=$?
17122 grep -v '^ *+' conftest.er1 >conftest.err
17123 rm -f conftest.er1
17124 cat conftest.err >&5
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); } &&
17127 { ac_try='test -z "$ac_c_werror_flag"
17128 || test ! -s conftest.err'
17129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17130 (eval $ac_try) 2>&5
17131 ac_status=$?
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); }; } &&
17134 { ac_try='test -s conftest.$ac_objext'
17135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17136 (eval $ac_try) 2>&5
17137 ac_status=$?
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); }; }; then
17140 ac_cv_member_struct_stat_st_rdev=yes
17141 else
17142 echo "$as_me: failed program was:" >&5
17143 sed 's/^/| /' conftest.$ac_ext >&5
17145 cat >conftest.$ac_ext <<_ACEOF
17146 /* confdefs.h. */
17147 _ACEOF
17148 cat confdefs.h >>conftest.$ac_ext
17149 cat >>conftest.$ac_ext <<_ACEOF
17150 /* end confdefs.h. */
17151 $ac_includes_default
17153 main ()
17155 static struct stat ac_aggr;
17156 if (sizeof ac_aggr.st_rdev)
17157 return 0;
17159 return 0;
17161 _ACEOF
17162 rm -f conftest.$ac_objext
17163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17164 (eval $ac_compile) 2>conftest.er1
17165 ac_status=$?
17166 grep -v '^ *+' conftest.er1 >conftest.err
17167 rm -f conftest.er1
17168 cat conftest.err >&5
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); } &&
17171 { ac_try='test -z "$ac_c_werror_flag"
17172 || test ! -s conftest.err'
17173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17174 (eval $ac_try) 2>&5
17175 ac_status=$?
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); }; } &&
17178 { ac_try='test -s conftest.$ac_objext'
17179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17180 (eval $ac_try) 2>&5
17181 ac_status=$?
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); }; }; then
17184 ac_cv_member_struct_stat_st_rdev=yes
17185 else
17186 echo "$as_me: failed program was:" >&5
17187 sed 's/^/| /' conftest.$ac_ext >&5
17189 ac_cv_member_struct_stat_st_rdev=no
17191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17195 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
17196 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
17197 if test $ac_cv_member_struct_stat_st_rdev = yes; then
17199 cat >>confdefs.h <<_ACEOF
17200 #define HAVE_STRUCT_STAT_ST_RDEV 1
17201 _ACEOF
17206 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17207 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
17208 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17209 echo $ECHO_N "(cached) $ECHO_C" >&6
17210 else
17211 cat >conftest.$ac_ext <<_ACEOF
17212 /* confdefs.h. */
17213 _ACEOF
17214 cat confdefs.h >>conftest.$ac_ext
17215 cat >>conftest.$ac_ext <<_ACEOF
17216 /* end confdefs.h. */
17217 $ac_includes_default
17219 main ()
17221 static struct stat ac_aggr;
17222 if (ac_aggr.st_blksize)
17223 return 0;
17225 return 0;
17227 _ACEOF
17228 rm -f conftest.$ac_objext
17229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17230 (eval $ac_compile) 2>conftest.er1
17231 ac_status=$?
17232 grep -v '^ *+' conftest.er1 >conftest.err
17233 rm -f conftest.er1
17234 cat conftest.err >&5
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); } &&
17237 { ac_try='test -z "$ac_c_werror_flag"
17238 || test ! -s conftest.err'
17239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17240 (eval $ac_try) 2>&5
17241 ac_status=$?
17242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); }; } &&
17244 { ac_try='test -s conftest.$ac_objext'
17245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17246 (eval $ac_try) 2>&5
17247 ac_status=$?
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); }; }; then
17250 ac_cv_member_struct_stat_st_blksize=yes
17251 else
17252 echo "$as_me: failed program was:" >&5
17253 sed 's/^/| /' conftest.$ac_ext >&5
17255 cat >conftest.$ac_ext <<_ACEOF
17256 /* confdefs.h. */
17257 _ACEOF
17258 cat confdefs.h >>conftest.$ac_ext
17259 cat >>conftest.$ac_ext <<_ACEOF
17260 /* end confdefs.h. */
17261 $ac_includes_default
17263 main ()
17265 static struct stat ac_aggr;
17266 if (sizeof ac_aggr.st_blksize)
17267 return 0;
17269 return 0;
17271 _ACEOF
17272 rm -f conftest.$ac_objext
17273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17274 (eval $ac_compile) 2>conftest.er1
17275 ac_status=$?
17276 grep -v '^ *+' conftest.er1 >conftest.err
17277 rm -f conftest.er1
17278 cat conftest.err >&5
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); } &&
17281 { ac_try='test -z "$ac_c_werror_flag"
17282 || test ! -s conftest.err'
17283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17284 (eval $ac_try) 2>&5
17285 ac_status=$?
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); }; } &&
17288 { ac_try='test -s conftest.$ac_objext'
17289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17290 (eval $ac_try) 2>&5
17291 ac_status=$?
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); }; }; then
17294 ac_cv_member_struct_stat_st_blksize=yes
17295 else
17296 echo "$as_me: failed program was:" >&5
17297 sed 's/^/| /' conftest.$ac_ext >&5
17299 ac_cv_member_struct_stat_st_blksize=no
17301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17305 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17306 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
17307 if test $ac_cv_member_struct_stat_st_blksize = yes; then
17309 cat >>confdefs.h <<_ACEOF
17310 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17311 _ACEOF
17316 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
17317 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
17318 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
17319 echo $ECHO_N "(cached) $ECHO_C" >&6
17320 else
17321 cat >conftest.$ac_ext <<_ACEOF
17322 /* confdefs.h. */
17323 _ACEOF
17324 cat confdefs.h >>conftest.$ac_ext
17325 cat >>conftest.$ac_ext <<_ACEOF
17326 /* end confdefs.h. */
17327 $ac_includes_default
17329 main ()
17331 static struct stat ac_aggr;
17332 if (ac_aggr.st_flags)
17333 return 0;
17335 return 0;
17337 _ACEOF
17338 rm -f conftest.$ac_objext
17339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17340 (eval $ac_compile) 2>conftest.er1
17341 ac_status=$?
17342 grep -v '^ *+' conftest.er1 >conftest.err
17343 rm -f conftest.er1
17344 cat conftest.err >&5
17345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346 (exit $ac_status); } &&
17347 { ac_try='test -z "$ac_c_werror_flag"
17348 || test ! -s conftest.err'
17349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17350 (eval $ac_try) 2>&5
17351 ac_status=$?
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); }; } &&
17354 { ac_try='test -s conftest.$ac_objext'
17355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17356 (eval $ac_try) 2>&5
17357 ac_status=$?
17358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359 (exit $ac_status); }; }; then
17360 ac_cv_member_struct_stat_st_flags=yes
17361 else
17362 echo "$as_me: failed program was:" >&5
17363 sed 's/^/| /' conftest.$ac_ext >&5
17365 cat >conftest.$ac_ext <<_ACEOF
17366 /* confdefs.h. */
17367 _ACEOF
17368 cat confdefs.h >>conftest.$ac_ext
17369 cat >>conftest.$ac_ext <<_ACEOF
17370 /* end confdefs.h. */
17371 $ac_includes_default
17373 main ()
17375 static struct stat ac_aggr;
17376 if (sizeof ac_aggr.st_flags)
17377 return 0;
17379 return 0;
17381 _ACEOF
17382 rm -f conftest.$ac_objext
17383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17384 (eval $ac_compile) 2>conftest.er1
17385 ac_status=$?
17386 grep -v '^ *+' conftest.er1 >conftest.err
17387 rm -f conftest.er1
17388 cat conftest.err >&5
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); } &&
17391 { ac_try='test -z "$ac_c_werror_flag"
17392 || test ! -s conftest.err'
17393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17394 (eval $ac_try) 2>&5
17395 ac_status=$?
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); }; } &&
17398 { ac_try='test -s conftest.$ac_objext'
17399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17400 (eval $ac_try) 2>&5
17401 ac_status=$?
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); }; }; then
17404 ac_cv_member_struct_stat_st_flags=yes
17405 else
17406 echo "$as_me: failed program was:" >&5
17407 sed 's/^/| /' conftest.$ac_ext >&5
17409 ac_cv_member_struct_stat_st_flags=no
17411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17415 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
17416 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
17417 if test $ac_cv_member_struct_stat_st_flags = yes; then
17419 cat >>confdefs.h <<_ACEOF
17420 #define HAVE_STRUCT_STAT_ST_FLAGS 1
17421 _ACEOF
17426 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
17427 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
17428 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
17429 echo $ECHO_N "(cached) $ECHO_C" >&6
17430 else
17431 cat >conftest.$ac_ext <<_ACEOF
17432 /* confdefs.h. */
17433 _ACEOF
17434 cat confdefs.h >>conftest.$ac_ext
17435 cat >>conftest.$ac_ext <<_ACEOF
17436 /* end confdefs.h. */
17437 $ac_includes_default
17439 main ()
17441 static struct stat ac_aggr;
17442 if (ac_aggr.st_gen)
17443 return 0;
17445 return 0;
17447 _ACEOF
17448 rm -f conftest.$ac_objext
17449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17450 (eval $ac_compile) 2>conftest.er1
17451 ac_status=$?
17452 grep -v '^ *+' conftest.er1 >conftest.err
17453 rm -f conftest.er1
17454 cat conftest.err >&5
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); } &&
17457 { ac_try='test -z "$ac_c_werror_flag"
17458 || test ! -s conftest.err'
17459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17460 (eval $ac_try) 2>&5
17461 ac_status=$?
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); }; } &&
17464 { ac_try='test -s conftest.$ac_objext'
17465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17466 (eval $ac_try) 2>&5
17467 ac_status=$?
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); }; }; then
17470 ac_cv_member_struct_stat_st_gen=yes
17471 else
17472 echo "$as_me: failed program was:" >&5
17473 sed 's/^/| /' conftest.$ac_ext >&5
17475 cat >conftest.$ac_ext <<_ACEOF
17476 /* confdefs.h. */
17477 _ACEOF
17478 cat confdefs.h >>conftest.$ac_ext
17479 cat >>conftest.$ac_ext <<_ACEOF
17480 /* end confdefs.h. */
17481 $ac_includes_default
17483 main ()
17485 static struct stat ac_aggr;
17486 if (sizeof ac_aggr.st_gen)
17487 return 0;
17489 return 0;
17491 _ACEOF
17492 rm -f conftest.$ac_objext
17493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17494 (eval $ac_compile) 2>conftest.er1
17495 ac_status=$?
17496 grep -v '^ *+' conftest.er1 >conftest.err
17497 rm -f conftest.er1
17498 cat conftest.err >&5
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); } &&
17501 { ac_try='test -z "$ac_c_werror_flag"
17502 || test ! -s conftest.err'
17503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17504 (eval $ac_try) 2>&5
17505 ac_status=$?
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); }; } &&
17508 { ac_try='test -s conftest.$ac_objext'
17509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17510 (eval $ac_try) 2>&5
17511 ac_status=$?
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; }; then
17514 ac_cv_member_struct_stat_st_gen=yes
17515 else
17516 echo "$as_me: failed program was:" >&5
17517 sed 's/^/| /' conftest.$ac_ext >&5
17519 ac_cv_member_struct_stat_st_gen=no
17521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17525 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
17526 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
17527 if test $ac_cv_member_struct_stat_st_gen = yes; then
17529 cat >>confdefs.h <<_ACEOF
17530 #define HAVE_STRUCT_STAT_ST_GEN 1
17531 _ACEOF
17536 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
17537 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
17538 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
17539 echo $ECHO_N "(cached) $ECHO_C" >&6
17540 else
17541 cat >conftest.$ac_ext <<_ACEOF
17542 /* confdefs.h. */
17543 _ACEOF
17544 cat confdefs.h >>conftest.$ac_ext
17545 cat >>conftest.$ac_ext <<_ACEOF
17546 /* end confdefs.h. */
17547 $ac_includes_default
17549 main ()
17551 static struct stat ac_aggr;
17552 if (ac_aggr.st_birthtime)
17553 return 0;
17555 return 0;
17557 _ACEOF
17558 rm -f conftest.$ac_objext
17559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17560 (eval $ac_compile) 2>conftest.er1
17561 ac_status=$?
17562 grep -v '^ *+' conftest.er1 >conftest.err
17563 rm -f conftest.er1
17564 cat conftest.err >&5
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); } &&
17567 { ac_try='test -z "$ac_c_werror_flag"
17568 || test ! -s conftest.err'
17569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17570 (eval $ac_try) 2>&5
17571 ac_status=$?
17572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); }; } &&
17574 { ac_try='test -s conftest.$ac_objext'
17575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17576 (eval $ac_try) 2>&5
17577 ac_status=$?
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); }; }; then
17580 ac_cv_member_struct_stat_st_birthtime=yes
17581 else
17582 echo "$as_me: failed program was:" >&5
17583 sed 's/^/| /' conftest.$ac_ext >&5
17585 cat >conftest.$ac_ext <<_ACEOF
17586 /* confdefs.h. */
17587 _ACEOF
17588 cat confdefs.h >>conftest.$ac_ext
17589 cat >>conftest.$ac_ext <<_ACEOF
17590 /* end confdefs.h. */
17591 $ac_includes_default
17593 main ()
17595 static struct stat ac_aggr;
17596 if (sizeof ac_aggr.st_birthtime)
17597 return 0;
17599 return 0;
17601 _ACEOF
17602 rm -f conftest.$ac_objext
17603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17604 (eval $ac_compile) 2>conftest.er1
17605 ac_status=$?
17606 grep -v '^ *+' conftest.er1 >conftest.err
17607 rm -f conftest.er1
17608 cat conftest.err >&5
17609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); } &&
17611 { ac_try='test -z "$ac_c_werror_flag"
17612 || test ! -s conftest.err'
17613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17614 (eval $ac_try) 2>&5
17615 ac_status=$?
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); }; } &&
17618 { ac_try='test -s conftest.$ac_objext'
17619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17620 (eval $ac_try) 2>&5
17621 ac_status=$?
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); }; }; then
17624 ac_cv_member_struct_stat_st_birthtime=yes
17625 else
17626 echo "$as_me: failed program was:" >&5
17627 sed 's/^/| /' conftest.$ac_ext >&5
17629 ac_cv_member_struct_stat_st_birthtime=no
17631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17635 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
17636 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
17637 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
17639 cat >>confdefs.h <<_ACEOF
17640 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
17641 _ACEOF
17646 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17647 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
17648 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17649 echo $ECHO_N "(cached) $ECHO_C" >&6
17650 else
17651 cat >conftest.$ac_ext <<_ACEOF
17652 /* confdefs.h. */
17653 _ACEOF
17654 cat confdefs.h >>conftest.$ac_ext
17655 cat >>conftest.$ac_ext <<_ACEOF
17656 /* end confdefs.h. */
17657 $ac_includes_default
17659 main ()
17661 static struct stat ac_aggr;
17662 if (ac_aggr.st_blocks)
17663 return 0;
17665 return 0;
17667 _ACEOF
17668 rm -f conftest.$ac_objext
17669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17670 (eval $ac_compile) 2>conftest.er1
17671 ac_status=$?
17672 grep -v '^ *+' conftest.er1 >conftest.err
17673 rm -f conftest.er1
17674 cat conftest.err >&5
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); } &&
17677 { ac_try='test -z "$ac_c_werror_flag"
17678 || test ! -s conftest.err'
17679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17680 (eval $ac_try) 2>&5
17681 ac_status=$?
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); }; } &&
17684 { ac_try='test -s conftest.$ac_objext'
17685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17686 (eval $ac_try) 2>&5
17687 ac_status=$?
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); }; }; then
17690 ac_cv_member_struct_stat_st_blocks=yes
17691 else
17692 echo "$as_me: failed program was:" >&5
17693 sed 's/^/| /' conftest.$ac_ext >&5
17695 cat >conftest.$ac_ext <<_ACEOF
17696 /* confdefs.h. */
17697 _ACEOF
17698 cat confdefs.h >>conftest.$ac_ext
17699 cat >>conftest.$ac_ext <<_ACEOF
17700 /* end confdefs.h. */
17701 $ac_includes_default
17703 main ()
17705 static struct stat ac_aggr;
17706 if (sizeof ac_aggr.st_blocks)
17707 return 0;
17709 return 0;
17711 _ACEOF
17712 rm -f conftest.$ac_objext
17713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17714 (eval $ac_compile) 2>conftest.er1
17715 ac_status=$?
17716 grep -v '^ *+' conftest.er1 >conftest.err
17717 rm -f conftest.er1
17718 cat conftest.err >&5
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); } &&
17721 { ac_try='test -z "$ac_c_werror_flag"
17722 || test ! -s conftest.err'
17723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724 (eval $ac_try) 2>&5
17725 ac_status=$?
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); }; } &&
17728 { ac_try='test -s conftest.$ac_objext'
17729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730 (eval $ac_try) 2>&5
17731 ac_status=$?
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); }; }; then
17734 ac_cv_member_struct_stat_st_blocks=yes
17735 else
17736 echo "$as_me: failed program was:" >&5
17737 sed 's/^/| /' conftest.$ac_ext >&5
17739 ac_cv_member_struct_stat_st_blocks=no
17741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17745 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17746 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
17747 if test $ac_cv_member_struct_stat_st_blocks = yes; then
17749 cat >>confdefs.h <<_ACEOF
17750 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
17751 _ACEOF
17754 cat >>confdefs.h <<\_ACEOF
17755 #define HAVE_ST_BLOCKS 1
17756 _ACEOF
17758 else
17759 case $LIBOBJS in
17760 "fileblocks.$ac_objext" | \
17761 *" fileblocks.$ac_objext" | \
17762 "fileblocks.$ac_objext "* | \
17763 *" fileblocks.$ac_objext "* ) ;;
17764 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
17765 esac
17771 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
17772 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
17773 if test "${ac_cv_header_time_altzone+set}" = set; then
17774 echo $ECHO_N "(cached) $ECHO_C" >&6
17775 else
17776 cat >conftest.$ac_ext <<_ACEOF
17777 /* confdefs.h. */
17778 _ACEOF
17779 cat confdefs.h >>conftest.$ac_ext
17780 cat >>conftest.$ac_ext <<_ACEOF
17781 /* end confdefs.h. */
17782 #include <time.h>
17784 main ()
17786 return altzone;
17788 return 0;
17790 _ACEOF
17791 rm -f conftest.$ac_objext
17792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17793 (eval $ac_compile) 2>conftest.er1
17794 ac_status=$?
17795 grep -v '^ *+' conftest.er1 >conftest.err
17796 rm -f conftest.er1
17797 cat conftest.err >&5
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); } &&
17800 { ac_try='test -z "$ac_c_werror_flag"
17801 || test ! -s conftest.err'
17802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17803 (eval $ac_try) 2>&5
17804 ac_status=$?
17805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806 (exit $ac_status); }; } &&
17807 { ac_try='test -s conftest.$ac_objext'
17808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17809 (eval $ac_try) 2>&5
17810 ac_status=$?
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); }; }; then
17813 ac_cv_header_time_altzone=yes
17814 else
17815 echo "$as_me: failed program was:" >&5
17816 sed 's/^/| /' conftest.$ac_ext >&5
17818 ac_cv_header_time_altzone=no
17820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17823 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
17824 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
17825 if test $ac_cv_header_time_altzone = yes; then
17827 cat >>confdefs.h <<\_ACEOF
17828 #define HAVE_ALTZONE 1
17829 _ACEOF
17833 was_it_defined=no
17834 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
17835 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
17836 cat >conftest.$ac_ext <<_ACEOF
17837 /* confdefs.h. */
17838 _ACEOF
17839 cat confdefs.h >>conftest.$ac_ext
17840 cat >>conftest.$ac_ext <<_ACEOF
17841 /* end confdefs.h. */
17843 #include <sys/types.h>
17844 #include <sys/select.h>
17845 #include <sys/time.h>
17848 main ()
17852 return 0;
17854 _ACEOF
17855 rm -f conftest.$ac_objext
17856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17857 (eval $ac_compile) 2>conftest.er1
17858 ac_status=$?
17859 grep -v '^ *+' conftest.er1 >conftest.err
17860 rm -f conftest.er1
17861 cat conftest.err >&5
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); } &&
17864 { ac_try='test -z "$ac_c_werror_flag"
17865 || test ! -s conftest.err'
17866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17867 (eval $ac_try) 2>&5
17868 ac_status=$?
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); }; } &&
17871 { ac_try='test -s conftest.$ac_objext'
17872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17873 (eval $ac_try) 2>&5
17874 ac_status=$?
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); }; }; then
17879 cat >>confdefs.h <<\_ACEOF
17880 #define SYS_SELECT_WITH_SYS_TIME 1
17881 _ACEOF
17883 was_it_defined=yes
17885 else
17886 echo "$as_me: failed program was:" >&5
17887 sed 's/^/| /' conftest.$ac_ext >&5
17890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17891 echo "$as_me:$LINENO: result: $was_it_defined" >&5
17892 echo "${ECHO_T}$was_it_defined" >&6
17894 echo "$as_me:$LINENO: checking for addrinfo" >&5
17895 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
17896 if test "${ac_cv_struct_addrinfo+set}" = set; then
17897 echo $ECHO_N "(cached) $ECHO_C" >&6
17898 else
17899 cat >conftest.$ac_ext <<_ACEOF
17900 /* confdefs.h. */
17901 _ACEOF
17902 cat confdefs.h >>conftest.$ac_ext
17903 cat >>conftest.$ac_ext <<_ACEOF
17904 /* end confdefs.h. */
17906 # include <netdb.h>
17908 main ()
17910 struct addrinfo a
17912 return 0;
17914 _ACEOF
17915 rm -f conftest.$ac_objext
17916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17917 (eval $ac_compile) 2>conftest.er1
17918 ac_status=$?
17919 grep -v '^ *+' conftest.er1 >conftest.err
17920 rm -f conftest.er1
17921 cat conftest.err >&5
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); } &&
17924 { ac_try='test -z "$ac_c_werror_flag"
17925 || test ! -s conftest.err'
17926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17927 (eval $ac_try) 2>&5
17928 ac_status=$?
17929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); }; } &&
17931 { ac_try='test -s conftest.$ac_objext'
17932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17933 (eval $ac_try) 2>&5
17934 ac_status=$?
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); }; }; then
17937 ac_cv_struct_addrinfo=yes
17938 else
17939 echo "$as_me: failed program was:" >&5
17940 sed 's/^/| /' conftest.$ac_ext >&5
17942 ac_cv_struct_addrinfo=no
17944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17947 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
17948 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
17949 if test $ac_cv_struct_addrinfo = yes; then
17951 cat >>confdefs.h <<\_ACEOF
17952 #define HAVE_ADDRINFO 1
17953 _ACEOF
17957 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
17958 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
17959 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
17960 echo $ECHO_N "(cached) $ECHO_C" >&6
17961 else
17962 cat >conftest.$ac_ext <<_ACEOF
17963 /* confdefs.h. */
17964 _ACEOF
17965 cat confdefs.h >>conftest.$ac_ext
17966 cat >>conftest.$ac_ext <<_ACEOF
17967 /* end confdefs.h. */
17969 # include <sys/types.h>
17970 # include <sys/socket.h>
17972 main ()
17974 struct sockaddr_storage s
17976 return 0;
17978 _ACEOF
17979 rm -f conftest.$ac_objext
17980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17981 (eval $ac_compile) 2>conftest.er1
17982 ac_status=$?
17983 grep -v '^ *+' conftest.er1 >conftest.err
17984 rm -f conftest.er1
17985 cat conftest.err >&5
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); } &&
17988 { ac_try='test -z "$ac_c_werror_flag"
17989 || test ! -s conftest.err'
17990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17991 (eval $ac_try) 2>&5
17992 ac_status=$?
17993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994 (exit $ac_status); }; } &&
17995 { ac_try='test -s conftest.$ac_objext'
17996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17997 (eval $ac_try) 2>&5
17998 ac_status=$?
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); }; }; then
18001 ac_cv_struct_sockaddr_storage=yes
18002 else
18003 echo "$as_me: failed program was:" >&5
18004 sed 's/^/| /' conftest.$ac_ext >&5
18006 ac_cv_struct_sockaddr_storage=no
18008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18011 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
18012 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
18013 if test $ac_cv_struct_sockaddr_storage = yes; then
18015 cat >>confdefs.h <<\_ACEOF
18016 #define HAVE_SOCKADDR_STORAGE 1
18017 _ACEOF
18021 # checks for compiler characteristics
18024 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
18025 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
18026 if test "${ac_cv_c_char_unsigned+set}" = set; then
18027 echo $ECHO_N "(cached) $ECHO_C" >&6
18028 else
18029 cat >conftest.$ac_ext <<_ACEOF
18030 /* confdefs.h. */
18031 _ACEOF
18032 cat confdefs.h >>conftest.$ac_ext
18033 cat >>conftest.$ac_ext <<_ACEOF
18034 /* end confdefs.h. */
18035 $ac_includes_default
18037 main ()
18039 static int test_array [1 - 2 * !(((char) -1) < 0)];
18040 test_array [0] = 0
18043 return 0;
18045 _ACEOF
18046 rm -f conftest.$ac_objext
18047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18048 (eval $ac_compile) 2>conftest.er1
18049 ac_status=$?
18050 grep -v '^ *+' conftest.er1 >conftest.err
18051 rm -f conftest.er1
18052 cat conftest.err >&5
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); } &&
18055 { ac_try='test -z "$ac_c_werror_flag"
18056 || test ! -s conftest.err'
18057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18058 (eval $ac_try) 2>&5
18059 ac_status=$?
18060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); }; } &&
18062 { ac_try='test -s conftest.$ac_objext'
18063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18064 (eval $ac_try) 2>&5
18065 ac_status=$?
18066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067 (exit $ac_status); }; }; then
18068 ac_cv_c_char_unsigned=no
18069 else
18070 echo "$as_me: failed program was:" >&5
18071 sed 's/^/| /' conftest.$ac_ext >&5
18073 ac_cv_c_char_unsigned=yes
18075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18077 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
18078 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
18079 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18080 cat >>confdefs.h <<\_ACEOF
18081 #define __CHAR_UNSIGNED__ 1
18082 _ACEOF
18086 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18087 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18088 if test "${ac_cv_c_const+set}" = set; then
18089 echo $ECHO_N "(cached) $ECHO_C" >&6
18090 else
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. */
18099 main ()
18101 /* FIXME: Include the comments suggested by Paul. */
18102 #ifndef __cplusplus
18103 /* Ultrix mips cc rejects this. */
18104 typedef int charset[2];
18105 const charset x;
18106 /* SunOS 4.1.1 cc rejects this. */
18107 char const *const *ccp;
18108 char **p;
18109 /* NEC SVR4.0.2 mips cc rejects this. */
18110 struct point {int x, y;};
18111 static struct point const zero = {0,0};
18112 /* AIX XL C 1.02.0.0 rejects this.
18113 It does not let you subtract one const X* pointer from another in
18114 an arm of an if-expression whose if-part is not a constant
18115 expression */
18116 const char *g = "string";
18117 ccp = &g + (g ? g-g : 0);
18118 /* HPUX 7.0 cc rejects these. */
18119 ++ccp;
18120 p = (char**) ccp;
18121 ccp = (char const *const *) p;
18122 { /* SCO 3.2v4 cc rejects this. */
18123 char *t;
18124 char const *s = 0 ? (char *) 0 : (char const *) 0;
18126 *t++ = 0;
18128 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18129 int x[] = {25, 17};
18130 const int *foo = &x[0];
18131 ++foo;
18133 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18134 typedef const int *iptr;
18135 iptr p = 0;
18136 ++p;
18138 { /* AIX XL C 1.02.0.0 rejects this saying
18139 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18140 struct s { int j; const int *ap[3]; };
18141 struct s *b; b->j = 5;
18143 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18144 const int foo = 10;
18146 #endif
18149 return 0;
18151 _ACEOF
18152 rm -f conftest.$ac_objext
18153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18154 (eval $ac_compile) 2>conftest.er1
18155 ac_status=$?
18156 grep -v '^ *+' conftest.er1 >conftest.err
18157 rm -f conftest.er1
18158 cat conftest.err >&5
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); } &&
18161 { ac_try='test -z "$ac_c_werror_flag"
18162 || test ! -s conftest.err'
18163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18164 (eval $ac_try) 2>&5
18165 ac_status=$?
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); }; } &&
18168 { ac_try='test -s conftest.$ac_objext'
18169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18170 (eval $ac_try) 2>&5
18171 ac_status=$?
18172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173 (exit $ac_status); }; }; then
18174 ac_cv_c_const=yes
18175 else
18176 echo "$as_me: failed program was:" >&5
18177 sed 's/^/| /' conftest.$ac_ext >&5
18179 ac_cv_c_const=no
18181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18183 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18184 echo "${ECHO_T}$ac_cv_c_const" >&6
18185 if test $ac_cv_c_const = no; then
18187 cat >>confdefs.h <<\_ACEOF
18188 #define const
18189 _ACEOF
18194 works=no
18195 echo "$as_me:$LINENO: checking for working volatile" >&5
18196 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
18197 cat >conftest.$ac_ext <<_ACEOF
18198 /* confdefs.h. */
18199 _ACEOF
18200 cat confdefs.h >>conftest.$ac_ext
18201 cat >>conftest.$ac_ext <<_ACEOF
18202 /* end confdefs.h. */
18205 main ()
18207 volatile int x; x = 0;
18209 return 0;
18211 _ACEOF
18212 rm -f conftest.$ac_objext
18213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18214 (eval $ac_compile) 2>conftest.er1
18215 ac_status=$?
18216 grep -v '^ *+' conftest.er1 >conftest.err
18217 rm -f conftest.er1
18218 cat conftest.err >&5
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); } &&
18221 { ac_try='test -z "$ac_c_werror_flag"
18222 || test ! -s conftest.err'
18223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18224 (eval $ac_try) 2>&5
18225 ac_status=$?
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); }; } &&
18228 { ac_try='test -s conftest.$ac_objext'
18229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18230 (eval $ac_try) 2>&5
18231 ac_status=$?
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); }; }; then
18234 works=yes
18235 else
18236 echo "$as_me: failed program was:" >&5
18237 sed 's/^/| /' conftest.$ac_ext >&5
18240 cat >>confdefs.h <<\_ACEOF
18241 #define volatile
18242 _ACEOF
18246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18247 echo "$as_me:$LINENO: result: $works" >&5
18248 echo "${ECHO_T}$works" >&6
18250 works=no
18251 echo "$as_me:$LINENO: checking for working signed char" >&5
18252 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
18253 cat >conftest.$ac_ext <<_ACEOF
18254 /* confdefs.h. */
18255 _ACEOF
18256 cat confdefs.h >>conftest.$ac_ext
18257 cat >>conftest.$ac_ext <<_ACEOF
18258 /* end confdefs.h. */
18261 main ()
18263 signed char c;
18265 return 0;
18267 _ACEOF
18268 rm -f conftest.$ac_objext
18269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18270 (eval $ac_compile) 2>conftest.er1
18271 ac_status=$?
18272 grep -v '^ *+' conftest.er1 >conftest.err
18273 rm -f conftest.er1
18274 cat conftest.err >&5
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); } &&
18277 { ac_try='test -z "$ac_c_werror_flag"
18278 || test ! -s conftest.err'
18279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18280 (eval $ac_try) 2>&5
18281 ac_status=$?
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; } &&
18284 { ac_try='test -s conftest.$ac_objext'
18285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18286 (eval $ac_try) 2>&5
18287 ac_status=$?
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); }; }; then
18290 works=yes
18291 else
18292 echo "$as_me: failed program was:" >&5
18293 sed 's/^/| /' conftest.$ac_ext >&5
18296 cat >>confdefs.h <<\_ACEOF
18297 #define signed
18298 _ACEOF
18302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18303 echo "$as_me:$LINENO: result: $works" >&5
18304 echo "${ECHO_T}$works" >&6
18306 have_prototypes=no
18307 echo "$as_me:$LINENO: checking for prototypes" >&5
18308 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
18309 cat >conftest.$ac_ext <<_ACEOF
18310 /* confdefs.h. */
18311 _ACEOF
18312 cat confdefs.h >>conftest.$ac_ext
18313 cat >>conftest.$ac_ext <<_ACEOF
18314 /* end confdefs.h. */
18315 int foo(int x) { return 0; }
18317 main ()
18319 return foo(10);
18321 return 0;
18323 _ACEOF
18324 rm -f conftest.$ac_objext
18325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18326 (eval $ac_compile) 2>conftest.er1
18327 ac_status=$?
18328 grep -v '^ *+' conftest.er1 >conftest.err
18329 rm -f conftest.er1
18330 cat conftest.err >&5
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); } &&
18333 { ac_try='test -z "$ac_c_werror_flag"
18334 || test ! -s conftest.err'
18335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18336 (eval $ac_try) 2>&5
18337 ac_status=$?
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); }; } &&
18340 { ac_try='test -s conftest.$ac_objext'
18341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18342 (eval $ac_try) 2>&5
18343 ac_status=$?
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); }; }; then
18348 cat >>confdefs.h <<\_ACEOF
18349 #define HAVE_PROTOTYPES 1
18350 _ACEOF
18352 have_prototypes=yes
18354 else
18355 echo "$as_me: failed program was:" >&5
18356 sed 's/^/| /' conftest.$ac_ext >&5
18359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18360 echo "$as_me:$LINENO: result: $have_prototypes" >&5
18361 echo "${ECHO_T}$have_prototypes" >&6
18363 works=no
18364 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
18365 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
18366 cat >conftest.$ac_ext <<_ACEOF
18367 /* confdefs.h. */
18368 _ACEOF
18369 cat confdefs.h >>conftest.$ac_ext
18370 cat >>conftest.$ac_ext <<_ACEOF
18371 /* end confdefs.h. */
18373 #include <stdarg.h>
18374 int foo(int x, ...) {
18375 va_list va;
18376 va_start(va, x);
18377 va_arg(va, int);
18378 va_arg(va, char *);
18379 va_arg(va, double);
18380 return 0;
18384 main ()
18386 return foo(10, "", 3.14);
18388 return 0;
18390 _ACEOF
18391 rm -f conftest.$ac_objext
18392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18393 (eval $ac_compile) 2>conftest.er1
18394 ac_status=$?
18395 grep -v '^ *+' conftest.er1 >conftest.err
18396 rm -f conftest.er1
18397 cat conftest.err >&5
18398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399 (exit $ac_status); } &&
18400 { ac_try='test -z "$ac_c_werror_flag"
18401 || test ! -s conftest.err'
18402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18403 (eval $ac_try) 2>&5
18404 ac_status=$?
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); }; } &&
18407 { ac_try='test -s conftest.$ac_objext'
18408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18409 (eval $ac_try) 2>&5
18410 ac_status=$?
18411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18412 (exit $ac_status); }; }; then
18415 cat >>confdefs.h <<\_ACEOF
18416 #define HAVE_STDARG_PROTOTYPES 1
18417 _ACEOF
18419 works=yes
18421 else
18422 echo "$as_me: failed program was:" >&5
18423 sed 's/^/| /' conftest.$ac_ext >&5
18426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18427 echo "$as_me:$LINENO: result: $works" >&5
18428 echo "${ECHO_T}$works" >&6
18430 # check for socketpair
18431 echo "$as_me:$LINENO: checking for socketpair" >&5
18432 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6
18433 cat >conftest.$ac_ext <<_ACEOF
18434 /* confdefs.h. */
18435 _ACEOF
18436 cat confdefs.h >>conftest.$ac_ext
18437 cat >>conftest.$ac_ext <<_ACEOF
18438 /* end confdefs.h. */
18440 #include <sys/types.h>
18441 #include <sys/socket.h>
18444 main ()
18446 void *x=socketpair
18448 return 0;
18450 _ACEOF
18451 rm -f conftest.$ac_objext
18452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18453 (eval $ac_compile) 2>conftest.er1
18454 ac_status=$?
18455 grep -v '^ *+' conftest.er1 >conftest.err
18456 rm -f conftest.er1
18457 cat conftest.err >&5
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); } &&
18460 { ac_try='test -z "$ac_c_werror_flag"
18461 || test ! -s conftest.err'
18462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18463 (eval $ac_try) 2>&5
18464 ac_status=$?
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); }; } &&
18467 { ac_try='test -s conftest.$ac_objext'
18468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18469 (eval $ac_try) 2>&5
18470 ac_status=$?
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); }; }; then
18474 cat >>confdefs.h <<\_ACEOF
18475 #define HAVE_SOCKETPAIR 1
18476 _ACEOF
18478 echo "$as_me:$LINENO: result: yes" >&5
18479 echo "${ECHO_T}yes" >&6
18480 else
18481 echo "$as_me: failed program was:" >&5
18482 sed 's/^/| /' conftest.$ac_ext >&5
18484 echo "$as_me:$LINENO: result: no" >&5
18485 echo "${ECHO_T}no" >&6
18488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18490 # check if sockaddr has sa_len member
18491 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
18492 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
18493 cat >conftest.$ac_ext <<_ACEOF
18494 /* confdefs.h. */
18495 _ACEOF
18496 cat confdefs.h >>conftest.$ac_ext
18497 cat >>conftest.$ac_ext <<_ACEOF
18498 /* end confdefs.h. */
18499 #include <sys/types.h>
18500 #include <sys/socket.h>
18502 main ()
18504 struct sockaddr x;
18505 x.sa_len = 0;
18507 return 0;
18509 _ACEOF
18510 rm -f conftest.$ac_objext
18511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18512 (eval $ac_compile) 2>conftest.er1
18513 ac_status=$?
18514 grep -v '^ *+' conftest.er1 >conftest.err
18515 rm -f conftest.er1
18516 cat conftest.err >&5
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); } &&
18519 { ac_try='test -z "$ac_c_werror_flag"
18520 || test ! -s conftest.err'
18521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18522 (eval $ac_try) 2>&5
18523 ac_status=$?
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); }; } &&
18526 { ac_try='test -s conftest.$ac_objext'
18527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18528 (eval $ac_try) 2>&5
18529 ac_status=$?
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); }; }; then
18532 echo "$as_me:$LINENO: result: yes" >&5
18533 echo "${ECHO_T}yes" >&6
18535 cat >>confdefs.h <<\_ACEOF
18536 #define HAVE_SOCKADDR_SA_LEN 1
18537 _ACEOF
18539 else
18540 echo "$as_me: failed program was:" >&5
18541 sed 's/^/| /' conftest.$ac_ext >&5
18543 echo "$as_me:$LINENO: result: no" >&5
18544 echo "${ECHO_T}no" >&6
18546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18548 va_list_is_array=no
18549 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
18550 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
18551 cat >conftest.$ac_ext <<_ACEOF
18552 /* confdefs.h. */
18553 _ACEOF
18554 cat confdefs.h >>conftest.$ac_ext
18555 cat >>conftest.$ac_ext <<_ACEOF
18556 /* end confdefs.h. */
18558 #ifdef HAVE_STDARG_PROTOTYPES
18559 #include <stdarg.h>
18560 #else
18561 #include <varargs.h>
18562 #endif
18565 main ()
18567 va_list list1, list2; list1 = list2;
18569 return 0;
18571 _ACEOF
18572 rm -f conftest.$ac_objext
18573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18574 (eval $ac_compile) 2>conftest.er1
18575 ac_status=$?
18576 grep -v '^ *+' conftest.er1 >conftest.err
18577 rm -f conftest.er1
18578 cat conftest.err >&5
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); } &&
18581 { ac_try='test -z "$ac_c_werror_flag"
18582 || test ! -s conftest.err'
18583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18584 (eval $ac_try) 2>&5
18585 ac_status=$?
18586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587 (exit $ac_status); }; } &&
18588 { ac_try='test -s conftest.$ac_objext'
18589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18590 (eval $ac_try) 2>&5
18591 ac_status=$?
18592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593 (exit $ac_status); }; }; then
18595 else
18596 echo "$as_me: failed program was:" >&5
18597 sed 's/^/| /' conftest.$ac_ext >&5
18601 cat >>confdefs.h <<\_ACEOF
18602 #define VA_LIST_IS_ARRAY 1
18603 _ACEOF
18605 va_list_is_array=yes
18608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18609 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
18610 echo "${ECHO_T}$va_list_is_array" >&6
18612 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
18616 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18617 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18618 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18619 echo $ECHO_N "(cached) $ECHO_C" >&6
18620 else
18621 cat >conftest.$ac_ext <<_ACEOF
18622 /* confdefs.h. */
18623 _ACEOF
18624 cat confdefs.h >>conftest.$ac_ext
18625 cat >>conftest.$ac_ext <<_ACEOF
18626 /* end confdefs.h. */
18627 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18629 #define gethostbyname_r innocuous_gethostbyname_r
18631 /* System header to define __stub macros and hopefully few prototypes,
18632 which can conflict with char gethostbyname_r (); below.
18633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18634 <limits.h> exists even on freestanding compilers. */
18636 #ifdef __STDC__
18637 # include <limits.h>
18638 #else
18639 # include <assert.h>
18640 #endif
18642 #undef gethostbyname_r
18644 /* Override any gcc2 internal prototype to avoid an error. */
18645 #ifdef __cplusplus
18646 extern "C"
18648 #endif
18649 /* We use char because int might match the return type of a gcc2
18650 builtin and then its argument prototype would still apply. */
18651 char gethostbyname_r ();
18652 /* The GNU C library defines this for functions which it implements
18653 to always fail with ENOSYS. Some functions are actually named
18654 something starting with __ and the normal name is an alias. */
18655 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18656 choke me
18657 #else
18658 char (*f) () = gethostbyname_r;
18659 #endif
18660 #ifdef __cplusplus
18662 #endif
18665 main ()
18667 return f != gethostbyname_r;
18669 return 0;
18671 _ACEOF
18672 rm -f conftest.$ac_objext conftest$ac_exeext
18673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18674 (eval $ac_link) 2>conftest.er1
18675 ac_status=$?
18676 grep -v '^ *+' conftest.er1 >conftest.err
18677 rm -f conftest.er1
18678 cat conftest.err >&5
18679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680 (exit $ac_status); } &&
18681 { ac_try='test -z "$ac_c_werror_flag"
18682 || test ! -s conftest.err'
18683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18684 (eval $ac_try) 2>&5
18685 ac_status=$?
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); }; } &&
18688 { ac_try='test -s conftest$ac_exeext'
18689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18690 (eval $ac_try) 2>&5
18691 ac_status=$?
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); }; }; then
18694 ac_cv_func_gethostbyname_r=yes
18695 else
18696 echo "$as_me: failed program was:" >&5
18697 sed 's/^/| /' conftest.$ac_ext >&5
18699 ac_cv_func_gethostbyname_r=no
18701 rm -f conftest.err conftest.$ac_objext \
18702 conftest$ac_exeext conftest.$ac_ext
18704 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18705 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18706 if test $ac_cv_func_gethostbyname_r = yes; then
18708 cat >>confdefs.h <<\_ACEOF
18709 #define HAVE_GETHOSTBYNAME_R 1
18710 _ACEOF
18712 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
18713 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
18714 OLD_CFLAGS=$CFLAGS
18715 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
18716 cat >conftest.$ac_ext <<_ACEOF
18717 /* confdefs.h. */
18718 _ACEOF
18719 cat confdefs.h >>conftest.$ac_ext
18720 cat >>conftest.$ac_ext <<_ACEOF
18721 /* end confdefs.h. */
18723 # include <netdb.h>
18726 main ()
18729 char *name;
18730 struct hostent *he, *res;
18731 char buffer[2048];
18732 int buflen = 2048;
18733 int h_errnop;
18735 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
18738 return 0;
18740 _ACEOF
18741 rm -f conftest.$ac_objext
18742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18743 (eval $ac_compile) 2>conftest.er1
18744 ac_status=$?
18745 grep -v '^ *+' conftest.er1 >conftest.err
18746 rm -f conftest.er1
18747 cat conftest.err >&5
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749 (exit $ac_status); } &&
18750 { ac_try='test -z "$ac_c_werror_flag"
18751 || test ! -s conftest.err'
18752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18753 (eval $ac_try) 2>&5
18754 ac_status=$?
18755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756 (exit $ac_status); }; } &&
18757 { ac_try='test -s conftest.$ac_objext'
18758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18759 (eval $ac_try) 2>&5
18760 ac_status=$?
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); }; }; then
18764 cat >>confdefs.h <<\_ACEOF
18765 #define HAVE_GETHOSTBYNAME_R 1
18766 _ACEOF
18769 cat >>confdefs.h <<\_ACEOF
18770 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
18771 _ACEOF
18773 echo "$as_me:$LINENO: result: yes" >&5
18774 echo "${ECHO_T}yes" >&6
18776 else
18777 echo "$as_me: failed program was:" >&5
18778 sed 's/^/| /' conftest.$ac_ext >&5
18781 echo "$as_me:$LINENO: result: no" >&5
18782 echo "${ECHO_T}no" >&6
18783 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
18784 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
18785 cat >conftest.$ac_ext <<_ACEOF
18786 /* confdefs.h. */
18787 _ACEOF
18788 cat confdefs.h >>conftest.$ac_ext
18789 cat >>conftest.$ac_ext <<_ACEOF
18790 /* end confdefs.h. */
18792 # include <netdb.h>
18795 main ()
18798 char *name;
18799 struct hostent *he;
18800 char buffer[2048];
18801 int buflen = 2048;
18802 int h_errnop;
18804 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
18807 return 0;
18809 _ACEOF
18810 rm -f conftest.$ac_objext
18811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18812 (eval $ac_compile) 2>conftest.er1
18813 ac_status=$?
18814 grep -v '^ *+' conftest.er1 >conftest.err
18815 rm -f conftest.er1
18816 cat conftest.err >&5
18817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818 (exit $ac_status); } &&
18819 { ac_try='test -z "$ac_c_werror_flag"
18820 || test ! -s conftest.err'
18821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18822 (eval $ac_try) 2>&5
18823 ac_status=$?
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); }; } &&
18826 { ac_try='test -s conftest.$ac_objext'
18827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18828 (eval $ac_try) 2>&5
18829 ac_status=$?
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); }; }; then
18833 cat >>confdefs.h <<\_ACEOF
18834 #define HAVE_GETHOSTBYNAME_R 1
18835 _ACEOF
18838 cat >>confdefs.h <<\_ACEOF
18839 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
18840 _ACEOF
18842 echo "$as_me:$LINENO: result: yes" >&5
18843 echo "${ECHO_T}yes" >&6
18845 else
18846 echo "$as_me: failed program was:" >&5
18847 sed 's/^/| /' conftest.$ac_ext >&5
18850 echo "$as_me:$LINENO: result: no" >&5
18851 echo "${ECHO_T}no" >&6
18852 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
18853 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
18854 cat >conftest.$ac_ext <<_ACEOF
18855 /* confdefs.h. */
18856 _ACEOF
18857 cat confdefs.h >>conftest.$ac_ext
18858 cat >>conftest.$ac_ext <<_ACEOF
18859 /* end confdefs.h. */
18861 # include <netdb.h>
18864 main ()
18867 char *name;
18868 struct hostent *he;
18869 struct hostent_data data;
18871 (void) gethostbyname_r(name, he, &data);
18874 return 0;
18876 _ACEOF
18877 rm -f conftest.$ac_objext
18878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18879 (eval $ac_compile) 2>conftest.er1
18880 ac_status=$?
18881 grep -v '^ *+' conftest.er1 >conftest.err
18882 rm -f conftest.er1
18883 cat conftest.err >&5
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); } &&
18886 { ac_try='test -z "$ac_c_werror_flag"
18887 || test ! -s conftest.err'
18888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18889 (eval $ac_try) 2>&5
18890 ac_status=$?
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); }; } &&
18893 { ac_try='test -s conftest.$ac_objext'
18894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18895 (eval $ac_try) 2>&5
18896 ac_status=$?
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; }; then
18900 cat >>confdefs.h <<\_ACEOF
18901 #define HAVE_GETHOSTBYNAME_R 1
18902 _ACEOF
18905 cat >>confdefs.h <<\_ACEOF
18906 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
18907 _ACEOF
18909 echo "$as_me:$LINENO: result: yes" >&5
18910 echo "${ECHO_T}yes" >&6
18912 else
18913 echo "$as_me: failed program was:" >&5
18914 sed 's/^/| /' conftest.$ac_ext >&5
18917 echo "$as_me:$LINENO: result: no" >&5
18918 echo "${ECHO_T}no" >&6
18921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18928 CFLAGS=$OLD_CFLAGS
18930 else
18933 for ac_func in gethostbyname
18935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18936 echo "$as_me:$LINENO: checking for $ac_func" >&5
18937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18938 if eval "test \"\${$as_ac_var+set}\" = set"; then
18939 echo $ECHO_N "(cached) $ECHO_C" >&6
18940 else
18941 cat >conftest.$ac_ext <<_ACEOF
18942 /* confdefs.h. */
18943 _ACEOF
18944 cat confdefs.h >>conftest.$ac_ext
18945 cat >>conftest.$ac_ext <<_ACEOF
18946 /* end confdefs.h. */
18947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18949 #define $ac_func innocuous_$ac_func
18951 /* System header to define __stub macros and hopefully few prototypes,
18952 which can conflict with char $ac_func (); below.
18953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18954 <limits.h> exists even on freestanding compilers. */
18956 #ifdef __STDC__
18957 # include <limits.h>
18958 #else
18959 # include <assert.h>
18960 #endif
18962 #undef $ac_func
18964 /* Override any gcc2 internal prototype to avoid an error. */
18965 #ifdef __cplusplus
18966 extern "C"
18968 #endif
18969 /* We use char because int might match the return type of a gcc2
18970 builtin and then its argument prototype would still apply. */
18971 char $ac_func ();
18972 /* The GNU C library defines this for functions which it implements
18973 to always fail with ENOSYS. Some functions are actually named
18974 something starting with __ and the normal name is an alias. */
18975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18976 choke me
18977 #else
18978 char (*f) () = $ac_func;
18979 #endif
18980 #ifdef __cplusplus
18982 #endif
18985 main ()
18987 return f != $ac_func;
18989 return 0;
18991 _ACEOF
18992 rm -f conftest.$ac_objext conftest$ac_exeext
18993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18994 (eval $ac_link) 2>conftest.er1
18995 ac_status=$?
18996 grep -v '^ *+' conftest.er1 >conftest.err
18997 rm -f conftest.er1
18998 cat conftest.err >&5
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); } &&
19001 { ac_try='test -z "$ac_c_werror_flag"
19002 || test ! -s conftest.err'
19003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19004 (eval $ac_try) 2>&5
19005 ac_status=$?
19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); }; } &&
19008 { ac_try='test -s conftest$ac_exeext'
19009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19010 (eval $ac_try) 2>&5
19011 ac_status=$?
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); }; }; then
19014 eval "$as_ac_var=yes"
19015 else
19016 echo "$as_me: failed program was:" >&5
19017 sed 's/^/| /' conftest.$ac_ext >&5
19019 eval "$as_ac_var=no"
19021 rm -f conftest.err conftest.$ac_objext \
19022 conftest$ac_exeext conftest.$ac_ext
19024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19025 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19026 if test `eval echo '${'$as_ac_var'}'` = yes; then
19027 cat >>confdefs.h <<_ACEOF
19028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19029 _ACEOF
19032 done
19043 # checks for system services
19044 # (none yet)
19046 # Linux requires this for correct f.p. operations
19047 echo "$as_me:$LINENO: checking for __fpu_control" >&5
19048 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
19049 if test "${ac_cv_func___fpu_control+set}" = set; then
19050 echo $ECHO_N "(cached) $ECHO_C" >&6
19051 else
19052 cat >conftest.$ac_ext <<_ACEOF
19053 /* confdefs.h. */
19054 _ACEOF
19055 cat confdefs.h >>conftest.$ac_ext
19056 cat >>conftest.$ac_ext <<_ACEOF
19057 /* end confdefs.h. */
19058 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
19059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19060 #define __fpu_control innocuous___fpu_control
19062 /* System header to define __stub macros and hopefully few prototypes,
19063 which can conflict with char __fpu_control (); below.
19064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19065 <limits.h> exists even on freestanding compilers. */
19067 #ifdef __STDC__
19068 # include <limits.h>
19069 #else
19070 # include <assert.h>
19071 #endif
19073 #undef __fpu_control
19075 /* Override any gcc2 internal prototype to avoid an error. */
19076 #ifdef __cplusplus
19077 extern "C"
19079 #endif
19080 /* We use char because int might match the return type of a gcc2
19081 builtin and then its argument prototype would still apply. */
19082 char __fpu_control ();
19083 /* The GNU C library defines this for functions which it implements
19084 to always fail with ENOSYS. Some functions are actually named
19085 something starting with __ and the normal name is an alias. */
19086 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
19087 choke me
19088 #else
19089 char (*f) () = __fpu_control;
19090 #endif
19091 #ifdef __cplusplus
19093 #endif
19096 main ()
19098 return f != __fpu_control;
19100 return 0;
19102 _ACEOF
19103 rm -f conftest.$ac_objext conftest$ac_exeext
19104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19105 (eval $ac_link) 2>conftest.er1
19106 ac_status=$?
19107 grep -v '^ *+' conftest.er1 >conftest.err
19108 rm -f conftest.er1
19109 cat conftest.err >&5
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); } &&
19112 { ac_try='test -z "$ac_c_werror_flag"
19113 || test ! -s conftest.err'
19114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19115 (eval $ac_try) 2>&5
19116 ac_status=$?
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); }; } &&
19119 { ac_try='test -s conftest$ac_exeext'
19120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19121 (eval $ac_try) 2>&5
19122 ac_status=$?
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); }; }; then
19125 ac_cv_func___fpu_control=yes
19126 else
19127 echo "$as_me: failed program was:" >&5
19128 sed 's/^/| /' conftest.$ac_ext >&5
19130 ac_cv_func___fpu_control=no
19132 rm -f conftest.err conftest.$ac_objext \
19133 conftest$ac_exeext conftest.$ac_ext
19135 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
19136 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
19137 if test $ac_cv_func___fpu_control = yes; then
19139 else
19141 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
19142 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
19143 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
19144 echo $ECHO_N "(cached) $ECHO_C" >&6
19145 else
19146 ac_check_lib_save_LIBS=$LIBS
19147 LIBS="-lieee $LIBS"
19148 cat >conftest.$ac_ext <<_ACEOF
19149 /* confdefs.h. */
19150 _ACEOF
19151 cat confdefs.h >>conftest.$ac_ext
19152 cat >>conftest.$ac_ext <<_ACEOF
19153 /* end confdefs.h. */
19155 /* Override any gcc2 internal prototype to avoid an error. */
19156 #ifdef __cplusplus
19157 extern "C"
19158 #endif
19159 /* We use char because int might match the return type of a gcc2
19160 builtin and then its argument prototype would still apply. */
19161 char __fpu_control ();
19163 main ()
19165 __fpu_control ();
19167 return 0;
19169 _ACEOF
19170 rm -f conftest.$ac_objext conftest$ac_exeext
19171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19172 (eval $ac_link) 2>conftest.er1
19173 ac_status=$?
19174 grep -v '^ *+' conftest.er1 >conftest.err
19175 rm -f conftest.er1
19176 cat conftest.err >&5
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); } &&
19179 { ac_try='test -z "$ac_c_werror_flag"
19180 || test ! -s conftest.err'
19181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19182 (eval $ac_try) 2>&5
19183 ac_status=$?
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); }; } &&
19186 { ac_try='test -s conftest$ac_exeext'
19187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19188 (eval $ac_try) 2>&5
19189 ac_status=$?
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); }; }; then
19192 ac_cv_lib_ieee___fpu_control=yes
19193 else
19194 echo "$as_me: failed program was:" >&5
19195 sed 's/^/| /' conftest.$ac_ext >&5
19197 ac_cv_lib_ieee___fpu_control=no
19199 rm -f conftest.err conftest.$ac_objext \
19200 conftest$ac_exeext conftest.$ac_ext
19201 LIBS=$ac_check_lib_save_LIBS
19203 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
19204 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
19205 if test $ac_cv_lib_ieee___fpu_control = yes; then
19206 cat >>confdefs.h <<_ACEOF
19207 #define HAVE_LIBIEEE 1
19208 _ACEOF
19210 LIBS="-lieee $LIBS"
19218 # Check for --with-fpectl
19219 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
19220 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
19222 # Check whether --with-fpectl or --without-fpectl was given.
19223 if test "${with_fpectl+set}" = set; then
19224 withval="$with_fpectl"
19226 if test "$withval" != no
19227 then
19229 cat >>confdefs.h <<\_ACEOF
19230 #define WANT_SIGFPE_HANDLER 1
19231 _ACEOF
19233 echo "$as_me:$LINENO: result: yes" >&5
19234 echo "${ECHO_T}yes" >&6
19235 else echo "$as_me:$LINENO: result: no" >&5
19236 echo "${ECHO_T}no" >&6
19238 else
19239 echo "$as_me:$LINENO: result: no" >&5
19240 echo "${ECHO_T}no" >&6
19243 # check for --with-libm=...
19245 case $ac_sys_system in
19246 Darwin) ;;
19247 BeOS) ;;
19248 *) LIBM=-lm
19249 esac
19250 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
19251 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
19253 # Check whether --with-libm or --without-libm was given.
19254 if test "${with_libm+set}" = set; then
19255 withval="$with_libm"
19257 if test "$withval" = no
19258 then LIBM=
19259 echo "$as_me:$LINENO: result: force LIBM empty" >&5
19260 echo "${ECHO_T}force LIBM empty" >&6
19261 elif test "$withval" != yes
19262 then LIBM=$withval
19263 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
19264 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
19265 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
19266 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
19267 { (exit 1); exit 1; }; }
19269 else
19270 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
19271 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
19274 # check for --with-libc=...
19276 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
19277 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
19279 # Check whether --with-libc or --without-libc was given.
19280 if test "${with_libc+set}" = set; then
19281 withval="$with_libc"
19283 if test "$withval" = no
19284 then LIBC=
19285 echo "$as_me:$LINENO: result: force LIBC empty" >&5
19286 echo "${ECHO_T}force LIBC empty" >&6
19287 elif test "$withval" != yes
19288 then LIBC=$withval
19289 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
19290 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
19291 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
19292 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
19293 { (exit 1); exit 1; }; }
19295 else
19296 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
19297 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
19300 # check for hypot() in math library
19301 LIBS_SAVE=$LIBS
19302 LIBS="$LIBS $LIBM"
19304 for ac_func in hypot
19306 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19307 echo "$as_me:$LINENO: checking for $ac_func" >&5
19308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19309 if eval "test \"\${$as_ac_var+set}\" = set"; then
19310 echo $ECHO_N "(cached) $ECHO_C" >&6
19311 else
19312 cat >conftest.$ac_ext <<_ACEOF
19313 /* confdefs.h. */
19314 _ACEOF
19315 cat confdefs.h >>conftest.$ac_ext
19316 cat >>conftest.$ac_ext <<_ACEOF
19317 /* end confdefs.h. */
19318 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19320 #define $ac_func innocuous_$ac_func
19322 /* System header to define __stub macros and hopefully few prototypes,
19323 which can conflict with char $ac_func (); below.
19324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19325 <limits.h> exists even on freestanding compilers. */
19327 #ifdef __STDC__
19328 # include <limits.h>
19329 #else
19330 # include <assert.h>
19331 #endif
19333 #undef $ac_func
19335 /* Override any gcc2 internal prototype to avoid an error. */
19336 #ifdef __cplusplus
19337 extern "C"
19339 #endif
19340 /* We use char because int might match the return type of a gcc2
19341 builtin and then its argument prototype would still apply. */
19342 char $ac_func ();
19343 /* The GNU C library defines this for functions which it implements
19344 to always fail with ENOSYS. Some functions are actually named
19345 something starting with __ and the normal name is an alias. */
19346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19347 choke me
19348 #else
19349 char (*f) () = $ac_func;
19350 #endif
19351 #ifdef __cplusplus
19353 #endif
19356 main ()
19358 return f != $ac_func;
19360 return 0;
19362 _ACEOF
19363 rm -f conftest.$ac_objext conftest$ac_exeext
19364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19365 (eval $ac_link) 2>conftest.er1
19366 ac_status=$?
19367 grep -v '^ *+' conftest.er1 >conftest.err
19368 rm -f conftest.er1
19369 cat conftest.err >&5
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); } &&
19372 { ac_try='test -z "$ac_c_werror_flag"
19373 || test ! -s conftest.err'
19374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375 (eval $ac_try) 2>&5
19376 ac_status=$?
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; } &&
19379 { ac_try='test -s conftest$ac_exeext'
19380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19381 (eval $ac_try) 2>&5
19382 ac_status=$?
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); }; }; then
19385 eval "$as_ac_var=yes"
19386 else
19387 echo "$as_me: failed program was:" >&5
19388 sed 's/^/| /' conftest.$ac_ext >&5
19390 eval "$as_ac_var=no"
19392 rm -f conftest.err conftest.$ac_objext \
19393 conftest$ac_exeext conftest.$ac_ext
19395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19396 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19397 if test `eval echo '${'$as_ac_var'}'` = yes; then
19398 cat >>confdefs.h <<_ACEOF
19399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19400 _ACEOF
19402 else
19403 case $LIBOBJS in
19404 "$ac_func.$ac_objext" | \
19405 *" $ac_func.$ac_objext" | \
19406 "$ac_func.$ac_objext "* | \
19407 *" $ac_func.$ac_objext "* ) ;;
19408 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
19409 esac
19412 done
19415 LIBS=$LIBS_SAVE
19417 # check for wchar.h
19418 if test "${ac_cv_header_wchar_h+set}" = set; then
19419 echo "$as_me:$LINENO: checking for wchar.h" >&5
19420 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19421 if test "${ac_cv_header_wchar_h+set}" = set; then
19422 echo $ECHO_N "(cached) $ECHO_C" >&6
19424 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19425 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19426 else
19427 # Is the header compilable?
19428 echo "$as_me:$LINENO: checking wchar.h usability" >&5
19429 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
19430 cat >conftest.$ac_ext <<_ACEOF
19431 /* confdefs.h. */
19432 _ACEOF
19433 cat confdefs.h >>conftest.$ac_ext
19434 cat >>conftest.$ac_ext <<_ACEOF
19435 /* end confdefs.h. */
19436 $ac_includes_default
19437 #include <wchar.h>
19438 _ACEOF
19439 rm -f conftest.$ac_objext
19440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19441 (eval $ac_compile) 2>conftest.er1
19442 ac_status=$?
19443 grep -v '^ *+' conftest.er1 >conftest.err
19444 rm -f conftest.er1
19445 cat conftest.err >&5
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); } &&
19448 { ac_try='test -z "$ac_c_werror_flag"
19449 || test ! -s conftest.err'
19450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19451 (eval $ac_try) 2>&5
19452 ac_status=$?
19453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454 (exit $ac_status); }; } &&
19455 { ac_try='test -s conftest.$ac_objext'
19456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19457 (eval $ac_try) 2>&5
19458 ac_status=$?
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); }; }; then
19461 ac_header_compiler=yes
19462 else
19463 echo "$as_me: failed program was:" >&5
19464 sed 's/^/| /' conftest.$ac_ext >&5
19466 ac_header_compiler=no
19468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19469 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19470 echo "${ECHO_T}$ac_header_compiler" >&6
19472 # Is the header present?
19473 echo "$as_me:$LINENO: checking wchar.h presence" >&5
19474 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
19475 cat >conftest.$ac_ext <<_ACEOF
19476 /* confdefs.h. */
19477 _ACEOF
19478 cat confdefs.h >>conftest.$ac_ext
19479 cat >>conftest.$ac_ext <<_ACEOF
19480 /* end confdefs.h. */
19481 #include <wchar.h>
19482 _ACEOF
19483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19485 ac_status=$?
19486 grep -v '^ *+' conftest.er1 >conftest.err
19487 rm -f conftest.er1
19488 cat conftest.err >&5
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); } >/dev/null; then
19491 if test -s conftest.err; then
19492 ac_cpp_err=$ac_c_preproc_warn_flag
19493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19494 else
19495 ac_cpp_err=
19497 else
19498 ac_cpp_err=yes
19500 if test -z "$ac_cpp_err"; then
19501 ac_header_preproc=yes
19502 else
19503 echo "$as_me: failed program was:" >&5
19504 sed 's/^/| /' conftest.$ac_ext >&5
19506 ac_header_preproc=no
19508 rm -f conftest.err conftest.$ac_ext
19509 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19510 echo "${ECHO_T}$ac_header_preproc" >&6
19512 # So? What about this header?
19513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19514 yes:no: )
19515 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
19516 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19517 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
19518 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
19519 ac_header_preproc=yes
19521 no:yes:* )
19522 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
19523 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
19524 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
19525 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
19526 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
19527 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
19528 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
19529 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
19530 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
19531 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
19532 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
19533 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
19535 cat <<\_ASBOX
19536 ## ------------------------------------------------ ##
19537 ## Report this to http://www.python.org/python-bugs ##
19538 ## ------------------------------------------------ ##
19539 _ASBOX
19541 sed "s/^/$as_me: WARNING: /" >&2
19543 esac
19544 echo "$as_me:$LINENO: checking for wchar.h" >&5
19545 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19546 if test "${ac_cv_header_wchar_h+set}" = set; then
19547 echo $ECHO_N "(cached) $ECHO_C" >&6
19548 else
19549 ac_cv_header_wchar_h=$ac_header_preproc
19551 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19552 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19555 if test $ac_cv_header_wchar_h = yes; then
19558 cat >>confdefs.h <<\_ACEOF
19559 #define HAVE_WCHAR_H 1
19560 _ACEOF
19562 wchar_h="yes"
19564 else
19565 wchar_h="no"
19571 # determine wchar_t size
19572 if test "$wchar_h" = yes
19573 then
19574 echo "$as_me:$LINENO: checking for wchar_t" >&5
19575 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19576 if test "${ac_cv_type_wchar_t+set}" = set; then
19577 echo $ECHO_N "(cached) $ECHO_C" >&6
19578 else
19579 cat >conftest.$ac_ext <<_ACEOF
19580 /* confdefs.h. */
19581 _ACEOF
19582 cat confdefs.h >>conftest.$ac_ext
19583 cat >>conftest.$ac_ext <<_ACEOF
19584 /* end confdefs.h. */
19585 #include <wchar.h>
19588 main ()
19590 if ((wchar_t *) 0)
19591 return 0;
19592 if (sizeof (wchar_t))
19593 return 0;
19595 return 0;
19597 _ACEOF
19598 rm -f conftest.$ac_objext
19599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19600 (eval $ac_compile) 2>conftest.er1
19601 ac_status=$?
19602 grep -v '^ *+' conftest.er1 >conftest.err
19603 rm -f conftest.er1
19604 cat conftest.err >&5
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); } &&
19607 { ac_try='test -z "$ac_c_werror_flag"
19608 || test ! -s conftest.err'
19609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19610 (eval $ac_try) 2>&5
19611 ac_status=$?
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); }; } &&
19614 { ac_try='test -s conftest.$ac_objext'
19615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19616 (eval $ac_try) 2>&5
19617 ac_status=$?
19618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619 (exit $ac_status); }; }; then
19620 ac_cv_type_wchar_t=yes
19621 else
19622 echo "$as_me: failed program was:" >&5
19623 sed 's/^/| /' conftest.$ac_ext >&5
19625 ac_cv_type_wchar_t=no
19627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19629 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19630 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19632 echo "$as_me:$LINENO: checking size of wchar_t" >&5
19633 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
19634 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
19635 echo $ECHO_N "(cached) $ECHO_C" >&6
19636 else
19637 if test "$ac_cv_type_wchar_t" = yes; then
19638 # The cast to unsigned long works around a bug in the HP C Compiler
19639 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19640 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19641 # This bug is HP SR number 8606223364.
19642 if test "$cross_compiling" = yes; then
19643 # Depending upon the size, compute the lo and hi bounds.
19644 cat >conftest.$ac_ext <<_ACEOF
19645 /* confdefs.h. */
19646 _ACEOF
19647 cat confdefs.h >>conftest.$ac_ext
19648 cat >>conftest.$ac_ext <<_ACEOF
19649 /* end confdefs.h. */
19650 #include <wchar.h>
19653 main ()
19655 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19656 test_array [0] = 0
19659 return 0;
19661 _ACEOF
19662 rm -f conftest.$ac_objext
19663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19664 (eval $ac_compile) 2>conftest.er1
19665 ac_status=$?
19666 grep -v '^ *+' conftest.er1 >conftest.err
19667 rm -f conftest.er1
19668 cat conftest.err >&5
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); } &&
19671 { ac_try='test -z "$ac_c_werror_flag"
19672 || test ! -s conftest.err'
19673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19674 (eval $ac_try) 2>&5
19675 ac_status=$?
19676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677 (exit $ac_status); }; } &&
19678 { ac_try='test -s conftest.$ac_objext'
19679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19680 (eval $ac_try) 2>&5
19681 ac_status=$?
19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); }; }; then
19684 ac_lo=0 ac_mid=0
19685 while :; do
19686 cat >conftest.$ac_ext <<_ACEOF
19687 /* confdefs.h. */
19688 _ACEOF
19689 cat confdefs.h >>conftest.$ac_ext
19690 cat >>conftest.$ac_ext <<_ACEOF
19691 /* end confdefs.h. */
19692 #include <wchar.h>
19695 main ()
19697 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19698 test_array [0] = 0
19701 return 0;
19703 _ACEOF
19704 rm -f conftest.$ac_objext
19705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19706 (eval $ac_compile) 2>conftest.er1
19707 ac_status=$?
19708 grep -v '^ *+' conftest.er1 >conftest.err
19709 rm -f conftest.er1
19710 cat conftest.err >&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); } &&
19713 { ac_try='test -z "$ac_c_werror_flag"
19714 || test ! -s conftest.err'
19715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19716 (eval $ac_try) 2>&5
19717 ac_status=$?
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); }; } &&
19720 { ac_try='test -s conftest.$ac_objext'
19721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722 (eval $ac_try) 2>&5
19723 ac_status=$?
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; }; then
19726 ac_hi=$ac_mid; break
19727 else
19728 echo "$as_me: failed program was:" >&5
19729 sed 's/^/| /' conftest.$ac_ext >&5
19731 ac_lo=`expr $ac_mid + 1`
19732 if test $ac_lo -le $ac_mid; then
19733 ac_lo= ac_hi=
19734 break
19736 ac_mid=`expr 2 '*' $ac_mid + 1`
19738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19739 done
19740 else
19741 echo "$as_me: failed program was:" >&5
19742 sed 's/^/| /' conftest.$ac_ext >&5
19744 cat >conftest.$ac_ext <<_ACEOF
19745 /* confdefs.h. */
19746 _ACEOF
19747 cat confdefs.h >>conftest.$ac_ext
19748 cat >>conftest.$ac_ext <<_ACEOF
19749 /* end confdefs.h. */
19750 #include <wchar.h>
19753 main ()
19755 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19756 test_array [0] = 0
19759 return 0;
19761 _ACEOF
19762 rm -f conftest.$ac_objext
19763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19764 (eval $ac_compile) 2>conftest.er1
19765 ac_status=$?
19766 grep -v '^ *+' conftest.er1 >conftest.err
19767 rm -f conftest.er1
19768 cat conftest.err >&5
19769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770 (exit $ac_status); } &&
19771 { ac_try='test -z "$ac_c_werror_flag"
19772 || test ! -s conftest.err'
19773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19774 (eval $ac_try) 2>&5
19775 ac_status=$?
19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777 (exit $ac_status); }; } &&
19778 { ac_try='test -s conftest.$ac_objext'
19779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780 (eval $ac_try) 2>&5
19781 ac_status=$?
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); }; }; then
19784 ac_hi=-1 ac_mid=-1
19785 while :; do
19786 cat >conftest.$ac_ext <<_ACEOF
19787 /* confdefs.h. */
19788 _ACEOF
19789 cat confdefs.h >>conftest.$ac_ext
19790 cat >>conftest.$ac_ext <<_ACEOF
19791 /* end confdefs.h. */
19792 #include <wchar.h>
19795 main ()
19797 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19798 test_array [0] = 0
19801 return 0;
19803 _ACEOF
19804 rm -f conftest.$ac_objext
19805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19806 (eval $ac_compile) 2>conftest.er1
19807 ac_status=$?
19808 grep -v '^ *+' conftest.er1 >conftest.err
19809 rm -f conftest.er1
19810 cat conftest.err >&5
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); } &&
19813 { ac_try='test -z "$ac_c_werror_flag"
19814 || test ! -s conftest.err'
19815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19816 (eval $ac_try) 2>&5
19817 ac_status=$?
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); }; } &&
19820 { ac_try='test -s conftest.$ac_objext'
19821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19822 (eval $ac_try) 2>&5
19823 ac_status=$?
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); }; }; then
19826 ac_lo=$ac_mid; break
19827 else
19828 echo "$as_me: failed program was:" >&5
19829 sed 's/^/| /' conftest.$ac_ext >&5
19831 ac_hi=`expr '(' $ac_mid ')' - 1`
19832 if test $ac_mid -le $ac_hi; then
19833 ac_lo= ac_hi=
19834 break
19836 ac_mid=`expr 2 '*' $ac_mid`
19838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19839 done
19840 else
19841 echo "$as_me: failed program was:" >&5
19842 sed 's/^/| /' conftest.$ac_ext >&5
19844 ac_lo= ac_hi=
19846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19849 # Binary search between lo and hi bounds.
19850 while test "x$ac_lo" != "x$ac_hi"; do
19851 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19852 cat >conftest.$ac_ext <<_ACEOF
19853 /* confdefs.h. */
19854 _ACEOF
19855 cat confdefs.h >>conftest.$ac_ext
19856 cat >>conftest.$ac_ext <<_ACEOF
19857 /* end confdefs.h. */
19858 #include <wchar.h>
19861 main ()
19863 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19864 test_array [0] = 0
19867 return 0;
19869 _ACEOF
19870 rm -f conftest.$ac_objext
19871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19872 (eval $ac_compile) 2>conftest.er1
19873 ac_status=$?
19874 grep -v '^ *+' conftest.er1 >conftest.err
19875 rm -f conftest.er1
19876 cat conftest.err >&5
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); } &&
19879 { ac_try='test -z "$ac_c_werror_flag"
19880 || test ! -s conftest.err'
19881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19882 (eval $ac_try) 2>&5
19883 ac_status=$?
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); }; } &&
19886 { ac_try='test -s conftest.$ac_objext'
19887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19888 (eval $ac_try) 2>&5
19889 ac_status=$?
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); }; }; then
19892 ac_hi=$ac_mid
19893 else
19894 echo "$as_me: failed program was:" >&5
19895 sed 's/^/| /' conftest.$ac_ext >&5
19897 ac_lo=`expr '(' $ac_mid ')' + 1`
19899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19900 done
19901 case $ac_lo in
19902 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19903 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19904 See \`config.log' for more details." >&5
19905 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19906 See \`config.log' for more details." >&2;}
19907 { (exit 1); exit 1; }; } ;;
19908 esac
19909 else
19910 if test "$cross_compiling" = yes; then
19911 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19912 See \`config.log' for more details." >&5
19913 echo "$as_me: error: cannot run test program while cross compiling
19914 See \`config.log' for more details." >&2;}
19915 { (exit 1); exit 1; }; }
19916 else
19917 cat >conftest.$ac_ext <<_ACEOF
19918 /* confdefs.h. */
19919 _ACEOF
19920 cat confdefs.h >>conftest.$ac_ext
19921 cat >>conftest.$ac_ext <<_ACEOF
19922 /* end confdefs.h. */
19923 #include <wchar.h>
19925 long longval () { return (long) (sizeof (wchar_t)); }
19926 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19927 #include <stdio.h>
19928 #include <stdlib.h>
19930 main ()
19933 FILE *f = fopen ("conftest.val", "w");
19934 if (! f)
19935 exit (1);
19936 if (((long) (sizeof (wchar_t))) < 0)
19938 long i = longval ();
19939 if (i != ((long) (sizeof (wchar_t))))
19940 exit (1);
19941 fprintf (f, "%ld\n", i);
19943 else
19945 unsigned long i = ulongval ();
19946 if (i != ((long) (sizeof (wchar_t))))
19947 exit (1);
19948 fprintf (f, "%lu\n", i);
19950 exit (ferror (f) || fclose (f) != 0);
19953 return 0;
19955 _ACEOF
19956 rm -f conftest$ac_exeext
19957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19958 (eval $ac_link) 2>&5
19959 ac_status=$?
19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19963 (eval $ac_try) 2>&5
19964 ac_status=$?
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); }; }; then
19967 ac_cv_sizeof_wchar_t=`cat conftest.val`
19968 else
19969 echo "$as_me: program exited with status $ac_status" >&5
19970 echo "$as_me: failed program was:" >&5
19971 sed 's/^/| /' conftest.$ac_ext >&5
19973 ( exit $ac_status )
19974 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19975 See \`config.log' for more details." >&5
19976 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19977 See \`config.log' for more details." >&2;}
19978 { (exit 1); exit 1; }; }
19980 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19983 rm -f conftest.val
19984 else
19985 ac_cv_sizeof_wchar_t=0
19988 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19989 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
19990 cat >>confdefs.h <<_ACEOF
19991 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
19992 _ACEOF
19997 echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
19998 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6
19999 have_ucs4_tcl=no
20000 cat >conftest.$ac_ext <<_ACEOF
20001 /* confdefs.h. */
20002 _ACEOF
20003 cat confdefs.h >>conftest.$ac_ext
20004 cat >>conftest.$ac_ext <<_ACEOF
20005 /* end confdefs.h. */
20007 #include <tcl.h>
20008 #if TCL_UTF_MAX != 6
20009 # error "NOT UCS4_TCL"
20010 #endif
20012 main ()
20016 return 0;
20018 _ACEOF
20019 rm -f conftest.$ac_objext
20020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20021 (eval $ac_compile) 2>conftest.er1
20022 ac_status=$?
20023 grep -v '^ *+' conftest.er1 >conftest.err
20024 rm -f conftest.er1
20025 cat conftest.err >&5
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); } &&
20028 { ac_try='test -z "$ac_c_werror_flag"
20029 || test ! -s conftest.err'
20030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20031 (eval $ac_try) 2>&5
20032 ac_status=$?
20033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034 (exit $ac_status); }; } &&
20035 { ac_try='test -s conftest.$ac_objext'
20036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20037 (eval $ac_try) 2>&5
20038 ac_status=$?
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); }; }; then
20043 cat >>confdefs.h <<\_ACEOF
20044 #define HAVE_UCS4_TCL 1
20045 _ACEOF
20047 have_ucs4_tcl=yes
20049 else
20050 echo "$as_me: failed program was:" >&5
20051 sed 's/^/| /' conftest.$ac_ext >&5
20054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20055 echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
20056 echo "${ECHO_T}$have_ucs4_tcl" >&6
20058 # check whether wchar_t is signed or not
20059 if test "$wchar_h" = yes
20060 then
20061 # check whether wchar_t is signed or not
20062 echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
20063 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6
20064 if test "${ac_cv_wchar_t_signed+set}" = set; then
20065 echo $ECHO_N "(cached) $ECHO_C" >&6
20066 else
20068 if test "$cross_compiling" = yes; then
20069 ac_cv_wchar_t_signed=yes
20070 else
20071 cat >conftest.$ac_ext <<_ACEOF
20072 /* confdefs.h. */
20073 _ACEOF
20074 cat confdefs.h >>conftest.$ac_ext
20075 cat >>conftest.$ac_ext <<_ACEOF
20076 /* end confdefs.h. */
20078 #include <wchar.h>
20079 int main()
20081 /* Success: exit code 0 */
20082 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
20085 _ACEOF
20086 rm -f conftest$ac_exeext
20087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20088 (eval $ac_link) 2>&5
20089 ac_status=$?
20090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20093 (eval $ac_try) 2>&5
20094 ac_status=$?
20095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096 (exit $ac_status); }; }; then
20097 ac_cv_wchar_t_signed=yes
20098 else
20099 echo "$as_me: program exited with status $ac_status" >&5
20100 echo "$as_me: failed program was:" >&5
20101 sed 's/^/| /' conftest.$ac_ext >&5
20103 ( exit $ac_status )
20104 ac_cv_wchar_t_signed=no
20106 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20110 echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
20111 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6
20114 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
20115 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
20116 # Check whether --enable-unicode or --disable-unicode was given.
20117 if test "${enable_unicode+set}" = set; then
20118 enableval="$enable_unicode"
20120 else
20121 enable_unicode=yes
20124 if test $enable_unicode = yes
20125 then
20126 # Without any arguments, Py_UNICODE defaults to two-byte mode
20127 case "$have_ucs4_tcl" in
20128 yes) enable_unicode="ucs4"
20130 *) enable_unicode="ucs2"
20132 esac
20137 case "$enable_unicode" in
20138 ucs2) unicode_size="2"
20139 cat >>confdefs.h <<\_ACEOF
20140 #define Py_UNICODE_SIZE 2
20141 _ACEOF
20144 ucs4) unicode_size="4"
20145 cat >>confdefs.h <<\_ACEOF
20146 #define Py_UNICODE_SIZE 4
20147 _ACEOF
20150 esac
20156 if test "$enable_unicode" = "no"
20157 then
20158 UNICODE_OBJS=""
20159 echo "$as_me:$LINENO: result: not used" >&5
20160 echo "${ECHO_T}not used" >&6
20161 else
20162 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
20164 cat >>confdefs.h <<\_ACEOF
20165 #define Py_USING_UNICODE 1
20166 _ACEOF
20169 # wchar_t is only usable if it maps to an unsigned type
20170 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
20171 -a "$ac_cv_wchar_t_signed" = "no"
20172 then
20173 PY_UNICODE_TYPE="wchar_t"
20175 cat >>confdefs.h <<\_ACEOF
20176 #define HAVE_USABLE_WCHAR_T 1
20177 _ACEOF
20179 cat >>confdefs.h <<\_ACEOF
20180 #define PY_UNICODE_TYPE wchar_t
20181 _ACEOF
20183 elif test "$ac_cv_sizeof_short" = "$unicode_size"
20184 then
20185 PY_UNICODE_TYPE="unsigned short"
20186 cat >>confdefs.h <<\_ACEOF
20187 #define PY_UNICODE_TYPE unsigned short
20188 _ACEOF
20190 elif test "$ac_cv_sizeof_long" = "$unicode_size"
20191 then
20192 PY_UNICODE_TYPE="unsigned long"
20193 cat >>confdefs.h <<\_ACEOF
20194 #define PY_UNICODE_TYPE unsigned long
20195 _ACEOF
20197 else
20198 PY_UNICODE_TYPE="no type found"
20200 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
20201 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
20204 # check for endianness
20205 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20206 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20207 if test "${ac_cv_c_bigendian+set}" = set; then
20208 echo $ECHO_N "(cached) $ECHO_C" >&6
20209 else
20210 # See if sys/param.h defines the BYTE_ORDER macro.
20211 cat >conftest.$ac_ext <<_ACEOF
20212 /* confdefs.h. */
20213 _ACEOF
20214 cat confdefs.h >>conftest.$ac_ext
20215 cat >>conftest.$ac_ext <<_ACEOF
20216 /* end confdefs.h. */
20217 #include <sys/types.h>
20218 #include <sys/param.h>
20221 main ()
20223 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20224 bogus endian macros
20225 #endif
20228 return 0;
20230 _ACEOF
20231 rm -f conftest.$ac_objext
20232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20233 (eval $ac_compile) 2>conftest.er1
20234 ac_status=$?
20235 grep -v '^ *+' conftest.er1 >conftest.err
20236 rm -f conftest.er1
20237 cat conftest.err >&5
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); } &&
20240 { ac_try='test -z "$ac_c_werror_flag"
20241 || test ! -s conftest.err'
20242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20243 (eval $ac_try) 2>&5
20244 ac_status=$?
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); }; } &&
20247 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20253 # It does; now see whether it defined to BIG_ENDIAN or not.
20254 cat >conftest.$ac_ext <<_ACEOF
20255 /* confdefs.h. */
20256 _ACEOF
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h. */
20260 #include <sys/types.h>
20261 #include <sys/param.h>
20264 main ()
20266 #if BYTE_ORDER != BIG_ENDIAN
20267 not big endian
20268 #endif
20271 return 0;
20273 _ACEOF
20274 rm -f conftest.$ac_objext
20275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20276 (eval $ac_compile) 2>conftest.er1
20277 ac_status=$?
20278 grep -v '^ *+' conftest.er1 >conftest.err
20279 rm -f conftest.er1
20280 cat conftest.err >&5
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); } &&
20283 { ac_try='test -z "$ac_c_werror_flag"
20284 || test ! -s conftest.err'
20285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20286 (eval $ac_try) 2>&5
20287 ac_status=$?
20288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289 (exit $ac_status); }; } &&
20290 { ac_try='test -s conftest.$ac_objext'
20291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20292 (eval $ac_try) 2>&5
20293 ac_status=$?
20294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295 (exit $ac_status); }; }; then
20296 ac_cv_c_bigendian=yes
20297 else
20298 echo "$as_me: failed program was:" >&5
20299 sed 's/^/| /' conftest.$ac_ext >&5
20301 ac_cv_c_bigendian=no
20303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20304 else
20305 echo "$as_me: failed program was:" >&5
20306 sed 's/^/| /' conftest.$ac_ext >&5
20308 # It does not; compile a test program.
20309 if test "$cross_compiling" = yes; then
20310 # try to guess the endianness by grepping values into an object file
20311 ac_cv_c_bigendian=unknown
20312 cat >conftest.$ac_ext <<_ACEOF
20313 /* confdefs.h. */
20314 _ACEOF
20315 cat confdefs.h >>conftest.$ac_ext
20316 cat >>conftest.$ac_ext <<_ACEOF
20317 /* end confdefs.h. */
20318 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20319 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20320 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20321 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20322 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20323 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20325 main ()
20327 _ascii (); _ebcdic ();
20329 return 0;
20331 _ACEOF
20332 rm -f conftest.$ac_objext
20333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20334 (eval $ac_compile) 2>conftest.er1
20335 ac_status=$?
20336 grep -v '^ *+' conftest.er1 >conftest.err
20337 rm -f conftest.er1
20338 cat conftest.err >&5
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); } &&
20341 { ac_try='test -z "$ac_c_werror_flag"
20342 || test ! -s conftest.err'
20343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20344 (eval $ac_try) 2>&5
20345 ac_status=$?
20346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); }; } &&
20348 { ac_try='test -s conftest.$ac_objext'
20349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20350 (eval $ac_try) 2>&5
20351 ac_status=$?
20352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353 (exit $ac_status); }; }; then
20354 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20355 ac_cv_c_bigendian=yes
20357 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20358 if test "$ac_cv_c_bigendian" = unknown; then
20359 ac_cv_c_bigendian=no
20360 else
20361 # finding both strings is unlikely to happen, but who knows?
20362 ac_cv_c_bigendian=unknown
20365 else
20366 echo "$as_me: failed program was:" >&5
20367 sed 's/^/| /' conftest.$ac_ext >&5
20370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20371 else
20372 cat >conftest.$ac_ext <<_ACEOF
20373 /* confdefs.h. */
20374 _ACEOF
20375 cat confdefs.h >>conftest.$ac_ext
20376 cat >>conftest.$ac_ext <<_ACEOF
20377 /* end confdefs.h. */
20379 main ()
20381 /* Are we little or big endian? From Harbison&Steele. */
20382 union
20384 long l;
20385 char c[sizeof (long)];
20386 } u;
20387 u.l = 1;
20388 exit (u.c[sizeof (long) - 1] == 1);
20390 _ACEOF
20391 rm -f conftest$ac_exeext
20392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20393 (eval $ac_link) 2>&5
20394 ac_status=$?
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20398 (eval $ac_try) 2>&5
20399 ac_status=$?
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); }; }; then
20402 ac_cv_c_bigendian=no
20403 else
20404 echo "$as_me: program exited with status $ac_status" >&5
20405 echo "$as_me: failed program was:" >&5
20406 sed 's/^/| /' conftest.$ac_ext >&5
20408 ( exit $ac_status )
20409 ac_cv_c_bigendian=yes
20411 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20416 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20417 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20418 case $ac_cv_c_bigendian in
20419 yes)
20421 cat >>confdefs.h <<\_ACEOF
20422 #define WORDS_BIGENDIAN 1
20423 _ACEOF
20428 { { echo "$as_me:$LINENO: error: unknown endianness
20429 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20430 echo "$as_me: error: unknown endianness
20431 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20432 { (exit 1); exit 1; }; } ;;
20433 esac
20438 # Check whether right shifting a negative integer extends the sign bit
20439 # or fills with zeros (like the Cray J90, according to Tim Peters).
20440 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
20441 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
20442 if test "${ac_cv_rshift_extends_sign+set}" = set; then
20443 echo $ECHO_N "(cached) $ECHO_C" >&6
20444 else
20446 if test "$cross_compiling" = yes; then
20447 ac_cv_rshift_extends_sign=yes
20448 else
20449 cat >conftest.$ac_ext <<_ACEOF
20450 /* confdefs.h. */
20451 _ACEOF
20452 cat confdefs.h >>conftest.$ac_ext
20453 cat >>conftest.$ac_ext <<_ACEOF
20454 /* end confdefs.h. */
20456 int main()
20458 exit(((-1)>>3 == -1) ? 0 : 1);
20461 _ACEOF
20462 rm -f conftest$ac_exeext
20463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20464 (eval $ac_link) 2>&5
20465 ac_status=$?
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20469 (eval $ac_try) 2>&5
20470 ac_status=$?
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); }; }; then
20473 ac_cv_rshift_extends_sign=yes
20474 else
20475 echo "$as_me: program exited with status $ac_status" >&5
20476 echo "$as_me: failed program was:" >&5
20477 sed 's/^/| /' conftest.$ac_ext >&5
20479 ( exit $ac_status )
20480 ac_cv_rshift_extends_sign=no
20482 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20486 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
20487 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
20488 if test "$ac_cv_rshift_extends_sign" = no
20489 then
20491 cat >>confdefs.h <<\_ACEOF
20492 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
20493 _ACEOF
20497 # check for getc_unlocked and related locking functions
20498 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
20499 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
20500 if test "${ac_cv_have_getc_unlocked+set}" = set; then
20501 echo $ECHO_N "(cached) $ECHO_C" >&6
20502 else
20504 cat >conftest.$ac_ext <<_ACEOF
20505 /* confdefs.h. */
20506 _ACEOF
20507 cat confdefs.h >>conftest.$ac_ext
20508 cat >>conftest.$ac_ext <<_ACEOF
20509 /* end confdefs.h. */
20510 #include <stdio.h>
20512 main ()
20515 FILE *f = fopen("/dev/null", "r");
20516 flockfile(f);
20517 getc_unlocked(f);
20518 funlockfile(f);
20521 return 0;
20523 _ACEOF
20524 rm -f conftest.$ac_objext conftest$ac_exeext
20525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20526 (eval $ac_link) 2>conftest.er1
20527 ac_status=$?
20528 grep -v '^ *+' conftest.er1 >conftest.err
20529 rm -f conftest.er1
20530 cat conftest.err >&5
20531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532 (exit $ac_status); } &&
20533 { ac_try='test -z "$ac_c_werror_flag"
20534 || test ! -s conftest.err'
20535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20536 (eval $ac_try) 2>&5
20537 ac_status=$?
20538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); }; } &&
20540 { ac_try='test -s conftest$ac_exeext'
20541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20542 (eval $ac_try) 2>&5
20543 ac_status=$?
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); }; }; then
20546 ac_cv_have_getc_unlocked=yes
20547 else
20548 echo "$as_me: failed program was:" >&5
20549 sed 's/^/| /' conftest.$ac_ext >&5
20551 ac_cv_have_getc_unlocked=no
20553 rm -f conftest.err conftest.$ac_objext \
20554 conftest$ac_exeext conftest.$ac_ext
20557 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
20558 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
20559 if test "$ac_cv_have_getc_unlocked" = yes
20560 then
20562 cat >>confdefs.h <<\_ACEOF
20563 #define HAVE_GETC_UNLOCKED 1
20564 _ACEOF
20568 # check where readline lives
20569 # save the value of LIBS so we don't actually link Python with readline
20570 LIBS_no_readline=$LIBS
20572 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20573 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20574 if test "${ac_cv_lib_readline_readline+set}" = set; then
20575 echo $ECHO_N "(cached) $ECHO_C" >&6
20576 else
20577 ac_check_lib_save_LIBS=$LIBS
20578 LIBS="-lreadline $LIBS"
20579 cat >conftest.$ac_ext <<_ACEOF
20580 /* confdefs.h. */
20581 _ACEOF
20582 cat confdefs.h >>conftest.$ac_ext
20583 cat >>conftest.$ac_ext <<_ACEOF
20584 /* end confdefs.h. */
20586 /* Override any gcc2 internal prototype to avoid an error. */
20587 #ifdef __cplusplus
20588 extern "C"
20589 #endif
20590 /* We use char because int might match the return type of a gcc2
20591 builtin and then its argument prototype would still apply. */
20592 char readline ();
20594 main ()
20596 readline ();
20598 return 0;
20600 _ACEOF
20601 rm -f conftest.$ac_objext conftest$ac_exeext
20602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20603 (eval $ac_link) 2>conftest.er1
20604 ac_status=$?
20605 grep -v '^ *+' conftest.er1 >conftest.err
20606 rm -f conftest.er1
20607 cat conftest.err >&5
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); } &&
20610 { ac_try='test -z "$ac_c_werror_flag"
20611 || test ! -s conftest.err'
20612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20613 (eval $ac_try) 2>&5
20614 ac_status=$?
20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); }; } &&
20617 { ac_try='test -s conftest$ac_exeext'
20618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20619 (eval $ac_try) 2>&5
20620 ac_status=$?
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); }; }; then
20623 ac_cv_lib_readline_readline=yes
20624 else
20625 echo "$as_me: failed program was:" >&5
20626 sed 's/^/| /' conftest.$ac_ext >&5
20628 ac_cv_lib_readline_readline=no
20630 rm -f conftest.err conftest.$ac_objext \
20631 conftest$ac_exeext conftest.$ac_ext
20632 LIBS=$ac_check_lib_save_LIBS
20634 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20635 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20636 if test $ac_cv_lib_readline_readline = yes; then
20637 cat >>confdefs.h <<_ACEOF
20638 #define HAVE_LIBREADLINE 1
20639 _ACEOF
20641 LIBS="-lreadline $LIBS"
20645 if test "$ac_cv_have_readline_readline" = no
20646 then
20648 echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
20649 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6
20650 if test "${ac_cv_lib_termcap_readline+set}" = set; then
20651 echo $ECHO_N "(cached) $ECHO_C" >&6
20652 else
20653 ac_check_lib_save_LIBS=$LIBS
20654 LIBS="-ltermcap $LIBS"
20655 cat >conftest.$ac_ext <<_ACEOF
20656 /* confdefs.h. */
20657 _ACEOF
20658 cat confdefs.h >>conftest.$ac_ext
20659 cat >>conftest.$ac_ext <<_ACEOF
20660 /* end confdefs.h. */
20662 /* Override any gcc2 internal prototype to avoid an error. */
20663 #ifdef __cplusplus
20664 extern "C"
20665 #endif
20666 /* We use char because int might match the return type of a gcc2
20667 builtin and then its argument prototype would still apply. */
20668 char readline ();
20670 main ()
20672 readline ();
20674 return 0;
20676 _ACEOF
20677 rm -f conftest.$ac_objext conftest$ac_exeext
20678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20679 (eval $ac_link) 2>conftest.er1
20680 ac_status=$?
20681 grep -v '^ *+' conftest.er1 >conftest.err
20682 rm -f conftest.er1
20683 cat conftest.err >&5
20684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685 (exit $ac_status); } &&
20686 { ac_try='test -z "$ac_c_werror_flag"
20687 || test ! -s conftest.err'
20688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20689 (eval $ac_try) 2>&5
20690 ac_status=$?
20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692 (exit $ac_status); }; } &&
20693 { ac_try='test -s conftest$ac_exeext'
20694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20695 (eval $ac_try) 2>&5
20696 ac_status=$?
20697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698 (exit $ac_status); }; }; then
20699 ac_cv_lib_termcap_readline=yes
20700 else
20701 echo "$as_me: failed program was:" >&5
20702 sed 's/^/| /' conftest.$ac_ext >&5
20704 ac_cv_lib_termcap_readline=no
20706 rm -f conftest.err conftest.$ac_objext \
20707 conftest$ac_exeext conftest.$ac_ext
20708 LIBS=$ac_check_lib_save_LIBS
20710 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
20711 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6
20712 if test $ac_cv_lib_termcap_readline = yes; then
20713 cat >>confdefs.h <<_ACEOF
20714 #define HAVE_LIBTERMCAP 1
20715 _ACEOF
20717 LIBS="-ltermcap $LIBS"
20723 # check for readline 2.1
20724 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
20725 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
20726 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
20727 echo $ECHO_N "(cached) $ECHO_C" >&6
20728 else
20729 ac_check_lib_save_LIBS=$LIBS
20730 LIBS="-lreadline $LIBS"
20731 cat >conftest.$ac_ext <<_ACEOF
20732 /* confdefs.h. */
20733 _ACEOF
20734 cat confdefs.h >>conftest.$ac_ext
20735 cat >>conftest.$ac_ext <<_ACEOF
20736 /* end confdefs.h. */
20738 /* Override any gcc2 internal prototype to avoid an error. */
20739 #ifdef __cplusplus
20740 extern "C"
20741 #endif
20742 /* We use char because int might match the return type of a gcc2
20743 builtin and then its argument prototype would still apply. */
20744 char rl_callback_handler_install ();
20746 main ()
20748 rl_callback_handler_install ();
20750 return 0;
20752 _ACEOF
20753 rm -f conftest.$ac_objext conftest$ac_exeext
20754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20755 (eval $ac_link) 2>conftest.er1
20756 ac_status=$?
20757 grep -v '^ *+' conftest.er1 >conftest.err
20758 rm -f conftest.er1
20759 cat conftest.err >&5
20760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761 (exit $ac_status); } &&
20762 { ac_try='test -z "$ac_c_werror_flag"
20763 || test ! -s conftest.err'
20764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20765 (eval $ac_try) 2>&5
20766 ac_status=$?
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); }; } &&
20769 { ac_try='test -s conftest$ac_exeext'
20770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20771 (eval $ac_try) 2>&5
20772 ac_status=$?
20773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774 (exit $ac_status); }; }; then
20775 ac_cv_lib_readline_rl_callback_handler_install=yes
20776 else
20777 echo "$as_me: failed program was:" >&5
20778 sed 's/^/| /' conftest.$ac_ext >&5
20780 ac_cv_lib_readline_rl_callback_handler_install=no
20782 rm -f conftest.err conftest.$ac_objext \
20783 conftest$ac_exeext conftest.$ac_ext
20784 LIBS=$ac_check_lib_save_LIBS
20786 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
20787 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
20788 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
20790 cat >>confdefs.h <<\_ACEOF
20791 #define HAVE_RL_CALLBACK 1
20792 _ACEOF
20797 # check for readline 2.2
20798 cat >conftest.$ac_ext <<_ACEOF
20799 /* confdefs.h. */
20800 _ACEOF
20801 cat confdefs.h >>conftest.$ac_ext
20802 cat >>conftest.$ac_ext <<_ACEOF
20803 /* end confdefs.h. */
20804 #include <readline/readline.h>
20805 _ACEOF
20806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20807 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20808 ac_status=$?
20809 grep -v '^ *+' conftest.er1 >conftest.err
20810 rm -f conftest.er1
20811 cat conftest.err >&5
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); } >/dev/null; then
20814 if test -s conftest.err; then
20815 ac_cpp_err=$ac_c_preproc_warn_flag
20816 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20817 else
20818 ac_cpp_err=
20820 else
20821 ac_cpp_err=yes
20823 if test -z "$ac_cpp_err"; then
20824 have_readline=yes
20825 else
20826 echo "$as_me: failed program was:" >&5
20827 sed 's/^/| /' conftest.$ac_ext >&5
20829 have_readline=no
20831 rm -f conftest.err conftest.$ac_ext
20832 if test $have_readline = yes
20833 then
20834 cat >conftest.$ac_ext <<_ACEOF
20835 /* confdefs.h. */
20836 _ACEOF
20837 cat confdefs.h >>conftest.$ac_ext
20838 cat >>conftest.$ac_ext <<_ACEOF
20839 /* end confdefs.h. */
20840 #include <readline/readline.h>
20842 _ACEOF
20843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20844 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
20846 cat >>confdefs.h <<\_ACEOF
20847 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20848 _ACEOF
20851 rm -f conftest*
20855 # check for readline 4.0
20856 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
20857 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
20858 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
20859 echo $ECHO_N "(cached) $ECHO_C" >&6
20860 else
20861 ac_check_lib_save_LIBS=$LIBS
20862 LIBS="-lreadline $LIBS"
20863 cat >conftest.$ac_ext <<_ACEOF
20864 /* confdefs.h. */
20865 _ACEOF
20866 cat confdefs.h >>conftest.$ac_ext
20867 cat >>conftest.$ac_ext <<_ACEOF
20868 /* end confdefs.h. */
20870 /* Override any gcc2 internal prototype to avoid an error. */
20871 #ifdef __cplusplus
20872 extern "C"
20873 #endif
20874 /* We use char because int might match the return type of a gcc2
20875 builtin and then its argument prototype would still apply. */
20876 char rl_pre_input_hook ();
20878 main ()
20880 rl_pre_input_hook ();
20882 return 0;
20884 _ACEOF
20885 rm -f conftest.$ac_objext conftest$ac_exeext
20886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20887 (eval $ac_link) 2>conftest.er1
20888 ac_status=$?
20889 grep -v '^ *+' conftest.er1 >conftest.err
20890 rm -f conftest.er1
20891 cat conftest.err >&5
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); } &&
20894 { ac_try='test -z "$ac_c_werror_flag"
20895 || test ! -s conftest.err'
20896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20897 (eval $ac_try) 2>&5
20898 ac_status=$?
20899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900 (exit $ac_status); }; } &&
20901 { ac_try='test -s conftest$ac_exeext'
20902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20903 (eval $ac_try) 2>&5
20904 ac_status=$?
20905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 (exit $ac_status); }; }; then
20907 ac_cv_lib_readline_rl_pre_input_hook=yes
20908 else
20909 echo "$as_me: failed program was:" >&5
20910 sed 's/^/| /' conftest.$ac_ext >&5
20912 ac_cv_lib_readline_rl_pre_input_hook=no
20914 rm -f conftest.err conftest.$ac_objext \
20915 conftest$ac_exeext conftest.$ac_ext
20916 LIBS=$ac_check_lib_save_LIBS
20918 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
20919 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
20920 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
20922 cat >>confdefs.h <<\_ACEOF
20923 #define HAVE_RL_PRE_INPUT_HOOK 1
20924 _ACEOF
20929 # check for readline 4.2
20930 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
20931 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
20932 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
20933 echo $ECHO_N "(cached) $ECHO_C" >&6
20934 else
20935 ac_check_lib_save_LIBS=$LIBS
20936 LIBS="-lreadline $LIBS"
20937 cat >conftest.$ac_ext <<_ACEOF
20938 /* confdefs.h. */
20939 _ACEOF
20940 cat confdefs.h >>conftest.$ac_ext
20941 cat >>conftest.$ac_ext <<_ACEOF
20942 /* end confdefs.h. */
20944 /* Override any gcc2 internal prototype to avoid an error. */
20945 #ifdef __cplusplus
20946 extern "C"
20947 #endif
20948 /* We use char because int might match the return type of a gcc2
20949 builtin and then its argument prototype would still apply. */
20950 char rl_completion_matches ();
20952 main ()
20954 rl_completion_matches ();
20956 return 0;
20958 _ACEOF
20959 rm -f conftest.$ac_objext conftest$ac_exeext
20960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20961 (eval $ac_link) 2>conftest.er1
20962 ac_status=$?
20963 grep -v '^ *+' conftest.er1 >conftest.err
20964 rm -f conftest.er1
20965 cat conftest.err >&5
20966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967 (exit $ac_status); } &&
20968 { ac_try='test -z "$ac_c_werror_flag"
20969 || test ! -s conftest.err'
20970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20971 (eval $ac_try) 2>&5
20972 ac_status=$?
20973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); }; } &&
20975 { ac_try='test -s conftest$ac_exeext'
20976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20977 (eval $ac_try) 2>&5
20978 ac_status=$?
20979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980 (exit $ac_status); }; }; then
20981 ac_cv_lib_readline_rl_completion_matches=yes
20982 else
20983 echo "$as_me: failed program was:" >&5
20984 sed 's/^/| /' conftest.$ac_ext >&5
20986 ac_cv_lib_readline_rl_completion_matches=no
20988 rm -f conftest.err conftest.$ac_objext \
20989 conftest$ac_exeext conftest.$ac_ext
20990 LIBS=$ac_check_lib_save_LIBS
20992 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
20993 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
20994 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
20996 cat >>confdefs.h <<\_ACEOF
20997 #define HAVE_RL_COMPLETION_MATCHES 1
20998 _ACEOF
21003 # also in readline 4.2
21004 cat >conftest.$ac_ext <<_ACEOF
21005 /* confdefs.h. */
21006 _ACEOF
21007 cat confdefs.h >>conftest.$ac_ext
21008 cat >>conftest.$ac_ext <<_ACEOF
21009 /* end confdefs.h. */
21010 #include <readline/readline.h>
21011 _ACEOF
21012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21013 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
21020 if test -s conftest.err; then
21021 ac_cpp_err=$ac_c_preproc_warn_flag
21022 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21023 else
21024 ac_cpp_err=
21026 else
21027 ac_cpp_err=yes
21029 if test -z "$ac_cpp_err"; then
21030 have_readline=yes
21031 else
21032 echo "$as_me: failed program was:" >&5
21033 sed 's/^/| /' conftest.$ac_ext >&5
21035 have_readline=no
21037 rm -f conftest.err conftest.$ac_ext
21038 if test $have_readline = yes
21039 then
21040 cat >conftest.$ac_ext <<_ACEOF
21041 /* confdefs.h. */
21042 _ACEOF
21043 cat confdefs.h >>conftest.$ac_ext
21044 cat >>conftest.$ac_ext <<_ACEOF
21045 /* end confdefs.h. */
21046 #include <readline/readline.h>
21048 _ACEOF
21049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21050 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
21052 cat >>confdefs.h <<\_ACEOF
21053 #define HAVE_RL_CATCH_SIGNAL 1
21054 _ACEOF
21057 rm -f conftest*
21061 # End of readline checks: restore LIBS
21062 LIBS=$LIBS_no_readline
21064 echo "$as_me:$LINENO: checking for broken nice()" >&5
21065 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
21066 if test "${ac_cv_broken_nice+set}" = set; then
21067 echo $ECHO_N "(cached) $ECHO_C" >&6
21068 else
21070 if test "$cross_compiling" = yes; then
21071 ac_cv_broken_nice=no
21072 else
21073 cat >conftest.$ac_ext <<_ACEOF
21074 /* confdefs.h. */
21075 _ACEOF
21076 cat confdefs.h >>conftest.$ac_ext
21077 cat >>conftest.$ac_ext <<_ACEOF
21078 /* end confdefs.h. */
21080 int main()
21082 int val1 = nice(1);
21083 if (val1 != -1 && val1 == nice(2))
21084 exit(0);
21085 exit(1);
21088 _ACEOF
21089 rm -f conftest$ac_exeext
21090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21091 (eval $ac_link) 2>&5
21092 ac_status=$?
21093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_broken_nice=yes
21101 else
21102 echo "$as_me: program exited with status $ac_status" >&5
21103 echo "$as_me: failed program was:" >&5
21104 sed 's/^/| /' conftest.$ac_ext >&5
21106 ( exit $ac_status )
21107 ac_cv_broken_nice=no
21109 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21113 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
21114 echo "${ECHO_T}$ac_cv_broken_nice" >&6
21115 if test "$ac_cv_broken_nice" = yes
21116 then
21118 cat >>confdefs.h <<\_ACEOF
21119 #define HAVE_BROKEN_NICE 1
21120 _ACEOF
21124 echo "$as_me:$LINENO: checking for broken poll()" >&5
21125 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6
21126 if test "$cross_compiling" = yes; then
21127 ac_cv_broken_poll=no
21128 else
21129 cat >conftest.$ac_ext <<_ACEOF
21130 /* confdefs.h. */
21131 _ACEOF
21132 cat confdefs.h >>conftest.$ac_ext
21133 cat >>conftest.$ac_ext <<_ACEOF
21134 /* end confdefs.h. */
21136 #include <poll.h>
21138 int main (void)
21140 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
21142 close (42);
21144 int poll_test = poll (&poll_struct, 1, 0);
21146 if (poll_test < 0)
21148 exit(0);
21150 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
21152 exit(0);
21154 else
21156 exit(1);
21160 _ACEOF
21161 rm -f conftest$ac_exeext
21162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21163 (eval $ac_link) 2>&5
21164 ac_status=$?
21165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21168 (eval $ac_try) 2>&5
21169 ac_status=$?
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); }; }; then
21172 ac_cv_broken_poll=yes
21173 else
21174 echo "$as_me: program exited with status $ac_status" >&5
21175 echo "$as_me: failed program was:" >&5
21176 sed 's/^/| /' conftest.$ac_ext >&5
21178 ( exit $ac_status )
21179 ac_cv_broken_poll=no
21181 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21183 echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
21184 echo "${ECHO_T}$ac_cv_broken_poll" >&6
21185 if test "$ac_cv_broken_poll" = yes
21186 then
21188 cat >>confdefs.h <<\_ACEOF
21189 #define HAVE_BROKEN_POLL 1
21190 _ACEOF
21194 # Before we can test tzset, we need to check if struct tm has a tm_zone
21195 # (which is not required by ISO C or UNIX spec) and/or if we support
21196 # tzname[]
21197 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21198 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21199 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21200 echo $ECHO_N "(cached) $ECHO_C" >&6
21201 else
21202 cat >conftest.$ac_ext <<_ACEOF
21203 /* confdefs.h. */
21204 _ACEOF
21205 cat confdefs.h >>conftest.$ac_ext
21206 cat >>conftest.$ac_ext <<_ACEOF
21207 /* end confdefs.h. */
21208 #include <sys/types.h>
21209 #include <$ac_cv_struct_tm>
21213 main ()
21215 static struct tm ac_aggr;
21216 if (ac_aggr.tm_zone)
21217 return 0;
21219 return 0;
21221 _ACEOF
21222 rm -f conftest.$ac_objext
21223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21224 (eval $ac_compile) 2>conftest.er1
21225 ac_status=$?
21226 grep -v '^ *+' conftest.er1 >conftest.err
21227 rm -f conftest.er1
21228 cat conftest.err >&5
21229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230 (exit $ac_status); } &&
21231 { ac_try='test -z "$ac_c_werror_flag"
21232 || test ! -s conftest.err'
21233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21234 (eval $ac_try) 2>&5
21235 ac_status=$?
21236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237 (exit $ac_status); }; } &&
21238 { ac_try='test -s conftest.$ac_objext'
21239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21240 (eval $ac_try) 2>&5
21241 ac_status=$?
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); }; }; then
21244 ac_cv_member_struct_tm_tm_zone=yes
21245 else
21246 echo "$as_me: failed program was:" >&5
21247 sed 's/^/| /' conftest.$ac_ext >&5
21249 cat >conftest.$ac_ext <<_ACEOF
21250 /* confdefs.h. */
21251 _ACEOF
21252 cat confdefs.h >>conftest.$ac_ext
21253 cat >>conftest.$ac_ext <<_ACEOF
21254 /* end confdefs.h. */
21255 #include <sys/types.h>
21256 #include <$ac_cv_struct_tm>
21260 main ()
21262 static struct tm ac_aggr;
21263 if (sizeof ac_aggr.tm_zone)
21264 return 0;
21266 return 0;
21268 _ACEOF
21269 rm -f conftest.$ac_objext
21270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21271 (eval $ac_compile) 2>conftest.er1
21272 ac_status=$?
21273 grep -v '^ *+' conftest.er1 >conftest.err
21274 rm -f conftest.er1
21275 cat conftest.err >&5
21276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277 (exit $ac_status); } &&
21278 { ac_try='test -z "$ac_c_werror_flag"
21279 || test ! -s conftest.err'
21280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21281 (eval $ac_try) 2>&5
21282 ac_status=$?
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); }; } &&
21285 { ac_try='test -s conftest.$ac_objext'
21286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21287 (eval $ac_try) 2>&5
21288 ac_status=$?
21289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290 (exit $ac_status); }; }; then
21291 ac_cv_member_struct_tm_tm_zone=yes
21292 else
21293 echo "$as_me: failed program was:" >&5
21294 sed 's/^/| /' conftest.$ac_ext >&5
21296 ac_cv_member_struct_tm_tm_zone=no
21298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21302 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21303 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21304 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21306 cat >>confdefs.h <<_ACEOF
21307 #define HAVE_STRUCT_TM_TM_ZONE 1
21308 _ACEOF
21313 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21315 cat >>confdefs.h <<\_ACEOF
21316 #define HAVE_TM_ZONE 1
21317 _ACEOF
21319 else
21320 echo "$as_me:$LINENO: checking for tzname" >&5
21321 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21322 if test "${ac_cv_var_tzname+set}" = set; then
21323 echo $ECHO_N "(cached) $ECHO_C" >&6
21324 else
21325 cat >conftest.$ac_ext <<_ACEOF
21326 /* confdefs.h. */
21327 _ACEOF
21328 cat confdefs.h >>conftest.$ac_ext
21329 cat >>conftest.$ac_ext <<_ACEOF
21330 /* end confdefs.h. */
21331 #include <time.h>
21332 #ifndef tzname /* For SGI. */
21333 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21334 #endif
21337 main ()
21339 atoi(*tzname);
21341 return 0;
21343 _ACEOF
21344 rm -f conftest.$ac_objext conftest$ac_exeext
21345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21346 (eval $ac_link) 2>conftest.er1
21347 ac_status=$?
21348 grep -v '^ *+' conftest.er1 >conftest.err
21349 rm -f conftest.er1
21350 cat conftest.err >&5
21351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352 (exit $ac_status); } &&
21353 { ac_try='test -z "$ac_c_werror_flag"
21354 || test ! -s conftest.err'
21355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21356 (eval $ac_try) 2>&5
21357 ac_status=$?
21358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359 (exit $ac_status); }; } &&
21360 { ac_try='test -s conftest$ac_exeext'
21361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21362 (eval $ac_try) 2>&5
21363 ac_status=$?
21364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365 (exit $ac_status); }; }; then
21366 ac_cv_var_tzname=yes
21367 else
21368 echo "$as_me: failed program was:" >&5
21369 sed 's/^/| /' conftest.$ac_ext >&5
21371 ac_cv_var_tzname=no
21373 rm -f conftest.err conftest.$ac_objext \
21374 conftest$ac_exeext conftest.$ac_ext
21376 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21377 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21378 if test $ac_cv_var_tzname = yes; then
21380 cat >>confdefs.h <<\_ACEOF
21381 #define HAVE_TZNAME 1
21382 _ACEOF
21388 # check tzset(3) exists and works like we expect it to
21389 echo "$as_me:$LINENO: checking for working tzset()" >&5
21390 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
21391 if test "${ac_cv_working_tzset+set}" = set; then
21392 echo $ECHO_N "(cached) $ECHO_C" >&6
21393 else
21395 if test "$cross_compiling" = yes; then
21396 ac_cv_working_tzset=no
21397 else
21398 cat >conftest.$ac_ext <<_ACEOF
21399 /* confdefs.h. */
21400 _ACEOF
21401 cat confdefs.h >>conftest.$ac_ext
21402 cat >>conftest.$ac_ext <<_ACEOF
21403 /* end confdefs.h. */
21405 #include <stdlib.h>
21406 #include <time.h>
21407 #include <string.h>
21409 #if HAVE_TZNAME
21410 extern char *tzname[];
21411 #endif
21413 int main()
21415 /* Note that we need to ensure that not only does tzset(3)
21416 do 'something' with localtime, but it works as documented
21417 in the library reference and as expected by the test suite.
21418 This includes making sure that tzname is set properly if
21419 tm->tm_zone does not exist since it is the alternative way
21420 of getting timezone info.
21422 Red Hat 6.2 doesn't understand the southern hemisphere
21423 after New Year's Day.
21426 time_t groundhogday = 1044144000; /* GMT-based */
21427 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
21429 putenv("TZ=UTC+0");
21430 tzset();
21431 if (localtime(&groundhogday)->tm_hour != 0)
21432 exit(1);
21433 #if HAVE_TZNAME
21434 /* For UTC, tzname[1] is sometimes "", sometimes " " */
21435 if (strcmp(tzname[0], "UTC") ||
21436 (tzname[1][0] != 0 && tzname[1][0] != ' '))
21437 exit(1);
21438 #endif
21440 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
21441 tzset();
21442 if (localtime(&groundhogday)->tm_hour != 19)
21443 exit(1);
21444 #if HAVE_TZNAME
21445 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
21446 exit(1);
21447 #endif
21449 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
21450 tzset();
21451 if (localtime(&groundhogday)->tm_hour != 11)
21452 exit(1);
21453 #if HAVE_TZNAME
21454 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
21455 exit(1);
21456 #endif
21458 #if HAVE_STRUCT_TM_TM_ZONE
21459 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
21460 exit(1);
21461 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
21462 exit(1);
21463 #endif
21465 exit(0);
21468 _ACEOF
21469 rm -f conftest$ac_exeext
21470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21471 (eval $ac_link) 2>&5
21472 ac_status=$?
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21476 (eval $ac_try) 2>&5
21477 ac_status=$?
21478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); }; }; then
21480 ac_cv_working_tzset=yes
21481 else
21482 echo "$as_me: program exited with status $ac_status" >&5
21483 echo "$as_me: failed program was:" >&5
21484 sed 's/^/| /' conftest.$ac_ext >&5
21486 ( exit $ac_status )
21487 ac_cv_working_tzset=no
21489 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21493 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
21494 echo "${ECHO_T}$ac_cv_working_tzset" >&6
21495 if test "$ac_cv_working_tzset" = yes
21496 then
21498 cat >>confdefs.h <<\_ACEOF
21499 #define HAVE_WORKING_TZSET 1
21500 _ACEOF
21504 # Look for subsecond timestamps in struct stat
21505 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
21506 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
21507 if test "${ac_cv_stat_tv_nsec+set}" = set; then
21508 echo $ECHO_N "(cached) $ECHO_C" >&6
21509 else
21510 cat >conftest.$ac_ext <<_ACEOF
21511 /* confdefs.h. */
21512 _ACEOF
21513 cat confdefs.h >>conftest.$ac_ext
21514 cat >>conftest.$ac_ext <<_ACEOF
21515 /* end confdefs.h. */
21516 #include <sys/stat.h>
21518 main ()
21521 struct stat st;
21522 st.st_mtim.tv_nsec = 1;
21525 return 0;
21527 _ACEOF
21528 rm -f conftest.$ac_objext
21529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21530 (eval $ac_compile) 2>conftest.er1
21531 ac_status=$?
21532 grep -v '^ *+' conftest.er1 >conftest.err
21533 rm -f conftest.er1
21534 cat conftest.err >&5
21535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536 (exit $ac_status); } &&
21537 { ac_try='test -z "$ac_c_werror_flag"
21538 || test ! -s conftest.err'
21539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21540 (eval $ac_try) 2>&5
21541 ac_status=$?
21542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543 (exit $ac_status); }; } &&
21544 { ac_try='test -s conftest.$ac_objext'
21545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21546 (eval $ac_try) 2>&5
21547 ac_status=$?
21548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549 (exit $ac_status); }; }; then
21550 ac_cv_stat_tv_nsec=yes
21551 else
21552 echo "$as_me: failed program was:" >&5
21553 sed 's/^/| /' conftest.$ac_ext >&5
21555 ac_cv_stat_tv_nsec=no
21557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21560 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
21561 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
21562 if test "$ac_cv_stat_tv_nsec" = yes
21563 then
21565 cat >>confdefs.h <<\_ACEOF
21566 #define HAVE_STAT_TV_NSEC 1
21567 _ACEOF
21571 # Look for BSD style subsecond timestamps in struct stat
21572 echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
21573 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6
21574 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
21575 echo $ECHO_N "(cached) $ECHO_C" >&6
21576 else
21577 cat >conftest.$ac_ext <<_ACEOF
21578 /* confdefs.h. */
21579 _ACEOF
21580 cat confdefs.h >>conftest.$ac_ext
21581 cat >>conftest.$ac_ext <<_ACEOF
21582 /* end confdefs.h. */
21583 #include <sys/stat.h>
21585 main ()
21588 struct stat st;
21589 st.st_mtimespec.tv_nsec = 1;
21592 return 0;
21594 _ACEOF
21595 rm -f conftest.$ac_objext
21596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21597 (eval $ac_compile) 2>conftest.er1
21598 ac_status=$?
21599 grep -v '^ *+' conftest.er1 >conftest.err
21600 rm -f conftest.er1
21601 cat conftest.err >&5
21602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603 (exit $ac_status); } &&
21604 { ac_try='test -z "$ac_c_werror_flag"
21605 || test ! -s conftest.err'
21606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21607 (eval $ac_try) 2>&5
21608 ac_status=$?
21609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610 (exit $ac_status); }; } &&
21611 { ac_try='test -s conftest.$ac_objext'
21612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21613 (eval $ac_try) 2>&5
21614 ac_status=$?
21615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616 (exit $ac_status); }; }; then
21617 ac_cv_stat_tv_nsec2=yes
21618 else
21619 echo "$as_me: failed program was:" >&5
21620 sed 's/^/| /' conftest.$ac_ext >&5
21622 ac_cv_stat_tv_nsec2=no
21624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21627 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
21628 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6
21629 if test "$ac_cv_stat_tv_nsec2" = yes
21630 then
21632 cat >>confdefs.h <<\_ACEOF
21633 #define HAVE_STAT_TV_NSEC2 1
21634 _ACEOF
21638 # On HP/UX 11.0, mvwdelch is a block with a return statement
21639 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
21640 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
21641 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
21642 echo $ECHO_N "(cached) $ECHO_C" >&6
21643 else
21644 cat >conftest.$ac_ext <<_ACEOF
21645 /* confdefs.h. */
21646 _ACEOF
21647 cat confdefs.h >>conftest.$ac_ext
21648 cat >>conftest.$ac_ext <<_ACEOF
21649 /* end confdefs.h. */
21650 #include <curses.h>
21652 main ()
21655 int rtn;
21656 rtn = mvwdelch(0,0,0);
21659 return 0;
21661 _ACEOF
21662 rm -f conftest.$ac_objext
21663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21664 (eval $ac_compile) 2>conftest.er1
21665 ac_status=$?
21666 grep -v '^ *+' conftest.er1 >conftest.err
21667 rm -f conftest.er1
21668 cat conftest.err >&5
21669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670 (exit $ac_status); } &&
21671 { ac_try='test -z "$ac_c_werror_flag"
21672 || test ! -s conftest.err'
21673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21674 (eval $ac_try) 2>&5
21675 ac_status=$?
21676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677 (exit $ac_status); }; } &&
21678 { ac_try='test -s conftest.$ac_objext'
21679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21680 (eval $ac_try) 2>&5
21681 ac_status=$?
21682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683 (exit $ac_status); }; }; then
21684 ac_cv_mvwdelch_is_expression=yes
21685 else
21686 echo "$as_me: failed program was:" >&5
21687 sed 's/^/| /' conftest.$ac_ext >&5
21689 ac_cv_mvwdelch_is_expression=no
21691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21694 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
21695 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
21697 if test "$ac_cv_mvwdelch_is_expression" = yes
21698 then
21700 cat >>confdefs.h <<\_ACEOF
21701 #define MVWDELCH_IS_EXPRESSION 1
21702 _ACEOF
21706 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
21707 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
21708 if test "${ac_cv_window_has_flags+set}" = set; then
21709 echo $ECHO_N "(cached) $ECHO_C" >&6
21710 else
21711 cat >conftest.$ac_ext <<_ACEOF
21712 /* confdefs.h. */
21713 _ACEOF
21714 cat confdefs.h >>conftest.$ac_ext
21715 cat >>conftest.$ac_ext <<_ACEOF
21716 /* end confdefs.h. */
21717 #include <curses.h>
21719 main ()
21722 WINDOW *w;
21723 w->_flags = 0;
21726 return 0;
21728 _ACEOF
21729 rm -f conftest.$ac_objext
21730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21731 (eval $ac_compile) 2>conftest.er1
21732 ac_status=$?
21733 grep -v '^ *+' conftest.er1 >conftest.err
21734 rm -f conftest.er1
21735 cat conftest.err >&5
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); } &&
21738 { ac_try='test -z "$ac_c_werror_flag"
21739 || test ! -s conftest.err'
21740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21741 (eval $ac_try) 2>&5
21742 ac_status=$?
21743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); }; } &&
21745 { ac_try='test -s conftest.$ac_objext'
21746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21747 (eval $ac_try) 2>&5
21748 ac_status=$?
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); }; }; then
21751 ac_cv_window_has_flags=yes
21752 else
21753 echo "$as_me: failed program was:" >&5
21754 sed 's/^/| /' conftest.$ac_ext >&5
21756 ac_cv_window_has_flags=no
21758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21761 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
21762 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
21765 if test "$ac_cv_window_has_flags" = yes
21766 then
21768 cat >>confdefs.h <<\_ACEOF
21769 #define WINDOW_HAS_FLAGS 1
21770 _ACEOF
21774 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
21775 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
21777 if test -e /dev/ptmx
21778 then
21779 echo "$as_me:$LINENO: result: yes" >&5
21780 echo "${ECHO_T}yes" >&6
21782 cat >>confdefs.h <<\_ACEOF
21783 #define HAVE_DEV_PTMX 1
21784 _ACEOF
21786 else
21787 echo "$as_me:$LINENO: result: no" >&5
21788 echo "${ECHO_T}no" >&6
21791 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
21792 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
21794 if test -e /dev/ptc
21795 then
21796 echo "$as_me:$LINENO: result: yes" >&5
21797 echo "${ECHO_T}yes" >&6
21799 cat >>confdefs.h <<\_ACEOF
21800 #define HAVE_DEV_PTC 1
21801 _ACEOF
21803 else
21804 echo "$as_me:$LINENO: result: no" >&5
21805 echo "${ECHO_T}no" >&6
21808 echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
21809 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6
21810 if test "$cross_compiling" = yes; then
21811 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21812 See \`config.log' for more details." >&5
21813 echo "$as_me: error: cannot run test program while cross compiling
21814 See \`config.log' for more details." >&2;}
21815 { (exit 1); exit 1; }; }
21816 else
21817 cat >conftest.$ac_ext <<_ACEOF
21818 /* confdefs.h. */
21819 _ACEOF
21820 cat confdefs.h >>conftest.$ac_ext
21821 cat >>conftest.$ac_ext <<_ACEOF
21822 /* end confdefs.h. */
21823 #include <stdio.h>
21824 #include <stddef.h>
21825 #include <string.h>
21827 int main()
21829 char buffer[4];
21831 if(sprintf(buffer, "%zd", (size_t)123) < 0)
21832 return 1;
21834 if (strncmp(buffer, "123", 3))
21835 return 1;
21837 return 0;
21839 _ACEOF
21840 rm -f conftest$ac_exeext
21841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21842 (eval $ac_link) 2>&5
21843 ac_status=$?
21844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21847 (eval $ac_try) 2>&5
21848 ac_status=$?
21849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850 (exit $ac_status); }; }; then
21851 echo "$as_me:$LINENO: result: yes" >&5
21852 echo "${ECHO_T}yes" >&6
21854 cat >>confdefs.h <<\_ACEOF
21855 #define PY_FORMAT_SIZE_T "z"
21856 _ACEOF
21858 else
21859 echo "$as_me: program exited with status $ac_status" >&5
21860 echo "$as_me: failed program was:" >&5
21861 sed 's/^/| /' conftest.$ac_ext >&5
21863 ( exit $ac_status )
21864 echo "$as_me:$LINENO: result: no" >&5
21865 echo "${ECHO_T}no" >&6
21867 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21870 echo "$as_me:$LINENO: checking for socklen_t" >&5
21871 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21872 if test "${ac_cv_type_socklen_t+set}" = set; then
21873 echo $ECHO_N "(cached) $ECHO_C" >&6
21874 else
21875 cat >conftest.$ac_ext <<_ACEOF
21876 /* confdefs.h. */
21877 _ACEOF
21878 cat confdefs.h >>conftest.$ac_ext
21879 cat >>conftest.$ac_ext <<_ACEOF
21880 /* end confdefs.h. */
21882 #ifdef HAVE_SYS_TYPES_H
21883 #include <sys/types.h>
21884 #endif
21885 #ifdef HAVE_SYS_SOCKET_H
21886 #include <sys/socket.h>
21887 #endif
21891 main ()
21893 if ((socklen_t *) 0)
21894 return 0;
21895 if (sizeof (socklen_t))
21896 return 0;
21898 return 0;
21900 _ACEOF
21901 rm -f conftest.$ac_objext
21902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21903 (eval $ac_compile) 2>conftest.er1
21904 ac_status=$?
21905 grep -v '^ *+' conftest.er1 >conftest.err
21906 rm -f conftest.er1
21907 cat conftest.err >&5
21908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909 (exit $ac_status); } &&
21910 { ac_try='test -z "$ac_c_werror_flag"
21911 || test ! -s conftest.err'
21912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21913 (eval $ac_try) 2>&5
21914 ac_status=$?
21915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916 (exit $ac_status); }; } &&
21917 { ac_try='test -s conftest.$ac_objext'
21918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21919 (eval $ac_try) 2>&5
21920 ac_status=$?
21921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21922 (exit $ac_status); }; }; then
21923 ac_cv_type_socklen_t=yes
21924 else
21925 echo "$as_me: failed program was:" >&5
21926 sed 's/^/| /' conftest.$ac_ext >&5
21928 ac_cv_type_socklen_t=no
21930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21932 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21933 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
21934 if test $ac_cv_type_socklen_t = yes; then
21936 else
21938 cat >>confdefs.h <<\_ACEOF
21939 #define socklen_t int
21940 _ACEOF
21947 for h in `(cd $srcdir;echo Python/thread_*.h)`
21949 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
21950 done
21953 SRCDIRS="Parser Grammar Objects Python Modules Mac"
21954 echo "$as_me:$LINENO: checking for build directories" >&5
21955 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
21956 for dir in $SRCDIRS; do
21957 if test ! -d $dir; then
21958 mkdir $dir
21960 done
21961 echo "$as_me:$LINENO: result: done" >&5
21962 echo "${ECHO_T}done" >&6
21964 # generate output files
21965 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
21967 cat >confcache <<\_ACEOF
21968 # This file is a shell script that caches the results of configure
21969 # tests run on this system so they can be shared between configure
21970 # scripts and configure runs, see configure's option --config-cache.
21971 # It is not useful on other systems. If it contains results you don't
21972 # want to keep, you may remove or edit it.
21974 # config.status only pays attention to the cache file if you give it
21975 # the --recheck option to rerun configure.
21977 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21978 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21979 # following values.
21981 _ACEOF
21983 # The following way of writing the cache mishandles newlines in values,
21984 # but we know of no workaround that is simple, portable, and efficient.
21985 # So, don't put newlines in cache variables' values.
21986 # Ultrix sh set writes to stderr and can't be redirected directly,
21987 # and sets the high bit in the cache file unless we assign to the vars.
21989 (set) 2>&1 |
21990 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21991 *ac_space=\ *)
21992 # `set' does not quote correctly, so add quotes (double-quote
21993 # substitution turns \\\\ into \\, and sed turns \\ into \).
21994 sed -n \
21995 "s/'/'\\\\''/g;
21996 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21999 # `set' quotes correctly as required by POSIX, so do not add quotes.
22000 sed -n \
22001 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22003 esac;
22005 sed '
22006 t clear
22007 : clear
22008 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22009 t end
22010 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22011 : end' >>confcache
22012 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22013 if test -w $cache_file; then
22014 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22015 cat confcache >$cache_file
22016 else
22017 echo "not updating unwritable cache $cache_file"
22020 rm -f confcache
22022 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22023 # Let make expand exec_prefix.
22024 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22026 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22027 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22028 # trailing colons and then remove the whole line if VPATH becomes empty
22029 # (actually we leave an empty line to preserve line numbers).
22030 if test "x$srcdir" = x.; then
22031 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22032 s/:*\$(srcdir):*/:/;
22033 s/:*\${srcdir}:*/:/;
22034 s/:*@srcdir@:*/:/;
22035 s/^\([^=]*=[ ]*\):*/\1/;
22036 s/:*$//;
22037 s/^[^=]*=[ ]*$//;
22041 DEFS=-DHAVE_CONFIG_H
22043 ac_libobjs=
22044 ac_ltlibobjs=
22045 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22046 # 1. Remove the extension, and $U if already installed.
22047 ac_i=`echo "$ac_i" |
22048 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22049 # 2. Add them.
22050 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22051 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22052 done
22053 LIBOBJS=$ac_libobjs
22055 LTLIBOBJS=$ac_ltlibobjs
22059 : ${CONFIG_STATUS=./config.status}
22060 ac_clean_files_save=$ac_clean_files
22061 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22062 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22063 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22064 cat >$CONFIG_STATUS <<_ACEOF
22065 #! $SHELL
22066 # Generated by $as_me.
22067 # Run this file to recreate the current configuration.
22068 # Compiler output produced by configure, useful for debugging
22069 # configure, is in config.log if it exists.
22071 debug=false
22072 ac_cs_recheck=false
22073 ac_cs_silent=false
22074 SHELL=\${CONFIG_SHELL-$SHELL}
22075 _ACEOF
22077 cat >>$CONFIG_STATUS <<\_ACEOF
22078 ## --------------------- ##
22079 ## M4sh Initialization. ##
22080 ## --------------------- ##
22082 # Be Bourne compatible
22083 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22084 emulate sh
22085 NULLCMD=:
22086 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22087 # is contrary to our usage. Disable this feature.
22088 alias -g '${1+"$@"}'='"$@"'
22089 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22090 set -o posix
22092 DUALCASE=1; export DUALCASE # for MKS sh
22094 # Support unset when possible.
22095 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22096 as_unset=unset
22097 else
22098 as_unset=false
22102 # Work around bugs in pre-3.0 UWIN ksh.
22103 $as_unset ENV MAIL MAILPATH
22104 PS1='$ '
22105 PS2='> '
22106 PS4='+ '
22108 # NLS nuisances.
22109 for as_var in \
22110 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22111 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22112 LC_TELEPHONE LC_TIME
22114 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22115 eval $as_var=C; export $as_var
22116 else
22117 $as_unset $as_var
22119 done
22121 # Required to use basename.
22122 if expr a : '\(a\)' >/dev/null 2>&1; then
22123 as_expr=expr
22124 else
22125 as_expr=false
22128 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22129 as_basename=basename
22130 else
22131 as_basename=false
22135 # Name of the executable.
22136 as_me=`$as_basename "$0" ||
22137 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22138 X"$0" : 'X\(//\)$' \| \
22139 X"$0" : 'X\(/\)$' \| \
22140 . : '\(.\)' 2>/dev/null ||
22141 echo X/"$0" |
22142 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22143 /^X\/\(\/\/\)$/{ s//\1/; q; }
22144 /^X\/\(\/\).*/{ s//\1/; q; }
22145 s/.*/./; q'`
22148 # PATH needs CR, and LINENO needs CR and PATH.
22149 # Avoid depending upon Character Ranges.
22150 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22151 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22152 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22153 as_cr_digits='0123456789'
22154 as_cr_alnum=$as_cr_Letters$as_cr_digits
22156 # The user is always right.
22157 if test "${PATH_SEPARATOR+set}" != set; then
22158 echo "#! /bin/sh" >conf$$.sh
22159 echo "exit 0" >>conf$$.sh
22160 chmod +x conf$$.sh
22161 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22162 PATH_SEPARATOR=';'
22163 else
22164 PATH_SEPARATOR=:
22166 rm -f conf$$.sh
22170 as_lineno_1=$LINENO
22171 as_lineno_2=$LINENO
22172 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22173 test "x$as_lineno_1" != "x$as_lineno_2" &&
22174 test "x$as_lineno_3" = "x$as_lineno_2" || {
22175 # Find who we are. Look in the path if we contain no path at all
22176 # relative or not.
22177 case $0 in
22178 *[\\/]* ) as_myself=$0 ;;
22179 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22180 for as_dir in $PATH
22182 IFS=$as_save_IFS
22183 test -z "$as_dir" && as_dir=.
22184 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22185 done
22188 esac
22189 # We did not find ourselves, most probably we were run as `sh COMMAND'
22190 # in which case we are not to be found in the path.
22191 if test "x$as_myself" = x; then
22192 as_myself=$0
22194 if test ! -f "$as_myself"; then
22195 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22196 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22197 { (exit 1); exit 1; }; }
22199 case $CONFIG_SHELL in
22201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22202 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22204 IFS=$as_save_IFS
22205 test -z "$as_dir" && as_dir=.
22206 for as_base in sh bash ksh sh5; do
22207 case $as_dir in
22209 if ("$as_dir/$as_base" -c '
22210 as_lineno_1=$LINENO
22211 as_lineno_2=$LINENO
22212 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22213 test "x$as_lineno_1" != "x$as_lineno_2" &&
22214 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22215 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22216 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22217 CONFIG_SHELL=$as_dir/$as_base
22218 export CONFIG_SHELL
22219 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22220 fi;;
22221 esac
22222 done
22223 done
22225 esac
22227 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22228 # uniformly replaced by the line number. The first 'sed' inserts a
22229 # line-number line before each line; the second 'sed' does the real
22230 # work. The second script uses 'N' to pair each line-number line
22231 # with the numbered line, and appends trailing '-' during
22232 # substitution so that $LINENO is not a special case at line end.
22233 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22234 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22235 sed '=' <$as_myself |
22236 sed '
22238 s,$,-,
22239 : loop
22240 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22241 t loop
22242 s,-$,,
22243 s,^['$as_cr_digits']*\n,,
22244 ' >$as_me.lineno &&
22245 chmod +x $as_me.lineno ||
22246 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22247 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22248 { (exit 1); exit 1; }; }
22250 # Don't try to exec as it changes $[0], causing all sort of problems
22251 # (the dirname of $[0] is not the place where we might find the
22252 # original and so on. Autoconf is especially sensible to this).
22253 . ./$as_me.lineno
22254 # Exit status is that of the last command.
22255 exit
22259 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22260 *c*,-n*) ECHO_N= ECHO_C='
22261 ' ECHO_T=' ' ;;
22262 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22263 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22264 esac
22266 if expr a : '\(a\)' >/dev/null 2>&1; then
22267 as_expr=expr
22268 else
22269 as_expr=false
22272 rm -f conf$$ conf$$.exe conf$$.file
22273 echo >conf$$.file
22274 if ln -s conf$$.file conf$$ 2>/dev/null; then
22275 # We could just check for DJGPP; but this test a) works b) is more generic
22276 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22277 if test -f conf$$.exe; then
22278 # Don't use ln at all; we don't have any links
22279 as_ln_s='cp -p'
22280 else
22281 as_ln_s='ln -s'
22283 elif ln conf$$.file conf$$ 2>/dev/null; then
22284 as_ln_s=ln
22285 else
22286 as_ln_s='cp -p'
22288 rm -f conf$$ conf$$.exe conf$$.file
22290 if mkdir -p . 2>/dev/null; then
22291 as_mkdir_p=:
22292 else
22293 test -d ./-p && rmdir ./-p
22294 as_mkdir_p=false
22297 as_executable_p="test -f"
22299 # Sed expression to map a string onto a valid CPP name.
22300 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22302 # Sed expression to map a string onto a valid variable name.
22303 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22306 # IFS
22307 # We need space, tab and new line, in precisely that order.
22308 as_nl='
22310 IFS=" $as_nl"
22312 # CDPATH.
22313 $as_unset CDPATH
22315 exec 6>&1
22317 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22318 # report actual input values of CONFIG_FILES etc. instead of their
22319 # values after options handling. Logging --version etc. is OK.
22320 exec 5>>config.log
22322 echo
22323 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22324 ## Running $as_me. ##
22325 _ASBOX
22326 } >&5
22327 cat >&5 <<_CSEOF
22329 This file was extended by python $as_me 2.5, which was
22330 generated by GNU Autoconf 2.59. Invocation command line was
22332 CONFIG_FILES = $CONFIG_FILES
22333 CONFIG_HEADERS = $CONFIG_HEADERS
22334 CONFIG_LINKS = $CONFIG_LINKS
22335 CONFIG_COMMANDS = $CONFIG_COMMANDS
22336 $ $0 $@
22338 _CSEOF
22339 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22340 echo >&5
22341 _ACEOF
22343 # Files that config.status was made for.
22344 if test -n "$ac_config_files"; then
22345 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22348 if test -n "$ac_config_headers"; then
22349 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22352 if test -n "$ac_config_links"; then
22353 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22356 if test -n "$ac_config_commands"; then
22357 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22360 cat >>$CONFIG_STATUS <<\_ACEOF
22362 ac_cs_usage="\
22363 \`$as_me' instantiates files from templates according to the
22364 current configuration.
22366 Usage: $0 [OPTIONS] [FILE]...
22368 -h, --help print this help, then exit
22369 -V, --version print version number, then exit
22370 -q, --quiet do not print progress messages
22371 -d, --debug don't remove temporary files
22372 --recheck update $as_me by reconfiguring in the same conditions
22373 --file=FILE[:TEMPLATE]
22374 instantiate the configuration file FILE
22375 --header=FILE[:TEMPLATE]
22376 instantiate the configuration header FILE
22378 Configuration files:
22379 $config_files
22381 Configuration headers:
22382 $config_headers
22384 Report bugs to <bug-autoconf@gnu.org>."
22385 _ACEOF
22387 cat >>$CONFIG_STATUS <<_ACEOF
22388 ac_cs_version="\\
22389 python config.status 2.5
22390 configured by $0, generated by GNU Autoconf 2.59,
22391 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22393 Copyright (C) 2003 Free Software Foundation, Inc.
22394 This config.status script is free software; the Free Software Foundation
22395 gives unlimited permission to copy, distribute and modify it."
22396 srcdir=$srcdir
22397 INSTALL="$INSTALL"
22398 _ACEOF
22400 cat >>$CONFIG_STATUS <<\_ACEOF
22401 # If no file are specified by the user, then we need to provide default
22402 # value. By we need to know if files were specified by the user.
22403 ac_need_defaults=:
22404 while test $# != 0
22406 case $1 in
22407 --*=*)
22408 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22409 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22410 ac_shift=:
22413 ac_option=$1
22414 ac_optarg=$2
22415 ac_shift=shift
22417 *) # This is not an option, so the user has probably given explicit
22418 # arguments.
22419 ac_option=$1
22420 ac_need_defaults=false;;
22421 esac
22423 case $ac_option in
22424 # Handling of the options.
22425 _ACEOF
22426 cat >>$CONFIG_STATUS <<\_ACEOF
22427 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22428 ac_cs_recheck=: ;;
22429 --version | --vers* | -V )
22430 echo "$ac_cs_version"; exit 0 ;;
22431 --he | --h)
22432 # Conflict between --help and --header
22433 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22434 Try \`$0 --help' for more information." >&5
22435 echo "$as_me: error: ambiguous option: $1
22436 Try \`$0 --help' for more information." >&2;}
22437 { (exit 1); exit 1; }; };;
22438 --help | --hel | -h )
22439 echo "$ac_cs_usage"; exit 0 ;;
22440 --debug | --d* | -d )
22441 debug=: ;;
22442 --file | --fil | --fi | --f )
22443 $ac_shift
22444 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22445 ac_need_defaults=false;;
22446 --header | --heade | --head | --hea )
22447 $ac_shift
22448 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22449 ac_need_defaults=false;;
22450 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22451 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22452 ac_cs_silent=: ;;
22454 # This is an error.
22455 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22456 Try \`$0 --help' for more information." >&5
22457 echo "$as_me: error: unrecognized option: $1
22458 Try \`$0 --help' for more information." >&2;}
22459 { (exit 1); exit 1; }; } ;;
22461 *) ac_config_targets="$ac_config_targets $1" ;;
22463 esac
22464 shift
22465 done
22467 ac_configure_extra_args=
22469 if $ac_cs_silent; then
22470 exec 6>/dev/null
22471 ac_configure_extra_args="$ac_configure_extra_args --silent"
22474 _ACEOF
22475 cat >>$CONFIG_STATUS <<_ACEOF
22476 if \$ac_cs_recheck; then
22477 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22478 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22481 _ACEOF
22487 cat >>$CONFIG_STATUS <<\_ACEOF
22488 for ac_config_target in $ac_config_targets
22490 case "$ac_config_target" in
22491 # Handling of arguments.
22492 "Mac/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
22493 "Mac/PythonLauncher/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
22494 "Mac/IDLE/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
22495 "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
22496 "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
22497 "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
22498 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22499 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22500 { (exit 1); exit 1; }; };;
22501 esac
22502 done
22504 # If the user did not use the arguments to specify the items to instantiate,
22505 # then the envvar interface is used. Set only those that are not.
22506 # We use the long form for the default assignment because of an extremely
22507 # bizarre bug on SunOS 4.1.3.
22508 if $ac_need_defaults; then
22509 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22510 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22513 # Have a temporary directory for convenience. Make it in the build tree
22514 # simply because there is no reason to put it here, and in addition,
22515 # creating and moving files from /tmp can sometimes cause problems.
22516 # Create a temporary directory, and hook for its removal unless debugging.
22517 $debug ||
22519 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22520 trap '{ (exit 1); exit 1; }' 1 2 13 15
22523 # Create a (secure) tmp directory for tmp files.
22526 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22527 test -n "$tmp" && test -d "$tmp"
22528 } ||
22530 tmp=./confstat$$-$RANDOM
22531 (umask 077 && mkdir $tmp)
22532 } ||
22534 echo "$me: cannot create a temporary directory in ." >&2
22535 { (exit 1); exit 1; }
22538 _ACEOF
22540 cat >>$CONFIG_STATUS <<_ACEOF
22543 # CONFIG_FILES section.
22546 # No need to generate the scripts if there are no CONFIG_FILES.
22547 # This happens for instance when ./config.status config.h
22548 if test -n "\$CONFIG_FILES"; then
22549 # Protect against being on the right side of a sed subst in config.status.
22550 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22551 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22552 s,@SHELL@,$SHELL,;t t
22553 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22554 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22555 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22556 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22557 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22558 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22559 s,@exec_prefix@,$exec_prefix,;t t
22560 s,@prefix@,$prefix,;t t
22561 s,@program_transform_name@,$program_transform_name,;t t
22562 s,@bindir@,$bindir,;t t
22563 s,@sbindir@,$sbindir,;t t
22564 s,@libexecdir@,$libexecdir,;t t
22565 s,@datadir@,$datadir,;t t
22566 s,@sysconfdir@,$sysconfdir,;t t
22567 s,@sharedstatedir@,$sharedstatedir,;t t
22568 s,@localstatedir@,$localstatedir,;t t
22569 s,@libdir@,$libdir,;t t
22570 s,@includedir@,$includedir,;t t
22571 s,@oldincludedir@,$oldincludedir,;t t
22572 s,@infodir@,$infodir,;t t
22573 s,@mandir@,$mandir,;t t
22574 s,@build_alias@,$build_alias,;t t
22575 s,@host_alias@,$host_alias,;t t
22576 s,@target_alias@,$target_alias,;t t
22577 s,@DEFS@,$DEFS,;t t
22578 s,@ECHO_C@,$ECHO_C,;t t
22579 s,@ECHO_N@,$ECHO_N,;t t
22580 s,@ECHO_T@,$ECHO_T,;t t
22581 s,@LIBS@,$LIBS,;t t
22582 s,@VERSION@,$VERSION,;t t
22583 s,@SOVERSION@,$SOVERSION,;t t
22584 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
22585 s,@UNIVERSALSDK@,$UNIVERSALSDK,;t t
22586 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
22587 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
22588 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
22589 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
22590 s,@FRAMEWORKINSTALLFIRST@,$FRAMEWORKINSTALLFIRST,;t t
22591 s,@FRAMEWORKINSTALLLAST@,$FRAMEWORKINSTALLLAST,;t t
22592 s,@FRAMEWORKALTINSTALLFIRST@,$FRAMEWORKALTINSTALLFIRST,;t t
22593 s,@FRAMEWORKALTINSTALLLAST@,$FRAMEWORKALTINSTALLLAST,;t t
22594 s,@FRAMEWORKUNIXTOOLSPREFIX@,$FRAMEWORKUNIXTOOLSPREFIX,;t t
22595 s,@MACHDEP@,$MACHDEP,;t t
22596 s,@SGI_ABI@,$SGI_ABI,;t t
22597 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
22598 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
22599 s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t
22600 s,@EXPORT_MACOSX_DEPLOYMENT_TARGET@,$EXPORT_MACOSX_DEPLOYMENT_TARGET,;t t
22601 s,@CC@,$CC,;t t
22602 s,@CFLAGS@,$CFLAGS,;t t
22603 s,@LDFLAGS@,$LDFLAGS,;t t
22604 s,@CPPFLAGS@,$CPPFLAGS,;t t
22605 s,@ac_ct_CC@,$ac_ct_CC,;t t
22606 s,@EXEEXT@,$EXEEXT,;t t
22607 s,@OBJEXT@,$OBJEXT,;t t
22608 s,@CXX@,$CXX,;t t
22609 s,@MAINCC@,$MAINCC,;t t
22610 s,@CPP@,$CPP,;t t
22611 s,@EGREP@,$EGREP,;t t
22612 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
22613 s,@LIBRARY@,$LIBRARY,;t t
22614 s,@LDLIBRARY@,$LDLIBRARY,;t t
22615 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
22616 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
22617 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
22618 s,@INSTSONAME@,$INSTSONAME,;t t
22619 s,@RUNSHARED@,$RUNSHARED,;t t
22620 s,@LINKCC@,$LINKCC,;t t
22621 s,@RANLIB@,$RANLIB,;t t
22622 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22623 s,@AR@,$AR,;t t
22624 s,@SVNVERSION@,$SVNVERSION,;t t
22625 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22626 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22627 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22628 s,@LN@,$LN,;t t
22629 s,@OPT@,$OPT,;t t
22630 s,@BASECFLAGS@,$BASECFLAGS,;t t
22631 s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t
22632 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
22633 s,@SO@,$SO,;t t
22634 s,@LDSHARED@,$LDSHARED,;t t
22635 s,@BLDSHARED@,$BLDSHARED,;t t
22636 s,@CCSHARED@,$CCSHARED,;t t
22637 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
22638 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
22639 s,@SHLIBS@,$SHLIBS,;t t
22640 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
22641 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
22642 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
22643 s,@LDLAST@,$LDLAST,;t t
22644 s,@THREADOBJ@,$THREADOBJ,;t t
22645 s,@DLINCLDIR@,$DLINCLDIR,;t t
22646 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
22647 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
22648 s,@TRUE@,$TRUE,;t t
22649 s,@LIBOBJS@,$LIBOBJS,;t t
22650 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
22651 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
22652 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
22653 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
22654 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
22655 s,@LIBM@,$LIBM,;t t
22656 s,@LIBC@,$LIBC,;t t
22657 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
22658 s,@THREADHEADERS@,$THREADHEADERS,;t t
22659 s,@SRCDIRS@,$SRCDIRS,;t t
22660 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22661 CEOF
22663 _ACEOF
22665 cat >>$CONFIG_STATUS <<\_ACEOF
22666 # Split the substitutions into bite-sized pieces for seds with
22667 # small command number limits, like on Digital OSF/1 and HP-UX.
22668 ac_max_sed_lines=48
22669 ac_sed_frag=1 # Number of current file.
22670 ac_beg=1 # First line for current file.
22671 ac_end=$ac_max_sed_lines # Line after last line for current file.
22672 ac_more_lines=:
22673 ac_sed_cmds=
22674 while $ac_more_lines; do
22675 if test $ac_beg -gt 1; then
22676 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22677 else
22678 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22680 if test ! -s $tmp/subs.frag; then
22681 ac_more_lines=false
22682 else
22683 # The purpose of the label and of the branching condition is to
22684 # speed up the sed processing (if there are no `@' at all, there
22685 # is no need to browse any of the substitutions).
22686 # These are the two extra sed commands mentioned above.
22687 (echo ':t
22688 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22689 if test -z "$ac_sed_cmds"; then
22690 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22691 else
22692 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22694 ac_sed_frag=`expr $ac_sed_frag + 1`
22695 ac_beg=$ac_end
22696 ac_end=`expr $ac_end + $ac_max_sed_lines`
22698 done
22699 if test -z "$ac_sed_cmds"; then
22700 ac_sed_cmds=cat
22702 fi # test -n "$CONFIG_FILES"
22704 _ACEOF
22705 cat >>$CONFIG_STATUS <<\_ACEOF
22706 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22707 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22708 case $ac_file in
22709 - | *:- | *:-:* ) # input from stdin
22710 cat >$tmp/stdin
22711 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22712 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22713 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22714 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22715 * ) ac_file_in=$ac_file.in ;;
22716 esac
22718 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22719 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22720 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22721 X"$ac_file" : 'X\(//\)[^/]' \| \
22722 X"$ac_file" : 'X\(//\)$' \| \
22723 X"$ac_file" : 'X\(/\)' \| \
22724 . : '\(.\)' 2>/dev/null ||
22725 echo X"$ac_file" |
22726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22727 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22728 /^X\(\/\/\)$/{ s//\1/; q; }
22729 /^X\(\/\).*/{ s//\1/; q; }
22730 s/.*/./; q'`
22731 { if $as_mkdir_p; then
22732 mkdir -p "$ac_dir"
22733 else
22734 as_dir="$ac_dir"
22735 as_dirs=
22736 while test ! -d "$as_dir"; do
22737 as_dirs="$as_dir $as_dirs"
22738 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22739 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22740 X"$as_dir" : 'X\(//\)[^/]' \| \
22741 X"$as_dir" : 'X\(//\)$' \| \
22742 X"$as_dir" : 'X\(/\)' \| \
22743 . : '\(.\)' 2>/dev/null ||
22744 echo X"$as_dir" |
22745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22746 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22747 /^X\(\/\/\)$/{ s//\1/; q; }
22748 /^X\(\/\).*/{ s//\1/; q; }
22749 s/.*/./; q'`
22750 done
22751 test ! -n "$as_dirs" || mkdir $as_dirs
22752 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22753 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22754 { (exit 1); exit 1; }; }; }
22756 ac_builddir=.
22758 if test "$ac_dir" != .; then
22759 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22760 # A "../" for each directory in $ac_dir_suffix.
22761 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22762 else
22763 ac_dir_suffix= ac_top_builddir=
22766 case $srcdir in
22767 .) # No --srcdir option. We are building in place.
22768 ac_srcdir=.
22769 if test -z "$ac_top_builddir"; then
22770 ac_top_srcdir=.
22771 else
22772 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22773 fi ;;
22774 [\\/]* | ?:[\\/]* ) # Absolute path.
22775 ac_srcdir=$srcdir$ac_dir_suffix;
22776 ac_top_srcdir=$srcdir ;;
22777 *) # Relative path.
22778 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22779 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22780 esac
22782 # Do not use `cd foo && pwd` to compute absolute paths, because
22783 # the directories may not exist.
22784 case `pwd` in
22785 .) ac_abs_builddir="$ac_dir";;
22787 case "$ac_dir" in
22788 .) ac_abs_builddir=`pwd`;;
22789 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22790 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22791 esac;;
22792 esac
22793 case $ac_abs_builddir in
22794 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22796 case ${ac_top_builddir}. in
22797 .) ac_abs_top_builddir=$ac_abs_builddir;;
22798 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22799 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22800 esac;;
22801 esac
22802 case $ac_abs_builddir in
22803 .) ac_abs_srcdir=$ac_srcdir;;
22805 case $ac_srcdir in
22806 .) ac_abs_srcdir=$ac_abs_builddir;;
22807 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22808 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22809 esac;;
22810 esac
22811 case $ac_abs_builddir in
22812 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22814 case $ac_top_srcdir in
22815 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22816 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22817 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22818 esac;;
22819 esac
22822 case $INSTALL in
22823 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22824 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22825 esac
22827 if test x"$ac_file" != x-; then
22828 { echo "$as_me:$LINENO: creating $ac_file" >&5
22829 echo "$as_me: creating $ac_file" >&6;}
22830 rm -f "$ac_file"
22832 # Let's still pretend it is `configure' which instantiates (i.e., don't
22833 # use $as_me), people would be surprised to read:
22834 # /* config.h. Generated by config.status. */
22835 if test x"$ac_file" = x-; then
22836 configure_input=
22837 else
22838 configure_input="$ac_file. "
22840 configure_input=$configure_input"Generated from `echo $ac_file_in |
22841 sed 's,.*/,,'` by configure."
22843 # First look for the input files in the build tree, otherwise in the
22844 # src tree.
22845 ac_file_inputs=`IFS=:
22846 for f in $ac_file_in; do
22847 case $f in
22848 -) echo $tmp/stdin ;;
22849 [\\/$]*)
22850 # Absolute (can't be DOS-style, as IFS=:)
22851 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22852 echo "$as_me: error: cannot find input file: $f" >&2;}
22853 { (exit 1); exit 1; }; }
22854 echo "$f";;
22855 *) # Relative
22856 if test -f "$f"; then
22857 # Build tree
22858 echo "$f"
22859 elif test -f "$srcdir/$f"; then
22860 # Source tree
22861 echo "$srcdir/$f"
22862 else
22863 # /dev/null tree
22864 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22865 echo "$as_me: error: cannot find input file: $f" >&2;}
22866 { (exit 1); exit 1; }; }
22867 fi;;
22868 esac
22869 done` || { (exit 1); exit 1; }
22870 _ACEOF
22871 cat >>$CONFIG_STATUS <<_ACEOF
22872 sed "$ac_vpsub
22873 $extrasub
22874 _ACEOF
22875 cat >>$CONFIG_STATUS <<\_ACEOF
22877 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22878 s,@configure_input@,$configure_input,;t t
22879 s,@srcdir@,$ac_srcdir,;t t
22880 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22881 s,@top_srcdir@,$ac_top_srcdir,;t t
22882 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22883 s,@builddir@,$ac_builddir,;t t
22884 s,@abs_builddir@,$ac_abs_builddir,;t t
22885 s,@top_builddir@,$ac_top_builddir,;t t
22886 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22887 s,@INSTALL@,$ac_INSTALL,;t t
22888 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22889 rm -f $tmp/stdin
22890 if test x"$ac_file" != x-; then
22891 mv $tmp/out $ac_file
22892 else
22893 cat $tmp/out
22894 rm -f $tmp/out
22897 done
22898 _ACEOF
22899 cat >>$CONFIG_STATUS <<\_ACEOF
22902 # CONFIG_HEADER section.
22905 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22906 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22908 # ac_d sets the value in "#define NAME VALUE" lines.
22909 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22910 ac_dB='[ ].*$,\1#\2'
22911 ac_dC=' '
22912 ac_dD=',;t'
22913 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22914 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22915 ac_uB='$,\1#\2define\3'
22916 ac_uC=' '
22917 ac_uD=',;t'
22919 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22920 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22921 case $ac_file in
22922 - | *:- | *:-:* ) # input from stdin
22923 cat >$tmp/stdin
22924 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22925 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22926 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22927 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22928 * ) ac_file_in=$ac_file.in ;;
22929 esac
22931 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22932 echo "$as_me: creating $ac_file" >&6;}
22934 # First look for the input files in the build tree, otherwise in the
22935 # src tree.
22936 ac_file_inputs=`IFS=:
22937 for f in $ac_file_in; do
22938 case $f in
22939 -) echo $tmp/stdin ;;
22940 [\\/$]*)
22941 # Absolute (can't be DOS-style, as IFS=:)
22942 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22943 echo "$as_me: error: cannot find input file: $f" >&2;}
22944 { (exit 1); exit 1; }; }
22945 # Do quote $f, to prevent DOS paths from being IFS'd.
22946 echo "$f";;
22947 *) # Relative
22948 if test -f "$f"; then
22949 # Build tree
22950 echo "$f"
22951 elif test -f "$srcdir/$f"; then
22952 # Source tree
22953 echo "$srcdir/$f"
22954 else
22955 # /dev/null tree
22956 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22957 echo "$as_me: error: cannot find input file: $f" >&2;}
22958 { (exit 1); exit 1; }; }
22959 fi;;
22960 esac
22961 done` || { (exit 1); exit 1; }
22962 # Remove the trailing spaces.
22963 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22965 _ACEOF
22967 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22968 # `conftest.undefs', that substitutes the proper values into
22969 # config.h.in to produce config.h. The first handles `#define'
22970 # templates, and the second `#undef' templates.
22971 # And first: Protect against being on the right side of a sed subst in
22972 # config.status. Protect against being in an unquoted here document
22973 # in config.status.
22974 rm -f conftest.defines conftest.undefs
22975 # Using a here document instead of a string reduces the quoting nightmare.
22976 # Putting comments in sed scripts is not portable.
22978 # `end' is used to avoid that the second main sed command (meant for
22979 # 0-ary CPP macros) applies to n-ary macro definitions.
22980 # See the Autoconf documentation for `clear'.
22981 cat >confdef2sed.sed <<\_ACEOF
22982 s/[\\&,]/\\&/g
22983 s,[\\$`],\\&,g
22984 t clear
22985 : clear
22986 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22987 t end
22988 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22989 : end
22990 _ACEOF
22991 # If some macros were called several times there might be several times
22992 # the same #defines, which is useless. Nevertheless, we may not want to
22993 # sort them, since we want the *last* AC-DEFINE to be honored.
22994 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22995 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22996 rm -f confdef2sed.sed
22998 # This sed command replaces #undef with comments. This is necessary, for
22999 # example, in the case of _POSIX_SOURCE, which is predefined and required
23000 # on some systems where configure will not decide to define it.
23001 cat >>conftest.undefs <<\_ACEOF
23002 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23003 _ACEOF
23005 # Break up conftest.defines because some shells have a limit on the size
23006 # of here documents, and old seds have small limits too (100 cmds).
23007 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23008 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23009 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23010 echo ' :' >>$CONFIG_STATUS
23011 rm -f conftest.tail
23012 while grep . conftest.defines >/dev/null
23014 # Write a limited-size here document to $tmp/defines.sed.
23015 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23016 # Speed up: don't consider the non `#define' lines.
23017 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23018 # Work around the forget-to-reset-the-flag bug.
23019 echo 't clr' >>$CONFIG_STATUS
23020 echo ': clr' >>$CONFIG_STATUS
23021 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23022 echo 'CEOF
23023 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23024 rm -f $tmp/in
23025 mv $tmp/out $tmp/in
23026 ' >>$CONFIG_STATUS
23027 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23028 rm -f conftest.defines
23029 mv conftest.tail conftest.defines
23030 done
23031 rm -f conftest.defines
23032 echo ' fi # grep' >>$CONFIG_STATUS
23033 echo >>$CONFIG_STATUS
23035 # Break up conftest.undefs because some shells have a limit on the size
23036 # of here documents, and old seds have small limits too (100 cmds).
23037 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23038 rm -f conftest.tail
23039 while grep . conftest.undefs >/dev/null
23041 # Write a limited-size here document to $tmp/undefs.sed.
23042 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23043 # Speed up: don't consider the non `#undef'
23044 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23045 # Work around the forget-to-reset-the-flag bug.
23046 echo 't clr' >>$CONFIG_STATUS
23047 echo ': clr' >>$CONFIG_STATUS
23048 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23049 echo 'CEOF
23050 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23051 rm -f $tmp/in
23052 mv $tmp/out $tmp/in
23053 ' >>$CONFIG_STATUS
23054 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23055 rm -f conftest.undefs
23056 mv conftest.tail conftest.undefs
23057 done
23058 rm -f conftest.undefs
23060 cat >>$CONFIG_STATUS <<\_ACEOF
23061 # Let's still pretend it is `configure' which instantiates (i.e., don't
23062 # use $as_me), people would be surprised to read:
23063 # /* config.h. Generated by config.status. */
23064 if test x"$ac_file" = x-; then
23065 echo "/* Generated by configure. */" >$tmp/config.h
23066 else
23067 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23069 cat $tmp/in >>$tmp/config.h
23070 rm -f $tmp/in
23071 if test x"$ac_file" != x-; then
23072 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23073 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23074 echo "$as_me: $ac_file is unchanged" >&6;}
23075 else
23076 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23077 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23078 X"$ac_file" : 'X\(//\)[^/]' \| \
23079 X"$ac_file" : 'X\(//\)$' \| \
23080 X"$ac_file" : 'X\(/\)' \| \
23081 . : '\(.\)' 2>/dev/null ||
23082 echo X"$ac_file" |
23083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23084 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23085 /^X\(\/\/\)$/{ s//\1/; q; }
23086 /^X\(\/\).*/{ s//\1/; q; }
23087 s/.*/./; q'`
23088 { if $as_mkdir_p; then
23089 mkdir -p "$ac_dir"
23090 else
23091 as_dir="$ac_dir"
23092 as_dirs=
23093 while test ! -d "$as_dir"; do
23094 as_dirs="$as_dir $as_dirs"
23095 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23096 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23097 X"$as_dir" : 'X\(//\)[^/]' \| \
23098 X"$as_dir" : 'X\(//\)$' \| \
23099 X"$as_dir" : 'X\(/\)' \| \
23100 . : '\(.\)' 2>/dev/null ||
23101 echo X"$as_dir" |
23102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23103 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23104 /^X\(\/\/\)$/{ s//\1/; q; }
23105 /^X\(\/\).*/{ s//\1/; q; }
23106 s/.*/./; q'`
23107 done
23108 test ! -n "$as_dirs" || mkdir $as_dirs
23109 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23110 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23111 { (exit 1); exit 1; }; }; }
23113 rm -f $ac_file
23114 mv $tmp/config.h $ac_file
23116 else
23117 cat $tmp/config.h
23118 rm -f $tmp/config.h
23120 done
23121 _ACEOF
23123 cat >>$CONFIG_STATUS <<\_ACEOF
23125 { (exit 0); exit 0; }
23126 _ACEOF
23127 chmod +x $CONFIG_STATUS
23128 ac_clean_files=$ac_clean_files_save
23131 # configure is writing to config.log, and then calls config.status.
23132 # config.status does its own redirection, appending to config.log.
23133 # Unfortunately, on DOS this fails, as config.log is still kept open
23134 # by configure, so config.status won't be able to write to it; its
23135 # output is simply discarded. So we exec the FD to /dev/null,
23136 # effectively closing config.log, so it can be properly (re)opened and
23137 # appended to by config.status. When coming back to configure, we
23138 # need to make the FD available again.
23139 if test "$no_create" != yes; then
23140 ac_cs_success=:
23141 ac_config_status_args=
23142 test "$silent" = yes &&
23143 ac_config_status_args="$ac_config_status_args --quiet"
23144 exec 5>/dev/null
23145 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23146 exec 5>>config.log
23147 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23148 # would make configure fail if this is the last instruction.
23149 $ac_cs_success || { (exit 1); exit 1; }
23153 echo "creating Modules/Setup"
23154 if test ! -f Modules/Setup
23155 then
23156 cp $srcdir/Modules/Setup.dist Modules/Setup
23159 echo "creating Modules/Setup.local"
23160 if test ! -f Modules/Setup.local
23161 then
23162 echo "# Edit this file for local setup changes" >Modules/Setup.local
23165 echo "creating Makefile"
23166 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
23167 -s Modules Modules/Setup.config \
23168 Modules/Setup.local Modules/Setup
23169 mv config.c Modules