Adding basic imputil documentation.
[python.git] / configure
blob42835be6de3e21c00038a690e4bb8e2cab02571b
1 #! /bin/sh
2 # From configure.in Revision: 56636 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for python 2.6.
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.6'
274 PACKAGE_STRING='python 2.6'
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.6 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.6:";;
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.6
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.6, 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.6
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 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
1392 # also defined. This can be overridden by defining _BSD_SOURCE
1394 cat >>confdefs.h <<\_ACEOF
1395 #define _BSD_SOURCE 1
1396 _ACEOF
1399 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1400 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1402 cat >>confdefs.h <<\_ACEOF
1403 #define _BSD_TYPES 1
1404 _ACEOF
1407 define_xopen_source=yes
1409 # Arguments passed to configure.
1411 CONFIG_ARGS="$ac_configure_args"
1413 # Check whether --enable-universalsdk or --disable-universalsdk was given.
1414 if test "${enable_universalsdk+set}" = set; then
1415 enableval="$enable_universalsdk"
1417 case $enableval in
1418 yes)
1419 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1421 esac
1422 case $enableval in
1424 UNIVERSALSDK=
1425 enable_universalsdk=
1428 UNIVERSALSDK=$enableval
1430 esac
1432 else
1434 UNIVERSALSDK=
1435 enable_universalsdk=
1440 # Check whether --enable-framework or --disable-framework was given.
1441 if test "${enable_framework+set}" = set; then
1442 enableval="$enable_framework"
1444 case $enableval in
1445 yes)
1446 enableval=/Library/Frameworks
1447 esac
1448 case $enableval in
1450 PYTHONFRAMEWORK=
1451 PYTHONFRAMEWORKDIR=no-framework
1452 PYTHONFRAMEWORKPREFIX=
1453 PYTHONFRAMEWORKINSTALLDIR=
1454 FRAMEWORKINSTALLFIRST=
1455 FRAMEWORKINSTALLLAST=
1456 FRAMEWORKALTINSTALLFIRST=
1457 FRAMEWORKALTINSTALLLAST=
1458 if test "x${prefix}" = "xNONE"; then
1459 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1460 else
1461 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1463 enable_framework=
1466 PYTHONFRAMEWORK=Python
1467 PYTHONFRAMEWORKDIR=Python.framework
1468 PYTHONFRAMEWORKPREFIX=$enableval
1469 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1470 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1471 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1472 FRAMEWORKALTINSTALLFIRST="${FRAMEWORKINSTALLFIRST} bininstall maninstall"
1473 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1474 if test "x${prefix}" = "xNONE" ; then
1475 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1476 else
1477 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1479 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1481 # Add makefiles for Mac specific code to the list of output
1482 # files:
1483 ac_config_files="$ac_config_files Mac/Makefile"
1485 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
1487 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
1489 esac
1491 else
1493 PYTHONFRAMEWORK=
1494 PYTHONFRAMEWORKDIR=no-framework
1495 PYTHONFRAMEWORKPREFIX=
1496 PYTHONFRAMEWORKINSTALLDIR=
1497 FRAMEWORKINSTALLFIRST=
1498 FRAMEWORKINSTALLLAST=
1499 FRAMEWORKALTINSTALLFIRST=
1500 FRAMEWORKALTINSTALLLAST=
1501 if test "x${prefix}" = "xNONE" ; then
1502 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1503 else
1504 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1506 enable_framework=
1519 ##AC_ARG_WITH(dyld,
1520 ## AC_HELP_STRING(--with-dyld,
1521 ## Use (OpenStep|Rhapsody) dynamic linker))
1523 # Set name for machine-dependent library files
1525 echo "$as_me:$LINENO: checking MACHDEP" >&5
1526 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1527 if test -z "$MACHDEP"
1528 then
1529 ac_sys_system=`uname -s`
1530 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1531 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1532 ac_sys_release=`uname -v`
1533 else
1534 ac_sys_release=`uname -r`
1536 ac_md_system=`echo $ac_sys_system |
1537 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1538 ac_md_release=`echo $ac_sys_release |
1539 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
1540 MACHDEP="$ac_md_system$ac_md_release"
1542 case $MACHDEP in
1543 cygwin*) MACHDEP="cygwin";;
1544 darwin*) MACHDEP="darwin";;
1545 atheos*) MACHDEP="atheos";;
1546 irix646) MACHDEP="irix6";;
1547 '') MACHDEP="unknown";;
1548 esac
1551 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1552 # disable features if it is defined, without any means to access these
1553 # features as extensions. For these systems, we skip the definition of
1554 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1555 # some feature, make sure there is no alternative way to access this
1556 # feature. Also, when using wildcards, make sure you have verified the
1557 # need for not defining _XOPEN_SOURCE on all systems matching the
1558 # wildcard, and that the wildcard does not include future systems
1559 # (which may remove their limitations).
1560 case $ac_sys_system/$ac_sys_release in
1561 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
1562 # even though select is a POSIX function. Reported by J. Ribbens.
1563 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
1564 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0])
1565 define_xopen_source=no;;
1566 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
1567 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
1568 # Marc Recht
1569 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6A-S)
1570 define_xopen_source=no;;
1571 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
1572 # of union __?sigval. Reported by Stuart Bishop.
1573 SunOS/5.6)
1574 define_xopen_source=no;;
1575 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
1576 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
1577 # Reconfirmed for 7.1.4 by Martin v. Loewis.
1578 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
1579 define_xopen_source=no;;
1580 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
1581 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
1582 SCO_SV/3.2)
1583 define_xopen_source=no;;
1584 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
1585 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
1586 # this is fixed in 10.3, which identifies itself as Darwin/7.*
1587 # This should hopefully be fixed in FreeBSD 4.9
1588 FreeBSD/4.8* | Darwin/6* )
1589 define_xopen_source=no;;
1590 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
1591 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
1592 # or has another value. By not (re)defining it, the defaults come in place.
1593 AIX/4)
1594 define_xopen_source=no;;
1595 AIX/5)
1596 if test `uname -r` -eq 1; then
1597 define_xopen_source=no
1600 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1601 # disables platform specific features beyond repair.
1602 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1603 # has no effect, don't bother defining them
1604 Darwin/[789].*)
1605 define_xopen_source=no
1608 esac
1610 if test $define_xopen_source = yes
1611 then
1612 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
1613 # defined precisely as g++ defines it
1614 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
1615 # compiler
1616 case $ac_sys_system/$ac_sys_release in
1617 SunOS/5.8|SunOS/5.9|SunOS/5.10)
1619 cat >>confdefs.h <<\_ACEOF
1620 #define _XOPEN_SOURCE 500
1621 _ACEOF
1626 cat >>confdefs.h <<\_ACEOF
1627 #define _XOPEN_SOURCE 600
1628 _ACEOF
1631 esac
1633 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1634 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1635 # several APIs are not declared. Since this is also needed in some
1636 # cases for HP-UX, we define it globally.
1637 # except for Solaris 10, where it must not be defined,
1638 # as it implies XPG4.2
1639 case $ac_sys_system/$ac_sys_release in
1640 SunOS/5.10)
1644 cat >>confdefs.h <<\_ACEOF
1645 #define _XOPEN_SOURCE_EXTENDED 1
1646 _ACEOF
1649 esac
1652 cat >>confdefs.h <<\_ACEOF
1653 #define _POSIX_C_SOURCE 200112L
1654 _ACEOF
1660 # SGI compilers allow the specification of the both the ABI and the
1661 # ISA on the command line. Depending on the values of these switches,
1662 # different and often incompatable code will be generated.
1664 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1665 # thus supply support for various ABI/ISA combinations. The MACHDEP
1666 # variable is also adjusted.
1669 if test ! -z "$SGI_ABI"
1670 then
1671 CC="cc $SGI_ABI"
1672 LDFLAGS="$SGI_ABI $LDFLAGS"
1673 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1675 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1676 echo "${ECHO_T}$MACHDEP" >&6
1678 # And add extra plat-mac for darwin
1681 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1682 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1683 if test -z "$EXTRAPLATDIR"
1684 then
1685 case $MACHDEP in
1686 darwin)
1687 EXTRAPLATDIR="\$(PLATMACDIRS)"
1688 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
1691 EXTRAPLATDIR=""
1692 EXTRAMACHDEPPATH=""
1694 esac
1696 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1697 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1699 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
1700 # it may influence the way we can build extensions, so distutils
1701 # needs to check it
1704 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
1705 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
1707 # checks for alternative programs
1709 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1710 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1711 # just to get things to compile and link. Users are free to override OPT
1712 # when running configure or make. The build should not break if they do.
1713 # BASECFLAGS should generally not be messed with, however.
1715 # XXX shouldn't some/most/all of this code be merged with the stuff later
1716 # on that fiddles with OPT and BASECFLAGS?
1717 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1718 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1720 # Check whether --with-gcc or --without-gcc was given.
1721 if test "${with_gcc+set}" = set; then
1722 withval="$with_gcc"
1724 case $withval in
1725 no) CC=cc
1726 without_gcc=yes;;
1727 yes) CC=gcc
1728 without_gcc=no;;
1729 *) CC=$withval
1730 without_gcc=$withval;;
1731 esac
1732 else
1734 case $ac_sys_system in
1735 AIX*) CC=cc_r
1736 without_gcc=;;
1737 BeOS*)
1738 case $BE_HOST_CPU in
1739 ppc)
1740 CC=mwcc
1741 without_gcc=yes
1742 BASECFLAGS="$BASECFLAGS -export pragma"
1743 OPT="$OPT -O"
1744 LDFLAGS="$LDFLAGS -nodup"
1746 x86)
1747 CC=gcc
1748 without_gcc=no
1749 OPT="$OPT -O"
1752 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1753 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1754 { (exit 1); exit 1; }; }
1756 esac
1757 AR="\$(srcdir)/Modules/ar_beos"
1758 RANLIB=:
1760 Monterey*)
1761 RANLIB=:
1762 without_gcc=;;
1763 *) without_gcc=no;;
1764 esac
1766 echo "$as_me:$LINENO: result: $without_gcc" >&5
1767 echo "${ECHO_T}$without_gcc" >&6
1769 # If the user switches compilers, we can't believe the cache
1770 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1771 then
1772 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1773 (it is also a good idea to do 'make clean' before compiling)" >&5
1774 echo "$as_me: error: cached CC is different -- throw away $cache_file
1775 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1776 { (exit 1); exit 1; }; }
1779 ac_ext=c
1780 ac_cpp='$CPP $CPPFLAGS'
1781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1784 if test -n "$ac_tool_prefix"; then
1785 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1786 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1787 echo "$as_me:$LINENO: checking for $ac_word" >&5
1788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1789 if test "${ac_cv_prog_CC+set}" = set; then
1790 echo $ECHO_N "(cached) $ECHO_C" >&6
1791 else
1792 if test -n "$CC"; then
1793 ac_cv_prog_CC="$CC" # Let the user override the test.
1794 else
1795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1796 for as_dir in $PATH
1798 IFS=$as_save_IFS
1799 test -z "$as_dir" && as_dir=.
1800 for ac_exec_ext in '' $ac_executable_extensions; do
1801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1802 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1804 break 2
1806 done
1807 done
1811 CC=$ac_cv_prog_CC
1812 if test -n "$CC"; then
1813 echo "$as_me:$LINENO: result: $CC" >&5
1814 echo "${ECHO_T}$CC" >&6
1815 else
1816 echo "$as_me:$LINENO: result: no" >&5
1817 echo "${ECHO_T}no" >&6
1821 if test -z "$ac_cv_prog_CC"; then
1822 ac_ct_CC=$CC
1823 # Extract the first word of "gcc", so it can be a program name with args.
1824 set dummy gcc; ac_word=$2
1825 echo "$as_me:$LINENO: checking for $ac_word" >&5
1826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1827 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1828 echo $ECHO_N "(cached) $ECHO_C" >&6
1829 else
1830 if test -n "$ac_ct_CC"; then
1831 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1832 else
1833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1834 for as_dir in $PATH
1836 IFS=$as_save_IFS
1837 test -z "$as_dir" && as_dir=.
1838 for ac_exec_ext in '' $ac_executable_extensions; do
1839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1840 ac_cv_prog_ac_ct_CC="gcc"
1841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1842 break 2
1844 done
1845 done
1849 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1850 if test -n "$ac_ct_CC"; then
1851 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1852 echo "${ECHO_T}$ac_ct_CC" >&6
1853 else
1854 echo "$as_me:$LINENO: result: no" >&5
1855 echo "${ECHO_T}no" >&6
1858 CC=$ac_ct_CC
1859 else
1860 CC="$ac_cv_prog_CC"
1863 if test -z "$CC"; then
1864 if test -n "$ac_tool_prefix"; then
1865 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1866 set dummy ${ac_tool_prefix}cc; ac_word=$2
1867 echo "$as_me:$LINENO: checking for $ac_word" >&5
1868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1869 if test "${ac_cv_prog_CC+set}" = set; then
1870 echo $ECHO_N "(cached) $ECHO_C" >&6
1871 else
1872 if test -n "$CC"; then
1873 ac_cv_prog_CC="$CC" # Let the user override the test.
1874 else
1875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876 for as_dir in $PATH
1878 IFS=$as_save_IFS
1879 test -z "$as_dir" && as_dir=.
1880 for ac_exec_ext in '' $ac_executable_extensions; do
1881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1882 ac_cv_prog_CC="${ac_tool_prefix}cc"
1883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1884 break 2
1886 done
1887 done
1891 CC=$ac_cv_prog_CC
1892 if test -n "$CC"; then
1893 echo "$as_me:$LINENO: result: $CC" >&5
1894 echo "${ECHO_T}$CC" >&6
1895 else
1896 echo "$as_me:$LINENO: result: no" >&5
1897 echo "${ECHO_T}no" >&6
1901 if test -z "$ac_cv_prog_CC"; then
1902 ac_ct_CC=$CC
1903 # Extract the first word of "cc", so it can be a program name with args.
1904 set dummy cc; ac_word=$2
1905 echo "$as_me:$LINENO: checking for $ac_word" >&5
1906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1907 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1908 echo $ECHO_N "(cached) $ECHO_C" >&6
1909 else
1910 if test -n "$ac_ct_CC"; then
1911 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1912 else
1913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914 for as_dir in $PATH
1916 IFS=$as_save_IFS
1917 test -z "$as_dir" && as_dir=.
1918 for ac_exec_ext in '' $ac_executable_extensions; do
1919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1920 ac_cv_prog_ac_ct_CC="cc"
1921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1922 break 2
1924 done
1925 done
1929 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1930 if test -n "$ac_ct_CC"; then
1931 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1932 echo "${ECHO_T}$ac_ct_CC" >&6
1933 else
1934 echo "$as_me:$LINENO: result: no" >&5
1935 echo "${ECHO_T}no" >&6
1938 CC=$ac_ct_CC
1939 else
1940 CC="$ac_cv_prog_CC"
1944 if test -z "$CC"; then
1945 # Extract the first word of "cc", so it can be a program name with args.
1946 set dummy cc; ac_word=$2
1947 echo "$as_me:$LINENO: checking for $ac_word" >&5
1948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1949 if test "${ac_cv_prog_CC+set}" = set; then
1950 echo $ECHO_N "(cached) $ECHO_C" >&6
1951 else
1952 if test -n "$CC"; then
1953 ac_cv_prog_CC="$CC" # Let the user override the test.
1954 else
1955 ac_prog_rejected=no
1956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957 for as_dir in $PATH
1959 IFS=$as_save_IFS
1960 test -z "$as_dir" && as_dir=.
1961 for ac_exec_ext in '' $ac_executable_extensions; do
1962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1963 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1964 ac_prog_rejected=yes
1965 continue
1967 ac_cv_prog_CC="cc"
1968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1969 break 2
1971 done
1972 done
1974 if test $ac_prog_rejected = yes; then
1975 # We found a bogon in the path, so make sure we never use it.
1976 set dummy $ac_cv_prog_CC
1977 shift
1978 if test $# != 0; then
1979 # We chose a different compiler from the bogus one.
1980 # However, it has the same basename, so the bogon will be chosen
1981 # first if we set CC to just the basename; use the full file name.
1982 shift
1983 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1988 CC=$ac_cv_prog_CC
1989 if test -n "$CC"; then
1990 echo "$as_me:$LINENO: result: $CC" >&5
1991 echo "${ECHO_T}$CC" >&6
1992 else
1993 echo "$as_me:$LINENO: result: no" >&5
1994 echo "${ECHO_T}no" >&6
1998 if test -z "$CC"; then
1999 if test -n "$ac_tool_prefix"; then
2000 for ac_prog in cl
2002 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2003 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2004 echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006 if test "${ac_cv_prog_CC+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 else
2009 if test -n "$CC"; then
2010 ac_cv_prog_CC="$CC" # Let the user override the test.
2011 else
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 for as_dir in $PATH
2015 IFS=$as_save_IFS
2016 test -z "$as_dir" && as_dir=.
2017 for ac_exec_ext in '' $ac_executable_extensions; do
2018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2019 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2021 break 2
2023 done
2024 done
2028 CC=$ac_cv_prog_CC
2029 if test -n "$CC"; then
2030 echo "$as_me:$LINENO: result: $CC" >&5
2031 echo "${ECHO_T}$CC" >&6
2032 else
2033 echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6
2037 test -n "$CC" && break
2038 done
2040 if test -z "$CC"; then
2041 ac_ct_CC=$CC
2042 for ac_prog in cl
2044 # Extract the first word of "$ac_prog", so it can be a program name with args.
2045 set dummy $ac_prog; ac_word=$2
2046 echo "$as_me:$LINENO: checking for $ac_word" >&5
2047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2048 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051 if test -n "$ac_ct_CC"; then
2052 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2053 else
2054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055 for as_dir in $PATH
2057 IFS=$as_save_IFS
2058 test -z "$as_dir" && as_dir=.
2059 for ac_exec_ext in '' $ac_executable_extensions; do
2060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2061 ac_cv_prog_ac_ct_CC="$ac_prog"
2062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063 break 2
2065 done
2066 done
2070 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2071 if test -n "$ac_ct_CC"; then
2072 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2073 echo "${ECHO_T}$ac_ct_CC" >&6
2074 else
2075 echo "$as_me:$LINENO: result: no" >&5
2076 echo "${ECHO_T}no" >&6
2079 test -n "$ac_ct_CC" && break
2080 done
2082 CC=$ac_ct_CC
2088 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2089 See \`config.log' for more details." >&5
2090 echo "$as_me: error: no acceptable C compiler found in \$PATH
2091 See \`config.log' for more details." >&2;}
2092 { (exit 1); exit 1; }; }
2094 # Provide some information about the compiler.
2095 echo "$as_me:$LINENO:" \
2096 "checking for C compiler version" >&5
2097 ac_compiler=`set X $ac_compile; echo $2`
2098 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2099 (eval $ac_compiler --version </dev/null >&5) 2>&5
2100 ac_status=$?
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }
2103 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2104 (eval $ac_compiler -v </dev/null >&5) 2>&5
2105 ac_status=$?
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }
2108 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2109 (eval $ac_compiler -V </dev/null >&5) 2>&5
2110 ac_status=$?
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }
2114 cat >conftest.$ac_ext <<_ACEOF
2115 /* confdefs.h. */
2116 _ACEOF
2117 cat confdefs.h >>conftest.$ac_ext
2118 cat >>conftest.$ac_ext <<_ACEOF
2119 /* end confdefs.h. */
2122 main ()
2126 return 0;
2128 _ACEOF
2129 ac_clean_files_save=$ac_clean_files
2130 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2131 # Try to create an executable without -o first, disregard a.out.
2132 # It will help us diagnose broken compilers, and finding out an intuition
2133 # of exeext.
2134 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2135 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2136 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2137 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2138 (eval $ac_link_default) 2>&5
2139 ac_status=$?
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }; then
2142 # Find the output, starting from the most likely. This scheme is
2143 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2144 # resort.
2146 # Be careful to initialize this variable, since it used to be cached.
2147 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2148 ac_cv_exeext=
2149 # b.out is created by i960 compilers.
2150 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2152 test -f "$ac_file" || continue
2153 case $ac_file in
2154 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2156 conftest.$ac_ext )
2157 # This is the source file.
2159 [ab].out )
2160 # We found the default executable, but exeext='' is most
2161 # certainly right.
2162 break;;
2163 *.* )
2164 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2165 # FIXME: I believe we export ac_cv_exeext for Libtool,
2166 # but it would be cool to find out if it's true. Does anybody
2167 # maintain Libtool? --akim.
2168 export ac_cv_exeext
2169 break;;
2171 break;;
2172 esac
2173 done
2174 else
2175 echo "$as_me: failed program was:" >&5
2176 sed 's/^/| /' conftest.$ac_ext >&5
2178 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2179 See \`config.log' for more details." >&5
2180 echo "$as_me: error: C compiler cannot create executables
2181 See \`config.log' for more details." >&2;}
2182 { (exit 77); exit 77; }; }
2185 ac_exeext=$ac_cv_exeext
2186 echo "$as_me:$LINENO: result: $ac_file" >&5
2187 echo "${ECHO_T}$ac_file" >&6
2189 # Check the compiler produces executables we can run. If not, either
2190 # the compiler is broken, or we cross compile.
2191 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2192 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2193 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2194 # If not cross compiling, check that we can run a simple program.
2195 if test "$cross_compiling" != yes; then
2196 if { ac_try='./$ac_file'
2197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2198 (eval $ac_try) 2>&5
2199 ac_status=$?
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); }; }; then
2202 cross_compiling=no
2203 else
2204 if test "$cross_compiling" = maybe; then
2205 cross_compiling=yes
2206 else
2207 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2208 If you meant to cross compile, use \`--host'.
2209 See \`config.log' for more details." >&5
2210 echo "$as_me: error: cannot run C compiled programs.
2211 If you meant to cross compile, use \`--host'.
2212 See \`config.log' for more details." >&2;}
2213 { (exit 1); exit 1; }; }
2217 echo "$as_me:$LINENO: result: yes" >&5
2218 echo "${ECHO_T}yes" >&6
2220 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2221 ac_clean_files=$ac_clean_files_save
2222 # Check the compiler produces executables we can run. If not, either
2223 # the compiler is broken, or we cross compile.
2224 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2225 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2226 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2227 echo "${ECHO_T}$cross_compiling" >&6
2229 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2230 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2232 (eval $ac_link) 2>&5
2233 ac_status=$?
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; then
2236 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2237 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2238 # work properly (i.e., refer to `conftest.exe'), while it won't with
2239 # `rm'.
2240 for ac_file in conftest.exe conftest conftest.*; do
2241 test -f "$ac_file" || continue
2242 case $ac_file in
2243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2244 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2245 export ac_cv_exeext
2246 break;;
2247 * ) break;;
2248 esac
2249 done
2250 else
2251 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2252 See \`config.log' for more details." >&5
2253 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2254 See \`config.log' for more details." >&2;}
2255 { (exit 1); exit 1; }; }
2258 rm -f conftest$ac_cv_exeext
2259 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2260 echo "${ECHO_T}$ac_cv_exeext" >&6
2262 rm -f conftest.$ac_ext
2263 EXEEXT=$ac_cv_exeext
2264 ac_exeext=$EXEEXT
2265 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2266 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2267 if test "${ac_cv_objext+set}" = set; then
2268 echo $ECHO_N "(cached) $ECHO_C" >&6
2269 else
2270 cat >conftest.$ac_ext <<_ACEOF
2271 /* confdefs.h. */
2272 _ACEOF
2273 cat confdefs.h >>conftest.$ac_ext
2274 cat >>conftest.$ac_ext <<_ACEOF
2275 /* end confdefs.h. */
2278 main ()
2282 return 0;
2284 _ACEOF
2285 rm -f conftest.o conftest.obj
2286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2287 (eval $ac_compile) 2>&5
2288 ac_status=$?
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }; then
2291 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2292 case $ac_file in
2293 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2294 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2295 break;;
2296 esac
2297 done
2298 else
2299 echo "$as_me: failed program was:" >&5
2300 sed 's/^/| /' conftest.$ac_ext >&5
2302 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2303 See \`config.log' for more details." >&5
2304 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2305 See \`config.log' for more details." >&2;}
2306 { (exit 1); exit 1; }; }
2309 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2311 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2312 echo "${ECHO_T}$ac_cv_objext" >&6
2313 OBJEXT=$ac_cv_objext
2314 ac_objext=$OBJEXT
2315 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2316 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2317 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
2319 else
2320 cat >conftest.$ac_ext <<_ACEOF
2321 /* confdefs.h. */
2322 _ACEOF
2323 cat confdefs.h >>conftest.$ac_ext
2324 cat >>conftest.$ac_ext <<_ACEOF
2325 /* end confdefs.h. */
2328 main ()
2330 #ifndef __GNUC__
2331 choke me
2332 #endif
2335 return 0;
2337 _ACEOF
2338 rm -f conftest.$ac_objext
2339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2340 (eval $ac_compile) 2>conftest.er1
2341 ac_status=$?
2342 grep -v '^ *+' conftest.er1 >conftest.err
2343 rm -f conftest.er1
2344 cat conftest.err >&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); } &&
2347 { ac_try='test -z "$ac_c_werror_flag"
2348 || test ! -s conftest.err'
2349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2350 (eval $ac_try) 2>&5
2351 ac_status=$?
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); }; } &&
2354 { ac_try='test -s conftest.$ac_objext'
2355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356 (eval $ac_try) 2>&5
2357 ac_status=$?
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }; }; then
2360 ac_compiler_gnu=yes
2361 else
2362 echo "$as_me: failed program was:" >&5
2363 sed 's/^/| /' conftest.$ac_ext >&5
2365 ac_compiler_gnu=no
2367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2368 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2371 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2372 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2373 GCC=`test $ac_compiler_gnu = yes && echo yes`
2374 ac_test_CFLAGS=${CFLAGS+set}
2375 ac_save_CFLAGS=$CFLAGS
2376 CFLAGS="-g"
2377 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2378 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2379 if test "${ac_cv_prog_cc_g+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2381 else
2382 cat >conftest.$ac_ext <<_ACEOF
2383 /* confdefs.h. */
2384 _ACEOF
2385 cat confdefs.h >>conftest.$ac_ext
2386 cat >>conftest.$ac_ext <<_ACEOF
2387 /* end confdefs.h. */
2390 main ()
2394 return 0;
2396 _ACEOF
2397 rm -f conftest.$ac_objext
2398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399 (eval $ac_compile) 2>conftest.er1
2400 ac_status=$?
2401 grep -v '^ *+' conftest.er1 >conftest.err
2402 rm -f conftest.er1
2403 cat conftest.err >&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); } &&
2406 { ac_try='test -z "$ac_c_werror_flag"
2407 || test ! -s conftest.err'
2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409 (eval $ac_try) 2>&5
2410 ac_status=$?
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; } &&
2413 { ac_try='test -s conftest.$ac_objext'
2414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415 (eval $ac_try) 2>&5
2416 ac_status=$?
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; }; then
2419 ac_cv_prog_cc_g=yes
2420 else
2421 echo "$as_me: failed program was:" >&5
2422 sed 's/^/| /' conftest.$ac_ext >&5
2424 ac_cv_prog_cc_g=no
2426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2428 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2429 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2430 if test "$ac_test_CFLAGS" = set; then
2431 CFLAGS=$ac_save_CFLAGS
2432 elif test $ac_cv_prog_cc_g = yes; then
2433 if test "$GCC" = yes; then
2434 CFLAGS="-g -O2"
2435 else
2436 CFLAGS="-g"
2438 else
2439 if test "$GCC" = yes; then
2440 CFLAGS="-O2"
2441 else
2442 CFLAGS=
2445 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2446 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2447 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2448 echo $ECHO_N "(cached) $ECHO_C" >&6
2449 else
2450 ac_cv_prog_cc_stdc=no
2451 ac_save_CC=$CC
2452 cat >conftest.$ac_ext <<_ACEOF
2453 /* confdefs.h. */
2454 _ACEOF
2455 cat confdefs.h >>conftest.$ac_ext
2456 cat >>conftest.$ac_ext <<_ACEOF
2457 /* end confdefs.h. */
2458 #include <stdarg.h>
2459 #include <stdio.h>
2460 #include <sys/types.h>
2461 #include <sys/stat.h>
2462 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2463 struct buf { int x; };
2464 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2465 static char *e (p, i)
2466 char **p;
2467 int i;
2469 return p[i];
2471 static char *f (char * (*g) (char **, int), char **p, ...)
2473 char *s;
2474 va_list v;
2475 va_start (v,p);
2476 s = g (p, va_arg (v,int));
2477 va_end (v);
2478 return s;
2481 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2482 function prototypes and stuff, but not '\xHH' hex character constants.
2483 These don't provoke an error unfortunately, instead are silently treated
2484 as 'x'. The following induces an error, until -std1 is added to get
2485 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2486 array size at least. It's necessary to write '\x00'==0 to get something
2487 that's true only with -std1. */
2488 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2490 int test (int i, double x);
2491 struct s1 {int (*f) (int a);};
2492 struct s2 {int (*f) (double a);};
2493 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2494 int argc;
2495 char **argv;
2497 main ()
2499 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2501 return 0;
2503 _ACEOF
2504 # Don't try gcc -ansi; that turns off useful extensions and
2505 # breaks some systems' header files.
2506 # AIX -qlanglvl=ansi
2507 # Ultrix and OSF/1 -std1
2508 # HP-UX 10.20 and later -Ae
2509 # HP-UX older versions -Aa -D_HPUX_SOURCE
2510 # SVR4 -Xc -D__EXTENSIONS__
2511 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2513 CC="$ac_save_CC $ac_arg"
2514 rm -f conftest.$ac_objext
2515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2516 (eval $ac_compile) 2>conftest.er1
2517 ac_status=$?
2518 grep -v '^ *+' conftest.er1 >conftest.err
2519 rm -f conftest.er1
2520 cat conftest.err >&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); } &&
2523 { ac_try='test -z "$ac_c_werror_flag"
2524 || test ! -s conftest.err'
2525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526 (eval $ac_try) 2>&5
2527 ac_status=$?
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; } &&
2530 { ac_try='test -s conftest.$ac_objext'
2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532 (eval $ac_try) 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; }; then
2536 ac_cv_prog_cc_stdc=$ac_arg
2537 break
2538 else
2539 echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2543 rm -f conftest.err conftest.$ac_objext
2544 done
2545 rm -f conftest.$ac_ext conftest.$ac_objext
2546 CC=$ac_save_CC
2550 case "x$ac_cv_prog_cc_stdc" in
2551 x|xno)
2552 echo "$as_me:$LINENO: result: none needed" >&5
2553 echo "${ECHO_T}none needed" >&6 ;;
2555 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2556 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2557 CC="$CC $ac_cv_prog_cc_stdc" ;;
2558 esac
2560 # Some people use a C++ compiler to compile C. Since we use `exit',
2561 # in C++ we need to declare it. In case someone uses the same compiler
2562 # for both compiling C and C++ we need to have the C++ compiler decide
2563 # the declaration of exit, since it's the most demanding environment.
2564 cat >conftest.$ac_ext <<_ACEOF
2565 #ifndef __cplusplus
2566 choke me
2567 #endif
2568 _ACEOF
2569 rm -f conftest.$ac_objext
2570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2571 (eval $ac_compile) 2>conftest.er1
2572 ac_status=$?
2573 grep -v '^ *+' conftest.er1 >conftest.err
2574 rm -f conftest.er1
2575 cat conftest.err >&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); } &&
2578 { ac_try='test -z "$ac_c_werror_flag"
2579 || test ! -s conftest.err'
2580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 (eval $ac_try) 2>&5
2582 ac_status=$?
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; } &&
2585 { ac_try='test -s conftest.$ac_objext'
2586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587 (eval $ac_try) 2>&5
2588 ac_status=$?
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; }; then
2591 for ac_declaration in \
2592 '' \
2593 'extern "C" void std::exit (int) throw (); using std::exit;' \
2594 'extern "C" void std::exit (int); using std::exit;' \
2595 'extern "C" void exit (int) throw ();' \
2596 'extern "C" void exit (int);' \
2597 'void exit (int);'
2599 cat >conftest.$ac_ext <<_ACEOF
2600 /* confdefs.h. */
2601 _ACEOF
2602 cat confdefs.h >>conftest.$ac_ext
2603 cat >>conftest.$ac_ext <<_ACEOF
2604 /* end confdefs.h. */
2605 $ac_declaration
2606 #include <stdlib.h>
2608 main ()
2610 exit (42);
2612 return 0;
2614 _ACEOF
2615 rm -f conftest.$ac_objext
2616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2617 (eval $ac_compile) 2>conftest.er1
2618 ac_status=$?
2619 grep -v '^ *+' conftest.er1 >conftest.err
2620 rm -f conftest.er1
2621 cat conftest.err >&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); } &&
2624 { ac_try='test -z "$ac_c_werror_flag"
2625 || test ! -s conftest.err'
2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 (eval $ac_try) 2>&5
2628 ac_status=$?
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; } &&
2631 { ac_try='test -s conftest.$ac_objext'
2632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633 (eval $ac_try) 2>&5
2634 ac_status=$?
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; }; then
2638 else
2639 echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.$ac_ext >&5
2642 continue
2644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2645 cat >conftest.$ac_ext <<_ACEOF
2646 /* confdefs.h. */
2647 _ACEOF
2648 cat confdefs.h >>conftest.$ac_ext
2649 cat >>conftest.$ac_ext <<_ACEOF
2650 /* end confdefs.h. */
2651 $ac_declaration
2653 main ()
2655 exit (42);
2657 return 0;
2659 _ACEOF
2660 rm -f conftest.$ac_objext
2661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2662 (eval $ac_compile) 2>conftest.er1
2663 ac_status=$?
2664 grep -v '^ *+' conftest.er1 >conftest.err
2665 rm -f conftest.er1
2666 cat conftest.err >&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); } &&
2669 { ac_try='test -z "$ac_c_werror_flag"
2670 || test ! -s conftest.err'
2671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672 (eval $ac_try) 2>&5
2673 ac_status=$?
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }; } &&
2676 { ac_try='test -s conftest.$ac_objext'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678 (eval $ac_try) 2>&5
2679 ac_status=$?
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; }; then
2682 break
2683 else
2684 echo "$as_me: failed program was:" >&5
2685 sed 's/^/| /' conftest.$ac_ext >&5
2688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2689 done
2690 rm -f conftest*
2691 if test -n "$ac_declaration"; then
2692 echo '#ifdef __cplusplus' >>confdefs.h
2693 echo $ac_declaration >>confdefs.h
2694 echo '#endif' >>confdefs.h
2697 else
2698 echo "$as_me: failed program was:" >&5
2699 sed 's/^/| /' conftest.$ac_ext >&5
2702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2703 ac_ext=c
2704 ac_cpp='$CPP $CPPFLAGS'
2705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2712 echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
2713 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6
2715 # Check whether --with-cxx_main or --without-cxx_main was given.
2716 if test "${with_cxx_main+set}" = set; then
2717 withval="$with_cxx_main"
2720 case $withval in
2721 no) with_cxx_main=no
2722 MAINCC='$(CC)';;
2723 yes) with_cxx_main=yes
2724 MAINCC='$(CXX)';;
2725 *) with_cxx_main=yes
2726 MAINCC=$withval
2727 if test -z "$CXX"
2728 then
2729 CXX=$withval
2730 fi;;
2731 esac
2732 else
2734 with_cxx_main=no
2735 MAINCC='$(CC)'
2738 echo "$as_me:$LINENO: result: $with_cxx_main" >&5
2739 echo "${ECHO_T}$with_cxx_main" >&6
2741 preset_cxx="$CXX"
2742 if test -z "$CXX"
2743 then
2744 case "$CC" in
2745 gcc) # Extract the first word of "g++", so it can be a program name with args.
2746 set dummy g++; ac_word=$2
2747 echo "$as_me:$LINENO: checking for $ac_word" >&5
2748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2749 if test "${ac_cv_path_CXX+set}" = set; then
2750 echo $ECHO_N "(cached) $ECHO_C" >&6
2751 else
2752 case $CXX in
2753 [\\/]* | ?:[\\/]*)
2754 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758 for as_dir in notfound
2760 IFS=$as_save_IFS
2761 test -z "$as_dir" && as_dir=.
2762 for ac_exec_ext in '' $ac_executable_extensions; do
2763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2764 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
2765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2766 break 2
2768 done
2769 done
2771 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
2773 esac
2775 CXX=$ac_cv_path_CXX
2777 if test -n "$CXX"; then
2778 echo "$as_me:$LINENO: result: $CXX" >&5
2779 echo "${ECHO_T}$CXX" >&6
2780 else
2781 echo "$as_me:$LINENO: result: no" >&5
2782 echo "${ECHO_T}no" >&6
2785 cc) # Extract the first word of "c++", so it can be a program name with args.
2786 set dummy c++; ac_word=$2
2787 echo "$as_me:$LINENO: checking for $ac_word" >&5
2788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2789 if test "${ac_cv_path_CXX+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2791 else
2792 case $CXX in
2793 [\\/]* | ?:[\\/]*)
2794 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 for as_dir in notfound
2800 IFS=$as_save_IFS
2801 test -z "$as_dir" && as_dir=.
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2804 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
2805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 break 2
2808 done
2809 done
2811 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
2813 esac
2815 CXX=$ac_cv_path_CXX
2817 if test -n "$CXX"; then
2818 echo "$as_me:$LINENO: result: $CXX" >&5
2819 echo "${ECHO_T}$CXX" >&6
2820 else
2821 echo "$as_me:$LINENO: result: no" >&5
2822 echo "${ECHO_T}no" >&6
2825 esac
2826 if test "$CXX" = "notfound"
2827 then
2828 CXX=""
2831 if test -z "$CXX"
2832 then
2833 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
2835 # Extract the first word of "$ac_prog", so it can be a program name with args.
2836 set dummy $ac_prog; ac_word=$2
2837 echo "$as_me:$LINENO: checking for $ac_word" >&5
2838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2839 if test "${ac_cv_prog_CXX+set}" = set; then
2840 echo $ECHO_N "(cached) $ECHO_C" >&6
2841 else
2842 if test -n "$CXX"; then
2843 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2844 else
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 for as_dir in $PATH
2848 IFS=$as_save_IFS
2849 test -z "$as_dir" && as_dir=.
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2852 ac_cv_prog_CXX="$ac_prog"
2853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2854 break 2
2856 done
2857 done
2861 CXX=$ac_cv_prog_CXX
2862 if test -n "$CXX"; then
2863 echo "$as_me:$LINENO: result: $CXX" >&5
2864 echo "${ECHO_T}$CXX" >&6
2865 else
2866 echo "$as_me:$LINENO: result: no" >&5
2867 echo "${ECHO_T}no" >&6
2870 test -n "$CXX" && break
2871 done
2872 test -n "$CXX" || CXX="notfound"
2874 if test "$CXX" = "notfound"
2875 then
2876 CXX=""
2879 if test "$preset_cxx" != "$CXX"
2880 then
2881 { echo "$as_me:$LINENO: WARNING:
2883 By default, distutils will build C++ extension modules with \"$CXX\".
2884 If this is not intended, then set CXX on the configure command line.
2885 " >&5
2886 echo "$as_me: WARNING:
2888 By default, distutils will build C++ extension modules with \"$CXX\".
2889 If this is not intended, then set CXX on the configure command line.
2890 " >&2;}
2894 # checks for UNIX variants that set C preprocessor variables
2896 ac_ext=c
2897 ac_cpp='$CPP $CPPFLAGS'
2898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2901 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2902 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2903 # On Suns, sometimes $CPP names a directory.
2904 if test -n "$CPP" && test -d "$CPP"; then
2905 CPP=
2907 if test -z "$CPP"; then
2908 if test "${ac_cv_prog_CPP+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 else
2911 # Double quotes because CPP needs to be expanded
2912 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2914 ac_preproc_ok=false
2915 for ac_c_preproc_warn_flag in '' yes
2917 # Use a header file that comes with gcc, so configuring glibc
2918 # with a fresh cross-compiler works.
2919 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2920 # <limits.h> exists even on freestanding compilers.
2921 # On the NeXT, cc -E runs the code through the compiler's parser,
2922 # not just through cpp. "Syntax error" is here to catch this case.
2923 cat >conftest.$ac_ext <<_ACEOF
2924 /* confdefs.h. */
2925 _ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h. */
2929 #ifdef __STDC__
2930 # include <limits.h>
2931 #else
2932 # include <assert.h>
2933 #endif
2934 Syntax error
2935 _ACEOF
2936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2938 ac_status=$?
2939 grep -v '^ *+' conftest.er1 >conftest.err
2940 rm -f conftest.er1
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } >/dev/null; then
2944 if test -s conftest.err; then
2945 ac_cpp_err=$ac_c_preproc_warn_flag
2946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2947 else
2948 ac_cpp_err=
2950 else
2951 ac_cpp_err=yes
2953 if test -z "$ac_cpp_err"; then
2955 else
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2959 # Broken: fails on valid input.
2960 continue
2962 rm -f conftest.err conftest.$ac_ext
2964 # OK, works on sane cases. Now check whether non-existent headers
2965 # can be detected and how.
2966 cat >conftest.$ac_ext <<_ACEOF
2967 /* confdefs.h. */
2968 _ACEOF
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h. */
2972 #include <ac_nonexistent.h>
2973 _ACEOF
2974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2976 ac_status=$?
2977 grep -v '^ *+' conftest.er1 >conftest.err
2978 rm -f conftest.er1
2979 cat conftest.err >&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } >/dev/null; then
2982 if test -s conftest.err; then
2983 ac_cpp_err=$ac_c_preproc_warn_flag
2984 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2985 else
2986 ac_cpp_err=
2988 else
2989 ac_cpp_err=yes
2991 if test -z "$ac_cpp_err"; then
2992 # Broken: success on invalid input.
2993 continue
2994 else
2995 echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2998 # Passes both tests.
2999 ac_preproc_ok=:
3000 break
3002 rm -f conftest.err conftest.$ac_ext
3004 done
3005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3006 rm -f conftest.err conftest.$ac_ext
3007 if $ac_preproc_ok; then
3008 break
3011 done
3012 ac_cv_prog_CPP=$CPP
3015 CPP=$ac_cv_prog_CPP
3016 else
3017 ac_cv_prog_CPP=$CPP
3019 echo "$as_me:$LINENO: result: $CPP" >&5
3020 echo "${ECHO_T}$CPP" >&6
3021 ac_preproc_ok=false
3022 for ac_c_preproc_warn_flag in '' yes
3024 # Use a header file that comes with gcc, so configuring glibc
3025 # with a fresh cross-compiler works.
3026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3027 # <limits.h> exists even on freestanding compilers.
3028 # On the NeXT, cc -E runs the code through the compiler's parser,
3029 # not just through cpp. "Syntax error" is here to catch this case.
3030 cat >conftest.$ac_ext <<_ACEOF
3031 /* confdefs.h. */
3032 _ACEOF
3033 cat confdefs.h >>conftest.$ac_ext
3034 cat >>conftest.$ac_ext <<_ACEOF
3035 /* end confdefs.h. */
3036 #ifdef __STDC__
3037 # include <limits.h>
3038 #else
3039 # include <assert.h>
3040 #endif
3041 Syntax error
3042 _ACEOF
3043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3045 ac_status=$?
3046 grep -v '^ *+' conftest.er1 >conftest.err
3047 rm -f conftest.er1
3048 cat conftest.err >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } >/dev/null; then
3051 if test -s conftest.err; then
3052 ac_cpp_err=$ac_c_preproc_warn_flag
3053 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3054 else
3055 ac_cpp_err=
3057 else
3058 ac_cpp_err=yes
3060 if test -z "$ac_cpp_err"; then
3062 else
3063 echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3066 # Broken: fails on valid input.
3067 continue
3069 rm -f conftest.err conftest.$ac_ext
3071 # OK, works on sane cases. Now check whether non-existent headers
3072 # can be detected and how.
3073 cat >conftest.$ac_ext <<_ACEOF
3074 /* confdefs.h. */
3075 _ACEOF
3076 cat confdefs.h >>conftest.$ac_ext
3077 cat >>conftest.$ac_ext <<_ACEOF
3078 /* end confdefs.h. */
3079 #include <ac_nonexistent.h>
3080 _ACEOF
3081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3083 ac_status=$?
3084 grep -v '^ *+' conftest.er1 >conftest.err
3085 rm -f conftest.er1
3086 cat conftest.err >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); } >/dev/null; then
3089 if test -s conftest.err; then
3090 ac_cpp_err=$ac_c_preproc_warn_flag
3091 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3092 else
3093 ac_cpp_err=
3095 else
3096 ac_cpp_err=yes
3098 if test -z "$ac_cpp_err"; then
3099 # Broken: success on invalid input.
3100 continue
3101 else
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3105 # Passes both tests.
3106 ac_preproc_ok=:
3107 break
3109 rm -f conftest.err conftest.$ac_ext
3111 done
3112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3113 rm -f conftest.err conftest.$ac_ext
3114 if $ac_preproc_ok; then
3116 else
3117 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3118 See \`config.log' for more details." >&5
3119 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3120 See \`config.log' for more details." >&2;}
3121 { (exit 1); exit 1; }; }
3124 ac_ext=c
3125 ac_cpp='$CPP $CPPFLAGS'
3126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3131 echo "$as_me:$LINENO: checking for egrep" >&5
3132 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3133 if test "${ac_cv_prog_egrep+set}" = set; then
3134 echo $ECHO_N "(cached) $ECHO_C" >&6
3135 else
3136 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3137 then ac_cv_prog_egrep='grep -E'
3138 else ac_cv_prog_egrep='egrep'
3141 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3142 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3143 EGREP=$ac_cv_prog_egrep
3147 echo "$as_me:$LINENO: checking for AIX" >&5
3148 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3149 cat >conftest.$ac_ext <<_ACEOF
3150 /* confdefs.h. */
3151 _ACEOF
3152 cat confdefs.h >>conftest.$ac_ext
3153 cat >>conftest.$ac_ext <<_ACEOF
3154 /* end confdefs.h. */
3155 #ifdef _AIX
3157 #endif
3159 _ACEOF
3160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3161 $EGREP "yes" >/dev/null 2>&1; then
3162 echo "$as_me:$LINENO: result: yes" >&5
3163 echo "${ECHO_T}yes" >&6
3164 cat >>confdefs.h <<\_ACEOF
3165 #define _ALL_SOURCE 1
3166 _ACEOF
3168 else
3169 echo "$as_me:$LINENO: result: no" >&5
3170 echo "${ECHO_T}no" >&6
3172 rm -f conftest*
3176 # Check for unsupported systems
3177 case $ac_sys_system/$ac_sys_release in
3178 atheos*|Linux*/1*)
3179 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3180 echo See README for details.
3181 exit 1;;
3182 esac
3185 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3186 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3188 # Check whether --with-suffix or --without-suffix was given.
3189 if test "${with_suffix+set}" = set; then
3190 withval="$with_suffix"
3192 case $withval in
3193 no) EXEEXT=;;
3194 yes) EXEEXT=.exe;;
3195 *) EXEEXT=$withval;;
3196 esac
3198 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3199 echo "${ECHO_T}$EXEEXT" >&6
3201 # Test whether we're running on a non-case-sensitive system, in which
3202 # case we give a warning if no ext is given
3204 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3205 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3206 if test ! -d CaseSensitiveTestDir; then
3207 mkdir CaseSensitiveTestDir
3210 if test -d casesensitivetestdir
3211 then
3212 echo "$as_me:$LINENO: result: yes" >&5
3213 echo "${ECHO_T}yes" >&6
3214 BUILDEXEEXT=.exe
3215 else
3216 echo "$as_me:$LINENO: result: no" >&5
3217 echo "${ECHO_T}no" >&6
3218 BUILDEXEEXT=$EXEEXT
3220 rmdir CaseSensitiveTestDir
3222 case $MACHDEP in
3223 bsdos*)
3224 case $CC in
3225 gcc) CC="$CC -D_HAVE_BSDI";;
3226 esac;;
3227 esac
3229 case $ac_sys_system in
3230 hp*|HP*)
3231 case $CC in
3232 cc|*/cc) CC="$CC -Ae";;
3233 esac;;
3234 Monterey*)
3235 case $CC in
3236 cc) CC="$CC -Wl,-Bexport";;
3237 esac;;
3238 SunOS*)
3239 # Some functions have a prototype only with that define, e.g. confstr
3241 cat >>confdefs.h <<\_ACEOF
3242 #define __EXTENSIONS__ 1
3243 _ACEOF
3246 esac
3250 echo "$as_me:$LINENO: checking LIBRARY" >&5
3251 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3252 if test -z "$LIBRARY"
3253 then
3254 LIBRARY='libpython$(VERSION).a'
3256 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3257 echo "${ECHO_T}$LIBRARY" >&6
3259 # LDLIBRARY is the name of the library to link against (as opposed to the
3260 # name of the library into which to insert object files). BLDLIBRARY is also
3261 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3262 # is blank as the main program is not linked directly against LDLIBRARY.
3263 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3264 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3265 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3266 # DLLLIBRARY is the shared (i.e., DLL) library.
3268 # RUNSHARED is used to run shared python without installed libraries
3270 # INSTSONAME is the name of the shared library that will be use to install
3271 # on the system - some systems like version suffix, others don't
3278 LDLIBRARY="$LIBRARY"
3279 BLDLIBRARY='$(LDLIBRARY)'
3280 INSTSONAME='$(LDLIBRARY)'
3281 DLLLIBRARY=''
3282 LDLIBRARYDIR=''
3283 RUNSHARED=''
3285 # LINKCC is the command that links the python executable -- default is $(CC).
3286 # If CXX is set, and if it is needed to link a main function that was
3287 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3288 # python might then depend on the C++ runtime
3289 # This is altered for AIX in order to build the export list before
3290 # linking.
3292 echo "$as_me:$LINENO: checking LINKCC" >&5
3293 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3294 if test -z "$LINKCC"
3295 then
3296 LINKCC='$(PURIFY) $(MAINCC)'
3297 case $ac_sys_system in
3298 AIX*)
3299 exp_extra="\"\""
3300 if test $ac_sys_release -ge 5 -o \
3301 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3302 exp_extra="."
3304 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3305 Monterey64*)
3306 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3307 esac
3309 echo "$as_me:$LINENO: result: $LINKCC" >&5
3310 echo "${ECHO_T}$LINKCC" >&6
3312 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3313 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3314 # Check whether --enable-shared or --disable-shared was given.
3315 if test "${enable_shared+set}" = set; then
3316 enableval="$enable_shared"
3320 if test -z "$enable_shared"
3321 then
3322 case $ac_sys_system in
3323 CYGWIN* | atheos*)
3324 enable_shared="yes";;
3326 enable_shared="no";;
3327 esac
3329 echo "$as_me:$LINENO: result: $enable_shared" >&5
3330 echo "${ECHO_T}$enable_shared" >&6
3332 echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3333 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6
3334 # Check whether --enable-profiling or --disable-profiling was given.
3335 if test "${enable_profiling+set}" = set; then
3336 enableval="$enable_profiling"
3337 ac_save_cc="$CC"
3338 CC="$CC -pg"
3339 if test "$cross_compiling" = yes; then
3340 ac_enable_profiling="no"
3341 else
3342 cat >conftest.$ac_ext <<_ACEOF
3343 /* confdefs.h. */
3344 _ACEOF
3345 cat confdefs.h >>conftest.$ac_ext
3346 cat >>conftest.$ac_ext <<_ACEOF
3347 /* end confdefs.h. */
3348 int main() { return 0; }
3349 _ACEOF
3350 rm -f conftest$ac_exeext
3351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3352 (eval $ac_link) 2>&5
3353 ac_status=$?
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3357 (eval $ac_try) 2>&5
3358 ac_status=$?
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); }; }; then
3361 ac_enable_profiling="yes"
3362 else
3363 echo "$as_me: program exited with status $ac_status" >&5
3364 echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3367 ( exit $ac_status )
3368 ac_enable_profiling="no"
3370 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3372 CC="$ac_save_cc"
3374 echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3375 echo "${ECHO_T}$ac_enable_profiling" >&6
3377 case "$ac_enable_profiling" in
3378 "yes")
3379 BASECFLAGS="-pg $BASECFLAGS"
3380 LDFLAGS="-pg $LDFLAGS"
3382 esac
3384 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3385 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3387 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3388 # library that we build, but we do not want to link against it (we
3389 # will find it with a -framework option). For this reason there is an
3390 # extra variable BLDLIBRARY against which Python and the extension
3391 # modules are linked, BLDLIBRARY. This is normally the same as
3392 # LDLIBRARY, but empty for MacOSX framework builds.
3393 if test "$enable_framework"
3394 then
3395 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3396 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
3397 BLDLIBRARY=''
3398 else
3399 BLDLIBRARY='$(LDLIBRARY)'
3402 # Other platforms follow
3403 if test $enable_shared = "yes"; then
3405 cat >>confdefs.h <<\_ACEOF
3406 #define Py_ENABLE_SHARED 1
3407 _ACEOF
3409 case $ac_sys_system in
3410 BeOS*)
3411 LDLIBRARY='libpython$(VERSION).so'
3413 CYGWIN*)
3414 LDLIBRARY='libpython$(VERSION).dll.a'
3415 DLLLIBRARY='libpython$(VERSION).dll'
3417 SunOS*)
3418 LDLIBRARY='libpython$(VERSION).so'
3419 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
3420 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3421 INSTSONAME="$LDLIBRARY".$SOVERSION
3423 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
3424 LDLIBRARY='libpython$(VERSION).so'
3425 BLDLIBRARY='-L. -lpython$(VERSION)'
3426 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3427 case $ac_sys_system in
3428 FreeBSD*)
3429 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
3431 esac
3432 INSTSONAME="$LDLIBRARY".$SOVERSION
3434 hp*|HP*)
3435 case `uname -m` in
3436 ia64)
3437 LDLIBRARY='libpython$(VERSION).so'
3440 LDLIBRARY='libpython$(VERSION).sl'
3442 esac
3443 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3444 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
3446 OSF*)
3447 LDLIBRARY='libpython$(VERSION).so'
3448 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3449 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3451 atheos*)
3452 LDLIBRARY='libpython$(VERSION).so'
3453 BLDLIBRARY='-L. -lpython$(VERSION)'
3454 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3456 esac
3457 else # shared is disabled
3458 case $ac_sys_system in
3459 CYGWIN*)
3460 BLDLIBRARY='$(LIBRARY)'
3461 LDLIBRARY='libpython$(VERSION).dll.a'
3463 esac
3466 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3467 echo "${ECHO_T}$LDLIBRARY" >&6
3469 if test -n "$ac_tool_prefix"; then
3470 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3471 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3472 echo "$as_me:$LINENO: checking for $ac_word" >&5
3473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3474 if test "${ac_cv_prog_RANLIB+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 else
3477 if test -n "$RANLIB"; then
3478 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3479 else
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481 for as_dir in $PATH
3483 IFS=$as_save_IFS
3484 test -z "$as_dir" && as_dir=.
3485 for ac_exec_ext in '' $ac_executable_extensions; do
3486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3487 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3489 break 2
3491 done
3492 done
3496 RANLIB=$ac_cv_prog_RANLIB
3497 if test -n "$RANLIB"; then
3498 echo "$as_me:$LINENO: result: $RANLIB" >&5
3499 echo "${ECHO_T}$RANLIB" >&6
3500 else
3501 echo "$as_me:$LINENO: result: no" >&5
3502 echo "${ECHO_T}no" >&6
3506 if test -z "$ac_cv_prog_RANLIB"; then
3507 ac_ct_RANLIB=$RANLIB
3508 # Extract the first word of "ranlib", so it can be a program name with args.
3509 set dummy ranlib; ac_word=$2
3510 echo "$as_me:$LINENO: checking for $ac_word" >&5
3511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3512 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3514 else
3515 if test -n "$ac_ct_RANLIB"; then
3516 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3517 else
3518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 for as_dir in $PATH
3521 IFS=$as_save_IFS
3522 test -z "$as_dir" && as_dir=.
3523 for ac_exec_ext in '' $ac_executable_extensions; do
3524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3525 ac_cv_prog_ac_ct_RANLIB="ranlib"
3526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3527 break 2
3529 done
3530 done
3532 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3535 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3536 if test -n "$ac_ct_RANLIB"; then
3537 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3538 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3539 else
3540 echo "$as_me:$LINENO: result: no" >&5
3541 echo "${ECHO_T}no" >&6
3544 RANLIB=$ac_ct_RANLIB
3545 else
3546 RANLIB="$ac_cv_prog_RANLIB"
3550 for ac_prog in ar aal
3552 # Extract the first word of "$ac_prog", so it can be a program name with args.
3553 set dummy $ac_prog; ac_word=$2
3554 echo "$as_me:$LINENO: checking for $ac_word" >&5
3555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3556 if test "${ac_cv_prog_AR+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3558 else
3559 if test -n "$AR"; then
3560 ac_cv_prog_AR="$AR" # Let the user override the test.
3561 else
3562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563 for as_dir in $PATH
3565 IFS=$as_save_IFS
3566 test -z "$as_dir" && as_dir=.
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3569 ac_cv_prog_AR="$ac_prog"
3570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3571 break 2
3573 done
3574 done
3578 AR=$ac_cv_prog_AR
3579 if test -n "$AR"; then
3580 echo "$as_me:$LINENO: result: $AR" >&5
3581 echo "${ECHO_T}$AR" >&6
3582 else
3583 echo "$as_me:$LINENO: result: no" >&5
3584 echo "${ECHO_T}no" >&6
3587 test -n "$AR" && break
3588 done
3589 test -n "$AR" || AR="ar"
3593 # Extract the first word of "svnversion", so it can be a program name with args.
3594 set dummy svnversion; ac_word=$2
3595 echo "$as_me:$LINENO: checking for $ac_word" >&5
3596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3597 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
3598 echo $ECHO_N "(cached) $ECHO_C" >&6
3599 else
3600 if test -n "$SVNVERSION"; then
3601 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
3602 else
3603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 for as_dir in $PATH
3606 IFS=$as_save_IFS
3607 test -z "$as_dir" && as_dir=.
3608 for ac_exec_ext in '' $ac_executable_extensions; do
3609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3610 ac_cv_prog_SVNVERSION="found"
3611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3612 break 2
3614 done
3615 done
3617 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
3620 SVNVERSION=$ac_cv_prog_SVNVERSION
3621 if test -n "$SVNVERSION"; then
3622 echo "$as_me:$LINENO: result: $SVNVERSION" >&5
3623 echo "${ECHO_T}$SVNVERSION" >&6
3624 else
3625 echo "$as_me:$LINENO: result: no" >&5
3626 echo "${ECHO_T}no" >&6
3629 if test $SVNVERSION = found
3630 then
3631 SVNVERSION="svnversion \$(srcdir)"
3632 else
3633 SVNVERSION="echo exported"
3636 case $MACHDEP in
3637 bsdos*|hp*|HP*)
3638 # install -d does not work on BSDI or HP-UX
3639 if test -z "$INSTALL"
3640 then
3641 INSTALL="${srcdir}/install-sh -c"
3643 esac
3644 ac_aux_dir=
3645 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3646 if test -f $ac_dir/install-sh; then
3647 ac_aux_dir=$ac_dir
3648 ac_install_sh="$ac_aux_dir/install-sh -c"
3649 break
3650 elif test -f $ac_dir/install.sh; then
3651 ac_aux_dir=$ac_dir
3652 ac_install_sh="$ac_aux_dir/install.sh -c"
3653 break
3654 elif test -f $ac_dir/shtool; then
3655 ac_aux_dir=$ac_dir
3656 ac_install_sh="$ac_aux_dir/shtool install -c"
3657 break
3659 done
3660 if test -z "$ac_aux_dir"; then
3661 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3662 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3663 { (exit 1); exit 1; }; }
3665 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3666 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3667 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3669 # Find a good install program. We prefer a C program (faster),
3670 # so one script is as good as another. But avoid the broken or
3671 # incompatible versions:
3672 # SysV /etc/install, /usr/sbin/install
3673 # SunOS /usr/etc/install
3674 # IRIX /sbin/install
3675 # AIX /bin/install
3676 # AmigaOS /C/install, which installs bootblocks on floppy discs
3677 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3678 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3679 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3680 # OS/2's system install, which has a completely different semantic
3681 # ./install, which can be erroneously created by make from ./install.sh.
3682 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3683 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3684 if test -z "$INSTALL"; then
3685 if test "${ac_cv_path_install+set}" = set; then
3686 echo $ECHO_N "(cached) $ECHO_C" >&6
3687 else
3688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 for as_dir in $PATH
3691 IFS=$as_save_IFS
3692 test -z "$as_dir" && as_dir=.
3693 # Account for people who put trailing slashes in PATH elements.
3694 case $as_dir/ in
3695 ./ | .// | /cC/* | \
3696 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3697 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3698 /usr/ucb/* ) ;;
3700 # OSF1 and SCO ODT 3.0 have their own names for install.
3701 # Don't use installbsd from OSF since it installs stuff as root
3702 # by default.
3703 for ac_prog in ginstall scoinst install; do
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3706 if test $ac_prog = install &&
3707 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3708 # AIX install. It has an incompatible calling convention.
3710 elif test $ac_prog = install &&
3711 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3712 # program-specific install script used by HP pwplus--don't use.
3714 else
3715 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3716 break 3
3719 done
3720 done
3722 esac
3723 done
3727 if test "${ac_cv_path_install+set}" = set; then
3728 INSTALL=$ac_cv_path_install
3729 else
3730 # As a last resort, use the slow shell script. We don't cache a
3731 # path for INSTALL within a source directory, because that will
3732 # break other packages using the cache if that directory is
3733 # removed, or if the path is relative.
3734 INSTALL=$ac_install_sh
3737 echo "$as_me:$LINENO: result: $INSTALL" >&5
3738 echo "${ECHO_T}$INSTALL" >&6
3740 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3741 # It thinks the first close brace ends the variable substitution.
3742 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3744 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3746 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3749 # Not every filesystem supports hard links
3751 if test -z "$LN" ; then
3752 case $ac_sys_system in
3753 BeOS*) LN="ln -s";;
3754 CYGWIN*) LN="ln -s";;
3755 atheos*) LN="ln -s";;
3756 *) LN=ln;;
3757 esac
3760 # Check for --with-pydebug
3761 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3762 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3764 # Check whether --with-pydebug or --without-pydebug was given.
3765 if test "${with_pydebug+set}" = set; then
3766 withval="$with_pydebug"
3768 if test "$withval" != no
3769 then
3771 cat >>confdefs.h <<\_ACEOF
3772 #define Py_DEBUG 1
3773 _ACEOF
3775 echo "$as_me:$LINENO: result: yes" >&5
3776 echo "${ECHO_T}yes" >&6;
3777 Py_DEBUG='true'
3778 else echo "$as_me:$LINENO: result: no" >&5
3779 echo "${ECHO_T}no" >&6; Py_DEBUG='false'
3781 else
3782 echo "$as_me:$LINENO: result: no" >&5
3783 echo "${ECHO_T}no" >&6
3786 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3787 # merged with this chunk of code?
3789 # Optimizer/debugger flags
3790 # ------------------------
3791 # (The following bit of code is complicated enough - please keep things
3792 # indented properly. Just pretend you're editing Python code. ;-)
3794 # There are two parallel sets of case statements below, one that checks to
3795 # see if OPT was set and one that does BASECFLAGS setting based upon
3796 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3797 # user set OPT.
3799 # tweak OPT based on compiler and platform, only if the user didn't set
3800 # it on the command line
3802 if test -z "$OPT"
3803 then
3804 case $GCC in
3805 yes)
3806 if test "$CC" != 'g++' ; then
3807 STRICT_PROTO="-Wstrict-prototypes"
3809 case $ac_cv_prog_cc_g in
3810 yes)
3811 if test "$Py_DEBUG" = 'true' ; then
3812 # Optimization messes up debuggers, so turn it off for
3813 # debug builds.
3814 OPT="-g -Wall $STRICT_PROTO"
3815 else
3816 OPT="-g -O3 -Wall $STRICT_PROTO"
3820 OPT="-O3 -Wall $STRICT_PROTO"
3822 esac
3823 case $ac_sys_system in
3824 SCO_SV*) OPT="$OPT -m486 -DSCO5"
3826 esac
3830 OPT="-O"
3832 esac
3834 # The current (beta) Monterey compiler dies with optimizations
3835 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3836 case $ac_sys_system in
3837 Monterey*)
3838 OPT=""
3840 esac
3845 # tweak BASECFLAGS based on compiler and platform
3846 case $GCC in
3847 yes)
3848 # Python violates C99 rules, by casting between incompatible
3849 # pointer types. GCC may generate bad code as a result of that,
3850 # so use -fno-strict-aliasing if supported.
3851 echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
3852 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6
3853 ac_save_cc="$CC"
3854 CC="$CC -fno-strict-aliasing"
3855 if test "$cross_compiling" = yes; then
3856 ac_cv_no_strict_aliasing_ok=no
3857 else
3858 cat >conftest.$ac_ext <<_ACEOF
3859 /* confdefs.h. */
3860 _ACEOF
3861 cat confdefs.h >>conftest.$ac_ext
3862 cat >>conftest.$ac_ext <<_ACEOF
3863 /* end confdefs.h. */
3864 int main() { return 0; }
3865 _ACEOF
3866 rm -f conftest$ac_exeext
3867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3868 (eval $ac_link) 2>&5
3869 ac_status=$?
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873 (eval $ac_try) 2>&5
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; }; then
3877 ac_cv_no_strict_aliasing_ok=yes
3878 else
3879 echo "$as_me: program exited with status $ac_status" >&5
3880 echo "$as_me: failed program was:" >&5
3881 sed 's/^/| /' conftest.$ac_ext >&5
3883 ( exit $ac_status )
3884 ac_cv_no_strict_aliasing_ok=no
3886 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3888 CC="$ac_save_cc"
3889 echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
3890 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
3891 if test $ac_cv_no_strict_aliasing_ok = yes
3892 then
3893 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
3895 case $ac_sys_system in
3896 SCO_SV*)
3897 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
3899 # is there any other compiler on Darwin besides gcc?
3900 Darwin*)
3901 BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
3902 if test "${enable_universalsdk}"; then
3903 BASECFLAGS="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
3907 OSF*)
3908 BASECFLAGS="$BASECFLAGS -mieee"
3910 esac
3914 case $ac_sys_system in
3915 OpenUNIX*|UnixWare*)
3916 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3918 OSF*)
3919 BASECFLAGS="$BASECFLAGS -ieee -std"
3921 SCO_SV*)
3922 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
3924 esac
3926 esac
3928 if test "$Py_DEBUG" = 'true'; then
3930 else
3931 OPT="-DNDEBUG $OPT"
3934 if test "$ac_arch_flags"
3935 then
3936 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
3939 # disable check for icc since it seems to pass, but generates a warning
3940 if test "$CC" = icc
3941 then
3942 ac_cv_opt_olimit_ok=no
3945 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3946 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3947 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3948 echo $ECHO_N "(cached) $ECHO_C" >&6
3949 else
3950 ac_save_cc="$CC"
3951 CC="$CC -OPT:Olimit=0"
3952 if test "$cross_compiling" = yes; then
3953 ac_cv_opt_olimit_ok=no
3954 else
3955 cat >conftest.$ac_ext <<_ACEOF
3956 /* confdefs.h. */
3957 _ACEOF
3958 cat confdefs.h >>conftest.$ac_ext
3959 cat >>conftest.$ac_ext <<_ACEOF
3960 /* end confdefs.h. */
3961 int main() { return 0; }
3962 _ACEOF
3963 rm -f conftest$ac_exeext
3964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3965 (eval $ac_link) 2>&5
3966 ac_status=$?
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3970 (eval $ac_try) 2>&5
3971 ac_status=$?
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); }; }; then
3974 ac_cv_opt_olimit_ok=yes
3975 else
3976 echo "$as_me: program exited with status $ac_status" >&5
3977 echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3980 ( exit $ac_status )
3981 ac_cv_opt_olimit_ok=no
3983 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3985 CC="$ac_save_cc"
3988 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3989 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3990 if test $ac_cv_opt_olimit_ok = yes; then
3991 case $ac_sys_system in
3992 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3993 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3994 # environment?
3995 Darwin*)
3998 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
4000 esac
4001 else
4002 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4003 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
4004 if test "${ac_cv_olimit_ok+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 else
4007 ac_save_cc="$CC"
4008 CC="$CC -Olimit 1500"
4009 if test "$cross_compiling" = yes; then
4010 ac_cv_olimit_ok=no
4011 else
4012 cat >conftest.$ac_ext <<_ACEOF
4013 /* confdefs.h. */
4014 _ACEOF
4015 cat confdefs.h >>conftest.$ac_ext
4016 cat >>conftest.$ac_ext <<_ACEOF
4017 /* end confdefs.h. */
4018 int main() { return 0; }
4019 _ACEOF
4020 rm -f conftest$ac_exeext
4021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4022 (eval $ac_link) 2>&5
4023 ac_status=$?
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4027 (eval $ac_try) 2>&5
4028 ac_status=$?
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); }; }; then
4031 ac_cv_olimit_ok=yes
4032 else
4033 echo "$as_me: program exited with status $ac_status" >&5
4034 echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4037 ( exit $ac_status )
4038 ac_cv_olimit_ok=no
4040 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4042 CC="$ac_save_cc"
4045 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4046 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
4047 if test $ac_cv_olimit_ok = yes; then
4048 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4052 # Check whether GCC supports PyArg_ParseTuple format
4053 if test "$GCC" = "yes"
4054 then
4055 echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4056 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6
4057 save_CFLAGS=$CFLAGS
4058 CFLAGS="$CFLAGS -Werror"
4059 cat >conftest.$ac_ext <<_ACEOF
4060 /* confdefs.h. */
4061 _ACEOF
4062 cat confdefs.h >>conftest.$ac_ext
4063 cat >>conftest.$ac_ext <<_ACEOF
4064 /* end confdefs.h. */
4066 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4069 main ()
4073 return 0;
4075 _ACEOF
4076 rm -f conftest.$ac_objext
4077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4078 (eval $ac_compile) 2>conftest.er1
4079 ac_status=$?
4080 grep -v '^ *+' conftest.er1 >conftest.err
4081 rm -f conftest.er1
4082 cat conftest.err >&5
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); } &&
4085 { ac_try='test -z "$ac_c_werror_flag"
4086 || test ! -s conftest.err'
4087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4088 (eval $ac_try) 2>&5
4089 ac_status=$?
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); }; } &&
4092 { ac_try='test -s conftest.$ac_objext'
4093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4094 (eval $ac_try) 2>&5
4095 ac_status=$?
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; }; then
4099 cat >>confdefs.h <<\_ACEOF
4100 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4101 _ACEOF
4103 echo "$as_me:$LINENO: result: yes" >&5
4104 echo "${ECHO_T}yes" >&6
4105 else
4106 echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4109 echo "$as_me:$LINENO: result: no" >&5
4110 echo "${ECHO_T}no" >&6
4113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4114 CFLAGS=$save_CFLAGS
4117 # On some compilers, pthreads are available without further options
4118 # (e.g. MacOS X). On some of these systems, the compiler will not
4119 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4120 # So we have to see first whether pthreads are available without
4121 # options before we can check whether -Kpthread improves anything.
4122 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4123 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
4124 if test "${ac_cv_pthread_is_default+set}" = set; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4126 else
4127 if test "$cross_compiling" = yes; then
4128 ac_cv_pthread_is_default=no
4129 else
4130 cat >conftest.$ac_ext <<_ACEOF
4131 /* confdefs.h. */
4132 _ACEOF
4133 cat confdefs.h >>conftest.$ac_ext
4134 cat >>conftest.$ac_ext <<_ACEOF
4135 /* end confdefs.h. */
4137 #include <pthread.h>
4139 void* routine(void* p){return NULL;}
4141 int main(){
4142 pthread_t p;
4143 if(pthread_create(&p,NULL,routine,NULL)!=0)
4144 return 1;
4145 (void)pthread_detach(p);
4146 return 0;
4149 _ACEOF
4150 rm -f conftest$ac_exeext
4151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4152 (eval $ac_link) 2>&5
4153 ac_status=$?
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4157 (eval $ac_try) 2>&5
4158 ac_status=$?
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); }; }; then
4162 ac_cv_pthread_is_default=yes
4163 ac_cv_kthread=no
4164 ac_cv_pthread=no
4166 else
4167 echo "$as_me: program exited with status $ac_status" >&5
4168 echo "$as_me: failed program was:" >&5
4169 sed 's/^/| /' conftest.$ac_ext >&5
4171 ( exit $ac_status )
4172 ac_cv_pthread_is_default=no
4174 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4179 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4180 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
4183 if test $ac_cv_pthread_is_default = yes
4184 then
4185 ac_cv_kpthread=no
4186 else
4187 # -Kpthread, if available, provides the right #defines
4188 # and linker options to make pthread_create available
4189 # Some compilers won't report that they do not support -Kpthread,
4190 # so we need to run a program to see whether it really made the
4191 # function available.
4192 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4193 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
4194 if test "${ac_cv_kpthread+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197 ac_save_cc="$CC"
4198 CC="$CC -Kpthread"
4199 if test "$cross_compiling" = yes; then
4200 ac_cv_kpthread=no
4201 else
4202 cat >conftest.$ac_ext <<_ACEOF
4203 /* confdefs.h. */
4204 _ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h. */
4209 #include <pthread.h>
4211 void* routine(void* p){return NULL;}
4213 int main(){
4214 pthread_t p;
4215 if(pthread_create(&p,NULL,routine,NULL)!=0)
4216 return 1;
4217 (void)pthread_detach(p);
4218 return 0;
4221 _ACEOF
4222 rm -f conftest$ac_exeext
4223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4224 (eval $ac_link) 2>&5
4225 ac_status=$?
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4229 (eval $ac_try) 2>&5
4230 ac_status=$?
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); }; }; then
4233 ac_cv_kpthread=yes
4234 else
4235 echo "$as_me: program exited with status $ac_status" >&5
4236 echo "$as_me: failed program was:" >&5
4237 sed 's/^/| /' conftest.$ac_ext >&5
4239 ( exit $ac_status )
4240 ac_cv_kpthread=no
4242 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4244 CC="$ac_save_cc"
4247 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4248 echo "${ECHO_T}$ac_cv_kpthread" >&6
4251 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
4252 then
4253 # -Kthread, if available, provides the right #defines
4254 # and linker options to make pthread_create available
4255 # Some compilers won't report that they do not support -Kthread,
4256 # so we need to run a program to see whether it really made the
4257 # function available.
4258 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4259 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
4260 if test "${ac_cv_kthread+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4262 else
4263 ac_save_cc="$CC"
4264 CC="$CC -Kthread"
4265 if test "$cross_compiling" = yes; then
4266 ac_cv_kthread=no
4267 else
4268 cat >conftest.$ac_ext <<_ACEOF
4269 /* confdefs.h. */
4270 _ACEOF
4271 cat confdefs.h >>conftest.$ac_ext
4272 cat >>conftest.$ac_ext <<_ACEOF
4273 /* end confdefs.h. */
4275 #include <pthread.h>
4277 void* routine(void* p){return NULL;}
4279 int main(){
4280 pthread_t p;
4281 if(pthread_create(&p,NULL,routine,NULL)!=0)
4282 return 1;
4283 (void)pthread_detach(p);
4284 return 0;
4287 _ACEOF
4288 rm -f conftest$ac_exeext
4289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4290 (eval $ac_link) 2>&5
4291 ac_status=$?
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295 (eval $ac_try) 2>&5
4296 ac_status=$?
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); }; }; then
4299 ac_cv_kthread=yes
4300 else
4301 echo "$as_me: program exited with status $ac_status" >&5
4302 echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4305 ( exit $ac_status )
4306 ac_cv_kthread=no
4308 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4310 CC="$ac_save_cc"
4313 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4314 echo "${ECHO_T}$ac_cv_kthread" >&6
4317 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
4318 then
4319 # -pthread, if available, provides the right #defines
4320 # and linker options to make pthread_create available
4321 # Some compilers won't report that they do not support -pthread,
4322 # so we need to run a program to see whether it really made the
4323 # function available.
4324 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4325 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
4326 if test "${ac_cv_thread+set}" = set; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4328 else
4329 ac_save_cc="$CC"
4330 CC="$CC -pthread"
4331 if test "$cross_compiling" = yes; then
4332 ac_cv_pthread=no
4333 else
4334 cat >conftest.$ac_ext <<_ACEOF
4335 /* confdefs.h. */
4336 _ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h. */
4341 #include <pthread.h>
4343 void* routine(void* p){return NULL;}
4345 int main(){
4346 pthread_t p;
4347 if(pthread_create(&p,NULL,routine,NULL)!=0)
4348 return 1;
4349 (void)pthread_detach(p);
4350 return 0;
4353 _ACEOF
4354 rm -f conftest$ac_exeext
4355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4356 (eval $ac_link) 2>&5
4357 ac_status=$?
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361 (eval $ac_try) 2>&5
4362 ac_status=$?
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; }; then
4365 ac_cv_pthread=yes
4366 else
4367 echo "$as_me: program exited with status $ac_status" >&5
4368 echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.$ac_ext >&5
4371 ( exit $ac_status )
4372 ac_cv_pthread=no
4374 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4376 CC="$ac_save_cc"
4379 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4380 echo "${ECHO_T}$ac_cv_pthread" >&6
4383 # If we have set a CC compiler flag for thread support then
4384 # check if it works for CXX, too.
4385 ac_cv_cxx_thread=no
4386 if test ! -z "$CXX"
4387 then
4388 echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
4389 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6
4390 ac_save_cxx="$CXX"
4392 if test "$ac_cv_kpthread" = "yes"
4393 then
4394 CXX="$CXX -Kpthread"
4395 ac_cv_cxx_thread=yes
4396 elif test "$ac_cv_kthread" = "yes"
4397 then
4398 CXX="$CXX -Kthread"
4399 ac_cv_cxx_thread=yes
4400 elif test "$ac_cv_pthread" = "yes"
4401 then
4402 CXX="$CXX -pthread"
4403 ac_cv_cxx_thread=yes
4406 if test $ac_cv_cxx_thread = yes
4407 then
4408 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
4409 $CXX -c conftest.$ac_ext 2>&5
4410 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
4411 && test -s conftest$ac_exeext && ./conftest$ac_exeext
4412 then
4413 ac_cv_cxx_thread=yes
4414 else
4415 ac_cv_cxx_thread=no
4417 rm -fr conftest*
4419 echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
4420 echo "${ECHO_T}$ac_cv_cxx_thread" >&6
4422 CXX="$ac_save_cxx"
4425 # checks for header files
4426 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4427 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4428 if test "${ac_cv_header_stdc+set}" = set; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4430 else
4431 cat >conftest.$ac_ext <<_ACEOF
4432 /* confdefs.h. */
4433 _ACEOF
4434 cat confdefs.h >>conftest.$ac_ext
4435 cat >>conftest.$ac_ext <<_ACEOF
4436 /* end confdefs.h. */
4437 #include <stdlib.h>
4438 #include <stdarg.h>
4439 #include <string.h>
4440 #include <float.h>
4443 main ()
4447 return 0;
4449 _ACEOF
4450 rm -f conftest.$ac_objext
4451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4452 (eval $ac_compile) 2>conftest.er1
4453 ac_status=$?
4454 grep -v '^ *+' conftest.er1 >conftest.err
4455 rm -f conftest.er1
4456 cat conftest.err >&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } &&
4459 { ac_try='test -z "$ac_c_werror_flag"
4460 || test ! -s conftest.err'
4461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462 (eval $ac_try) 2>&5
4463 ac_status=$?
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; } &&
4466 { ac_try='test -s conftest.$ac_objext'
4467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468 (eval $ac_try) 2>&5
4469 ac_status=$?
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; }; then
4472 ac_cv_header_stdc=yes
4473 else
4474 echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4477 ac_cv_header_stdc=no
4479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4481 if test $ac_cv_header_stdc = yes; then
4482 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4483 cat >conftest.$ac_ext <<_ACEOF
4484 /* confdefs.h. */
4485 _ACEOF
4486 cat confdefs.h >>conftest.$ac_ext
4487 cat >>conftest.$ac_ext <<_ACEOF
4488 /* end confdefs.h. */
4489 #include <string.h>
4491 _ACEOF
4492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4493 $EGREP "memchr" >/dev/null 2>&1; then
4495 else
4496 ac_cv_header_stdc=no
4498 rm -f conftest*
4502 if test $ac_cv_header_stdc = yes; then
4503 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4504 cat >conftest.$ac_ext <<_ACEOF
4505 /* confdefs.h. */
4506 _ACEOF
4507 cat confdefs.h >>conftest.$ac_ext
4508 cat >>conftest.$ac_ext <<_ACEOF
4509 /* end confdefs.h. */
4510 #include <stdlib.h>
4512 _ACEOF
4513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4514 $EGREP "free" >/dev/null 2>&1; then
4516 else
4517 ac_cv_header_stdc=no
4519 rm -f conftest*
4523 if test $ac_cv_header_stdc = yes; then
4524 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4525 if test "$cross_compiling" = yes; then
4527 else
4528 cat >conftest.$ac_ext <<_ACEOF
4529 /* confdefs.h. */
4530 _ACEOF
4531 cat confdefs.h >>conftest.$ac_ext
4532 cat >>conftest.$ac_ext <<_ACEOF
4533 /* end confdefs.h. */
4534 #include <ctype.h>
4535 #if ((' ' & 0x0FF) == 0x020)
4536 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4537 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4538 #else
4539 # define ISLOWER(c) \
4540 (('a' <= (c) && (c) <= 'i') \
4541 || ('j' <= (c) && (c) <= 'r') \
4542 || ('s' <= (c) && (c) <= 'z'))
4543 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4544 #endif
4546 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4548 main ()
4550 int i;
4551 for (i = 0; i < 256; i++)
4552 if (XOR (islower (i), ISLOWER (i))
4553 || toupper (i) != TOUPPER (i))
4554 exit(2);
4555 exit (0);
4557 _ACEOF
4558 rm -f conftest$ac_exeext
4559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4560 (eval $ac_link) 2>&5
4561 ac_status=$?
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565 (eval $ac_try) 2>&5
4566 ac_status=$?
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }; }; then
4570 else
4571 echo "$as_me: program exited with status $ac_status" >&5
4572 echo "$as_me: failed program was:" >&5
4573 sed 's/^/| /' conftest.$ac_ext >&5
4575 ( exit $ac_status )
4576 ac_cv_header_stdc=no
4578 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4582 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4583 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4584 if test $ac_cv_header_stdc = yes; then
4586 cat >>confdefs.h <<\_ACEOF
4587 #define STDC_HEADERS 1
4588 _ACEOF
4592 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4602 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4603 inttypes.h stdint.h unistd.h
4605 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4606 echo "$as_me:$LINENO: checking for $ac_header" >&5
4607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 else
4611 cat >conftest.$ac_ext <<_ACEOF
4612 /* confdefs.h. */
4613 _ACEOF
4614 cat confdefs.h >>conftest.$ac_ext
4615 cat >>conftest.$ac_ext <<_ACEOF
4616 /* end confdefs.h. */
4617 $ac_includes_default
4619 #include <$ac_header>
4620 _ACEOF
4621 rm -f conftest.$ac_objext
4622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4623 (eval $ac_compile) 2>conftest.er1
4624 ac_status=$?
4625 grep -v '^ *+' conftest.er1 >conftest.err
4626 rm -f conftest.er1
4627 cat conftest.err >&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); } &&
4630 { ac_try='test -z "$ac_c_werror_flag"
4631 || test ! -s conftest.err'
4632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633 (eval $ac_try) 2>&5
4634 ac_status=$?
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); }; } &&
4637 { ac_try='test -s conftest.$ac_objext'
4638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4639 (eval $ac_try) 2>&5
4640 ac_status=$?
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); }; }; then
4643 eval "$as_ac_Header=yes"
4644 else
4645 echo "$as_me: failed program was:" >&5
4646 sed 's/^/| /' conftest.$ac_ext >&5
4648 eval "$as_ac_Header=no"
4650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4655 cat >>confdefs.h <<_ACEOF
4656 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4657 _ACEOF
4661 done
4713 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
4714 fcntl.h grp.h \
4715 io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
4716 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
4717 unistd.h utime.h \
4718 sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
4719 sys/modem.h \
4720 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
4721 sys/time.h \
4722 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
4723 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
4724 bluetooth/bluetooth.h
4726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4728 echo "$as_me:$LINENO: checking for $ac_header" >&5
4729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4735 else
4736 # Is the header compilable?
4737 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4739 cat >conftest.$ac_ext <<_ACEOF
4740 /* confdefs.h. */
4741 _ACEOF
4742 cat confdefs.h >>conftest.$ac_ext
4743 cat >>conftest.$ac_ext <<_ACEOF
4744 /* end confdefs.h. */
4745 $ac_includes_default
4746 #include <$ac_header>
4747 _ACEOF
4748 rm -f conftest.$ac_objext
4749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4750 (eval $ac_compile) 2>conftest.er1
4751 ac_status=$?
4752 grep -v '^ *+' conftest.er1 >conftest.err
4753 rm -f conftest.er1
4754 cat conftest.err >&5
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); } &&
4757 { ac_try='test -z "$ac_c_werror_flag"
4758 || test ! -s conftest.err'
4759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760 (eval $ac_try) 2>&5
4761 ac_status=$?
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); }; } &&
4764 { ac_try='test -s conftest.$ac_objext'
4765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766 (eval $ac_try) 2>&5
4767 ac_status=$?
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); }; }; then
4770 ac_header_compiler=yes
4771 else
4772 echo "$as_me: failed program was:" >&5
4773 sed 's/^/| /' conftest.$ac_ext >&5
4775 ac_header_compiler=no
4777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4778 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4779 echo "${ECHO_T}$ac_header_compiler" >&6
4781 # Is the header present?
4782 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4783 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4784 cat >conftest.$ac_ext <<_ACEOF
4785 /* confdefs.h. */
4786 _ACEOF
4787 cat confdefs.h >>conftest.$ac_ext
4788 cat >>conftest.$ac_ext <<_ACEOF
4789 /* end confdefs.h. */
4790 #include <$ac_header>
4791 _ACEOF
4792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4793 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4794 ac_status=$?
4795 grep -v '^ *+' conftest.er1 >conftest.err
4796 rm -f conftest.er1
4797 cat conftest.err >&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); } >/dev/null; then
4800 if test -s conftest.err; then
4801 ac_cpp_err=$ac_c_preproc_warn_flag
4802 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4803 else
4804 ac_cpp_err=
4806 else
4807 ac_cpp_err=yes
4809 if test -z "$ac_cpp_err"; then
4810 ac_header_preproc=yes
4811 else
4812 echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4815 ac_header_preproc=no
4817 rm -f conftest.err conftest.$ac_ext
4818 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4819 echo "${ECHO_T}$ac_header_preproc" >&6
4821 # So? What about this header?
4822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4823 yes:no: )
4824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4825 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4827 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4828 ac_header_preproc=yes
4830 no:yes:* )
4831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4832 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4834 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4835 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4836 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4837 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4838 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4840 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4841 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4842 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4844 cat <<\_ASBOX
4845 ## ------------------------------------------------ ##
4846 ## Report this to http://www.python.org/python-bugs ##
4847 ## ------------------------------------------------ ##
4848 _ASBOX
4850 sed "s/^/$as_me: WARNING: /" >&2
4852 esac
4853 echo "$as_me:$LINENO: checking for $ac_header" >&5
4854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 else
4858 eval "$as_ac_Header=\$ac_header_preproc"
4860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4865 cat >>confdefs.h <<_ACEOF
4866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4867 _ACEOF
4871 done
4878 ac_header_dirent=no
4879 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4880 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4881 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4882 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4884 echo $ECHO_N "(cached) $ECHO_C" >&6
4885 else
4886 cat >conftest.$ac_ext <<_ACEOF
4887 /* confdefs.h. */
4888 _ACEOF
4889 cat confdefs.h >>conftest.$ac_ext
4890 cat >>conftest.$ac_ext <<_ACEOF
4891 /* end confdefs.h. */
4892 #include <sys/types.h>
4893 #include <$ac_hdr>
4896 main ()
4898 if ((DIR *) 0)
4899 return 0;
4901 return 0;
4903 _ACEOF
4904 rm -f conftest.$ac_objext
4905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4906 (eval $ac_compile) 2>conftest.er1
4907 ac_status=$?
4908 grep -v '^ *+' conftest.er1 >conftest.err
4909 rm -f conftest.er1
4910 cat conftest.err >&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); } &&
4913 { ac_try='test -z "$ac_c_werror_flag"
4914 || test ! -s conftest.err'
4915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916 (eval $ac_try) 2>&5
4917 ac_status=$?
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); }; } &&
4920 { ac_try='test -s conftest.$ac_objext'
4921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4922 (eval $ac_try) 2>&5
4923 ac_status=$?
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); }; }; then
4926 eval "$as_ac_Header=yes"
4927 else
4928 echo "$as_me: failed program was:" >&5
4929 sed 's/^/| /' conftest.$ac_ext >&5
4931 eval "$as_ac_Header=no"
4933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4938 cat >>confdefs.h <<_ACEOF
4939 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4940 _ACEOF
4942 ac_header_dirent=$ac_hdr; break
4945 done
4946 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4947 if test $ac_header_dirent = dirent.h; then
4948 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4949 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4950 if test "${ac_cv_search_opendir+set}" = set; then
4951 echo $ECHO_N "(cached) $ECHO_C" >&6
4952 else
4953 ac_func_search_save_LIBS=$LIBS
4954 ac_cv_search_opendir=no
4955 cat >conftest.$ac_ext <<_ACEOF
4956 /* confdefs.h. */
4957 _ACEOF
4958 cat confdefs.h >>conftest.$ac_ext
4959 cat >>conftest.$ac_ext <<_ACEOF
4960 /* end confdefs.h. */
4962 /* Override any gcc2 internal prototype to avoid an error. */
4963 #ifdef __cplusplus
4964 extern "C"
4965 #endif
4966 /* We use char because int might match the return type of a gcc2
4967 builtin and then its argument prototype would still apply. */
4968 char opendir ();
4970 main ()
4972 opendir ();
4974 return 0;
4976 _ACEOF
4977 rm -f conftest.$ac_objext conftest$ac_exeext
4978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4979 (eval $ac_link) 2>conftest.er1
4980 ac_status=$?
4981 grep -v '^ *+' conftest.er1 >conftest.err
4982 rm -f conftest.er1
4983 cat conftest.err >&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } &&
4986 { ac_try='test -z "$ac_c_werror_flag"
4987 || test ! -s conftest.err'
4988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4989 (eval $ac_try) 2>&5
4990 ac_status=$?
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); }; } &&
4993 { ac_try='test -s conftest$ac_exeext'
4994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4995 (eval $ac_try) 2>&5
4996 ac_status=$?
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); }; }; then
4999 ac_cv_search_opendir="none required"
5000 else
5001 echo "$as_me: failed program was:" >&5
5002 sed 's/^/| /' conftest.$ac_ext >&5
5005 rm -f conftest.err conftest.$ac_objext \
5006 conftest$ac_exeext conftest.$ac_ext
5007 if test "$ac_cv_search_opendir" = no; then
5008 for ac_lib in dir; do
5009 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5010 cat >conftest.$ac_ext <<_ACEOF
5011 /* confdefs.h. */
5012 _ACEOF
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h. */
5017 /* Override any gcc2 internal prototype to avoid an error. */
5018 #ifdef __cplusplus
5019 extern "C"
5020 #endif
5021 /* We use char because int might match the return type of a gcc2
5022 builtin and then its argument prototype would still apply. */
5023 char opendir ();
5025 main ()
5027 opendir ();
5029 return 0;
5031 _ACEOF
5032 rm -f conftest.$ac_objext conftest$ac_exeext
5033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5034 (eval $ac_link) 2>conftest.er1
5035 ac_status=$?
5036 grep -v '^ *+' conftest.er1 >conftest.err
5037 rm -f conftest.er1
5038 cat conftest.err >&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); } &&
5041 { ac_try='test -z "$ac_c_werror_flag"
5042 || test ! -s conftest.err'
5043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5044 (eval $ac_try) 2>&5
5045 ac_status=$?
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); }; } &&
5048 { ac_try='test -s conftest$ac_exeext'
5049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050 (eval $ac_try) 2>&5
5051 ac_status=$?
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); }; }; then
5054 ac_cv_search_opendir="-l$ac_lib"
5055 break
5056 else
5057 echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5061 rm -f conftest.err conftest.$ac_objext \
5062 conftest$ac_exeext conftest.$ac_ext
5063 done
5065 LIBS=$ac_func_search_save_LIBS
5067 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5068 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5069 if test "$ac_cv_search_opendir" != no; then
5070 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5074 else
5075 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5076 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5077 if test "${ac_cv_search_opendir+set}" = set; then
5078 echo $ECHO_N "(cached) $ECHO_C" >&6
5079 else
5080 ac_func_search_save_LIBS=$LIBS
5081 ac_cv_search_opendir=no
5082 cat >conftest.$ac_ext <<_ACEOF
5083 /* confdefs.h. */
5084 _ACEOF
5085 cat confdefs.h >>conftest.$ac_ext
5086 cat >>conftest.$ac_ext <<_ACEOF
5087 /* end confdefs.h. */
5089 /* Override any gcc2 internal prototype to avoid an error. */
5090 #ifdef __cplusplus
5091 extern "C"
5092 #endif
5093 /* We use char because int might match the return type of a gcc2
5094 builtin and then its argument prototype would still apply. */
5095 char opendir ();
5097 main ()
5099 opendir ();
5101 return 0;
5103 _ACEOF
5104 rm -f conftest.$ac_objext conftest$ac_exeext
5105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5106 (eval $ac_link) 2>conftest.er1
5107 ac_status=$?
5108 grep -v '^ *+' conftest.er1 >conftest.err
5109 rm -f conftest.er1
5110 cat conftest.err >&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); } &&
5113 { ac_try='test -z "$ac_c_werror_flag"
5114 || test ! -s conftest.err'
5115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116 (eval $ac_try) 2>&5
5117 ac_status=$?
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); }; } &&
5120 { ac_try='test -s conftest$ac_exeext'
5121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122 (eval $ac_try) 2>&5
5123 ac_status=$?
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); }; }; then
5126 ac_cv_search_opendir="none required"
5127 else
5128 echo "$as_me: failed program was:" >&5
5129 sed 's/^/| /' conftest.$ac_ext >&5
5132 rm -f conftest.err conftest.$ac_objext \
5133 conftest$ac_exeext conftest.$ac_ext
5134 if test "$ac_cv_search_opendir" = no; then
5135 for ac_lib in x; do
5136 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5137 cat >conftest.$ac_ext <<_ACEOF
5138 /* confdefs.h. */
5139 _ACEOF
5140 cat confdefs.h >>conftest.$ac_ext
5141 cat >>conftest.$ac_ext <<_ACEOF
5142 /* end confdefs.h. */
5144 /* Override any gcc2 internal prototype to avoid an error. */
5145 #ifdef __cplusplus
5146 extern "C"
5147 #endif
5148 /* We use char because int might match the return type of a gcc2
5149 builtin and then its argument prototype would still apply. */
5150 char opendir ();
5152 main ()
5154 opendir ();
5156 return 0;
5158 _ACEOF
5159 rm -f conftest.$ac_objext conftest$ac_exeext
5160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5161 (eval $ac_link) 2>conftest.er1
5162 ac_status=$?
5163 grep -v '^ *+' conftest.er1 >conftest.err
5164 rm -f conftest.er1
5165 cat conftest.err >&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } &&
5168 { ac_try='test -z "$ac_c_werror_flag"
5169 || test ! -s conftest.err'
5170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5171 (eval $ac_try) 2>&5
5172 ac_status=$?
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); }; } &&
5175 { ac_try='test -s conftest$ac_exeext'
5176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5177 (eval $ac_try) 2>&5
5178 ac_status=$?
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); }; }; then
5181 ac_cv_search_opendir="-l$ac_lib"
5182 break
5183 else
5184 echo "$as_me: failed program was:" >&5
5185 sed 's/^/| /' conftest.$ac_ext >&5
5188 rm -f conftest.err conftest.$ac_objext \
5189 conftest$ac_exeext conftest.$ac_ext
5190 done
5192 LIBS=$ac_func_search_save_LIBS
5194 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5195 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5196 if test "$ac_cv_search_opendir" != no; then
5197 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5203 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5204 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5205 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5207 else
5208 cat >conftest.$ac_ext <<_ACEOF
5209 /* confdefs.h. */
5210 _ACEOF
5211 cat confdefs.h >>conftest.$ac_ext
5212 cat >>conftest.$ac_ext <<_ACEOF
5213 /* end confdefs.h. */
5214 #include <sys/types.h>
5216 main ()
5218 return makedev(0, 0);
5220 return 0;
5222 _ACEOF
5223 rm -f conftest.$ac_objext conftest$ac_exeext
5224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5225 (eval $ac_link) 2>conftest.er1
5226 ac_status=$?
5227 grep -v '^ *+' conftest.er1 >conftest.err
5228 rm -f conftest.er1
5229 cat conftest.err >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); } &&
5232 { ac_try='test -z "$ac_c_werror_flag"
5233 || test ! -s conftest.err'
5234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5235 (eval $ac_try) 2>&5
5236 ac_status=$?
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); }; } &&
5239 { ac_try='test -s conftest$ac_exeext'
5240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5241 (eval $ac_try) 2>&5
5242 ac_status=$?
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); }; }; then
5245 ac_cv_header_sys_types_h_makedev=yes
5246 else
5247 echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5250 ac_cv_header_sys_types_h_makedev=no
5252 rm -f conftest.err conftest.$ac_objext \
5253 conftest$ac_exeext conftest.$ac_ext
5256 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5257 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5259 if test $ac_cv_header_sys_types_h_makedev = no; then
5260 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5261 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5262 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5263 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5264 echo $ECHO_N "(cached) $ECHO_C" >&6
5266 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5267 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5268 else
5269 # Is the header compilable?
5270 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5271 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
5272 cat >conftest.$ac_ext <<_ACEOF
5273 /* confdefs.h. */
5274 _ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h. */
5278 $ac_includes_default
5279 #include <sys/mkdev.h>
5280 _ACEOF
5281 rm -f conftest.$ac_objext
5282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5283 (eval $ac_compile) 2>conftest.er1
5284 ac_status=$?
5285 grep -v '^ *+' conftest.er1 >conftest.err
5286 rm -f conftest.er1
5287 cat conftest.err >&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); } &&
5290 { ac_try='test -z "$ac_c_werror_flag"
5291 || test ! -s conftest.err'
5292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5293 (eval $ac_try) 2>&5
5294 ac_status=$?
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); }; } &&
5297 { ac_try='test -s conftest.$ac_objext'
5298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299 (eval $ac_try) 2>&5
5300 ac_status=$?
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }; }; then
5303 ac_header_compiler=yes
5304 else
5305 echo "$as_me: failed program was:" >&5
5306 sed 's/^/| /' conftest.$ac_ext >&5
5308 ac_header_compiler=no
5310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5311 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5312 echo "${ECHO_T}$ac_header_compiler" >&6
5314 # Is the header present?
5315 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5316 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
5317 cat >conftest.$ac_ext <<_ACEOF
5318 /* confdefs.h. */
5319 _ACEOF
5320 cat confdefs.h >>conftest.$ac_ext
5321 cat >>conftest.$ac_ext <<_ACEOF
5322 /* end confdefs.h. */
5323 #include <sys/mkdev.h>
5324 _ACEOF
5325 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5326 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5327 ac_status=$?
5328 grep -v '^ *+' conftest.er1 >conftest.err
5329 rm -f conftest.er1
5330 cat conftest.err >&5
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); } >/dev/null; then
5333 if test -s conftest.err; then
5334 ac_cpp_err=$ac_c_preproc_warn_flag
5335 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5336 else
5337 ac_cpp_err=
5339 else
5340 ac_cpp_err=yes
5342 if test -z "$ac_cpp_err"; then
5343 ac_header_preproc=yes
5344 else
5345 echo "$as_me: failed program was:" >&5
5346 sed 's/^/| /' conftest.$ac_ext >&5
5348 ac_header_preproc=no
5350 rm -f conftest.err conftest.$ac_ext
5351 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5352 echo "${ECHO_T}$ac_header_preproc" >&6
5354 # So? What about this header?
5355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5356 yes:no: )
5357 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5358 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5359 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5360 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5361 ac_header_preproc=yes
5363 no:yes:* )
5364 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5365 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5366 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5367 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5368 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5369 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5370 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5371 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5372 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5373 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5374 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5375 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5377 cat <<\_ASBOX
5378 ## ------------------------------------------------ ##
5379 ## Report this to http://www.python.org/python-bugs ##
5380 ## ------------------------------------------------ ##
5381 _ASBOX
5383 sed "s/^/$as_me: WARNING: /" >&2
5385 esac
5386 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5387 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5388 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
5390 else
5391 ac_cv_header_sys_mkdev_h=$ac_header_preproc
5393 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5394 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5397 if test $ac_cv_header_sys_mkdev_h = yes; then
5399 cat >>confdefs.h <<\_ACEOF
5400 #define MAJOR_IN_MKDEV 1
5401 _ACEOF
5407 if test $ac_cv_header_sys_mkdev_h = no; then
5408 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5409 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5410 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5411 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5414 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5415 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5416 else
5417 # Is the header compilable?
5418 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5419 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
5420 cat >conftest.$ac_ext <<_ACEOF
5421 /* confdefs.h. */
5422 _ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5426 $ac_includes_default
5427 #include <sys/sysmacros.h>
5428 _ACEOF
5429 rm -f conftest.$ac_objext
5430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5431 (eval $ac_compile) 2>conftest.er1
5432 ac_status=$?
5433 grep -v '^ *+' conftest.er1 >conftest.err
5434 rm -f conftest.er1
5435 cat conftest.err >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } &&
5438 { ac_try='test -z "$ac_c_werror_flag"
5439 || test ! -s conftest.err'
5440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441 (eval $ac_try) 2>&5
5442 ac_status=$?
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; } &&
5445 { ac_try='test -s conftest.$ac_objext'
5446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5447 (eval $ac_try) 2>&5
5448 ac_status=$?
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); }; }; then
5451 ac_header_compiler=yes
5452 else
5453 echo "$as_me: failed program was:" >&5
5454 sed 's/^/| /' conftest.$ac_ext >&5
5456 ac_header_compiler=no
5458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5459 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5460 echo "${ECHO_T}$ac_header_compiler" >&6
5462 # Is the header present?
5463 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
5464 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
5465 cat >conftest.$ac_ext <<_ACEOF
5466 /* confdefs.h. */
5467 _ACEOF
5468 cat confdefs.h >>conftest.$ac_ext
5469 cat >>conftest.$ac_ext <<_ACEOF
5470 /* end confdefs.h. */
5471 #include <sys/sysmacros.h>
5472 _ACEOF
5473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5475 ac_status=$?
5476 grep -v '^ *+' conftest.er1 >conftest.err
5477 rm -f conftest.er1
5478 cat conftest.err >&5
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); } >/dev/null; then
5481 if test -s conftest.err; then
5482 ac_cpp_err=$ac_c_preproc_warn_flag
5483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5484 else
5485 ac_cpp_err=
5487 else
5488 ac_cpp_err=yes
5490 if test -z "$ac_cpp_err"; then
5491 ac_header_preproc=yes
5492 else
5493 echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5496 ac_header_preproc=no
5498 rm -f conftest.err conftest.$ac_ext
5499 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5500 echo "${ECHO_T}$ac_header_preproc" >&6
5502 # So? What about this header?
5503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5504 yes:no: )
5505 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
5506 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5507 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
5508 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
5509 ac_header_preproc=yes
5511 no:yes:* )
5512 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
5513 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
5514 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
5515 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
5516 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
5517 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
5518 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
5519 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
5520 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
5521 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
5522 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
5523 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
5525 cat <<\_ASBOX
5526 ## ------------------------------------------------ ##
5527 ## Report this to http://www.python.org/python-bugs ##
5528 ## ------------------------------------------------ ##
5529 _ASBOX
5531 sed "s/^/$as_me: WARNING: /" >&2
5533 esac
5534 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5535 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5536 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5537 echo $ECHO_N "(cached) $ECHO_C" >&6
5538 else
5539 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
5541 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5542 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5545 if test $ac_cv_header_sys_sysmacros_h = yes; then
5547 cat >>confdefs.h <<\_ACEOF
5548 #define MAJOR_IN_SYSMACROS 1
5549 _ACEOF
5558 # On Solaris, term.h requires curses.h
5560 for ac_header in term.h
5562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5563 echo "$as_me:$LINENO: checking for $ac_header" >&5
5564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5566 echo $ECHO_N "(cached) $ECHO_C" >&6
5567 else
5568 cat >conftest.$ac_ext <<_ACEOF
5569 /* confdefs.h. */
5570 _ACEOF
5571 cat confdefs.h >>conftest.$ac_ext
5572 cat >>conftest.$ac_ext <<_ACEOF
5573 /* end confdefs.h. */
5575 #ifdef HAVE_CURSES_H
5576 #include <curses.h>
5577 #endif
5580 #include <$ac_header>
5581 _ACEOF
5582 rm -f conftest.$ac_objext
5583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5584 (eval $ac_compile) 2>conftest.er1
5585 ac_status=$?
5586 grep -v '^ *+' conftest.er1 >conftest.err
5587 rm -f conftest.er1
5588 cat conftest.err >&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); } &&
5591 { ac_try='test -z "$ac_c_werror_flag"
5592 || test ! -s conftest.err'
5593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594 (eval $ac_try) 2>&5
5595 ac_status=$?
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }; } &&
5598 { ac_try='test -s conftest.$ac_objext'
5599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5600 (eval $ac_try) 2>&5
5601 ac_status=$?
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); }; }; then
5604 eval "$as_ac_Header=yes"
5605 else
5606 echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.$ac_ext >&5
5609 eval "$as_ac_Header=no"
5611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5616 cat >>confdefs.h <<_ACEOF
5617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5618 _ACEOF
5622 done
5625 # On Linux, netlink.h requires asm/types.h
5627 for ac_header in linux/netlink.h
5629 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5630 echo "$as_me:$LINENO: checking for $ac_header" >&5
5631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5634 else
5635 cat >conftest.$ac_ext <<_ACEOF
5636 /* confdefs.h. */
5637 _ACEOF
5638 cat confdefs.h >>conftest.$ac_ext
5639 cat >>conftest.$ac_ext <<_ACEOF
5640 /* end confdefs.h. */
5642 #ifdef HAVE_ASM_TYPES_H
5643 #include <asm/types.h>
5644 #endif
5645 #ifdef HAVE_SYS_SOCKET_H
5646 #include <sys/socket.h>
5647 #endif
5650 #include <$ac_header>
5651 _ACEOF
5652 rm -f conftest.$ac_objext
5653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5654 (eval $ac_compile) 2>conftest.er1
5655 ac_status=$?
5656 grep -v '^ *+' conftest.er1 >conftest.err
5657 rm -f conftest.er1
5658 cat conftest.err >&5
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); } &&
5661 { ac_try='test -z "$ac_c_werror_flag"
5662 || test ! -s conftest.err'
5663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664 (eval $ac_try) 2>&5
5665 ac_status=$?
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); }; } &&
5668 { ac_try='test -s conftest.$ac_objext'
5669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670 (eval $ac_try) 2>&5
5671 ac_status=$?
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); }; }; then
5674 eval "$as_ac_Header=yes"
5675 else
5676 echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5679 eval "$as_ac_Header=no"
5681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5686 cat >>confdefs.h <<_ACEOF
5687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5688 _ACEOF
5692 done
5695 # checks for typedefs
5696 was_it_defined=no
5697 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
5698 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
5699 cat >conftest.$ac_ext <<_ACEOF
5700 /* confdefs.h. */
5701 _ACEOF
5702 cat confdefs.h >>conftest.$ac_ext
5703 cat >>conftest.$ac_ext <<_ACEOF
5704 /* end confdefs.h. */
5705 #include <time.h>
5707 _ACEOF
5708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5709 $EGREP "clock_t" >/dev/null 2>&1; then
5710 was_it_defined=yes
5711 else
5714 cat >>confdefs.h <<\_ACEOF
5715 #define clock_t long
5716 _ACEOF
5720 rm -f conftest*
5722 echo "$as_me:$LINENO: result: $was_it_defined" >&5
5723 echo "${ECHO_T}$was_it_defined" >&6
5725 # Check whether using makedev requires defining _OSF_SOURCE
5726 echo "$as_me:$LINENO: checking for makedev" >&5
5727 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
5728 cat >conftest.$ac_ext <<_ACEOF
5729 /* confdefs.h. */
5730 _ACEOF
5731 cat confdefs.h >>conftest.$ac_ext
5732 cat >>conftest.$ac_ext <<_ACEOF
5733 /* end confdefs.h. */
5734 #include <sys/types.h>
5736 main ()
5738 makedev(0, 0)
5740 return 0;
5742 _ACEOF
5743 rm -f conftest.$ac_objext conftest$ac_exeext
5744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5745 (eval $ac_link) 2>conftest.er1
5746 ac_status=$?
5747 grep -v '^ *+' conftest.er1 >conftest.err
5748 rm -f conftest.er1
5749 cat conftest.err >&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); } &&
5752 { ac_try='test -z "$ac_c_werror_flag"
5753 || test ! -s conftest.err'
5754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5755 (eval $ac_try) 2>&5
5756 ac_status=$?
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; } &&
5759 { ac_try='test -s conftest$ac_exeext'
5760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5761 (eval $ac_try) 2>&5
5762 ac_status=$?
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); }; }; then
5765 ac_cv_has_makedev=yes
5766 else
5767 echo "$as_me: failed program was:" >&5
5768 sed 's/^/| /' conftest.$ac_ext >&5
5770 ac_cv_has_makedev=no
5772 rm -f conftest.err conftest.$ac_objext \
5773 conftest$ac_exeext conftest.$ac_ext
5774 if test "$ac_cv_has_makedev" = "no"; then
5775 # we didn't link, try if _OSF_SOURCE will allow us to link
5776 cat >conftest.$ac_ext <<_ACEOF
5777 /* confdefs.h. */
5778 _ACEOF
5779 cat confdefs.h >>conftest.$ac_ext
5780 cat >>conftest.$ac_ext <<_ACEOF
5781 /* end confdefs.h. */
5783 #define _OSF_SOURCE 1
5784 #include <sys/types.h>
5787 main ()
5789 makedev(0, 0)
5791 return 0;
5793 _ACEOF
5794 rm -f conftest.$ac_objext conftest$ac_exeext
5795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5796 (eval $ac_link) 2>conftest.er1
5797 ac_status=$?
5798 grep -v '^ *+' conftest.er1 >conftest.err
5799 rm -f conftest.er1
5800 cat conftest.err >&5
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); } &&
5803 { ac_try='test -z "$ac_c_werror_flag"
5804 || test ! -s conftest.err'
5805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5806 (eval $ac_try) 2>&5
5807 ac_status=$?
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); }; } &&
5810 { ac_try='test -s conftest$ac_exeext'
5811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5812 (eval $ac_try) 2>&5
5813 ac_status=$?
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); }; }; then
5816 ac_cv_has_makedev=yes
5817 else
5818 echo "$as_me: failed program was:" >&5
5819 sed 's/^/| /' conftest.$ac_ext >&5
5821 ac_cv_has_makedev=no
5823 rm -f conftest.err conftest.$ac_objext \
5824 conftest$ac_exeext conftest.$ac_ext
5825 if test "$ac_cv_has_makedev" = "yes"; then
5827 cat >>confdefs.h <<\_ACEOF
5828 #define _OSF_SOURCE 1
5829 _ACEOF
5833 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
5834 echo "${ECHO_T}$ac_cv_has_makedev" >&6
5835 if test "$ac_cv_has_makedev" = "yes"; then
5837 cat >>confdefs.h <<\_ACEOF
5838 #define HAVE_MAKEDEV 1
5839 _ACEOF
5843 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5844 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5845 # defined, but the compiler does not support pragma redefine_extname,
5846 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5847 # structures (such as rlimit64) without declaring them. As a
5848 # work-around, disable LFS on such configurations
5850 use_lfs=yes
5851 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5852 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5853 cat >conftest.$ac_ext <<_ACEOF
5854 /* confdefs.h. */
5855 _ACEOF
5856 cat confdefs.h >>conftest.$ac_ext
5857 cat >>conftest.$ac_ext <<_ACEOF
5858 /* end confdefs.h. */
5860 #define _LARGEFILE_SOURCE 1
5861 #define _FILE_OFFSET_BITS 64
5862 #include <sys/resource.h>
5865 main ()
5867 struct rlimit foo;
5869 return 0;
5871 _ACEOF
5872 rm -f conftest.$ac_objext
5873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5874 (eval $ac_compile) 2>conftest.er1
5875 ac_status=$?
5876 grep -v '^ *+' conftest.er1 >conftest.err
5877 rm -f conftest.er1
5878 cat conftest.err >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); } &&
5881 { ac_try='test -z "$ac_c_werror_flag"
5882 || test ! -s conftest.err'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884 (eval $ac_try) 2>&5
5885 ac_status=$?
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; } &&
5888 { ac_try='test -s conftest.$ac_objext'
5889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5890 (eval $ac_try) 2>&5
5891 ac_status=$?
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }; }; then
5894 sol_lfs_bug=no
5895 else
5896 echo "$as_me: failed program was:" >&5
5897 sed 's/^/| /' conftest.$ac_ext >&5
5899 sol_lfs_bug=yes
5901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5902 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5903 echo "${ECHO_T}$sol_lfs_bug" >&6
5904 if test "$sol_lfs_bug" = "yes"; then
5905 use_lfs=no
5908 if test "$use_lfs" = "yes"; then
5909 # Two defines needed to enable largefile support on various platforms
5910 # These may affect some typedefs
5912 cat >>confdefs.h <<\_ACEOF
5913 #define _LARGEFILE_SOURCE 1
5914 _ACEOF
5917 cat >>confdefs.h <<\_ACEOF
5918 #define _FILE_OFFSET_BITS 64
5919 _ACEOF
5923 # Add some code to confdefs.h so that the test for off_t works on SCO
5924 cat >> confdefs.h <<\EOF
5925 #if defined(SCO_DS)
5926 #undef _OFF_T
5927 #endif
5930 # Type availability checks
5931 echo "$as_me:$LINENO: checking for mode_t" >&5
5932 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5933 if test "${ac_cv_type_mode_t+set}" = set; then
5934 echo $ECHO_N "(cached) $ECHO_C" >&6
5935 else
5936 cat >conftest.$ac_ext <<_ACEOF
5937 /* confdefs.h. */
5938 _ACEOF
5939 cat confdefs.h >>conftest.$ac_ext
5940 cat >>conftest.$ac_ext <<_ACEOF
5941 /* end confdefs.h. */
5942 $ac_includes_default
5944 main ()
5946 if ((mode_t *) 0)
5947 return 0;
5948 if (sizeof (mode_t))
5949 return 0;
5951 return 0;
5953 _ACEOF
5954 rm -f conftest.$ac_objext
5955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5956 (eval $ac_compile) 2>conftest.er1
5957 ac_status=$?
5958 grep -v '^ *+' conftest.er1 >conftest.err
5959 rm -f conftest.er1
5960 cat conftest.err >&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); } &&
5963 { ac_try='test -z "$ac_c_werror_flag"
5964 || test ! -s conftest.err'
5965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5966 (eval $ac_try) 2>&5
5967 ac_status=$?
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); }; } &&
5970 { ac_try='test -s conftest.$ac_objext'
5971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5972 (eval $ac_try) 2>&5
5973 ac_status=$?
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); }; }; then
5976 ac_cv_type_mode_t=yes
5977 else
5978 echo "$as_me: failed program was:" >&5
5979 sed 's/^/| /' conftest.$ac_ext >&5
5981 ac_cv_type_mode_t=no
5983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5985 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5986 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5987 if test $ac_cv_type_mode_t = yes; then
5989 else
5991 cat >>confdefs.h <<_ACEOF
5992 #define mode_t int
5993 _ACEOF
5997 echo "$as_me:$LINENO: checking for off_t" >&5
5998 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5999 if test "${ac_cv_type_off_t+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6001 else
6002 cat >conftest.$ac_ext <<_ACEOF
6003 /* confdefs.h. */
6004 _ACEOF
6005 cat confdefs.h >>conftest.$ac_ext
6006 cat >>conftest.$ac_ext <<_ACEOF
6007 /* end confdefs.h. */
6008 $ac_includes_default
6010 main ()
6012 if ((off_t *) 0)
6013 return 0;
6014 if (sizeof (off_t))
6015 return 0;
6017 return 0;
6019 _ACEOF
6020 rm -f conftest.$ac_objext
6021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6022 (eval $ac_compile) 2>conftest.er1
6023 ac_status=$?
6024 grep -v '^ *+' conftest.er1 >conftest.err
6025 rm -f conftest.er1
6026 cat conftest.err >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); } &&
6029 { ac_try='test -z "$ac_c_werror_flag"
6030 || test ! -s conftest.err'
6031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6032 (eval $ac_try) 2>&5
6033 ac_status=$?
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); }; } &&
6036 { ac_try='test -s conftest.$ac_objext'
6037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6038 (eval $ac_try) 2>&5
6039 ac_status=$?
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); }; }; then
6042 ac_cv_type_off_t=yes
6043 else
6044 echo "$as_me: failed program was:" >&5
6045 sed 's/^/| /' conftest.$ac_ext >&5
6047 ac_cv_type_off_t=no
6049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6051 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6052 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6053 if test $ac_cv_type_off_t = yes; then
6055 else
6057 cat >>confdefs.h <<_ACEOF
6058 #define off_t long
6059 _ACEOF
6063 echo "$as_me:$LINENO: checking for pid_t" >&5
6064 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
6065 if test "${ac_cv_type_pid_t+set}" = set; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
6067 else
6068 cat >conftest.$ac_ext <<_ACEOF
6069 /* confdefs.h. */
6070 _ACEOF
6071 cat confdefs.h >>conftest.$ac_ext
6072 cat >>conftest.$ac_ext <<_ACEOF
6073 /* end confdefs.h. */
6074 $ac_includes_default
6076 main ()
6078 if ((pid_t *) 0)
6079 return 0;
6080 if (sizeof (pid_t))
6081 return 0;
6083 return 0;
6085 _ACEOF
6086 rm -f conftest.$ac_objext
6087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6088 (eval $ac_compile) 2>conftest.er1
6089 ac_status=$?
6090 grep -v '^ *+' conftest.er1 >conftest.err
6091 rm -f conftest.er1
6092 cat conftest.err >&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); } &&
6095 { ac_try='test -z "$ac_c_werror_flag"
6096 || test ! -s conftest.err'
6097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098 (eval $ac_try) 2>&5
6099 ac_status=$?
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; } &&
6102 { ac_try='test -s conftest.$ac_objext'
6103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6104 (eval $ac_try) 2>&5
6105 ac_status=$?
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); }; }; then
6108 ac_cv_type_pid_t=yes
6109 else
6110 echo "$as_me: failed program was:" >&5
6111 sed 's/^/| /' conftest.$ac_ext >&5
6113 ac_cv_type_pid_t=no
6115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6117 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6118 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6119 if test $ac_cv_type_pid_t = yes; then
6121 else
6123 cat >>confdefs.h <<_ACEOF
6124 #define pid_t int
6125 _ACEOF
6129 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6130 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6131 if test "${ac_cv_type_signal+set}" = set; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
6133 else
6134 cat >conftest.$ac_ext <<_ACEOF
6135 /* confdefs.h. */
6136 _ACEOF
6137 cat confdefs.h >>conftest.$ac_ext
6138 cat >>conftest.$ac_ext <<_ACEOF
6139 /* end confdefs.h. */
6140 #include <sys/types.h>
6141 #include <signal.h>
6142 #ifdef signal
6143 # undef signal
6144 #endif
6145 #ifdef __cplusplus
6146 extern "C" void (*signal (int, void (*)(int)))(int);
6147 #else
6148 void (*signal ()) ();
6149 #endif
6152 main ()
6154 int i;
6156 return 0;
6158 _ACEOF
6159 rm -f conftest.$ac_objext
6160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6161 (eval $ac_compile) 2>conftest.er1
6162 ac_status=$?
6163 grep -v '^ *+' conftest.er1 >conftest.err
6164 rm -f conftest.er1
6165 cat conftest.err >&5
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); } &&
6168 { ac_try='test -z "$ac_c_werror_flag"
6169 || test ! -s conftest.err'
6170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6171 (eval $ac_try) 2>&5
6172 ac_status=$?
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); }; } &&
6175 { ac_try='test -s conftest.$ac_objext'
6176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6177 (eval $ac_try) 2>&5
6178 ac_status=$?
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); }; }; then
6181 ac_cv_type_signal=void
6182 else
6183 echo "$as_me: failed program was:" >&5
6184 sed 's/^/| /' conftest.$ac_ext >&5
6186 ac_cv_type_signal=int
6188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6190 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6191 echo "${ECHO_T}$ac_cv_type_signal" >&6
6193 cat >>confdefs.h <<_ACEOF
6194 #define RETSIGTYPE $ac_cv_type_signal
6195 _ACEOF
6198 echo "$as_me:$LINENO: checking for size_t" >&5
6199 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6200 if test "${ac_cv_type_size_t+set}" = set; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 else
6203 cat >conftest.$ac_ext <<_ACEOF
6204 /* confdefs.h. */
6205 _ACEOF
6206 cat confdefs.h >>conftest.$ac_ext
6207 cat >>conftest.$ac_ext <<_ACEOF
6208 /* end confdefs.h. */
6209 $ac_includes_default
6211 main ()
6213 if ((size_t *) 0)
6214 return 0;
6215 if (sizeof (size_t))
6216 return 0;
6218 return 0;
6220 _ACEOF
6221 rm -f conftest.$ac_objext
6222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6223 (eval $ac_compile) 2>conftest.er1
6224 ac_status=$?
6225 grep -v '^ *+' conftest.er1 >conftest.err
6226 rm -f conftest.er1
6227 cat conftest.err >&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); } &&
6230 { ac_try='test -z "$ac_c_werror_flag"
6231 || test ! -s conftest.err'
6232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233 (eval $ac_try) 2>&5
6234 ac_status=$?
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }; } &&
6237 { ac_try='test -s conftest.$ac_objext'
6238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6239 (eval $ac_try) 2>&5
6240 ac_status=$?
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); }; }; then
6243 ac_cv_type_size_t=yes
6244 else
6245 echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6248 ac_cv_type_size_t=no
6250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6252 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6253 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6254 if test $ac_cv_type_size_t = yes; then
6256 else
6258 cat >>confdefs.h <<_ACEOF
6259 #define size_t unsigned
6260 _ACEOF
6264 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6265 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6266 if test "${ac_cv_type_uid_t+set}" = set; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6268 else
6269 cat >conftest.$ac_ext <<_ACEOF
6270 /* confdefs.h. */
6271 _ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h. */
6275 #include <sys/types.h>
6277 _ACEOF
6278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6279 $EGREP "uid_t" >/dev/null 2>&1; then
6280 ac_cv_type_uid_t=yes
6281 else
6282 ac_cv_type_uid_t=no
6284 rm -f conftest*
6287 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6288 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6289 if test $ac_cv_type_uid_t = no; then
6291 cat >>confdefs.h <<\_ACEOF
6292 #define uid_t int
6293 _ACEOF
6296 cat >>confdefs.h <<\_ACEOF
6297 #define gid_t int
6298 _ACEOF
6302 echo "$as_me:$LINENO: checking for ssize_t" >&5
6303 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6304 if test "${ac_cv_type_ssize_t+set}" = set; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
6306 else
6307 cat >conftest.$ac_ext <<_ACEOF
6308 /* confdefs.h. */
6309 _ACEOF
6310 cat confdefs.h >>conftest.$ac_ext
6311 cat >>conftest.$ac_ext <<_ACEOF
6312 /* end confdefs.h. */
6313 $ac_includes_default
6315 main ()
6317 if ((ssize_t *) 0)
6318 return 0;
6319 if (sizeof (ssize_t))
6320 return 0;
6322 return 0;
6324 _ACEOF
6325 rm -f conftest.$ac_objext
6326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6327 (eval $ac_compile) 2>conftest.er1
6328 ac_status=$?
6329 grep -v '^ *+' conftest.er1 >conftest.err
6330 rm -f conftest.er1
6331 cat conftest.err >&5
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); } &&
6334 { ac_try='test -z "$ac_c_werror_flag"
6335 || test ! -s conftest.err'
6336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6337 (eval $ac_try) 2>&5
6338 ac_status=$?
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; } &&
6341 { ac_try='test -s conftest.$ac_objext'
6342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6343 (eval $ac_try) 2>&5
6344 ac_status=$?
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }; }; then
6347 ac_cv_type_ssize_t=yes
6348 else
6349 echo "$as_me: failed program was:" >&5
6350 sed 's/^/| /' conftest.$ac_ext >&5
6352 ac_cv_type_ssize_t=no
6354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6356 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6357 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6358 if test $ac_cv_type_ssize_t = yes; then
6360 cat >>confdefs.h <<\_ACEOF
6361 #define HAVE_SSIZE_T 1
6362 _ACEOF
6367 # Sizes of various common basic types
6368 # ANSI C requires sizeof(char) == 1, so no need to check it
6369 echo "$as_me:$LINENO: checking for int" >&5
6370 echo $ECHO_N "checking for int... $ECHO_C" >&6
6371 if test "${ac_cv_type_int+set}" = set; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6373 else
6374 cat >conftest.$ac_ext <<_ACEOF
6375 /* confdefs.h. */
6376 _ACEOF
6377 cat confdefs.h >>conftest.$ac_ext
6378 cat >>conftest.$ac_ext <<_ACEOF
6379 /* end confdefs.h. */
6380 $ac_includes_default
6382 main ()
6384 if ((int *) 0)
6385 return 0;
6386 if (sizeof (int))
6387 return 0;
6389 return 0;
6391 _ACEOF
6392 rm -f conftest.$ac_objext
6393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6394 (eval $ac_compile) 2>conftest.er1
6395 ac_status=$?
6396 grep -v '^ *+' conftest.er1 >conftest.err
6397 rm -f conftest.er1
6398 cat conftest.err >&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } &&
6401 { ac_try='test -z "$ac_c_werror_flag"
6402 || test ! -s conftest.err'
6403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404 (eval $ac_try) 2>&5
6405 ac_status=$?
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; } &&
6408 { ac_try='test -s conftest.$ac_objext'
6409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6410 (eval $ac_try) 2>&5
6411 ac_status=$?
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; }; then
6414 ac_cv_type_int=yes
6415 else
6416 echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6419 ac_cv_type_int=no
6421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6423 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6424 echo "${ECHO_T}$ac_cv_type_int" >&6
6426 echo "$as_me:$LINENO: checking size of int" >&5
6427 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6428 if test "${ac_cv_sizeof_int+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6430 else
6431 if test "$ac_cv_type_int" = yes; then
6432 # The cast to unsigned long works around a bug in the HP C Compiler
6433 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6434 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6435 # This bug is HP SR number 8606223364.
6436 if test "$cross_compiling" = yes; then
6437 # Depending upon the size, compute the lo and hi bounds.
6438 cat >conftest.$ac_ext <<_ACEOF
6439 /* confdefs.h. */
6440 _ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h. */
6444 $ac_includes_default
6446 main ()
6448 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6449 test_array [0] = 0
6452 return 0;
6454 _ACEOF
6455 rm -f conftest.$ac_objext
6456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6457 (eval $ac_compile) 2>conftest.er1
6458 ac_status=$?
6459 grep -v '^ *+' conftest.er1 >conftest.err
6460 rm -f conftest.er1
6461 cat conftest.err >&5
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); } &&
6464 { ac_try='test -z "$ac_c_werror_flag"
6465 || test ! -s conftest.err'
6466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467 (eval $ac_try) 2>&5
6468 ac_status=$?
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); }; } &&
6471 { ac_try='test -s conftest.$ac_objext'
6472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6473 (eval $ac_try) 2>&5
6474 ac_status=$?
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); }; }; then
6477 ac_lo=0 ac_mid=0
6478 while :; do
6479 cat >conftest.$ac_ext <<_ACEOF
6480 /* confdefs.h. */
6481 _ACEOF
6482 cat confdefs.h >>conftest.$ac_ext
6483 cat >>conftest.$ac_ext <<_ACEOF
6484 /* end confdefs.h. */
6485 $ac_includes_default
6487 main ()
6489 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6490 test_array [0] = 0
6493 return 0;
6495 _ACEOF
6496 rm -f conftest.$ac_objext
6497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6498 (eval $ac_compile) 2>conftest.er1
6499 ac_status=$?
6500 grep -v '^ *+' conftest.er1 >conftest.err
6501 rm -f conftest.er1
6502 cat conftest.err >&5
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); } &&
6505 { ac_try='test -z "$ac_c_werror_flag"
6506 || test ! -s conftest.err'
6507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6508 (eval $ac_try) 2>&5
6509 ac_status=$?
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); }; } &&
6512 { ac_try='test -s conftest.$ac_objext'
6513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6514 (eval $ac_try) 2>&5
6515 ac_status=$?
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); }; }; then
6518 ac_hi=$ac_mid; break
6519 else
6520 echo "$as_me: failed program was:" >&5
6521 sed 's/^/| /' conftest.$ac_ext >&5
6523 ac_lo=`expr $ac_mid + 1`
6524 if test $ac_lo -le $ac_mid; then
6525 ac_lo= ac_hi=
6526 break
6528 ac_mid=`expr 2 '*' $ac_mid + 1`
6530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6531 done
6532 else
6533 echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.$ac_ext >&5
6536 cat >conftest.$ac_ext <<_ACEOF
6537 /* confdefs.h. */
6538 _ACEOF
6539 cat confdefs.h >>conftest.$ac_ext
6540 cat >>conftest.$ac_ext <<_ACEOF
6541 /* end confdefs.h. */
6542 $ac_includes_default
6544 main ()
6546 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6547 test_array [0] = 0
6550 return 0;
6552 _ACEOF
6553 rm -f conftest.$ac_objext
6554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6555 (eval $ac_compile) 2>conftest.er1
6556 ac_status=$?
6557 grep -v '^ *+' conftest.er1 >conftest.err
6558 rm -f conftest.er1
6559 cat conftest.err >&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); } &&
6562 { ac_try='test -z "$ac_c_werror_flag"
6563 || test ! -s conftest.err'
6564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6565 (eval $ac_try) 2>&5
6566 ac_status=$?
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); }; } &&
6569 { ac_try='test -s conftest.$ac_objext'
6570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6571 (eval $ac_try) 2>&5
6572 ac_status=$?
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); }; }; then
6575 ac_hi=-1 ac_mid=-1
6576 while :; do
6577 cat >conftest.$ac_ext <<_ACEOF
6578 /* confdefs.h. */
6579 _ACEOF
6580 cat confdefs.h >>conftest.$ac_ext
6581 cat >>conftest.$ac_ext <<_ACEOF
6582 /* end confdefs.h. */
6583 $ac_includes_default
6585 main ()
6587 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6588 test_array [0] = 0
6591 return 0;
6593 _ACEOF
6594 rm -f conftest.$ac_objext
6595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6596 (eval $ac_compile) 2>conftest.er1
6597 ac_status=$?
6598 grep -v '^ *+' conftest.er1 >conftest.err
6599 rm -f conftest.er1
6600 cat conftest.err >&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); } &&
6603 { ac_try='test -z "$ac_c_werror_flag"
6604 || test ! -s conftest.err'
6605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606 (eval $ac_try) 2>&5
6607 ac_status=$?
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); }; } &&
6610 { ac_try='test -s conftest.$ac_objext'
6611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6612 (eval $ac_try) 2>&5
6613 ac_status=$?
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); }; }; then
6616 ac_lo=$ac_mid; break
6617 else
6618 echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.$ac_ext >&5
6621 ac_hi=`expr '(' $ac_mid ')' - 1`
6622 if test $ac_mid -le $ac_hi; then
6623 ac_lo= ac_hi=
6624 break
6626 ac_mid=`expr 2 '*' $ac_mid`
6628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6629 done
6630 else
6631 echo "$as_me: failed program was:" >&5
6632 sed 's/^/| /' conftest.$ac_ext >&5
6634 ac_lo= ac_hi=
6636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6639 # Binary search between lo and hi bounds.
6640 while test "x$ac_lo" != "x$ac_hi"; do
6641 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6642 cat >conftest.$ac_ext <<_ACEOF
6643 /* confdefs.h. */
6644 _ACEOF
6645 cat confdefs.h >>conftest.$ac_ext
6646 cat >>conftest.$ac_ext <<_ACEOF
6647 /* end confdefs.h. */
6648 $ac_includes_default
6650 main ()
6652 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6653 test_array [0] = 0
6656 return 0;
6658 _ACEOF
6659 rm -f conftest.$ac_objext
6660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6661 (eval $ac_compile) 2>conftest.er1
6662 ac_status=$?
6663 grep -v '^ *+' conftest.er1 >conftest.err
6664 rm -f conftest.er1
6665 cat conftest.err >&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } &&
6668 { ac_try='test -z "$ac_c_werror_flag"
6669 || test ! -s conftest.err'
6670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671 (eval $ac_try) 2>&5
6672 ac_status=$?
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); }; } &&
6675 { ac_try='test -s conftest.$ac_objext'
6676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677 (eval $ac_try) 2>&5
6678 ac_status=$?
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); }; }; then
6681 ac_hi=$ac_mid
6682 else
6683 echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.$ac_ext >&5
6686 ac_lo=`expr '(' $ac_mid ')' + 1`
6688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6689 done
6690 case $ac_lo in
6691 ?*) ac_cv_sizeof_int=$ac_lo;;
6692 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6693 See \`config.log' for more details." >&5
6694 echo "$as_me: error: cannot compute sizeof (int), 77
6695 See \`config.log' for more details." >&2;}
6696 { (exit 1); exit 1; }; } ;;
6697 esac
6698 else
6699 if test "$cross_compiling" = yes; then
6700 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6701 See \`config.log' for more details." >&5
6702 echo "$as_me: error: cannot run test program while cross compiling
6703 See \`config.log' for more details." >&2;}
6704 { (exit 1); exit 1; }; }
6705 else
6706 cat >conftest.$ac_ext <<_ACEOF
6707 /* confdefs.h. */
6708 _ACEOF
6709 cat confdefs.h >>conftest.$ac_ext
6710 cat >>conftest.$ac_ext <<_ACEOF
6711 /* end confdefs.h. */
6712 $ac_includes_default
6713 long longval () { return (long) (sizeof (int)); }
6714 unsigned long ulongval () { return (long) (sizeof (int)); }
6715 #include <stdio.h>
6716 #include <stdlib.h>
6718 main ()
6721 FILE *f = fopen ("conftest.val", "w");
6722 if (! f)
6723 exit (1);
6724 if (((long) (sizeof (int))) < 0)
6726 long i = longval ();
6727 if (i != ((long) (sizeof (int))))
6728 exit (1);
6729 fprintf (f, "%ld\n", i);
6731 else
6733 unsigned long i = ulongval ();
6734 if (i != ((long) (sizeof (int))))
6735 exit (1);
6736 fprintf (f, "%lu\n", i);
6738 exit (ferror (f) || fclose (f) != 0);
6741 return 0;
6743 _ACEOF
6744 rm -f conftest$ac_exeext
6745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6746 (eval $ac_link) 2>&5
6747 ac_status=$?
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751 (eval $ac_try) 2>&5
6752 ac_status=$?
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); }; }; then
6755 ac_cv_sizeof_int=`cat conftest.val`
6756 else
6757 echo "$as_me: program exited with status $ac_status" >&5
6758 echo "$as_me: failed program was:" >&5
6759 sed 's/^/| /' conftest.$ac_ext >&5
6761 ( exit $ac_status )
6762 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6763 See \`config.log' for more details." >&5
6764 echo "$as_me: error: cannot compute sizeof (int), 77
6765 See \`config.log' for more details." >&2;}
6766 { (exit 1); exit 1; }; }
6768 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6771 rm -f conftest.val
6772 else
6773 ac_cv_sizeof_int=0
6776 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6777 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6778 cat >>confdefs.h <<_ACEOF
6779 #define SIZEOF_INT $ac_cv_sizeof_int
6780 _ACEOF
6783 echo "$as_me:$LINENO: checking for long" >&5
6784 echo $ECHO_N "checking for long... $ECHO_C" >&6
6785 if test "${ac_cv_type_long+set}" = set; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
6787 else
6788 cat >conftest.$ac_ext <<_ACEOF
6789 /* confdefs.h. */
6790 _ACEOF
6791 cat confdefs.h >>conftest.$ac_ext
6792 cat >>conftest.$ac_ext <<_ACEOF
6793 /* end confdefs.h. */
6794 $ac_includes_default
6796 main ()
6798 if ((long *) 0)
6799 return 0;
6800 if (sizeof (long))
6801 return 0;
6803 return 0;
6805 _ACEOF
6806 rm -f conftest.$ac_objext
6807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6808 (eval $ac_compile) 2>conftest.er1
6809 ac_status=$?
6810 grep -v '^ *+' conftest.er1 >conftest.err
6811 rm -f conftest.er1
6812 cat conftest.err >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); } &&
6815 { ac_try='test -z "$ac_c_werror_flag"
6816 || test ! -s conftest.err'
6817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818 (eval $ac_try) 2>&5
6819 ac_status=$?
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); }; } &&
6822 { ac_try='test -s conftest.$ac_objext'
6823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824 (eval $ac_try) 2>&5
6825 ac_status=$?
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); }; }; then
6828 ac_cv_type_long=yes
6829 else
6830 echo "$as_me: failed program was:" >&5
6831 sed 's/^/| /' conftest.$ac_ext >&5
6833 ac_cv_type_long=no
6835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6837 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6838 echo "${ECHO_T}$ac_cv_type_long" >&6
6840 echo "$as_me:$LINENO: checking size of long" >&5
6841 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6842 if test "${ac_cv_sizeof_long+set}" = set; then
6843 echo $ECHO_N "(cached) $ECHO_C" >&6
6844 else
6845 if test "$ac_cv_type_long" = yes; then
6846 # The cast to unsigned long works around a bug in the HP C Compiler
6847 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6848 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6849 # This bug is HP SR number 8606223364.
6850 if test "$cross_compiling" = yes; then
6851 # Depending upon the size, compute the lo and hi bounds.
6852 cat >conftest.$ac_ext <<_ACEOF
6853 /* confdefs.h. */
6854 _ACEOF
6855 cat confdefs.h >>conftest.$ac_ext
6856 cat >>conftest.$ac_ext <<_ACEOF
6857 /* end confdefs.h. */
6858 $ac_includes_default
6860 main ()
6862 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6863 test_array [0] = 0
6866 return 0;
6868 _ACEOF
6869 rm -f conftest.$ac_objext
6870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6871 (eval $ac_compile) 2>conftest.er1
6872 ac_status=$?
6873 grep -v '^ *+' conftest.er1 >conftest.err
6874 rm -f conftest.er1
6875 cat conftest.err >&5
6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); } &&
6878 { ac_try='test -z "$ac_c_werror_flag"
6879 || test ! -s conftest.err'
6880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881 (eval $ac_try) 2>&5
6882 ac_status=$?
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); }; } &&
6885 { ac_try='test -s conftest.$ac_objext'
6886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887 (eval $ac_try) 2>&5
6888 ac_status=$?
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; }; then
6891 ac_lo=0 ac_mid=0
6892 while :; do
6893 cat >conftest.$ac_ext <<_ACEOF
6894 /* confdefs.h. */
6895 _ACEOF
6896 cat confdefs.h >>conftest.$ac_ext
6897 cat >>conftest.$ac_ext <<_ACEOF
6898 /* end confdefs.h. */
6899 $ac_includes_default
6901 main ()
6903 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6904 test_array [0] = 0
6907 return 0;
6909 _ACEOF
6910 rm -f conftest.$ac_objext
6911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6912 (eval $ac_compile) 2>conftest.er1
6913 ac_status=$?
6914 grep -v '^ *+' conftest.er1 >conftest.err
6915 rm -f conftest.er1
6916 cat conftest.err >&5
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); } &&
6919 { ac_try='test -z "$ac_c_werror_flag"
6920 || test ! -s conftest.err'
6921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6922 (eval $ac_try) 2>&5
6923 ac_status=$?
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); }; } &&
6926 { ac_try='test -s conftest.$ac_objext'
6927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6928 (eval $ac_try) 2>&5
6929 ac_status=$?
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); }; }; then
6932 ac_hi=$ac_mid; break
6933 else
6934 echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.$ac_ext >&5
6937 ac_lo=`expr $ac_mid + 1`
6938 if test $ac_lo -le $ac_mid; then
6939 ac_lo= ac_hi=
6940 break
6942 ac_mid=`expr 2 '*' $ac_mid + 1`
6944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6945 done
6946 else
6947 echo "$as_me: failed program was:" >&5
6948 sed 's/^/| /' conftest.$ac_ext >&5
6950 cat >conftest.$ac_ext <<_ACEOF
6951 /* confdefs.h. */
6952 _ACEOF
6953 cat confdefs.h >>conftest.$ac_ext
6954 cat >>conftest.$ac_ext <<_ACEOF
6955 /* end confdefs.h. */
6956 $ac_includes_default
6958 main ()
6960 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6961 test_array [0] = 0
6964 return 0;
6966 _ACEOF
6967 rm -f conftest.$ac_objext
6968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6969 (eval $ac_compile) 2>conftest.er1
6970 ac_status=$?
6971 grep -v '^ *+' conftest.er1 >conftest.err
6972 rm -f conftest.er1
6973 cat conftest.err >&5
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } &&
6976 { ac_try='test -z "$ac_c_werror_flag"
6977 || test ! -s conftest.err'
6978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979 (eval $ac_try) 2>&5
6980 ac_status=$?
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); }; } &&
6983 { ac_try='test -s conftest.$ac_objext'
6984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985 (eval $ac_try) 2>&5
6986 ac_status=$?
6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); }; }; then
6989 ac_hi=-1 ac_mid=-1
6990 while :; do
6991 cat >conftest.$ac_ext <<_ACEOF
6992 /* confdefs.h. */
6993 _ACEOF
6994 cat confdefs.h >>conftest.$ac_ext
6995 cat >>conftest.$ac_ext <<_ACEOF
6996 /* end confdefs.h. */
6997 $ac_includes_default
6999 main ()
7001 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7002 test_array [0] = 0
7005 return 0;
7007 _ACEOF
7008 rm -f conftest.$ac_objext
7009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7010 (eval $ac_compile) 2>conftest.er1
7011 ac_status=$?
7012 grep -v '^ *+' conftest.er1 >conftest.err
7013 rm -f conftest.er1
7014 cat conftest.err >&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); } &&
7017 { ac_try='test -z "$ac_c_werror_flag"
7018 || test ! -s conftest.err'
7019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020 (eval $ac_try) 2>&5
7021 ac_status=$?
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); }; } &&
7024 { ac_try='test -s conftest.$ac_objext'
7025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026 (eval $ac_try) 2>&5
7027 ac_status=$?
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); }; }; then
7030 ac_lo=$ac_mid; break
7031 else
7032 echo "$as_me: failed program was:" >&5
7033 sed 's/^/| /' conftest.$ac_ext >&5
7035 ac_hi=`expr '(' $ac_mid ')' - 1`
7036 if test $ac_mid -le $ac_hi; then
7037 ac_lo= ac_hi=
7038 break
7040 ac_mid=`expr 2 '*' $ac_mid`
7042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7043 done
7044 else
7045 echo "$as_me: failed program was:" >&5
7046 sed 's/^/| /' conftest.$ac_ext >&5
7048 ac_lo= ac_hi=
7050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7053 # Binary search between lo and hi bounds.
7054 while test "x$ac_lo" != "x$ac_hi"; do
7055 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7056 cat >conftest.$ac_ext <<_ACEOF
7057 /* confdefs.h. */
7058 _ACEOF
7059 cat confdefs.h >>conftest.$ac_ext
7060 cat >>conftest.$ac_ext <<_ACEOF
7061 /* end confdefs.h. */
7062 $ac_includes_default
7064 main ()
7066 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7067 test_array [0] = 0
7070 return 0;
7072 _ACEOF
7073 rm -f conftest.$ac_objext
7074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7075 (eval $ac_compile) 2>conftest.er1
7076 ac_status=$?
7077 grep -v '^ *+' conftest.er1 >conftest.err
7078 rm -f conftest.er1
7079 cat conftest.err >&5
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); } &&
7082 { ac_try='test -z "$ac_c_werror_flag"
7083 || test ! -s conftest.err'
7084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085 (eval $ac_try) 2>&5
7086 ac_status=$?
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); }; } &&
7089 { ac_try='test -s conftest.$ac_objext'
7090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7091 (eval $ac_try) 2>&5
7092 ac_status=$?
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); }; }; then
7095 ac_hi=$ac_mid
7096 else
7097 echo "$as_me: failed program was:" >&5
7098 sed 's/^/| /' conftest.$ac_ext >&5
7100 ac_lo=`expr '(' $ac_mid ')' + 1`
7102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7103 done
7104 case $ac_lo in
7105 ?*) ac_cv_sizeof_long=$ac_lo;;
7106 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7107 See \`config.log' for more details." >&5
7108 echo "$as_me: error: cannot compute sizeof (long), 77
7109 See \`config.log' for more details." >&2;}
7110 { (exit 1); exit 1; }; } ;;
7111 esac
7112 else
7113 if test "$cross_compiling" = yes; then
7114 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7115 See \`config.log' for more details." >&5
7116 echo "$as_me: error: cannot run test program while cross compiling
7117 See \`config.log' for more details." >&2;}
7118 { (exit 1); exit 1; }; }
7119 else
7120 cat >conftest.$ac_ext <<_ACEOF
7121 /* confdefs.h. */
7122 _ACEOF
7123 cat confdefs.h >>conftest.$ac_ext
7124 cat >>conftest.$ac_ext <<_ACEOF
7125 /* end confdefs.h. */
7126 $ac_includes_default
7127 long longval () { return (long) (sizeof (long)); }
7128 unsigned long ulongval () { return (long) (sizeof (long)); }
7129 #include <stdio.h>
7130 #include <stdlib.h>
7132 main ()
7135 FILE *f = fopen ("conftest.val", "w");
7136 if (! f)
7137 exit (1);
7138 if (((long) (sizeof (long))) < 0)
7140 long i = longval ();
7141 if (i != ((long) (sizeof (long))))
7142 exit (1);
7143 fprintf (f, "%ld\n", i);
7145 else
7147 unsigned long i = ulongval ();
7148 if (i != ((long) (sizeof (long))))
7149 exit (1);
7150 fprintf (f, "%lu\n", i);
7152 exit (ferror (f) || fclose (f) != 0);
7155 return 0;
7157 _ACEOF
7158 rm -f conftest$ac_exeext
7159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7160 (eval $ac_link) 2>&5
7161 ac_status=$?
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7165 (eval $ac_try) 2>&5
7166 ac_status=$?
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); }; }; then
7169 ac_cv_sizeof_long=`cat conftest.val`
7170 else
7171 echo "$as_me: program exited with status $ac_status" >&5
7172 echo "$as_me: failed program was:" >&5
7173 sed 's/^/| /' conftest.$ac_ext >&5
7175 ( exit $ac_status )
7176 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7177 See \`config.log' for more details." >&5
7178 echo "$as_me: error: cannot compute sizeof (long), 77
7179 See \`config.log' for more details." >&2;}
7180 { (exit 1); exit 1; }; }
7182 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7185 rm -f conftest.val
7186 else
7187 ac_cv_sizeof_long=0
7190 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7191 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7192 cat >>confdefs.h <<_ACEOF
7193 #define SIZEOF_LONG $ac_cv_sizeof_long
7194 _ACEOF
7197 echo "$as_me:$LINENO: checking for void *" >&5
7198 echo $ECHO_N "checking for void *... $ECHO_C" >&6
7199 if test "${ac_cv_type_void_p+set}" = set; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7201 else
7202 cat >conftest.$ac_ext <<_ACEOF
7203 /* confdefs.h. */
7204 _ACEOF
7205 cat confdefs.h >>conftest.$ac_ext
7206 cat >>conftest.$ac_ext <<_ACEOF
7207 /* end confdefs.h. */
7208 $ac_includes_default
7210 main ()
7212 if ((void * *) 0)
7213 return 0;
7214 if (sizeof (void *))
7215 return 0;
7217 return 0;
7219 _ACEOF
7220 rm -f conftest.$ac_objext
7221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7222 (eval $ac_compile) 2>conftest.er1
7223 ac_status=$?
7224 grep -v '^ *+' conftest.er1 >conftest.err
7225 rm -f conftest.er1
7226 cat conftest.err >&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); } &&
7229 { ac_try='test -z "$ac_c_werror_flag"
7230 || test ! -s conftest.err'
7231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7232 (eval $ac_try) 2>&5
7233 ac_status=$?
7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); }; } &&
7236 { ac_try='test -s conftest.$ac_objext'
7237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7238 (eval $ac_try) 2>&5
7239 ac_status=$?
7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241 (exit $ac_status); }; }; then
7242 ac_cv_type_void_p=yes
7243 else
7244 echo "$as_me: failed program was:" >&5
7245 sed 's/^/| /' conftest.$ac_ext >&5
7247 ac_cv_type_void_p=no
7249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7251 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7252 echo "${ECHO_T}$ac_cv_type_void_p" >&6
7254 echo "$as_me:$LINENO: checking size of void *" >&5
7255 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7256 if test "${ac_cv_sizeof_void_p+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7258 else
7259 if test "$ac_cv_type_void_p" = yes; then
7260 # The cast to unsigned long works around a bug in the HP C Compiler
7261 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7262 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7263 # This bug is HP SR number 8606223364.
7264 if test "$cross_compiling" = yes; then
7265 # Depending upon the size, compute the lo and hi bounds.
7266 cat >conftest.$ac_ext <<_ACEOF
7267 /* confdefs.h. */
7268 _ACEOF
7269 cat confdefs.h >>conftest.$ac_ext
7270 cat >>conftest.$ac_ext <<_ACEOF
7271 /* end confdefs.h. */
7272 $ac_includes_default
7274 main ()
7276 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
7277 test_array [0] = 0
7280 return 0;
7282 _ACEOF
7283 rm -f conftest.$ac_objext
7284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7285 (eval $ac_compile) 2>conftest.er1
7286 ac_status=$?
7287 grep -v '^ *+' conftest.er1 >conftest.err
7288 rm -f conftest.er1
7289 cat conftest.err >&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); } &&
7292 { ac_try='test -z "$ac_c_werror_flag"
7293 || test ! -s conftest.err'
7294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295 (eval $ac_try) 2>&5
7296 ac_status=$?
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); }; } &&
7299 { ac_try='test -s conftest.$ac_objext'
7300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301 (eval $ac_try) 2>&5
7302 ac_status=$?
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); }; }; then
7305 ac_lo=0 ac_mid=0
7306 while :; do
7307 cat >conftest.$ac_ext <<_ACEOF
7308 /* confdefs.h. */
7309 _ACEOF
7310 cat confdefs.h >>conftest.$ac_ext
7311 cat >>conftest.$ac_ext <<_ACEOF
7312 /* end confdefs.h. */
7313 $ac_includes_default
7315 main ()
7317 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7318 test_array [0] = 0
7321 return 0;
7323 _ACEOF
7324 rm -f conftest.$ac_objext
7325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7326 (eval $ac_compile) 2>conftest.er1
7327 ac_status=$?
7328 grep -v '^ *+' conftest.er1 >conftest.err
7329 rm -f conftest.er1
7330 cat conftest.err >&5
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); } &&
7333 { ac_try='test -z "$ac_c_werror_flag"
7334 || test ! -s conftest.err'
7335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7336 (eval $ac_try) 2>&5
7337 ac_status=$?
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); }; } &&
7340 { ac_try='test -s conftest.$ac_objext'
7341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7342 (eval $ac_try) 2>&5
7343 ac_status=$?
7344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345 (exit $ac_status); }; }; then
7346 ac_hi=$ac_mid; break
7347 else
7348 echo "$as_me: failed program was:" >&5
7349 sed 's/^/| /' conftest.$ac_ext >&5
7351 ac_lo=`expr $ac_mid + 1`
7352 if test $ac_lo -le $ac_mid; then
7353 ac_lo= ac_hi=
7354 break
7356 ac_mid=`expr 2 '*' $ac_mid + 1`
7358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7359 done
7360 else
7361 echo "$as_me: failed program was:" >&5
7362 sed 's/^/| /' conftest.$ac_ext >&5
7364 cat >conftest.$ac_ext <<_ACEOF
7365 /* confdefs.h. */
7366 _ACEOF
7367 cat confdefs.h >>conftest.$ac_ext
7368 cat >>conftest.$ac_ext <<_ACEOF
7369 /* end confdefs.h. */
7370 $ac_includes_default
7372 main ()
7374 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
7375 test_array [0] = 0
7378 return 0;
7380 _ACEOF
7381 rm -f conftest.$ac_objext
7382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7383 (eval $ac_compile) 2>conftest.er1
7384 ac_status=$?
7385 grep -v '^ *+' conftest.er1 >conftest.err
7386 rm -f conftest.er1
7387 cat conftest.err >&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } &&
7390 { ac_try='test -z "$ac_c_werror_flag"
7391 || test ! -s conftest.err'
7392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393 (eval $ac_try) 2>&5
7394 ac_status=$?
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); }; } &&
7397 { ac_try='test -s conftest.$ac_objext'
7398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7399 (eval $ac_try) 2>&5
7400 ac_status=$?
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); }; }; then
7403 ac_hi=-1 ac_mid=-1
7404 while :; do
7405 cat >conftest.$ac_ext <<_ACEOF
7406 /* confdefs.h. */
7407 _ACEOF
7408 cat confdefs.h >>conftest.$ac_ext
7409 cat >>conftest.$ac_ext <<_ACEOF
7410 /* end confdefs.h. */
7411 $ac_includes_default
7413 main ()
7415 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
7416 test_array [0] = 0
7419 return 0;
7421 _ACEOF
7422 rm -f conftest.$ac_objext
7423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7424 (eval $ac_compile) 2>conftest.er1
7425 ac_status=$?
7426 grep -v '^ *+' conftest.er1 >conftest.err
7427 rm -f conftest.er1
7428 cat conftest.err >&5
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); } &&
7431 { ac_try='test -z "$ac_c_werror_flag"
7432 || test ! -s conftest.err'
7433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434 (eval $ac_try) 2>&5
7435 ac_status=$?
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); }; } &&
7438 { ac_try='test -s conftest.$ac_objext'
7439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7440 (eval $ac_try) 2>&5
7441 ac_status=$?
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); }; }; then
7444 ac_lo=$ac_mid; break
7445 else
7446 echo "$as_me: failed program was:" >&5
7447 sed 's/^/| /' conftest.$ac_ext >&5
7449 ac_hi=`expr '(' $ac_mid ')' - 1`
7450 if test $ac_mid -le $ac_hi; then
7451 ac_lo= ac_hi=
7452 break
7454 ac_mid=`expr 2 '*' $ac_mid`
7456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7457 done
7458 else
7459 echo "$as_me: failed program was:" >&5
7460 sed 's/^/| /' conftest.$ac_ext >&5
7462 ac_lo= ac_hi=
7464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7467 # Binary search between lo and hi bounds.
7468 while test "x$ac_lo" != "x$ac_hi"; do
7469 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7470 cat >conftest.$ac_ext <<_ACEOF
7471 /* confdefs.h. */
7472 _ACEOF
7473 cat confdefs.h >>conftest.$ac_ext
7474 cat >>conftest.$ac_ext <<_ACEOF
7475 /* end confdefs.h. */
7476 $ac_includes_default
7478 main ()
7480 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7481 test_array [0] = 0
7484 return 0;
7486 _ACEOF
7487 rm -f conftest.$ac_objext
7488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7489 (eval $ac_compile) 2>conftest.er1
7490 ac_status=$?
7491 grep -v '^ *+' conftest.er1 >conftest.err
7492 rm -f conftest.er1
7493 cat conftest.err >&5
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); } &&
7496 { ac_try='test -z "$ac_c_werror_flag"
7497 || test ! -s conftest.err'
7498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7499 (eval $ac_try) 2>&5
7500 ac_status=$?
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); }; } &&
7503 { ac_try='test -s conftest.$ac_objext'
7504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7505 (eval $ac_try) 2>&5
7506 ac_status=$?
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); }; }; then
7509 ac_hi=$ac_mid
7510 else
7511 echo "$as_me: failed program was:" >&5
7512 sed 's/^/| /' conftest.$ac_ext >&5
7514 ac_lo=`expr '(' $ac_mid ')' + 1`
7516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7517 done
7518 case $ac_lo in
7519 ?*) ac_cv_sizeof_void_p=$ac_lo;;
7520 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7521 See \`config.log' for more details." >&5
7522 echo "$as_me: error: cannot compute sizeof (void *), 77
7523 See \`config.log' for more details." >&2;}
7524 { (exit 1); exit 1; }; } ;;
7525 esac
7526 else
7527 if test "$cross_compiling" = yes; then
7528 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7529 See \`config.log' for more details." >&5
7530 echo "$as_me: error: cannot run test program while cross compiling
7531 See \`config.log' for more details." >&2;}
7532 { (exit 1); exit 1; }; }
7533 else
7534 cat >conftest.$ac_ext <<_ACEOF
7535 /* confdefs.h. */
7536 _ACEOF
7537 cat confdefs.h >>conftest.$ac_ext
7538 cat >>conftest.$ac_ext <<_ACEOF
7539 /* end confdefs.h. */
7540 $ac_includes_default
7541 long longval () { return (long) (sizeof (void *)); }
7542 unsigned long ulongval () { return (long) (sizeof (void *)); }
7543 #include <stdio.h>
7544 #include <stdlib.h>
7546 main ()
7549 FILE *f = fopen ("conftest.val", "w");
7550 if (! f)
7551 exit (1);
7552 if (((long) (sizeof (void *))) < 0)
7554 long i = longval ();
7555 if (i != ((long) (sizeof (void *))))
7556 exit (1);
7557 fprintf (f, "%ld\n", i);
7559 else
7561 unsigned long i = ulongval ();
7562 if (i != ((long) (sizeof (void *))))
7563 exit (1);
7564 fprintf (f, "%lu\n", i);
7566 exit (ferror (f) || fclose (f) != 0);
7569 return 0;
7571 _ACEOF
7572 rm -f conftest$ac_exeext
7573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7574 (eval $ac_link) 2>&5
7575 ac_status=$?
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7579 (eval $ac_try) 2>&5
7580 ac_status=$?
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); }; }; then
7583 ac_cv_sizeof_void_p=`cat conftest.val`
7584 else
7585 echo "$as_me: program exited with status $ac_status" >&5
7586 echo "$as_me: failed program was:" >&5
7587 sed 's/^/| /' conftest.$ac_ext >&5
7589 ( exit $ac_status )
7590 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7591 See \`config.log' for more details." >&5
7592 echo "$as_me: error: cannot compute sizeof (void *), 77
7593 See \`config.log' for more details." >&2;}
7594 { (exit 1); exit 1; }; }
7596 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7599 rm -f conftest.val
7600 else
7601 ac_cv_sizeof_void_p=0
7604 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7605 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7606 cat >>confdefs.h <<_ACEOF
7607 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7608 _ACEOF
7611 echo "$as_me:$LINENO: checking for short" >&5
7612 echo $ECHO_N "checking for short... $ECHO_C" >&6
7613 if test "${ac_cv_type_short+set}" = set; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
7615 else
7616 cat >conftest.$ac_ext <<_ACEOF
7617 /* confdefs.h. */
7618 _ACEOF
7619 cat confdefs.h >>conftest.$ac_ext
7620 cat >>conftest.$ac_ext <<_ACEOF
7621 /* end confdefs.h. */
7622 $ac_includes_default
7624 main ()
7626 if ((short *) 0)
7627 return 0;
7628 if (sizeof (short))
7629 return 0;
7631 return 0;
7633 _ACEOF
7634 rm -f conftest.$ac_objext
7635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7636 (eval $ac_compile) 2>conftest.er1
7637 ac_status=$?
7638 grep -v '^ *+' conftest.er1 >conftest.err
7639 rm -f conftest.er1
7640 cat conftest.err >&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); } &&
7643 { ac_try='test -z "$ac_c_werror_flag"
7644 || test ! -s conftest.err'
7645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7646 (eval $ac_try) 2>&5
7647 ac_status=$?
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); }; } &&
7650 { ac_try='test -s conftest.$ac_objext'
7651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7652 (eval $ac_try) 2>&5
7653 ac_status=$?
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); }; }; then
7656 ac_cv_type_short=yes
7657 else
7658 echo "$as_me: failed program was:" >&5
7659 sed 's/^/| /' conftest.$ac_ext >&5
7661 ac_cv_type_short=no
7663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7665 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7666 echo "${ECHO_T}$ac_cv_type_short" >&6
7668 echo "$as_me:$LINENO: checking size of short" >&5
7669 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7670 if test "${ac_cv_sizeof_short+set}" = set; then
7671 echo $ECHO_N "(cached) $ECHO_C" >&6
7672 else
7673 if test "$ac_cv_type_short" = yes; then
7674 # The cast to unsigned long works around a bug in the HP C Compiler
7675 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7676 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7677 # This bug is HP SR number 8606223364.
7678 if test "$cross_compiling" = yes; then
7679 # Depending upon the size, compute the lo and hi bounds.
7680 cat >conftest.$ac_ext <<_ACEOF
7681 /* confdefs.h. */
7682 _ACEOF
7683 cat confdefs.h >>conftest.$ac_ext
7684 cat >>conftest.$ac_ext <<_ACEOF
7685 /* end confdefs.h. */
7686 $ac_includes_default
7688 main ()
7690 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7691 test_array [0] = 0
7694 return 0;
7696 _ACEOF
7697 rm -f conftest.$ac_objext
7698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7699 (eval $ac_compile) 2>conftest.er1
7700 ac_status=$?
7701 grep -v '^ *+' conftest.er1 >conftest.err
7702 rm -f conftest.er1
7703 cat conftest.err >&5
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); } &&
7706 { ac_try='test -z "$ac_c_werror_flag"
7707 || test ! -s conftest.err'
7708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709 (eval $ac_try) 2>&5
7710 ac_status=$?
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); }; } &&
7713 { ac_try='test -s conftest.$ac_objext'
7714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7715 (eval $ac_try) 2>&5
7716 ac_status=$?
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); }; }; then
7719 ac_lo=0 ac_mid=0
7720 while :; do
7721 cat >conftest.$ac_ext <<_ACEOF
7722 /* confdefs.h. */
7723 _ACEOF
7724 cat confdefs.h >>conftest.$ac_ext
7725 cat >>conftest.$ac_ext <<_ACEOF
7726 /* end confdefs.h. */
7727 $ac_includes_default
7729 main ()
7731 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7732 test_array [0] = 0
7735 return 0;
7737 _ACEOF
7738 rm -f conftest.$ac_objext
7739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7740 (eval $ac_compile) 2>conftest.er1
7741 ac_status=$?
7742 grep -v '^ *+' conftest.er1 >conftest.err
7743 rm -f conftest.er1
7744 cat conftest.err >&5
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); } &&
7747 { ac_try='test -z "$ac_c_werror_flag"
7748 || test ! -s conftest.err'
7749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7750 (eval $ac_try) 2>&5
7751 ac_status=$?
7752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753 (exit $ac_status); }; } &&
7754 { ac_try='test -s conftest.$ac_objext'
7755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7756 (eval $ac_try) 2>&5
7757 ac_status=$?
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); }; }; then
7760 ac_hi=$ac_mid; break
7761 else
7762 echo "$as_me: failed program was:" >&5
7763 sed 's/^/| /' conftest.$ac_ext >&5
7765 ac_lo=`expr $ac_mid + 1`
7766 if test $ac_lo -le $ac_mid; then
7767 ac_lo= ac_hi=
7768 break
7770 ac_mid=`expr 2 '*' $ac_mid + 1`
7772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7773 done
7774 else
7775 echo "$as_me: failed program was:" >&5
7776 sed 's/^/| /' conftest.$ac_ext >&5
7778 cat >conftest.$ac_ext <<_ACEOF
7779 /* confdefs.h. */
7780 _ACEOF
7781 cat confdefs.h >>conftest.$ac_ext
7782 cat >>conftest.$ac_ext <<_ACEOF
7783 /* end confdefs.h. */
7784 $ac_includes_default
7786 main ()
7788 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7789 test_array [0] = 0
7792 return 0;
7794 _ACEOF
7795 rm -f conftest.$ac_objext
7796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7797 (eval $ac_compile) 2>conftest.er1
7798 ac_status=$?
7799 grep -v '^ *+' conftest.er1 >conftest.err
7800 rm -f conftest.er1
7801 cat conftest.err >&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); } &&
7804 { ac_try='test -z "$ac_c_werror_flag"
7805 || test ! -s conftest.err'
7806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7807 (eval $ac_try) 2>&5
7808 ac_status=$?
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); }; } &&
7811 { ac_try='test -s conftest.$ac_objext'
7812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7813 (eval $ac_try) 2>&5
7814 ac_status=$?
7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); }; }; then
7817 ac_hi=-1 ac_mid=-1
7818 while :; do
7819 cat >conftest.$ac_ext <<_ACEOF
7820 /* confdefs.h. */
7821 _ACEOF
7822 cat confdefs.h >>conftest.$ac_ext
7823 cat >>conftest.$ac_ext <<_ACEOF
7824 /* end confdefs.h. */
7825 $ac_includes_default
7827 main ()
7829 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7830 test_array [0] = 0
7833 return 0;
7835 _ACEOF
7836 rm -f conftest.$ac_objext
7837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7838 (eval $ac_compile) 2>conftest.er1
7839 ac_status=$?
7840 grep -v '^ *+' conftest.er1 >conftest.err
7841 rm -f conftest.er1
7842 cat conftest.err >&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); } &&
7845 { ac_try='test -z "$ac_c_werror_flag"
7846 || test ! -s conftest.err'
7847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7848 (eval $ac_try) 2>&5
7849 ac_status=$?
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); }; } &&
7852 { ac_try='test -s conftest.$ac_objext'
7853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7854 (eval $ac_try) 2>&5
7855 ac_status=$?
7856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857 (exit $ac_status); }; }; then
7858 ac_lo=$ac_mid; break
7859 else
7860 echo "$as_me: failed program was:" >&5
7861 sed 's/^/| /' conftest.$ac_ext >&5
7863 ac_hi=`expr '(' $ac_mid ')' - 1`
7864 if test $ac_mid -le $ac_hi; then
7865 ac_lo= ac_hi=
7866 break
7868 ac_mid=`expr 2 '*' $ac_mid`
7870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7871 done
7872 else
7873 echo "$as_me: failed program was:" >&5
7874 sed 's/^/| /' conftest.$ac_ext >&5
7876 ac_lo= ac_hi=
7878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7881 # Binary search between lo and hi bounds.
7882 while test "x$ac_lo" != "x$ac_hi"; do
7883 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7884 cat >conftest.$ac_ext <<_ACEOF
7885 /* confdefs.h. */
7886 _ACEOF
7887 cat confdefs.h >>conftest.$ac_ext
7888 cat >>conftest.$ac_ext <<_ACEOF
7889 /* end confdefs.h. */
7890 $ac_includes_default
7892 main ()
7894 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7895 test_array [0] = 0
7898 return 0;
7900 _ACEOF
7901 rm -f conftest.$ac_objext
7902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7903 (eval $ac_compile) 2>conftest.er1
7904 ac_status=$?
7905 grep -v '^ *+' conftest.er1 >conftest.err
7906 rm -f conftest.er1
7907 cat conftest.err >&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } &&
7910 { ac_try='test -z "$ac_c_werror_flag"
7911 || test ! -s conftest.err'
7912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913 (eval $ac_try) 2>&5
7914 ac_status=$?
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); }; } &&
7917 { ac_try='test -s conftest.$ac_objext'
7918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919 (eval $ac_try) 2>&5
7920 ac_status=$?
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); }; }; then
7923 ac_hi=$ac_mid
7924 else
7925 echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.$ac_ext >&5
7928 ac_lo=`expr '(' $ac_mid ')' + 1`
7930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7931 done
7932 case $ac_lo in
7933 ?*) ac_cv_sizeof_short=$ac_lo;;
7934 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7935 See \`config.log' for more details." >&5
7936 echo "$as_me: error: cannot compute sizeof (short), 77
7937 See \`config.log' for more details." >&2;}
7938 { (exit 1); exit 1; }; } ;;
7939 esac
7940 else
7941 if test "$cross_compiling" = yes; then
7942 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7943 See \`config.log' for more details." >&5
7944 echo "$as_me: error: cannot run test program while cross compiling
7945 See \`config.log' for more details." >&2;}
7946 { (exit 1); exit 1; }; }
7947 else
7948 cat >conftest.$ac_ext <<_ACEOF
7949 /* confdefs.h. */
7950 _ACEOF
7951 cat confdefs.h >>conftest.$ac_ext
7952 cat >>conftest.$ac_ext <<_ACEOF
7953 /* end confdefs.h. */
7954 $ac_includes_default
7955 long longval () { return (long) (sizeof (short)); }
7956 unsigned long ulongval () { return (long) (sizeof (short)); }
7957 #include <stdio.h>
7958 #include <stdlib.h>
7960 main ()
7963 FILE *f = fopen ("conftest.val", "w");
7964 if (! f)
7965 exit (1);
7966 if (((long) (sizeof (short))) < 0)
7968 long i = longval ();
7969 if (i != ((long) (sizeof (short))))
7970 exit (1);
7971 fprintf (f, "%ld\n", i);
7973 else
7975 unsigned long i = ulongval ();
7976 if (i != ((long) (sizeof (short))))
7977 exit (1);
7978 fprintf (f, "%lu\n", i);
7980 exit (ferror (f) || fclose (f) != 0);
7983 return 0;
7985 _ACEOF
7986 rm -f conftest$ac_exeext
7987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7988 (eval $ac_link) 2>&5
7989 ac_status=$?
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7993 (eval $ac_try) 2>&5
7994 ac_status=$?
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); }; }; then
7997 ac_cv_sizeof_short=`cat conftest.val`
7998 else
7999 echo "$as_me: program exited with status $ac_status" >&5
8000 echo "$as_me: failed program was:" >&5
8001 sed 's/^/| /' conftest.$ac_ext >&5
8003 ( exit $ac_status )
8004 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
8005 See \`config.log' for more details." >&5
8006 echo "$as_me: error: cannot compute sizeof (short), 77
8007 See \`config.log' for more details." >&2;}
8008 { (exit 1); exit 1; }; }
8010 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8013 rm -f conftest.val
8014 else
8015 ac_cv_sizeof_short=0
8018 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8019 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
8020 cat >>confdefs.h <<_ACEOF
8021 #define SIZEOF_SHORT $ac_cv_sizeof_short
8022 _ACEOF
8025 echo "$as_me:$LINENO: checking for float" >&5
8026 echo $ECHO_N "checking for float... $ECHO_C" >&6
8027 if test "${ac_cv_type_float+set}" = set; then
8028 echo $ECHO_N "(cached) $ECHO_C" >&6
8029 else
8030 cat >conftest.$ac_ext <<_ACEOF
8031 /* confdefs.h. */
8032 _ACEOF
8033 cat confdefs.h >>conftest.$ac_ext
8034 cat >>conftest.$ac_ext <<_ACEOF
8035 /* end confdefs.h. */
8036 $ac_includes_default
8038 main ()
8040 if ((float *) 0)
8041 return 0;
8042 if (sizeof (float))
8043 return 0;
8045 return 0;
8047 _ACEOF
8048 rm -f conftest.$ac_objext
8049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8050 (eval $ac_compile) 2>conftest.er1
8051 ac_status=$?
8052 grep -v '^ *+' conftest.er1 >conftest.err
8053 rm -f conftest.er1
8054 cat conftest.err >&5
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); } &&
8057 { ac_try='test -z "$ac_c_werror_flag"
8058 || test ! -s conftest.err'
8059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060 (eval $ac_try) 2>&5
8061 ac_status=$?
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); }; } &&
8064 { ac_try='test -s conftest.$ac_objext'
8065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066 (eval $ac_try) 2>&5
8067 ac_status=$?
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); }; }; then
8070 ac_cv_type_float=yes
8071 else
8072 echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8075 ac_cv_type_float=no
8077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8079 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8080 echo "${ECHO_T}$ac_cv_type_float" >&6
8082 echo "$as_me:$LINENO: checking size of float" >&5
8083 echo $ECHO_N "checking size of float... $ECHO_C" >&6
8084 if test "${ac_cv_sizeof_float+set}" = set; then
8085 echo $ECHO_N "(cached) $ECHO_C" >&6
8086 else
8087 if test "$ac_cv_type_float" = yes; then
8088 # The cast to unsigned long works around a bug in the HP C Compiler
8089 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8090 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8091 # This bug is HP SR number 8606223364.
8092 if test "$cross_compiling" = yes; then
8093 # Depending upon the size, compute the lo and hi bounds.
8094 cat >conftest.$ac_ext <<_ACEOF
8095 /* confdefs.h. */
8096 _ACEOF
8097 cat confdefs.h >>conftest.$ac_ext
8098 cat >>conftest.$ac_ext <<_ACEOF
8099 /* end confdefs.h. */
8100 $ac_includes_default
8102 main ()
8104 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
8105 test_array [0] = 0
8108 return 0;
8110 _ACEOF
8111 rm -f conftest.$ac_objext
8112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8113 (eval $ac_compile) 2>conftest.er1
8114 ac_status=$?
8115 grep -v '^ *+' conftest.er1 >conftest.err
8116 rm -f conftest.er1
8117 cat conftest.err >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } &&
8120 { ac_try='test -z "$ac_c_werror_flag"
8121 || test ! -s conftest.err'
8122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8123 (eval $ac_try) 2>&5
8124 ac_status=$?
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; } &&
8127 { ac_try='test -s conftest.$ac_objext'
8128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8129 (eval $ac_try) 2>&5
8130 ac_status=$?
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); }; }; then
8133 ac_lo=0 ac_mid=0
8134 while :; do
8135 cat >conftest.$ac_ext <<_ACEOF
8136 /* confdefs.h. */
8137 _ACEOF
8138 cat confdefs.h >>conftest.$ac_ext
8139 cat >>conftest.$ac_ext <<_ACEOF
8140 /* end confdefs.h. */
8141 $ac_includes_default
8143 main ()
8145 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8146 test_array [0] = 0
8149 return 0;
8151 _ACEOF
8152 rm -f conftest.$ac_objext
8153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8154 (eval $ac_compile) 2>conftest.er1
8155 ac_status=$?
8156 grep -v '^ *+' conftest.er1 >conftest.err
8157 rm -f conftest.er1
8158 cat conftest.err >&5
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); } &&
8161 { ac_try='test -z "$ac_c_werror_flag"
8162 || test ! -s conftest.err'
8163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8164 (eval $ac_try) 2>&5
8165 ac_status=$?
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); }; } &&
8168 { ac_try='test -s conftest.$ac_objext'
8169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8170 (eval $ac_try) 2>&5
8171 ac_status=$?
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); }; }; then
8174 ac_hi=$ac_mid; break
8175 else
8176 echo "$as_me: failed program was:" >&5
8177 sed 's/^/| /' conftest.$ac_ext >&5
8179 ac_lo=`expr $ac_mid + 1`
8180 if test $ac_lo -le $ac_mid; then
8181 ac_lo= ac_hi=
8182 break
8184 ac_mid=`expr 2 '*' $ac_mid + 1`
8186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8187 done
8188 else
8189 echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.$ac_ext >&5
8192 cat >conftest.$ac_ext <<_ACEOF
8193 /* confdefs.h. */
8194 _ACEOF
8195 cat confdefs.h >>conftest.$ac_ext
8196 cat >>conftest.$ac_ext <<_ACEOF
8197 /* end confdefs.h. */
8198 $ac_includes_default
8200 main ()
8202 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
8203 test_array [0] = 0
8206 return 0;
8208 _ACEOF
8209 rm -f conftest.$ac_objext
8210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8211 (eval $ac_compile) 2>conftest.er1
8212 ac_status=$?
8213 grep -v '^ *+' conftest.er1 >conftest.err
8214 rm -f conftest.er1
8215 cat conftest.err >&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); } &&
8218 { ac_try='test -z "$ac_c_werror_flag"
8219 || test ! -s conftest.err'
8220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8221 (eval $ac_try) 2>&5
8222 ac_status=$?
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); }; } &&
8225 { ac_try='test -s conftest.$ac_objext'
8226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227 (eval $ac_try) 2>&5
8228 ac_status=$?
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; }; then
8231 ac_hi=-1 ac_mid=-1
8232 while :; do
8233 cat >conftest.$ac_ext <<_ACEOF
8234 /* confdefs.h. */
8235 _ACEOF
8236 cat confdefs.h >>conftest.$ac_ext
8237 cat >>conftest.$ac_ext <<_ACEOF
8238 /* end confdefs.h. */
8239 $ac_includes_default
8241 main ()
8243 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
8244 test_array [0] = 0
8247 return 0;
8249 _ACEOF
8250 rm -f conftest.$ac_objext
8251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8252 (eval $ac_compile) 2>conftest.er1
8253 ac_status=$?
8254 grep -v '^ *+' conftest.er1 >conftest.err
8255 rm -f conftest.er1
8256 cat conftest.err >&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); } &&
8259 { ac_try='test -z "$ac_c_werror_flag"
8260 || test ! -s conftest.err'
8261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262 (eval $ac_try) 2>&5
8263 ac_status=$?
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); }; } &&
8266 { ac_try='test -s conftest.$ac_objext'
8267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8268 (eval $ac_try) 2>&5
8269 ac_status=$?
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); }; }; then
8272 ac_lo=$ac_mid; break
8273 else
8274 echo "$as_me: failed program was:" >&5
8275 sed 's/^/| /' conftest.$ac_ext >&5
8277 ac_hi=`expr '(' $ac_mid ')' - 1`
8278 if test $ac_mid -le $ac_hi; then
8279 ac_lo= ac_hi=
8280 break
8282 ac_mid=`expr 2 '*' $ac_mid`
8284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8285 done
8286 else
8287 echo "$as_me: failed program was:" >&5
8288 sed 's/^/| /' conftest.$ac_ext >&5
8290 ac_lo= ac_hi=
8292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8295 # Binary search between lo and hi bounds.
8296 while test "x$ac_lo" != "x$ac_hi"; do
8297 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8298 cat >conftest.$ac_ext <<_ACEOF
8299 /* confdefs.h. */
8300 _ACEOF
8301 cat confdefs.h >>conftest.$ac_ext
8302 cat >>conftest.$ac_ext <<_ACEOF
8303 /* end confdefs.h. */
8304 $ac_includes_default
8306 main ()
8308 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8309 test_array [0] = 0
8312 return 0;
8314 _ACEOF
8315 rm -f conftest.$ac_objext
8316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8317 (eval $ac_compile) 2>conftest.er1
8318 ac_status=$?
8319 grep -v '^ *+' conftest.er1 >conftest.err
8320 rm -f conftest.er1
8321 cat conftest.err >&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); } &&
8324 { ac_try='test -z "$ac_c_werror_flag"
8325 || test ! -s conftest.err'
8326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8327 (eval $ac_try) 2>&5
8328 ac_status=$?
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); }; } &&
8331 { ac_try='test -s conftest.$ac_objext'
8332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8333 (eval $ac_try) 2>&5
8334 ac_status=$?
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); }; }; then
8337 ac_hi=$ac_mid
8338 else
8339 echo "$as_me: failed program was:" >&5
8340 sed 's/^/| /' conftest.$ac_ext >&5
8342 ac_lo=`expr '(' $ac_mid ')' + 1`
8344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8345 done
8346 case $ac_lo in
8347 ?*) ac_cv_sizeof_float=$ac_lo;;
8348 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8349 See \`config.log' for more details." >&5
8350 echo "$as_me: error: cannot compute sizeof (float), 77
8351 See \`config.log' for more details." >&2;}
8352 { (exit 1); exit 1; }; } ;;
8353 esac
8354 else
8355 if test "$cross_compiling" = yes; then
8356 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8357 See \`config.log' for more details." >&5
8358 echo "$as_me: error: cannot run test program while cross compiling
8359 See \`config.log' for more details." >&2;}
8360 { (exit 1); exit 1; }; }
8361 else
8362 cat >conftest.$ac_ext <<_ACEOF
8363 /* confdefs.h. */
8364 _ACEOF
8365 cat confdefs.h >>conftest.$ac_ext
8366 cat >>conftest.$ac_ext <<_ACEOF
8367 /* end confdefs.h. */
8368 $ac_includes_default
8369 long longval () { return (long) (sizeof (float)); }
8370 unsigned long ulongval () { return (long) (sizeof (float)); }
8371 #include <stdio.h>
8372 #include <stdlib.h>
8374 main ()
8377 FILE *f = fopen ("conftest.val", "w");
8378 if (! f)
8379 exit (1);
8380 if (((long) (sizeof (float))) < 0)
8382 long i = longval ();
8383 if (i != ((long) (sizeof (float))))
8384 exit (1);
8385 fprintf (f, "%ld\n", i);
8387 else
8389 unsigned long i = ulongval ();
8390 if (i != ((long) (sizeof (float))))
8391 exit (1);
8392 fprintf (f, "%lu\n", i);
8394 exit (ferror (f) || fclose (f) != 0);
8397 return 0;
8399 _ACEOF
8400 rm -f conftest$ac_exeext
8401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8402 (eval $ac_link) 2>&5
8403 ac_status=$?
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407 (eval $ac_try) 2>&5
8408 ac_status=$?
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); }; }; then
8411 ac_cv_sizeof_float=`cat conftest.val`
8412 else
8413 echo "$as_me: program exited with status $ac_status" >&5
8414 echo "$as_me: failed program was:" >&5
8415 sed 's/^/| /' conftest.$ac_ext >&5
8417 ( exit $ac_status )
8418 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8419 See \`config.log' for more details." >&5
8420 echo "$as_me: error: cannot compute sizeof (float), 77
8421 See \`config.log' for more details." >&2;}
8422 { (exit 1); exit 1; }; }
8424 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8427 rm -f conftest.val
8428 else
8429 ac_cv_sizeof_float=0
8432 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8433 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
8434 cat >>confdefs.h <<_ACEOF
8435 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8436 _ACEOF
8439 echo "$as_me:$LINENO: checking for double" >&5
8440 echo $ECHO_N "checking for double... $ECHO_C" >&6
8441 if test "${ac_cv_type_double+set}" = set; then
8442 echo $ECHO_N "(cached) $ECHO_C" >&6
8443 else
8444 cat >conftest.$ac_ext <<_ACEOF
8445 /* confdefs.h. */
8446 _ACEOF
8447 cat confdefs.h >>conftest.$ac_ext
8448 cat >>conftest.$ac_ext <<_ACEOF
8449 /* end confdefs.h. */
8450 $ac_includes_default
8452 main ()
8454 if ((double *) 0)
8455 return 0;
8456 if (sizeof (double))
8457 return 0;
8459 return 0;
8461 _ACEOF
8462 rm -f conftest.$ac_objext
8463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8464 (eval $ac_compile) 2>conftest.er1
8465 ac_status=$?
8466 grep -v '^ *+' conftest.er1 >conftest.err
8467 rm -f conftest.er1
8468 cat conftest.err >&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); } &&
8471 { ac_try='test -z "$ac_c_werror_flag"
8472 || test ! -s conftest.err'
8473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8474 (eval $ac_try) 2>&5
8475 ac_status=$?
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); }; } &&
8478 { ac_try='test -s conftest.$ac_objext'
8479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480 (eval $ac_try) 2>&5
8481 ac_status=$?
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }; }; then
8484 ac_cv_type_double=yes
8485 else
8486 echo "$as_me: failed program was:" >&5
8487 sed 's/^/| /' conftest.$ac_ext >&5
8489 ac_cv_type_double=no
8491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8493 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8494 echo "${ECHO_T}$ac_cv_type_double" >&6
8496 echo "$as_me:$LINENO: checking size of double" >&5
8497 echo $ECHO_N "checking size of double... $ECHO_C" >&6
8498 if test "${ac_cv_sizeof_double+set}" = set; then
8499 echo $ECHO_N "(cached) $ECHO_C" >&6
8500 else
8501 if test "$ac_cv_type_double" = yes; then
8502 # The cast to unsigned long works around a bug in the HP C Compiler
8503 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8504 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8505 # This bug is HP SR number 8606223364.
8506 if test "$cross_compiling" = yes; then
8507 # Depending upon the size, compute the lo and hi bounds.
8508 cat >conftest.$ac_ext <<_ACEOF
8509 /* confdefs.h. */
8510 _ACEOF
8511 cat confdefs.h >>conftest.$ac_ext
8512 cat >>conftest.$ac_ext <<_ACEOF
8513 /* end confdefs.h. */
8514 $ac_includes_default
8516 main ()
8518 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
8519 test_array [0] = 0
8522 return 0;
8524 _ACEOF
8525 rm -f conftest.$ac_objext
8526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8527 (eval $ac_compile) 2>conftest.er1
8528 ac_status=$?
8529 grep -v '^ *+' conftest.er1 >conftest.err
8530 rm -f conftest.er1
8531 cat conftest.err >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } &&
8534 { ac_try='test -z "$ac_c_werror_flag"
8535 || test ! -s conftest.err'
8536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8537 (eval $ac_try) 2>&5
8538 ac_status=$?
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); }; } &&
8541 { ac_try='test -s conftest.$ac_objext'
8542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543 (eval $ac_try) 2>&5
8544 ac_status=$?
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; }; then
8547 ac_lo=0 ac_mid=0
8548 while :; do
8549 cat >conftest.$ac_ext <<_ACEOF
8550 /* confdefs.h. */
8551 _ACEOF
8552 cat confdefs.h >>conftest.$ac_ext
8553 cat >>conftest.$ac_ext <<_ACEOF
8554 /* end confdefs.h. */
8555 $ac_includes_default
8557 main ()
8559 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8560 test_array [0] = 0
8563 return 0;
8565 _ACEOF
8566 rm -f conftest.$ac_objext
8567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8568 (eval $ac_compile) 2>conftest.er1
8569 ac_status=$?
8570 grep -v '^ *+' conftest.er1 >conftest.err
8571 rm -f conftest.er1
8572 cat conftest.err >&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } &&
8575 { ac_try='test -z "$ac_c_werror_flag"
8576 || test ! -s conftest.err'
8577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578 (eval $ac_try) 2>&5
8579 ac_status=$?
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); }; } &&
8582 { ac_try='test -s conftest.$ac_objext'
8583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584 (eval $ac_try) 2>&5
8585 ac_status=$?
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; }; then
8588 ac_hi=$ac_mid; break
8589 else
8590 echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.$ac_ext >&5
8593 ac_lo=`expr $ac_mid + 1`
8594 if test $ac_lo -le $ac_mid; then
8595 ac_lo= ac_hi=
8596 break
8598 ac_mid=`expr 2 '*' $ac_mid + 1`
8600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8601 done
8602 else
8603 echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8606 cat >conftest.$ac_ext <<_ACEOF
8607 /* confdefs.h. */
8608 _ACEOF
8609 cat confdefs.h >>conftest.$ac_ext
8610 cat >>conftest.$ac_ext <<_ACEOF
8611 /* end confdefs.h. */
8612 $ac_includes_default
8614 main ()
8616 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
8617 test_array [0] = 0
8620 return 0;
8622 _ACEOF
8623 rm -f conftest.$ac_objext
8624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8625 (eval $ac_compile) 2>conftest.er1
8626 ac_status=$?
8627 grep -v '^ *+' conftest.er1 >conftest.err
8628 rm -f conftest.er1
8629 cat conftest.err >&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); } &&
8632 { ac_try='test -z "$ac_c_werror_flag"
8633 || test ! -s conftest.err'
8634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8635 (eval $ac_try) 2>&5
8636 ac_status=$?
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); }; } &&
8639 { ac_try='test -s conftest.$ac_objext'
8640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8641 (eval $ac_try) 2>&5
8642 ac_status=$?
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); }; }; then
8645 ac_hi=-1 ac_mid=-1
8646 while :; do
8647 cat >conftest.$ac_ext <<_ACEOF
8648 /* confdefs.h. */
8649 _ACEOF
8650 cat confdefs.h >>conftest.$ac_ext
8651 cat >>conftest.$ac_ext <<_ACEOF
8652 /* end confdefs.h. */
8653 $ac_includes_default
8655 main ()
8657 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
8658 test_array [0] = 0
8661 return 0;
8663 _ACEOF
8664 rm -f conftest.$ac_objext
8665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8666 (eval $ac_compile) 2>conftest.er1
8667 ac_status=$?
8668 grep -v '^ *+' conftest.er1 >conftest.err
8669 rm -f conftest.er1
8670 cat conftest.err >&5
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); } &&
8673 { ac_try='test -z "$ac_c_werror_flag"
8674 || test ! -s conftest.err'
8675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676 (eval $ac_try) 2>&5
8677 ac_status=$?
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); }; } &&
8680 { ac_try='test -s conftest.$ac_objext'
8681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682 (eval $ac_try) 2>&5
8683 ac_status=$?
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); }; }; then
8686 ac_lo=$ac_mid; break
8687 else
8688 echo "$as_me: failed program was:" >&5
8689 sed 's/^/| /' conftest.$ac_ext >&5
8691 ac_hi=`expr '(' $ac_mid ')' - 1`
8692 if test $ac_mid -le $ac_hi; then
8693 ac_lo= ac_hi=
8694 break
8696 ac_mid=`expr 2 '*' $ac_mid`
8698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8699 done
8700 else
8701 echo "$as_me: failed program was:" >&5
8702 sed 's/^/| /' conftest.$ac_ext >&5
8704 ac_lo= ac_hi=
8706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8709 # Binary search between lo and hi bounds.
8710 while test "x$ac_lo" != "x$ac_hi"; do
8711 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8712 cat >conftest.$ac_ext <<_ACEOF
8713 /* confdefs.h. */
8714 _ACEOF
8715 cat confdefs.h >>conftest.$ac_ext
8716 cat >>conftest.$ac_ext <<_ACEOF
8717 /* end confdefs.h. */
8718 $ac_includes_default
8720 main ()
8722 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8723 test_array [0] = 0
8726 return 0;
8728 _ACEOF
8729 rm -f conftest.$ac_objext
8730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8731 (eval $ac_compile) 2>conftest.er1
8732 ac_status=$?
8733 grep -v '^ *+' conftest.er1 >conftest.err
8734 rm -f conftest.er1
8735 cat conftest.err >&5
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); } &&
8738 { ac_try='test -z "$ac_c_werror_flag"
8739 || test ! -s conftest.err'
8740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8741 (eval $ac_try) 2>&5
8742 ac_status=$?
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); }; } &&
8745 { ac_try='test -s conftest.$ac_objext'
8746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8747 (eval $ac_try) 2>&5
8748 ac_status=$?
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); }; }; then
8751 ac_hi=$ac_mid
8752 else
8753 echo "$as_me: failed program was:" >&5
8754 sed 's/^/| /' conftest.$ac_ext >&5
8756 ac_lo=`expr '(' $ac_mid ')' + 1`
8758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8759 done
8760 case $ac_lo in
8761 ?*) ac_cv_sizeof_double=$ac_lo;;
8762 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8763 See \`config.log' for more details." >&5
8764 echo "$as_me: error: cannot compute sizeof (double), 77
8765 See \`config.log' for more details." >&2;}
8766 { (exit 1); exit 1; }; } ;;
8767 esac
8768 else
8769 if test "$cross_compiling" = yes; then
8770 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8771 See \`config.log' for more details." >&5
8772 echo "$as_me: error: cannot run test program while cross compiling
8773 See \`config.log' for more details." >&2;}
8774 { (exit 1); exit 1; }; }
8775 else
8776 cat >conftest.$ac_ext <<_ACEOF
8777 /* confdefs.h. */
8778 _ACEOF
8779 cat confdefs.h >>conftest.$ac_ext
8780 cat >>conftest.$ac_ext <<_ACEOF
8781 /* end confdefs.h. */
8782 $ac_includes_default
8783 long longval () { return (long) (sizeof (double)); }
8784 unsigned long ulongval () { return (long) (sizeof (double)); }
8785 #include <stdio.h>
8786 #include <stdlib.h>
8788 main ()
8791 FILE *f = fopen ("conftest.val", "w");
8792 if (! f)
8793 exit (1);
8794 if (((long) (sizeof (double))) < 0)
8796 long i = longval ();
8797 if (i != ((long) (sizeof (double))))
8798 exit (1);
8799 fprintf (f, "%ld\n", i);
8801 else
8803 unsigned long i = ulongval ();
8804 if (i != ((long) (sizeof (double))))
8805 exit (1);
8806 fprintf (f, "%lu\n", i);
8808 exit (ferror (f) || fclose (f) != 0);
8811 return 0;
8813 _ACEOF
8814 rm -f conftest$ac_exeext
8815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8816 (eval $ac_link) 2>&5
8817 ac_status=$?
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8821 (eval $ac_try) 2>&5
8822 ac_status=$?
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); }; }; then
8825 ac_cv_sizeof_double=`cat conftest.val`
8826 else
8827 echo "$as_me: program exited with status $ac_status" >&5
8828 echo "$as_me: failed program was:" >&5
8829 sed 's/^/| /' conftest.$ac_ext >&5
8831 ( exit $ac_status )
8832 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8833 See \`config.log' for more details." >&5
8834 echo "$as_me: error: cannot compute sizeof (double), 77
8835 See \`config.log' for more details." >&2;}
8836 { (exit 1); exit 1; }; }
8838 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8841 rm -f conftest.val
8842 else
8843 ac_cv_sizeof_double=0
8846 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
8847 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
8848 cat >>confdefs.h <<_ACEOF
8849 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8850 _ACEOF
8853 echo "$as_me:$LINENO: checking for fpos_t" >&5
8854 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
8855 if test "${ac_cv_type_fpos_t+set}" = set; then
8856 echo $ECHO_N "(cached) $ECHO_C" >&6
8857 else
8858 cat >conftest.$ac_ext <<_ACEOF
8859 /* confdefs.h. */
8860 _ACEOF
8861 cat confdefs.h >>conftest.$ac_ext
8862 cat >>conftest.$ac_ext <<_ACEOF
8863 /* end confdefs.h. */
8864 $ac_includes_default
8866 main ()
8868 if ((fpos_t *) 0)
8869 return 0;
8870 if (sizeof (fpos_t))
8871 return 0;
8873 return 0;
8875 _ACEOF
8876 rm -f conftest.$ac_objext
8877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8878 (eval $ac_compile) 2>conftest.er1
8879 ac_status=$?
8880 grep -v '^ *+' conftest.er1 >conftest.err
8881 rm -f conftest.er1
8882 cat conftest.err >&5
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); } &&
8885 { ac_try='test -z "$ac_c_werror_flag"
8886 || test ! -s conftest.err'
8887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8888 (eval $ac_try) 2>&5
8889 ac_status=$?
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); }; } &&
8892 { ac_try='test -s conftest.$ac_objext'
8893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8894 (eval $ac_try) 2>&5
8895 ac_status=$?
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); }; }; then
8898 ac_cv_type_fpos_t=yes
8899 else
8900 echo "$as_me: failed program was:" >&5
8901 sed 's/^/| /' conftest.$ac_ext >&5
8903 ac_cv_type_fpos_t=no
8905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8907 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
8908 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
8910 echo "$as_me:$LINENO: checking size of fpos_t" >&5
8911 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8912 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8913 echo $ECHO_N "(cached) $ECHO_C" >&6
8914 else
8915 if test "$ac_cv_type_fpos_t" = yes; then
8916 # The cast to unsigned long works around a bug in the HP C Compiler
8917 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8918 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8919 # This bug is HP SR number 8606223364.
8920 if test "$cross_compiling" = yes; then
8921 # Depending upon the size, compute the lo and hi bounds.
8922 cat >conftest.$ac_ext <<_ACEOF
8923 /* confdefs.h. */
8924 _ACEOF
8925 cat confdefs.h >>conftest.$ac_ext
8926 cat >>conftest.$ac_ext <<_ACEOF
8927 /* end confdefs.h. */
8928 $ac_includes_default
8930 main ()
8932 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8933 test_array [0] = 0
8936 return 0;
8938 _ACEOF
8939 rm -f conftest.$ac_objext
8940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8941 (eval $ac_compile) 2>conftest.er1
8942 ac_status=$?
8943 grep -v '^ *+' conftest.er1 >conftest.err
8944 rm -f conftest.er1
8945 cat conftest.err >&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); } &&
8948 { ac_try='test -z "$ac_c_werror_flag"
8949 || test ! -s conftest.err'
8950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8951 (eval $ac_try) 2>&5
8952 ac_status=$?
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); }; } &&
8955 { ac_try='test -s conftest.$ac_objext'
8956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8957 (eval $ac_try) 2>&5
8958 ac_status=$?
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); }; }; then
8961 ac_lo=0 ac_mid=0
8962 while :; do
8963 cat >conftest.$ac_ext <<_ACEOF
8964 /* confdefs.h. */
8965 _ACEOF
8966 cat confdefs.h >>conftest.$ac_ext
8967 cat >>conftest.$ac_ext <<_ACEOF
8968 /* end confdefs.h. */
8969 $ac_includes_default
8971 main ()
8973 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8974 test_array [0] = 0
8977 return 0;
8979 _ACEOF
8980 rm -f conftest.$ac_objext
8981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8982 (eval $ac_compile) 2>conftest.er1
8983 ac_status=$?
8984 grep -v '^ *+' conftest.er1 >conftest.err
8985 rm -f conftest.er1
8986 cat conftest.err >&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); } &&
8989 { ac_try='test -z "$ac_c_werror_flag"
8990 || test ! -s conftest.err'
8991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992 (eval $ac_try) 2>&5
8993 ac_status=$?
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; } &&
8996 { ac_try='test -s conftest.$ac_objext'
8997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8998 (eval $ac_try) 2>&5
8999 ac_status=$?
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); }; }; then
9002 ac_hi=$ac_mid; break
9003 else
9004 echo "$as_me: failed program was:" >&5
9005 sed 's/^/| /' conftest.$ac_ext >&5
9007 ac_lo=`expr $ac_mid + 1`
9008 if test $ac_lo -le $ac_mid; then
9009 ac_lo= ac_hi=
9010 break
9012 ac_mid=`expr 2 '*' $ac_mid + 1`
9014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9015 done
9016 else
9017 echo "$as_me: failed program was:" >&5
9018 sed 's/^/| /' conftest.$ac_ext >&5
9020 cat >conftest.$ac_ext <<_ACEOF
9021 /* confdefs.h. */
9022 _ACEOF
9023 cat confdefs.h >>conftest.$ac_ext
9024 cat >>conftest.$ac_ext <<_ACEOF
9025 /* end confdefs.h. */
9026 $ac_includes_default
9028 main ()
9030 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
9031 test_array [0] = 0
9034 return 0;
9036 _ACEOF
9037 rm -f conftest.$ac_objext
9038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9039 (eval $ac_compile) 2>conftest.er1
9040 ac_status=$?
9041 grep -v '^ *+' conftest.er1 >conftest.err
9042 rm -f conftest.er1
9043 cat conftest.err >&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); } &&
9046 { ac_try='test -z "$ac_c_werror_flag"
9047 || test ! -s conftest.err'
9048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9049 (eval $ac_try) 2>&5
9050 ac_status=$?
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); }; } &&
9053 { ac_try='test -s conftest.$ac_objext'
9054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9055 (eval $ac_try) 2>&5
9056 ac_status=$?
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); }; }; then
9059 ac_hi=-1 ac_mid=-1
9060 while :; do
9061 cat >conftest.$ac_ext <<_ACEOF
9062 /* confdefs.h. */
9063 _ACEOF
9064 cat confdefs.h >>conftest.$ac_ext
9065 cat >>conftest.$ac_ext <<_ACEOF
9066 /* end confdefs.h. */
9067 $ac_includes_default
9069 main ()
9071 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
9072 test_array [0] = 0
9075 return 0;
9077 _ACEOF
9078 rm -f conftest.$ac_objext
9079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9080 (eval $ac_compile) 2>conftest.er1
9081 ac_status=$?
9082 grep -v '^ *+' conftest.er1 >conftest.err
9083 rm -f conftest.er1
9084 cat conftest.err >&5
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); } &&
9087 { ac_try='test -z "$ac_c_werror_flag"
9088 || test ! -s conftest.err'
9089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090 (eval $ac_try) 2>&5
9091 ac_status=$?
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); }; } &&
9094 { ac_try='test -s conftest.$ac_objext'
9095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9096 (eval $ac_try) 2>&5
9097 ac_status=$?
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); }; }; then
9100 ac_lo=$ac_mid; break
9101 else
9102 echo "$as_me: failed program was:" >&5
9103 sed 's/^/| /' conftest.$ac_ext >&5
9105 ac_hi=`expr '(' $ac_mid ')' - 1`
9106 if test $ac_mid -le $ac_hi; then
9107 ac_lo= ac_hi=
9108 break
9110 ac_mid=`expr 2 '*' $ac_mid`
9112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9113 done
9114 else
9115 echo "$as_me: failed program was:" >&5
9116 sed 's/^/| /' conftest.$ac_ext >&5
9118 ac_lo= ac_hi=
9120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9123 # Binary search between lo and hi bounds.
9124 while test "x$ac_lo" != "x$ac_hi"; do
9125 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9126 cat >conftest.$ac_ext <<_ACEOF
9127 /* confdefs.h. */
9128 _ACEOF
9129 cat confdefs.h >>conftest.$ac_ext
9130 cat >>conftest.$ac_ext <<_ACEOF
9131 /* end confdefs.h. */
9132 $ac_includes_default
9134 main ()
9136 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
9137 test_array [0] = 0
9140 return 0;
9142 _ACEOF
9143 rm -f conftest.$ac_objext
9144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9145 (eval $ac_compile) 2>conftest.er1
9146 ac_status=$?
9147 grep -v '^ *+' conftest.er1 >conftest.err
9148 rm -f conftest.er1
9149 cat conftest.err >&5
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); } &&
9152 { ac_try='test -z "$ac_c_werror_flag"
9153 || test ! -s conftest.err'
9154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9155 (eval $ac_try) 2>&5
9156 ac_status=$?
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); }; } &&
9159 { ac_try='test -s conftest.$ac_objext'
9160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9161 (eval $ac_try) 2>&5
9162 ac_status=$?
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); }; }; then
9165 ac_hi=$ac_mid
9166 else
9167 echo "$as_me: failed program was:" >&5
9168 sed 's/^/| /' conftest.$ac_ext >&5
9170 ac_lo=`expr '(' $ac_mid ')' + 1`
9172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9173 done
9174 case $ac_lo in
9175 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9176 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9177 See \`config.log' for more details." >&5
9178 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9179 See \`config.log' for more details." >&2;}
9180 { (exit 1); exit 1; }; } ;;
9181 esac
9182 else
9183 if test "$cross_compiling" = yes; then
9184 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9185 See \`config.log' for more details." >&5
9186 echo "$as_me: error: cannot run test program while cross compiling
9187 See \`config.log' for more details." >&2;}
9188 { (exit 1); exit 1; }; }
9189 else
9190 cat >conftest.$ac_ext <<_ACEOF
9191 /* confdefs.h. */
9192 _ACEOF
9193 cat confdefs.h >>conftest.$ac_ext
9194 cat >>conftest.$ac_ext <<_ACEOF
9195 /* end confdefs.h. */
9196 $ac_includes_default
9197 long longval () { return (long) (sizeof (fpos_t)); }
9198 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
9199 #include <stdio.h>
9200 #include <stdlib.h>
9202 main ()
9205 FILE *f = fopen ("conftest.val", "w");
9206 if (! f)
9207 exit (1);
9208 if (((long) (sizeof (fpos_t))) < 0)
9210 long i = longval ();
9211 if (i != ((long) (sizeof (fpos_t))))
9212 exit (1);
9213 fprintf (f, "%ld\n", i);
9215 else
9217 unsigned long i = ulongval ();
9218 if (i != ((long) (sizeof (fpos_t))))
9219 exit (1);
9220 fprintf (f, "%lu\n", i);
9222 exit (ferror (f) || fclose (f) != 0);
9225 return 0;
9227 _ACEOF
9228 rm -f conftest$ac_exeext
9229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9230 (eval $ac_link) 2>&5
9231 ac_status=$?
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9235 (eval $ac_try) 2>&5
9236 ac_status=$?
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); }; }; then
9239 ac_cv_sizeof_fpos_t=`cat conftest.val`
9240 else
9241 echo "$as_me: program exited with status $ac_status" >&5
9242 echo "$as_me: failed program was:" >&5
9243 sed 's/^/| /' conftest.$ac_ext >&5
9245 ( exit $ac_status )
9246 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9247 See \`config.log' for more details." >&5
9248 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9249 See \`config.log' for more details." >&2;}
9250 { (exit 1); exit 1; }; }
9252 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9255 rm -f conftest.val
9256 else
9257 ac_cv_sizeof_fpos_t=0
9260 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9261 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
9262 cat >>confdefs.h <<_ACEOF
9263 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9264 _ACEOF
9267 echo "$as_me:$LINENO: checking for size_t" >&5
9268 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9269 if test "${ac_cv_type_size_t+set}" = set; then
9270 echo $ECHO_N "(cached) $ECHO_C" >&6
9271 else
9272 cat >conftest.$ac_ext <<_ACEOF
9273 /* confdefs.h. */
9274 _ACEOF
9275 cat confdefs.h >>conftest.$ac_ext
9276 cat >>conftest.$ac_ext <<_ACEOF
9277 /* end confdefs.h. */
9278 $ac_includes_default
9280 main ()
9282 if ((size_t *) 0)
9283 return 0;
9284 if (sizeof (size_t))
9285 return 0;
9287 return 0;
9289 _ACEOF
9290 rm -f conftest.$ac_objext
9291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9292 (eval $ac_compile) 2>conftest.er1
9293 ac_status=$?
9294 grep -v '^ *+' conftest.er1 >conftest.err
9295 rm -f conftest.er1
9296 cat conftest.err >&5
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); } &&
9299 { ac_try='test -z "$ac_c_werror_flag"
9300 || test ! -s conftest.err'
9301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9302 (eval $ac_try) 2>&5
9303 ac_status=$?
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); }; } &&
9306 { ac_try='test -s conftest.$ac_objext'
9307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9308 (eval $ac_try) 2>&5
9309 ac_status=$?
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); }; }; then
9312 ac_cv_type_size_t=yes
9313 else
9314 echo "$as_me: failed program was:" >&5
9315 sed 's/^/| /' conftest.$ac_ext >&5
9317 ac_cv_type_size_t=no
9319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9321 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9322 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9324 echo "$as_me:$LINENO: checking size of size_t" >&5
9325 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
9326 if test "${ac_cv_sizeof_size_t+set}" = set; then
9327 echo $ECHO_N "(cached) $ECHO_C" >&6
9328 else
9329 if test "$ac_cv_type_size_t" = yes; then
9330 # The cast to unsigned long works around a bug in the HP C Compiler
9331 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9332 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9333 # This bug is HP SR number 8606223364.
9334 if test "$cross_compiling" = yes; then
9335 # Depending upon the size, compute the lo and hi bounds.
9336 cat >conftest.$ac_ext <<_ACEOF
9337 /* confdefs.h. */
9338 _ACEOF
9339 cat confdefs.h >>conftest.$ac_ext
9340 cat >>conftest.$ac_ext <<_ACEOF
9341 /* end confdefs.h. */
9342 $ac_includes_default
9344 main ()
9346 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
9347 test_array [0] = 0
9350 return 0;
9352 _ACEOF
9353 rm -f conftest.$ac_objext
9354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9355 (eval $ac_compile) 2>conftest.er1
9356 ac_status=$?
9357 grep -v '^ *+' conftest.er1 >conftest.err
9358 rm -f conftest.er1
9359 cat conftest.err >&5
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); } &&
9362 { ac_try='test -z "$ac_c_werror_flag"
9363 || test ! -s conftest.err'
9364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9365 (eval $ac_try) 2>&5
9366 ac_status=$?
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); }; } &&
9369 { ac_try='test -s conftest.$ac_objext'
9370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9371 (eval $ac_try) 2>&5
9372 ac_status=$?
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); }; }; then
9375 ac_lo=0 ac_mid=0
9376 while :; do
9377 cat >conftest.$ac_ext <<_ACEOF
9378 /* confdefs.h. */
9379 _ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h. */
9383 $ac_includes_default
9385 main ()
9387 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9388 test_array [0] = 0
9391 return 0;
9393 _ACEOF
9394 rm -f conftest.$ac_objext
9395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9396 (eval $ac_compile) 2>conftest.er1
9397 ac_status=$?
9398 grep -v '^ *+' conftest.er1 >conftest.err
9399 rm -f conftest.er1
9400 cat conftest.err >&5
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); } &&
9403 { ac_try='test -z "$ac_c_werror_flag"
9404 || test ! -s conftest.err'
9405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9406 (eval $ac_try) 2>&5
9407 ac_status=$?
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); }; } &&
9410 { ac_try='test -s conftest.$ac_objext'
9411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9412 (eval $ac_try) 2>&5
9413 ac_status=$?
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); }; }; then
9416 ac_hi=$ac_mid; break
9417 else
9418 echo "$as_me: failed program was:" >&5
9419 sed 's/^/| /' conftest.$ac_ext >&5
9421 ac_lo=`expr $ac_mid + 1`
9422 if test $ac_lo -le $ac_mid; then
9423 ac_lo= ac_hi=
9424 break
9426 ac_mid=`expr 2 '*' $ac_mid + 1`
9428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9429 done
9430 else
9431 echo "$as_me: failed program was:" >&5
9432 sed 's/^/| /' conftest.$ac_ext >&5
9434 cat >conftest.$ac_ext <<_ACEOF
9435 /* confdefs.h. */
9436 _ACEOF
9437 cat confdefs.h >>conftest.$ac_ext
9438 cat >>conftest.$ac_ext <<_ACEOF
9439 /* end confdefs.h. */
9440 $ac_includes_default
9442 main ()
9444 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
9445 test_array [0] = 0
9448 return 0;
9450 _ACEOF
9451 rm -f conftest.$ac_objext
9452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9453 (eval $ac_compile) 2>conftest.er1
9454 ac_status=$?
9455 grep -v '^ *+' conftest.er1 >conftest.err
9456 rm -f conftest.er1
9457 cat conftest.err >&5
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); } &&
9460 { ac_try='test -z "$ac_c_werror_flag"
9461 || test ! -s conftest.err'
9462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9463 (eval $ac_try) 2>&5
9464 ac_status=$?
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); }; } &&
9467 { ac_try='test -s conftest.$ac_objext'
9468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9469 (eval $ac_try) 2>&5
9470 ac_status=$?
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); }; }; then
9473 ac_hi=-1 ac_mid=-1
9474 while :; do
9475 cat >conftest.$ac_ext <<_ACEOF
9476 /* confdefs.h. */
9477 _ACEOF
9478 cat confdefs.h >>conftest.$ac_ext
9479 cat >>conftest.$ac_ext <<_ACEOF
9480 /* end confdefs.h. */
9481 $ac_includes_default
9483 main ()
9485 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
9486 test_array [0] = 0
9489 return 0;
9491 _ACEOF
9492 rm -f conftest.$ac_objext
9493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9494 (eval $ac_compile) 2>conftest.er1
9495 ac_status=$?
9496 grep -v '^ *+' conftest.er1 >conftest.err
9497 rm -f conftest.er1
9498 cat conftest.err >&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); } &&
9501 { ac_try='test -z "$ac_c_werror_flag"
9502 || test ! -s conftest.err'
9503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504 (eval $ac_try) 2>&5
9505 ac_status=$?
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; } &&
9508 { ac_try='test -s conftest.$ac_objext'
9509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510 (eval $ac_try) 2>&5
9511 ac_status=$?
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); }; }; then
9514 ac_lo=$ac_mid; break
9515 else
9516 echo "$as_me: failed program was:" >&5
9517 sed 's/^/| /' conftest.$ac_ext >&5
9519 ac_hi=`expr '(' $ac_mid ')' - 1`
9520 if test $ac_mid -le $ac_hi; then
9521 ac_lo= ac_hi=
9522 break
9524 ac_mid=`expr 2 '*' $ac_mid`
9526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9527 done
9528 else
9529 echo "$as_me: failed program was:" >&5
9530 sed 's/^/| /' conftest.$ac_ext >&5
9532 ac_lo= ac_hi=
9534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9537 # Binary search between lo and hi bounds.
9538 while test "x$ac_lo" != "x$ac_hi"; do
9539 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9540 cat >conftest.$ac_ext <<_ACEOF
9541 /* confdefs.h. */
9542 _ACEOF
9543 cat confdefs.h >>conftest.$ac_ext
9544 cat >>conftest.$ac_ext <<_ACEOF
9545 /* end confdefs.h. */
9546 $ac_includes_default
9548 main ()
9550 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9551 test_array [0] = 0
9554 return 0;
9556 _ACEOF
9557 rm -f conftest.$ac_objext
9558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9559 (eval $ac_compile) 2>conftest.er1
9560 ac_status=$?
9561 grep -v '^ *+' conftest.er1 >conftest.err
9562 rm -f conftest.er1
9563 cat conftest.err >&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); } &&
9566 { ac_try='test -z "$ac_c_werror_flag"
9567 || test ! -s conftest.err'
9568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9569 (eval $ac_try) 2>&5
9570 ac_status=$?
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); }; } &&
9573 { ac_try='test -s conftest.$ac_objext'
9574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9575 (eval $ac_try) 2>&5
9576 ac_status=$?
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); }; }; then
9579 ac_hi=$ac_mid
9580 else
9581 echo "$as_me: failed program was:" >&5
9582 sed 's/^/| /' conftest.$ac_ext >&5
9584 ac_lo=`expr '(' $ac_mid ')' + 1`
9586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9587 done
9588 case $ac_lo in
9589 ?*) ac_cv_sizeof_size_t=$ac_lo;;
9590 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9591 See \`config.log' for more details." >&5
9592 echo "$as_me: error: cannot compute sizeof (size_t), 77
9593 See \`config.log' for more details." >&2;}
9594 { (exit 1); exit 1; }; } ;;
9595 esac
9596 else
9597 if test "$cross_compiling" = yes; then
9598 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9599 See \`config.log' for more details." >&5
9600 echo "$as_me: error: cannot run test program while cross compiling
9601 See \`config.log' for more details." >&2;}
9602 { (exit 1); exit 1; }; }
9603 else
9604 cat >conftest.$ac_ext <<_ACEOF
9605 /* confdefs.h. */
9606 _ACEOF
9607 cat confdefs.h >>conftest.$ac_ext
9608 cat >>conftest.$ac_ext <<_ACEOF
9609 /* end confdefs.h. */
9610 $ac_includes_default
9611 long longval () { return (long) (sizeof (size_t)); }
9612 unsigned long ulongval () { return (long) (sizeof (size_t)); }
9613 #include <stdio.h>
9614 #include <stdlib.h>
9616 main ()
9619 FILE *f = fopen ("conftest.val", "w");
9620 if (! f)
9621 exit (1);
9622 if (((long) (sizeof (size_t))) < 0)
9624 long i = longval ();
9625 if (i != ((long) (sizeof (size_t))))
9626 exit (1);
9627 fprintf (f, "%ld\n", i);
9629 else
9631 unsigned long i = ulongval ();
9632 if (i != ((long) (sizeof (size_t))))
9633 exit (1);
9634 fprintf (f, "%lu\n", i);
9636 exit (ferror (f) || fclose (f) != 0);
9639 return 0;
9641 _ACEOF
9642 rm -f conftest$ac_exeext
9643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9644 (eval $ac_link) 2>&5
9645 ac_status=$?
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9649 (eval $ac_try) 2>&5
9650 ac_status=$?
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); }; }; then
9653 ac_cv_sizeof_size_t=`cat conftest.val`
9654 else
9655 echo "$as_me: program exited with status $ac_status" >&5
9656 echo "$as_me: failed program was:" >&5
9657 sed 's/^/| /' conftest.$ac_ext >&5
9659 ( exit $ac_status )
9660 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9661 See \`config.log' for more details." >&5
9662 echo "$as_me: error: cannot compute sizeof (size_t), 77
9663 See \`config.log' for more details." >&2;}
9664 { (exit 1); exit 1; }; }
9666 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9669 rm -f conftest.val
9670 else
9671 ac_cv_sizeof_size_t=0
9674 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
9675 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
9676 cat >>confdefs.h <<_ACEOF
9677 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9678 _ACEOF
9682 echo "$as_me:$LINENO: checking for long long support" >&5
9683 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
9684 have_long_long=no
9685 cat >conftest.$ac_ext <<_ACEOF
9686 /* confdefs.h. */
9687 _ACEOF
9688 cat confdefs.h >>conftest.$ac_ext
9689 cat >>conftest.$ac_ext <<_ACEOF
9690 /* end confdefs.h. */
9693 main ()
9695 long long x; x = (long long)0;
9697 return 0;
9699 _ACEOF
9700 rm -f conftest.$ac_objext
9701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9702 (eval $ac_compile) 2>conftest.er1
9703 ac_status=$?
9704 grep -v '^ *+' conftest.er1 >conftest.err
9705 rm -f conftest.er1
9706 cat conftest.err >&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); } &&
9709 { ac_try='test -z "$ac_c_werror_flag"
9710 || test ! -s conftest.err'
9711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9712 (eval $ac_try) 2>&5
9713 ac_status=$?
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); }; } &&
9716 { ac_try='test -s conftest.$ac_objext'
9717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9718 (eval $ac_try) 2>&5
9719 ac_status=$?
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); }; }; then
9724 cat >>confdefs.h <<\_ACEOF
9725 #define HAVE_LONG_LONG 1
9726 _ACEOF
9728 have_long_long=yes
9730 else
9731 echo "$as_me: failed program was:" >&5
9732 sed 's/^/| /' conftest.$ac_ext >&5
9735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9736 echo "$as_me:$LINENO: result: $have_long_long" >&5
9737 echo "${ECHO_T}$have_long_long" >&6
9738 if test "$have_long_long" = yes ; then
9739 echo "$as_me:$LINENO: checking for long long" >&5
9740 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9741 if test "${ac_cv_type_long_long+set}" = set; then
9742 echo $ECHO_N "(cached) $ECHO_C" >&6
9743 else
9744 cat >conftest.$ac_ext <<_ACEOF
9745 /* confdefs.h. */
9746 _ACEOF
9747 cat confdefs.h >>conftest.$ac_ext
9748 cat >>conftest.$ac_ext <<_ACEOF
9749 /* end confdefs.h. */
9750 $ac_includes_default
9752 main ()
9754 if ((long long *) 0)
9755 return 0;
9756 if (sizeof (long long))
9757 return 0;
9759 return 0;
9761 _ACEOF
9762 rm -f conftest.$ac_objext
9763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9764 (eval $ac_compile) 2>conftest.er1
9765 ac_status=$?
9766 grep -v '^ *+' conftest.er1 >conftest.err
9767 rm -f conftest.er1
9768 cat conftest.err >&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); } &&
9771 { ac_try='test -z "$ac_c_werror_flag"
9772 || test ! -s conftest.err'
9773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774 (eval $ac_try) 2>&5
9775 ac_status=$?
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); }; } &&
9778 { ac_try='test -s conftest.$ac_objext'
9779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780 (eval $ac_try) 2>&5
9781 ac_status=$?
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); }; }; then
9784 ac_cv_type_long_long=yes
9785 else
9786 echo "$as_me: failed program was:" >&5
9787 sed 's/^/| /' conftest.$ac_ext >&5
9789 ac_cv_type_long_long=no
9791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9793 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9794 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9796 echo "$as_me:$LINENO: checking size of long long" >&5
9797 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9798 if test "${ac_cv_sizeof_long_long+set}" = set; then
9799 echo $ECHO_N "(cached) $ECHO_C" >&6
9800 else
9801 if test "$ac_cv_type_long_long" = yes; then
9802 # The cast to unsigned long works around a bug in the HP C Compiler
9803 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9804 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9805 # This bug is HP SR number 8606223364.
9806 if test "$cross_compiling" = yes; then
9807 # Depending upon the size, compute the lo and hi bounds.
9808 cat >conftest.$ac_ext <<_ACEOF
9809 /* confdefs.h. */
9810 _ACEOF
9811 cat confdefs.h >>conftest.$ac_ext
9812 cat >>conftest.$ac_ext <<_ACEOF
9813 /* end confdefs.h. */
9814 $ac_includes_default
9816 main ()
9818 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9819 test_array [0] = 0
9822 return 0;
9824 _ACEOF
9825 rm -f conftest.$ac_objext
9826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9827 (eval $ac_compile) 2>conftest.er1
9828 ac_status=$?
9829 grep -v '^ *+' conftest.er1 >conftest.err
9830 rm -f conftest.er1
9831 cat conftest.err >&5
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); } &&
9834 { ac_try='test -z "$ac_c_werror_flag"
9835 || test ! -s conftest.err'
9836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837 (eval $ac_try) 2>&5
9838 ac_status=$?
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; } &&
9841 { ac_try='test -s conftest.$ac_objext'
9842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843 (eval $ac_try) 2>&5
9844 ac_status=$?
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; }; then
9847 ac_lo=0 ac_mid=0
9848 while :; do
9849 cat >conftest.$ac_ext <<_ACEOF
9850 /* confdefs.h. */
9851 _ACEOF
9852 cat confdefs.h >>conftest.$ac_ext
9853 cat >>conftest.$ac_ext <<_ACEOF
9854 /* end confdefs.h. */
9855 $ac_includes_default
9857 main ()
9859 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9860 test_array [0] = 0
9863 return 0;
9865 _ACEOF
9866 rm -f conftest.$ac_objext
9867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9868 (eval $ac_compile) 2>conftest.er1
9869 ac_status=$?
9870 grep -v '^ *+' conftest.er1 >conftest.err
9871 rm -f conftest.er1
9872 cat conftest.err >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); } &&
9875 { ac_try='test -z "$ac_c_werror_flag"
9876 || test ! -s conftest.err'
9877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9878 (eval $ac_try) 2>&5
9879 ac_status=$?
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); }; } &&
9882 { ac_try='test -s conftest.$ac_objext'
9883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9884 (eval $ac_try) 2>&5
9885 ac_status=$?
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); }; }; then
9888 ac_hi=$ac_mid; break
9889 else
9890 echo "$as_me: failed program was:" >&5
9891 sed 's/^/| /' conftest.$ac_ext >&5
9893 ac_lo=`expr $ac_mid + 1`
9894 if test $ac_lo -le $ac_mid; then
9895 ac_lo= ac_hi=
9896 break
9898 ac_mid=`expr 2 '*' $ac_mid + 1`
9900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9901 done
9902 else
9903 echo "$as_me: failed program was:" >&5
9904 sed 's/^/| /' conftest.$ac_ext >&5
9906 cat >conftest.$ac_ext <<_ACEOF
9907 /* confdefs.h. */
9908 _ACEOF
9909 cat confdefs.h >>conftest.$ac_ext
9910 cat >>conftest.$ac_ext <<_ACEOF
9911 /* end confdefs.h. */
9912 $ac_includes_default
9914 main ()
9916 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9917 test_array [0] = 0
9920 return 0;
9922 _ACEOF
9923 rm -f conftest.$ac_objext
9924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9925 (eval $ac_compile) 2>conftest.er1
9926 ac_status=$?
9927 grep -v '^ *+' conftest.er1 >conftest.err
9928 rm -f conftest.er1
9929 cat conftest.err >&5
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); } &&
9932 { ac_try='test -z "$ac_c_werror_flag"
9933 || test ! -s conftest.err'
9934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9935 (eval $ac_try) 2>&5
9936 ac_status=$?
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); }; } &&
9939 { ac_try='test -s conftest.$ac_objext'
9940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9941 (eval $ac_try) 2>&5
9942 ac_status=$?
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); }; }; then
9945 ac_hi=-1 ac_mid=-1
9946 while :; do
9947 cat >conftest.$ac_ext <<_ACEOF
9948 /* confdefs.h. */
9949 _ACEOF
9950 cat confdefs.h >>conftest.$ac_ext
9951 cat >>conftest.$ac_ext <<_ACEOF
9952 /* end confdefs.h. */
9953 $ac_includes_default
9955 main ()
9957 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9958 test_array [0] = 0
9961 return 0;
9963 _ACEOF
9964 rm -f conftest.$ac_objext
9965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9966 (eval $ac_compile) 2>conftest.er1
9967 ac_status=$?
9968 grep -v '^ *+' conftest.er1 >conftest.err
9969 rm -f conftest.er1
9970 cat conftest.err >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } &&
9973 { ac_try='test -z "$ac_c_werror_flag"
9974 || test ! -s conftest.err'
9975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976 (eval $ac_try) 2>&5
9977 ac_status=$?
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; } &&
9980 { ac_try='test -s conftest.$ac_objext'
9981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982 (eval $ac_try) 2>&5
9983 ac_status=$?
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }; }; then
9986 ac_lo=$ac_mid; break
9987 else
9988 echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.$ac_ext >&5
9991 ac_hi=`expr '(' $ac_mid ')' - 1`
9992 if test $ac_mid -le $ac_hi; then
9993 ac_lo= ac_hi=
9994 break
9996 ac_mid=`expr 2 '*' $ac_mid`
9998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9999 done
10000 else
10001 echo "$as_me: failed program was:" >&5
10002 sed 's/^/| /' conftest.$ac_ext >&5
10004 ac_lo= ac_hi=
10006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10009 # Binary search between lo and hi bounds.
10010 while test "x$ac_lo" != "x$ac_hi"; do
10011 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10012 cat >conftest.$ac_ext <<_ACEOF
10013 /* confdefs.h. */
10014 _ACEOF
10015 cat confdefs.h >>conftest.$ac_ext
10016 cat >>conftest.$ac_ext <<_ACEOF
10017 /* end confdefs.h. */
10018 $ac_includes_default
10020 main ()
10022 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
10023 test_array [0] = 0
10026 return 0;
10028 _ACEOF
10029 rm -f conftest.$ac_objext
10030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10031 (eval $ac_compile) 2>conftest.er1
10032 ac_status=$?
10033 grep -v '^ *+' conftest.er1 >conftest.err
10034 rm -f conftest.er1
10035 cat conftest.err >&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); } &&
10038 { ac_try='test -z "$ac_c_werror_flag"
10039 || test ! -s conftest.err'
10040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041 (eval $ac_try) 2>&5
10042 ac_status=$?
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; } &&
10045 { ac_try='test -s conftest.$ac_objext'
10046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10047 (eval $ac_try) 2>&5
10048 ac_status=$?
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); }; }; then
10051 ac_hi=$ac_mid
10052 else
10053 echo "$as_me: failed program was:" >&5
10054 sed 's/^/| /' conftest.$ac_ext >&5
10056 ac_lo=`expr '(' $ac_mid ')' + 1`
10058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10059 done
10060 case $ac_lo in
10061 ?*) ac_cv_sizeof_long_long=$ac_lo;;
10062 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10063 See \`config.log' for more details." >&5
10064 echo "$as_me: error: cannot compute sizeof (long long), 77
10065 See \`config.log' for more details." >&2;}
10066 { (exit 1); exit 1; }; } ;;
10067 esac
10068 else
10069 if test "$cross_compiling" = yes; then
10070 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10071 See \`config.log' for more details." >&5
10072 echo "$as_me: error: cannot run test program while cross compiling
10073 See \`config.log' for more details." >&2;}
10074 { (exit 1); exit 1; }; }
10075 else
10076 cat >conftest.$ac_ext <<_ACEOF
10077 /* confdefs.h. */
10078 _ACEOF
10079 cat confdefs.h >>conftest.$ac_ext
10080 cat >>conftest.$ac_ext <<_ACEOF
10081 /* end confdefs.h. */
10082 $ac_includes_default
10083 long longval () { return (long) (sizeof (long long)); }
10084 unsigned long ulongval () { return (long) (sizeof (long long)); }
10085 #include <stdio.h>
10086 #include <stdlib.h>
10088 main ()
10091 FILE *f = fopen ("conftest.val", "w");
10092 if (! f)
10093 exit (1);
10094 if (((long) (sizeof (long long))) < 0)
10096 long i = longval ();
10097 if (i != ((long) (sizeof (long long))))
10098 exit (1);
10099 fprintf (f, "%ld\n", i);
10101 else
10103 unsigned long i = ulongval ();
10104 if (i != ((long) (sizeof (long long))))
10105 exit (1);
10106 fprintf (f, "%lu\n", i);
10108 exit (ferror (f) || fclose (f) != 0);
10111 return 0;
10113 _ACEOF
10114 rm -f conftest$ac_exeext
10115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10116 (eval $ac_link) 2>&5
10117 ac_status=$?
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10121 (eval $ac_try) 2>&5
10122 ac_status=$?
10123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124 (exit $ac_status); }; }; then
10125 ac_cv_sizeof_long_long=`cat conftest.val`
10126 else
10127 echo "$as_me: program exited with status $ac_status" >&5
10128 echo "$as_me: failed program was:" >&5
10129 sed 's/^/| /' conftest.$ac_ext >&5
10131 ( exit $ac_status )
10132 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10133 See \`config.log' for more details." >&5
10134 echo "$as_me: error: cannot compute sizeof (long long), 77
10135 See \`config.log' for more details." >&2;}
10136 { (exit 1); exit 1; }; }
10138 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10141 rm -f conftest.val
10142 else
10143 ac_cv_sizeof_long_long=0
10146 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10147 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
10148 cat >>confdefs.h <<_ACEOF
10149 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10150 _ACEOF
10155 echo "$as_me:$LINENO: checking for _Bool support" >&5
10156 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6
10157 have_c99_bool=no
10158 cat >conftest.$ac_ext <<_ACEOF
10159 /* confdefs.h. */
10160 _ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h. */
10166 main ()
10168 _Bool x; x = (_Bool)0;
10170 return 0;
10172 _ACEOF
10173 rm -f conftest.$ac_objext
10174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10175 (eval $ac_compile) 2>conftest.er1
10176 ac_status=$?
10177 grep -v '^ *+' conftest.er1 >conftest.err
10178 rm -f conftest.er1
10179 cat conftest.err >&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); } &&
10182 { ac_try='test -z "$ac_c_werror_flag"
10183 || test ! -s conftest.err'
10184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185 (eval $ac_try) 2>&5
10186 ac_status=$?
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; } &&
10189 { ac_try='test -s conftest.$ac_objext'
10190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191 (eval $ac_try) 2>&5
10192 ac_status=$?
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); }; }; then
10197 cat >>confdefs.h <<\_ACEOF
10198 #define HAVE_C99_BOOL 1
10199 _ACEOF
10201 have_c99_bool=yes
10203 else
10204 echo "$as_me: failed program was:" >&5
10205 sed 's/^/| /' conftest.$ac_ext >&5
10208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10209 echo "$as_me:$LINENO: result: $have_c99_bool" >&5
10210 echo "${ECHO_T}$have_c99_bool" >&6
10211 if test "$have_c99_bool" = yes ; then
10212 echo "$as_me:$LINENO: checking for _Bool" >&5
10213 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
10214 if test "${ac_cv_type__Bool+set}" = set; then
10215 echo $ECHO_N "(cached) $ECHO_C" >&6
10216 else
10217 cat >conftest.$ac_ext <<_ACEOF
10218 /* confdefs.h. */
10219 _ACEOF
10220 cat confdefs.h >>conftest.$ac_ext
10221 cat >>conftest.$ac_ext <<_ACEOF
10222 /* end confdefs.h. */
10223 $ac_includes_default
10225 main ()
10227 if ((_Bool *) 0)
10228 return 0;
10229 if (sizeof (_Bool))
10230 return 0;
10232 return 0;
10234 _ACEOF
10235 rm -f conftest.$ac_objext
10236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10237 (eval $ac_compile) 2>conftest.er1
10238 ac_status=$?
10239 grep -v '^ *+' conftest.er1 >conftest.err
10240 rm -f conftest.er1
10241 cat conftest.err >&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); } &&
10244 { ac_try='test -z "$ac_c_werror_flag"
10245 || test ! -s conftest.err'
10246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10247 (eval $ac_try) 2>&5
10248 ac_status=$?
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); }; } &&
10251 { ac_try='test -s conftest.$ac_objext'
10252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10253 (eval $ac_try) 2>&5
10254 ac_status=$?
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); }; }; then
10257 ac_cv_type__Bool=yes
10258 else
10259 echo "$as_me: failed program was:" >&5
10260 sed 's/^/| /' conftest.$ac_ext >&5
10262 ac_cv_type__Bool=no
10264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10266 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10267 echo "${ECHO_T}$ac_cv_type__Bool" >&6
10269 echo "$as_me:$LINENO: checking size of _Bool" >&5
10270 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6
10271 if test "${ac_cv_sizeof__Bool+set}" = set; then
10272 echo $ECHO_N "(cached) $ECHO_C" >&6
10273 else
10274 if test "$ac_cv_type__Bool" = yes; then
10275 # The cast to unsigned long works around a bug in the HP C Compiler
10276 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10277 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10278 # This bug is HP SR number 8606223364.
10279 if test "$cross_compiling" = yes; then
10280 # Depending upon the size, compute the lo and hi bounds.
10281 cat >conftest.$ac_ext <<_ACEOF
10282 /* confdefs.h. */
10283 _ACEOF
10284 cat confdefs.h >>conftest.$ac_ext
10285 cat >>conftest.$ac_ext <<_ACEOF
10286 /* end confdefs.h. */
10287 $ac_includes_default
10289 main ()
10291 static int test_array [1 - 2 * !(((long) (sizeof (_Bool))) >= 0)];
10292 test_array [0] = 0
10295 return 0;
10297 _ACEOF
10298 rm -f conftest.$ac_objext
10299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10300 (eval $ac_compile) 2>conftest.er1
10301 ac_status=$?
10302 grep -v '^ *+' conftest.er1 >conftest.err
10303 rm -f conftest.er1
10304 cat conftest.err >&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); } &&
10307 { ac_try='test -z "$ac_c_werror_flag"
10308 || test ! -s conftest.err'
10309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310 (eval $ac_try) 2>&5
10311 ac_status=$?
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); }; } &&
10314 { ac_try='test -s conftest.$ac_objext'
10315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10316 (eval $ac_try) 2>&5
10317 ac_status=$?
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); }; }; then
10320 ac_lo=0 ac_mid=0
10321 while :; do
10322 cat >conftest.$ac_ext <<_ACEOF
10323 /* confdefs.h. */
10324 _ACEOF
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h. */
10328 $ac_includes_default
10330 main ()
10332 static int test_array [1 - 2 * !(((long) (sizeof (_Bool))) <= $ac_mid)];
10333 test_array [0] = 0
10336 return 0;
10338 _ACEOF
10339 rm -f conftest.$ac_objext
10340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10341 (eval $ac_compile) 2>conftest.er1
10342 ac_status=$?
10343 grep -v '^ *+' conftest.er1 >conftest.err
10344 rm -f conftest.er1
10345 cat conftest.err >&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } &&
10348 { ac_try='test -z "$ac_c_werror_flag"
10349 || test ! -s conftest.err'
10350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10351 (eval $ac_try) 2>&5
10352 ac_status=$?
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); }; } &&
10355 { ac_try='test -s conftest.$ac_objext'
10356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10357 (eval $ac_try) 2>&5
10358 ac_status=$?
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); }; }; then
10361 ac_hi=$ac_mid; break
10362 else
10363 echo "$as_me: failed program was:" >&5
10364 sed 's/^/| /' conftest.$ac_ext >&5
10366 ac_lo=`expr $ac_mid + 1`
10367 if test $ac_lo -le $ac_mid; then
10368 ac_lo= ac_hi=
10369 break
10371 ac_mid=`expr 2 '*' $ac_mid + 1`
10373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10374 done
10375 else
10376 echo "$as_me: failed program was:" >&5
10377 sed 's/^/| /' conftest.$ac_ext >&5
10379 cat >conftest.$ac_ext <<_ACEOF
10380 /* confdefs.h. */
10381 _ACEOF
10382 cat confdefs.h >>conftest.$ac_ext
10383 cat >>conftest.$ac_ext <<_ACEOF
10384 /* end confdefs.h. */
10385 $ac_includes_default
10387 main ()
10389 static int test_array [1 - 2 * !(((long) (sizeof (_Bool))) < 0)];
10390 test_array [0] = 0
10393 return 0;
10395 _ACEOF
10396 rm -f conftest.$ac_objext
10397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10398 (eval $ac_compile) 2>conftest.er1
10399 ac_status=$?
10400 grep -v '^ *+' conftest.er1 >conftest.err
10401 rm -f conftest.er1
10402 cat conftest.err >&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } &&
10405 { ac_try='test -z "$ac_c_werror_flag"
10406 || test ! -s conftest.err'
10407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10408 (eval $ac_try) 2>&5
10409 ac_status=$?
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); }; } &&
10412 { ac_try='test -s conftest.$ac_objext'
10413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10414 (eval $ac_try) 2>&5
10415 ac_status=$?
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); }; }; then
10418 ac_hi=-1 ac_mid=-1
10419 while :; do
10420 cat >conftest.$ac_ext <<_ACEOF
10421 /* confdefs.h. */
10422 _ACEOF
10423 cat confdefs.h >>conftest.$ac_ext
10424 cat >>conftest.$ac_ext <<_ACEOF
10425 /* end confdefs.h. */
10426 $ac_includes_default
10428 main ()
10430 static int test_array [1 - 2 * !(((long) (sizeof (_Bool))) >= $ac_mid)];
10431 test_array [0] = 0
10434 return 0;
10436 _ACEOF
10437 rm -f conftest.$ac_objext
10438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10439 (eval $ac_compile) 2>conftest.er1
10440 ac_status=$?
10441 grep -v '^ *+' conftest.er1 >conftest.err
10442 rm -f conftest.er1
10443 cat conftest.err >&5
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); } &&
10446 { ac_try='test -z "$ac_c_werror_flag"
10447 || test ! -s conftest.err'
10448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10449 (eval $ac_try) 2>&5
10450 ac_status=$?
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); }; } &&
10453 { ac_try='test -s conftest.$ac_objext'
10454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10455 (eval $ac_try) 2>&5
10456 ac_status=$?
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); }; }; then
10459 ac_lo=$ac_mid; break
10460 else
10461 echo "$as_me: failed program was:" >&5
10462 sed 's/^/| /' conftest.$ac_ext >&5
10464 ac_hi=`expr '(' $ac_mid ')' - 1`
10465 if test $ac_mid -le $ac_hi; then
10466 ac_lo= ac_hi=
10467 break
10469 ac_mid=`expr 2 '*' $ac_mid`
10471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10472 done
10473 else
10474 echo "$as_me: failed program was:" >&5
10475 sed 's/^/| /' conftest.$ac_ext >&5
10477 ac_lo= ac_hi=
10479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10482 # Binary search between lo and hi bounds.
10483 while test "x$ac_lo" != "x$ac_hi"; do
10484 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10485 cat >conftest.$ac_ext <<_ACEOF
10486 /* confdefs.h. */
10487 _ACEOF
10488 cat confdefs.h >>conftest.$ac_ext
10489 cat >>conftest.$ac_ext <<_ACEOF
10490 /* end confdefs.h. */
10491 $ac_includes_default
10493 main ()
10495 static int test_array [1 - 2 * !(((long) (sizeof (_Bool))) <= $ac_mid)];
10496 test_array [0] = 0
10499 return 0;
10501 _ACEOF
10502 rm -f conftest.$ac_objext
10503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10504 (eval $ac_compile) 2>conftest.er1
10505 ac_status=$?
10506 grep -v '^ *+' conftest.er1 >conftest.err
10507 rm -f conftest.er1
10508 cat conftest.err >&5
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); } &&
10511 { ac_try='test -z "$ac_c_werror_flag"
10512 || test ! -s conftest.err'
10513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10514 (eval $ac_try) 2>&5
10515 ac_status=$?
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); }; } &&
10518 { ac_try='test -s conftest.$ac_objext'
10519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10520 (eval $ac_try) 2>&5
10521 ac_status=$?
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); }; }; then
10524 ac_hi=$ac_mid
10525 else
10526 echo "$as_me: failed program was:" >&5
10527 sed 's/^/| /' conftest.$ac_ext >&5
10529 ac_lo=`expr '(' $ac_mid ')' + 1`
10531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10532 done
10533 case $ac_lo in
10534 ?*) ac_cv_sizeof__Bool=$ac_lo;;
10535 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool), 77
10536 See \`config.log' for more details." >&5
10537 echo "$as_me: error: cannot compute sizeof (_Bool), 77
10538 See \`config.log' for more details." >&2;}
10539 { (exit 1); exit 1; }; } ;;
10540 esac
10541 else
10542 if test "$cross_compiling" = yes; then
10543 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10544 See \`config.log' for more details." >&5
10545 echo "$as_me: error: cannot run test program while cross compiling
10546 See \`config.log' for more details." >&2;}
10547 { (exit 1); exit 1; }; }
10548 else
10549 cat >conftest.$ac_ext <<_ACEOF
10550 /* confdefs.h. */
10551 _ACEOF
10552 cat confdefs.h >>conftest.$ac_ext
10553 cat >>conftest.$ac_ext <<_ACEOF
10554 /* end confdefs.h. */
10555 $ac_includes_default
10556 long longval () { return (long) (sizeof (_Bool)); }
10557 unsigned long ulongval () { return (long) (sizeof (_Bool)); }
10558 #include <stdio.h>
10559 #include <stdlib.h>
10561 main ()
10564 FILE *f = fopen ("conftest.val", "w");
10565 if (! f)
10566 exit (1);
10567 if (((long) (sizeof (_Bool))) < 0)
10569 long i = longval ();
10570 if (i != ((long) (sizeof (_Bool))))
10571 exit (1);
10572 fprintf (f, "%ld\n", i);
10574 else
10576 unsigned long i = ulongval ();
10577 if (i != ((long) (sizeof (_Bool))))
10578 exit (1);
10579 fprintf (f, "%lu\n", i);
10581 exit (ferror (f) || fclose (f) != 0);
10584 return 0;
10586 _ACEOF
10587 rm -f conftest$ac_exeext
10588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10589 (eval $ac_link) 2>&5
10590 ac_status=$?
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10594 (eval $ac_try) 2>&5
10595 ac_status=$?
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); }; }; then
10598 ac_cv_sizeof__Bool=`cat conftest.val`
10599 else
10600 echo "$as_me: program exited with status $ac_status" >&5
10601 echo "$as_me: failed program was:" >&5
10602 sed 's/^/| /' conftest.$ac_ext >&5
10604 ( exit $ac_status )
10605 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool), 77
10606 See \`config.log' for more details." >&5
10607 echo "$as_me: error: cannot compute sizeof (_Bool), 77
10608 See \`config.log' for more details." >&2;}
10609 { (exit 1); exit 1; }; }
10611 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10614 rm -f conftest.val
10615 else
10616 ac_cv_sizeof__Bool=0
10619 echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
10620 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6
10621 cat >>confdefs.h <<_ACEOF
10622 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
10623 _ACEOF
10628 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10629 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10630 if test "${ac_cv_type_uintptr_t+set}" = set; then
10631 echo $ECHO_N "(cached) $ECHO_C" >&6
10632 else
10633 cat >conftest.$ac_ext <<_ACEOF
10634 /* confdefs.h. */
10635 _ACEOF
10636 cat confdefs.h >>conftest.$ac_ext
10637 cat >>conftest.$ac_ext <<_ACEOF
10638 /* end confdefs.h. */
10639 #ifdef HAVE_STDINT_H
10640 #include <stdint.h>
10641 #endif
10644 main ()
10646 if ((uintptr_t *) 0)
10647 return 0;
10648 if (sizeof (uintptr_t))
10649 return 0;
10651 return 0;
10653 _ACEOF
10654 rm -f conftest.$ac_objext
10655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10656 (eval $ac_compile) 2>conftest.er1
10657 ac_status=$?
10658 grep -v '^ *+' conftest.er1 >conftest.err
10659 rm -f conftest.er1
10660 cat conftest.err >&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); } &&
10663 { ac_try='test -z "$ac_c_werror_flag"
10664 || test ! -s conftest.err'
10665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666 (eval $ac_try) 2>&5
10667 ac_status=$?
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); }; } &&
10670 { ac_try='test -s conftest.$ac_objext'
10671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10672 (eval $ac_try) 2>&5
10673 ac_status=$?
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); }; }; then
10676 ac_cv_type_uintptr_t=yes
10677 else
10678 echo "$as_me: failed program was:" >&5
10679 sed 's/^/| /' conftest.$ac_ext >&5
10681 ac_cv_type_uintptr_t=no
10683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10685 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10686 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10687 if test $ac_cv_type_uintptr_t = yes; then
10689 cat >>confdefs.h <<_ACEOF
10690 #define HAVE_UINTPTR_T 1
10691 _ACEOF
10693 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10694 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10695 if test "${ac_cv_type_uintptr_t+set}" = set; then
10696 echo $ECHO_N "(cached) $ECHO_C" >&6
10697 else
10698 cat >conftest.$ac_ext <<_ACEOF
10699 /* confdefs.h. */
10700 _ACEOF
10701 cat confdefs.h >>conftest.$ac_ext
10702 cat >>conftest.$ac_ext <<_ACEOF
10703 /* end confdefs.h. */
10704 $ac_includes_default
10706 main ()
10708 if ((uintptr_t *) 0)
10709 return 0;
10710 if (sizeof (uintptr_t))
10711 return 0;
10713 return 0;
10715 _ACEOF
10716 rm -f conftest.$ac_objext
10717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10718 (eval $ac_compile) 2>conftest.er1
10719 ac_status=$?
10720 grep -v '^ *+' conftest.er1 >conftest.err
10721 rm -f conftest.er1
10722 cat conftest.err >&5
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); } &&
10725 { ac_try='test -z "$ac_c_werror_flag"
10726 || test ! -s conftest.err'
10727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10728 (eval $ac_try) 2>&5
10729 ac_status=$?
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); }; } &&
10732 { ac_try='test -s conftest.$ac_objext'
10733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10734 (eval $ac_try) 2>&5
10735 ac_status=$?
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); }; }; then
10738 ac_cv_type_uintptr_t=yes
10739 else
10740 echo "$as_me: failed program was:" >&5
10741 sed 's/^/| /' conftest.$ac_ext >&5
10743 ac_cv_type_uintptr_t=no
10745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10747 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10748 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10750 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
10751 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
10752 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
10753 echo $ECHO_N "(cached) $ECHO_C" >&6
10754 else
10755 if test "$ac_cv_type_uintptr_t" = yes; then
10756 # The cast to unsigned long works around a bug in the HP C Compiler
10757 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10758 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10759 # This bug is HP SR number 8606223364.
10760 if test "$cross_compiling" = yes; then
10761 # Depending upon the size, compute the lo and hi bounds.
10762 cat >conftest.$ac_ext <<_ACEOF
10763 /* confdefs.h. */
10764 _ACEOF
10765 cat confdefs.h >>conftest.$ac_ext
10766 cat >>conftest.$ac_ext <<_ACEOF
10767 /* end confdefs.h. */
10768 $ac_includes_default
10770 main ()
10772 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
10773 test_array [0] = 0
10776 return 0;
10778 _ACEOF
10779 rm -f conftest.$ac_objext
10780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10781 (eval $ac_compile) 2>conftest.er1
10782 ac_status=$?
10783 grep -v '^ *+' conftest.er1 >conftest.err
10784 rm -f conftest.er1
10785 cat conftest.err >&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); } &&
10788 { ac_try='test -z "$ac_c_werror_flag"
10789 || test ! -s conftest.err'
10790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10791 (eval $ac_try) 2>&5
10792 ac_status=$?
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); }; } &&
10795 { ac_try='test -s conftest.$ac_objext'
10796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10797 (eval $ac_try) 2>&5
10798 ac_status=$?
10799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); }; }; then
10801 ac_lo=0 ac_mid=0
10802 while :; do
10803 cat >conftest.$ac_ext <<_ACEOF
10804 /* confdefs.h. */
10805 _ACEOF
10806 cat confdefs.h >>conftest.$ac_ext
10807 cat >>conftest.$ac_ext <<_ACEOF
10808 /* end confdefs.h. */
10809 $ac_includes_default
10811 main ()
10813 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10814 test_array [0] = 0
10817 return 0;
10819 _ACEOF
10820 rm -f conftest.$ac_objext
10821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10822 (eval $ac_compile) 2>conftest.er1
10823 ac_status=$?
10824 grep -v '^ *+' conftest.er1 >conftest.err
10825 rm -f conftest.er1
10826 cat conftest.err >&5
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); } &&
10829 { ac_try='test -z "$ac_c_werror_flag"
10830 || test ! -s conftest.err'
10831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10832 (eval $ac_try) 2>&5
10833 ac_status=$?
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); }; } &&
10836 { ac_try='test -s conftest.$ac_objext'
10837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10838 (eval $ac_try) 2>&5
10839 ac_status=$?
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); }; }; then
10842 ac_hi=$ac_mid; break
10843 else
10844 echo "$as_me: failed program was:" >&5
10845 sed 's/^/| /' conftest.$ac_ext >&5
10847 ac_lo=`expr $ac_mid + 1`
10848 if test $ac_lo -le $ac_mid; then
10849 ac_lo= ac_hi=
10850 break
10852 ac_mid=`expr 2 '*' $ac_mid + 1`
10854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10855 done
10856 else
10857 echo "$as_me: failed program was:" >&5
10858 sed 's/^/| /' conftest.$ac_ext >&5
10860 cat >conftest.$ac_ext <<_ACEOF
10861 /* confdefs.h. */
10862 _ACEOF
10863 cat confdefs.h >>conftest.$ac_ext
10864 cat >>conftest.$ac_ext <<_ACEOF
10865 /* end confdefs.h. */
10866 $ac_includes_default
10868 main ()
10870 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
10871 test_array [0] = 0
10874 return 0;
10876 _ACEOF
10877 rm -f conftest.$ac_objext
10878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10879 (eval $ac_compile) 2>conftest.er1
10880 ac_status=$?
10881 grep -v '^ *+' conftest.er1 >conftest.err
10882 rm -f conftest.er1
10883 cat conftest.err >&5
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); } &&
10886 { ac_try='test -z "$ac_c_werror_flag"
10887 || test ! -s conftest.err'
10888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10889 (eval $ac_try) 2>&5
10890 ac_status=$?
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); }; } &&
10893 { ac_try='test -s conftest.$ac_objext'
10894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10895 (eval $ac_try) 2>&5
10896 ac_status=$?
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); }; }; then
10899 ac_hi=-1 ac_mid=-1
10900 while :; do
10901 cat >conftest.$ac_ext <<_ACEOF
10902 /* confdefs.h. */
10903 _ACEOF
10904 cat confdefs.h >>conftest.$ac_ext
10905 cat >>conftest.$ac_ext <<_ACEOF
10906 /* end confdefs.h. */
10907 $ac_includes_default
10909 main ()
10911 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
10912 test_array [0] = 0
10915 return 0;
10917 _ACEOF
10918 rm -f conftest.$ac_objext
10919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10920 (eval $ac_compile) 2>conftest.er1
10921 ac_status=$?
10922 grep -v '^ *+' conftest.er1 >conftest.err
10923 rm -f conftest.er1
10924 cat conftest.err >&5
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); } &&
10927 { ac_try='test -z "$ac_c_werror_flag"
10928 || test ! -s conftest.err'
10929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10930 (eval $ac_try) 2>&5
10931 ac_status=$?
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); }; } &&
10934 { ac_try='test -s conftest.$ac_objext'
10935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10936 (eval $ac_try) 2>&5
10937 ac_status=$?
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; }; then
10940 ac_lo=$ac_mid; break
10941 else
10942 echo "$as_me: failed program was:" >&5
10943 sed 's/^/| /' conftest.$ac_ext >&5
10945 ac_hi=`expr '(' $ac_mid ')' - 1`
10946 if test $ac_mid -le $ac_hi; then
10947 ac_lo= ac_hi=
10948 break
10950 ac_mid=`expr 2 '*' $ac_mid`
10952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10953 done
10954 else
10955 echo "$as_me: failed program was:" >&5
10956 sed 's/^/| /' conftest.$ac_ext >&5
10958 ac_lo= ac_hi=
10960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10963 # Binary search between lo and hi bounds.
10964 while test "x$ac_lo" != "x$ac_hi"; do
10965 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10966 cat >conftest.$ac_ext <<_ACEOF
10967 /* confdefs.h. */
10968 _ACEOF
10969 cat confdefs.h >>conftest.$ac_ext
10970 cat >>conftest.$ac_ext <<_ACEOF
10971 /* end confdefs.h. */
10972 $ac_includes_default
10974 main ()
10976 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10977 test_array [0] = 0
10980 return 0;
10982 _ACEOF
10983 rm -f conftest.$ac_objext
10984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10985 (eval $ac_compile) 2>conftest.er1
10986 ac_status=$?
10987 grep -v '^ *+' conftest.er1 >conftest.err
10988 rm -f conftest.er1
10989 cat conftest.err >&5
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); } &&
10992 { ac_try='test -z "$ac_c_werror_flag"
10993 || test ! -s conftest.err'
10994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10995 (eval $ac_try) 2>&5
10996 ac_status=$?
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); }; } &&
10999 { ac_try='test -s conftest.$ac_objext'
11000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11001 (eval $ac_try) 2>&5
11002 ac_status=$?
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); }; }; then
11005 ac_hi=$ac_mid
11006 else
11007 echo "$as_me: failed program was:" >&5
11008 sed 's/^/| /' conftest.$ac_ext >&5
11010 ac_lo=`expr '(' $ac_mid ')' + 1`
11012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11013 done
11014 case $ac_lo in
11015 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
11016 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
11017 See \`config.log' for more details." >&5
11018 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
11019 See \`config.log' for more details." >&2;}
11020 { (exit 1); exit 1; }; } ;;
11021 esac
11022 else
11023 if test "$cross_compiling" = yes; then
11024 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11025 See \`config.log' for more details." >&5
11026 echo "$as_me: error: cannot run test program while cross compiling
11027 See \`config.log' for more details." >&2;}
11028 { (exit 1); exit 1; }; }
11029 else
11030 cat >conftest.$ac_ext <<_ACEOF
11031 /* confdefs.h. */
11032 _ACEOF
11033 cat confdefs.h >>conftest.$ac_ext
11034 cat >>conftest.$ac_ext <<_ACEOF
11035 /* end confdefs.h. */
11036 $ac_includes_default
11037 long longval () { return (long) (sizeof (uintptr_t)); }
11038 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
11039 #include <stdio.h>
11040 #include <stdlib.h>
11042 main ()
11045 FILE *f = fopen ("conftest.val", "w");
11046 if (! f)
11047 exit (1);
11048 if (((long) (sizeof (uintptr_t))) < 0)
11050 long i = longval ();
11051 if (i != ((long) (sizeof (uintptr_t))))
11052 exit (1);
11053 fprintf (f, "%ld\n", i);
11055 else
11057 unsigned long i = ulongval ();
11058 if (i != ((long) (sizeof (uintptr_t))))
11059 exit (1);
11060 fprintf (f, "%lu\n", i);
11062 exit (ferror (f) || fclose (f) != 0);
11065 return 0;
11067 _ACEOF
11068 rm -f conftest$ac_exeext
11069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11070 (eval $ac_link) 2>&5
11071 ac_status=$?
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11075 (eval $ac_try) 2>&5
11076 ac_status=$?
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); }; }; then
11079 ac_cv_sizeof_uintptr_t=`cat conftest.val`
11080 else
11081 echo "$as_me: program exited with status $ac_status" >&5
11082 echo "$as_me: failed program was:" >&5
11083 sed 's/^/| /' conftest.$ac_ext >&5
11085 ( exit $ac_status )
11086 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
11087 See \`config.log' for more details." >&5
11088 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
11089 See \`config.log' for more details." >&2;}
11090 { (exit 1); exit 1; }; }
11092 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11095 rm -f conftest.val
11096 else
11097 ac_cv_sizeof_uintptr_t=0
11100 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
11101 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
11102 cat >>confdefs.h <<_ACEOF
11103 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
11104 _ACEOF
11111 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
11112 echo "$as_me:$LINENO: checking size of off_t" >&5
11113 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
11114 if test "${ac_cv_sizeof_off_t+set}" = set; then
11115 echo $ECHO_N "(cached) $ECHO_C" >&6
11116 else
11117 if test "$cross_compiling" = yes; then
11118 ac_cv_sizeof_off_t=4
11119 else
11120 cat >conftest.$ac_ext <<_ACEOF
11121 /* confdefs.h. */
11122 _ACEOF
11123 cat confdefs.h >>conftest.$ac_ext
11124 cat >>conftest.$ac_ext <<_ACEOF
11125 /* end confdefs.h. */
11126 #include <stdio.h>
11127 #include <sys/types.h>
11128 main()
11130 FILE *f=fopen("conftestval", "w");
11131 if (!f) exit(1);
11132 fprintf(f, "%d\n", sizeof(off_t));
11133 exit(0);
11135 _ACEOF
11136 rm -f conftest$ac_exeext
11137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11138 (eval $ac_link) 2>&5
11139 ac_status=$?
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11143 (eval $ac_try) 2>&5
11144 ac_status=$?
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); }; }; then
11147 ac_cv_sizeof_off_t=`cat conftestval`
11148 else
11149 echo "$as_me: program exited with status $ac_status" >&5
11150 echo "$as_me: failed program was:" >&5
11151 sed 's/^/| /' conftest.$ac_ext >&5
11153 ( exit $ac_status )
11154 ac_cv_sizeof_off_t=0
11156 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11161 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
11162 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
11164 cat >>confdefs.h <<_ACEOF
11165 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
11166 _ACEOF
11169 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
11170 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
11171 if test "$have_long_long" = yes -a \
11172 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
11173 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
11175 cat >>confdefs.h <<\_ACEOF
11176 #define HAVE_LARGEFILE_SUPPORT 1
11177 _ACEOF
11179 echo "$as_me:$LINENO: result: yes" >&5
11180 echo "${ECHO_T}yes" >&6
11181 else
11182 echo "$as_me:$LINENO: result: no" >&5
11183 echo "${ECHO_T}no" >&6
11186 # AC_CHECK_SIZEOF() doesn't include <time.h>.
11187 echo "$as_me:$LINENO: checking size of time_t" >&5
11188 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
11189 if test "${ac_cv_sizeof_time_t+set}" = set; then
11190 echo $ECHO_N "(cached) $ECHO_C" >&6
11191 else
11192 if test "$cross_compiling" = yes; then
11193 ac_cv_sizeof_time_t=4
11194 else
11195 cat >conftest.$ac_ext <<_ACEOF
11196 /* confdefs.h. */
11197 _ACEOF
11198 cat confdefs.h >>conftest.$ac_ext
11199 cat >>conftest.$ac_ext <<_ACEOF
11200 /* end confdefs.h. */
11201 #include <stdio.h>
11202 #include <time.h>
11203 main()
11205 FILE *f=fopen("conftestval", "w");
11206 if (!f) exit(1);
11207 fprintf(f, "%d\n", sizeof(time_t));
11208 exit(0);
11210 _ACEOF
11211 rm -f conftest$ac_exeext
11212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11213 (eval $ac_link) 2>&5
11214 ac_status=$?
11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11218 (eval $ac_try) 2>&5
11219 ac_status=$?
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); }; }; then
11222 ac_cv_sizeof_time_t=`cat conftestval`
11223 else
11224 echo "$as_me: program exited with status $ac_status" >&5
11225 echo "$as_me: failed program was:" >&5
11226 sed 's/^/| /' conftest.$ac_ext >&5
11228 ( exit $ac_status )
11229 ac_cv_sizeof_time_t=0
11231 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11236 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
11237 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
11239 cat >>confdefs.h <<_ACEOF
11240 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
11241 _ACEOF
11245 # if have pthread_t then define SIZEOF_PTHREAD_T
11246 ac_save_cc="$CC"
11247 if test "$ac_cv_kpthread" = "yes"
11248 then CC="$CC -Kpthread"
11249 elif test "$ac_cv_kthread" = "yes"
11250 then CC="$CC -Kthread"
11251 elif test "$ac_cv_pthread" = "yes"
11252 then CC="$CC -pthread"
11254 echo "$as_me:$LINENO: checking for pthread_t" >&5
11255 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
11256 have_pthread_t=no
11257 cat >conftest.$ac_ext <<_ACEOF
11258 /* confdefs.h. */
11259 _ACEOF
11260 cat confdefs.h >>conftest.$ac_ext
11261 cat >>conftest.$ac_ext <<_ACEOF
11262 /* end confdefs.h. */
11263 #include <pthread.h>
11265 main ()
11267 pthread_t x; x = *(pthread_t*)0;
11269 return 0;
11271 _ACEOF
11272 rm -f conftest.$ac_objext
11273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11274 (eval $ac_compile) 2>conftest.er1
11275 ac_status=$?
11276 grep -v '^ *+' conftest.er1 >conftest.err
11277 rm -f conftest.er1
11278 cat conftest.err >&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } &&
11281 { ac_try='test -z "$ac_c_werror_flag"
11282 || test ! -s conftest.err'
11283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11284 (eval $ac_try) 2>&5
11285 ac_status=$?
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); }; } &&
11288 { ac_try='test -s conftest.$ac_objext'
11289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11290 (eval $ac_try) 2>&5
11291 ac_status=$?
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); }; }; then
11294 have_pthread_t=yes
11295 else
11296 echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.$ac_ext >&5
11300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11301 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
11302 echo "${ECHO_T}$have_pthread_t" >&6
11303 if test "$have_pthread_t" = yes ; then
11304 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
11305 echo "$as_me:$LINENO: checking size of pthread_t" >&5
11306 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
11307 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
11308 echo $ECHO_N "(cached) $ECHO_C" >&6
11309 else
11310 if test "$cross_compiling" = yes; then
11311 ac_cv_sizeof_pthread_t=4
11312 else
11313 cat >conftest.$ac_ext <<_ACEOF
11314 /* confdefs.h. */
11315 _ACEOF
11316 cat confdefs.h >>conftest.$ac_ext
11317 cat >>conftest.$ac_ext <<_ACEOF
11318 /* end confdefs.h. */
11319 #include <stdio.h>
11320 #include <pthread.h>
11321 main()
11323 FILE *f=fopen("conftestval", "w");
11324 if (!f) exit(1);
11325 fprintf(f, "%d\n", sizeof(pthread_t));
11326 exit(0);
11328 _ACEOF
11329 rm -f conftest$ac_exeext
11330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11331 (eval $ac_link) 2>&5
11332 ac_status=$?
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11336 (eval $ac_try) 2>&5
11337 ac_status=$?
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); }; }; then
11340 ac_cv_sizeof_pthread_t=`cat conftestval`
11341 else
11342 echo "$as_me: program exited with status $ac_status" >&5
11343 echo "$as_me: failed program was:" >&5
11344 sed 's/^/| /' conftest.$ac_ext >&5
11346 ( exit $ac_status )
11347 ac_cv_sizeof_pthread_t=0
11349 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11354 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
11355 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
11357 cat >>confdefs.h <<_ACEOF
11358 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
11359 _ACEOF
11362 CC="$ac_save_cc"
11364 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
11365 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
11366 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
11367 if test "${enable_toolbox_glue+set}" = set; then
11368 enableval="$enable_toolbox_glue"
11372 if test -z "$enable_toolbox_glue"
11373 then
11374 case $ac_sys_system/$ac_sys_release in
11375 Darwin/*)
11376 enable_toolbox_glue="yes";;
11378 enable_toolbox_glue="no";;
11379 esac
11381 case "$enable_toolbox_glue" in
11382 yes)
11383 extra_machdep_objs="Python/mactoolboxglue.o"
11384 extra_undefs="-u _PyMac_Error"
11386 cat >>confdefs.h <<\_ACEOF
11387 #define USE_TOOLBOX_OBJECT_GLUE 1
11388 _ACEOF
11392 extra_machdep_objs=""
11393 extra_undefs=""
11395 esac
11396 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
11397 echo "${ECHO_T}$enable_toolbox_glue" >&6
11400 case $ac_sys_system/$ac_sys_release in
11401 Darwin/[01567]\..*)
11402 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
11404 Darwin/*)
11405 OTHER_LIBTOOL_OPT=""
11407 esac
11410 case $ac_sys_system/$ac_sys_release in
11411 Darwin/[01567]\..*)
11412 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
11413 if test "${enable_universalsdk}"; then
11415 else
11416 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
11418 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11419 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
11420 Darwin/*)
11421 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
11422 if test ${gcc_version} '<' 4.0
11423 then
11424 LIBTOOL_CRUFT="-lcc_dynamic"
11425 else
11426 LIBTOOL_CRUFT=""
11428 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
11429 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11430 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
11431 esac
11433 echo "$as_me:$LINENO: checking for --enable-framework" >&5
11434 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
11435 if test "$enable_framework"
11436 then
11437 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
11438 # -F. is needed to allow linking to the framework while
11439 # in the build location.
11441 cat >>confdefs.h <<\_ACEOF
11442 #define WITH_NEXT_FRAMEWORK 1
11443 _ACEOF
11445 echo "$as_me:$LINENO: result: yes" >&5
11446 echo "${ECHO_T}yes" >&6
11447 else
11448 echo "$as_me:$LINENO: result: no" >&5
11449 echo "${ECHO_T}no" >&6
11452 echo "$as_me:$LINENO: checking for dyld" >&5
11453 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
11454 case $ac_sys_system/$ac_sys_release in
11455 Darwin/*)
11457 cat >>confdefs.h <<\_ACEOF
11458 #define WITH_DYLD 1
11459 _ACEOF
11461 echo "$as_me:$LINENO: result: always on for Darwin" >&5
11462 echo "${ECHO_T}always on for Darwin" >&6
11465 echo "$as_me:$LINENO: result: no" >&5
11466 echo "${ECHO_T}no" >&6
11468 esac
11470 # Set info about shared libraries.
11476 # SO is the extension of shared libraries `(including the dot!)
11477 # -- usually .so, .sl on HP-UX, .dll on Cygwin
11478 echo "$as_me:$LINENO: checking SO" >&5
11479 echo $ECHO_N "checking SO... $ECHO_C" >&6
11480 if test -z "$SO"
11481 then
11482 case $ac_sys_system in
11483 hp*|HP*)
11484 case `uname -m` in
11485 ia64) SO=.so;;
11486 *) SO=.sl;;
11487 esac
11489 CYGWIN*) SO=.dll;;
11490 *) SO=.so;;
11491 esac
11492 else
11493 # this might also be a termcap variable, see #610332
11494 echo
11495 echo '====================================================================='
11496 echo '+ +'
11497 echo '+ WARNING: You have set SO in your environment. +'
11498 echo '+ Do you really mean to change the extension for shared libraries? +'
11499 echo '+ Continuing in 10 seconds to let you to ponder. +'
11500 echo '+ +'
11501 echo '====================================================================='
11502 sleep 10
11504 echo "$as_me:$LINENO: result: $SO" >&5
11505 echo "${ECHO_T}$SO" >&6
11507 cat >>confdefs.h <<_ACEOF
11508 #define SHLIB_EXT "$SO"
11509 _ACEOF
11511 # LDSHARED is the ld *command* used to create shared library
11512 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
11513 # (Shared libraries in this instance are shared modules to be loaded into
11514 # Python, as opposed to building Python itself as a shared library.)
11515 echo "$as_me:$LINENO: checking LDSHARED" >&5
11516 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
11517 if test -z "$LDSHARED"
11518 then
11519 case $ac_sys_system/$ac_sys_release in
11520 AIX*)
11521 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
11522 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
11524 BeOS*)
11525 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
11526 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
11528 IRIX/5*) LDSHARED="ld -shared";;
11529 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
11530 SunOS/5*)
11531 if test "$GCC" = "yes"
11532 then LDSHARED='$(CC) -shared'
11533 else LDSHARED='$(CC) -G';
11534 fi ;;
11535 hp*|HP*) LDSHARED="ld -b";;
11536 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
11537 Darwin/1.3*)
11538 LDSHARED='$(CC) $(LDFLAGS) -bundle'
11539 if test "$enable_framework" ; then
11540 # Link against the framework. All externals should be defined.
11541 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11542 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11543 else
11544 # No framework. Ignore undefined symbols, assuming they come from Python
11545 LDSHARED="$LDSHARED -undefined suppress"
11546 fi ;;
11547 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
11548 LDSHARED='$(CC) $(LDFLAGS) -bundle'
11549 if test "$enable_framework" ; then
11550 # Link against the framework. All externals should be defined.
11551 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11552 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11553 else
11554 # No framework, use the Python app as bundle-loader
11555 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
11556 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
11557 fi ;;
11558 Darwin/*)
11559 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
11560 # This allows an extension to be used in any Python
11561 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
11562 if test ${cur_target} '>' 10.2; then
11563 cur_target=10.3
11565 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
11566 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
11567 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
11568 then
11569 if test "${enable_universalsdk}"; then
11570 LDFLAGS="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
11572 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
11573 BLDSHARED="$LDSHARED"
11574 else
11575 LDSHARED='$(CC) $(LDFLAGS) -bundle'
11576 if test "$enable_framework" ; then
11577 # Link against the framework. All externals should be defined.
11578 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11579 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11580 else
11581 # No framework, use the Python app as bundle-loader
11582 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
11583 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
11587 Linux*|GNU*) LDSHARED='$(CC) -shared';;
11588 BSD/OS*/4*) LDSHARED="gcc -shared";;
11589 FreeBSD*)
11590 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11591 then
11592 LDSHARED="$CC -shared ${LDFLAGS}"
11593 else
11594 LDSHARED="ld -Bshareable ${LDFLAGS}"
11595 fi;;
11596 OpenBSD*)
11597 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11598 then
11599 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11600 else
11601 case `uname -r` in
11602 [01].* | 2.[0-7] | 2.[0-7].*)
11603 LDSHARED="ld -Bshareable ${LDFLAGS}"
11606 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11608 esac
11609 fi;;
11610 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
11611 OpenUNIX*|UnixWare*)
11612 if test "$GCC" = "yes"
11613 then LDSHARED='$(CC) -shared'
11614 else LDSHARED='$(CC) -G'
11615 fi;;
11616 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
11617 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
11618 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
11619 atheos*) LDSHARED="gcc -shared";;
11620 *) LDSHARED="ld";;
11621 esac
11623 echo "$as_me:$LINENO: result: $LDSHARED" >&5
11624 echo "${ECHO_T}$LDSHARED" >&6
11625 BLDSHARED=${BLDSHARED-$LDSHARED}
11626 # CCSHARED are the C *flags* used to create objects to go into a shared
11627 # library (module) -- this is only needed for a few systems
11628 echo "$as_me:$LINENO: checking CCSHARED" >&5
11629 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
11630 if test -z "$CCSHARED"
11631 then
11632 case $ac_sys_system/$ac_sys_release in
11633 SunOS*) if test "$GCC" = yes;
11634 then CCSHARED="-fPIC";
11635 elif test `uname -p` = sparc;
11636 then CCSHARED="-xcode=pic32";
11637 else CCSHARED="-Kpic";
11638 fi;;
11639 hp*|HP*) if test "$GCC" = yes;
11640 then CCSHARED="-fPIC";
11641 else CCSHARED="+z";
11642 fi;;
11643 Linux*|GNU*) CCSHARED="-fPIC";;
11644 BSD/OS*/4*) CCSHARED="-fpic";;
11645 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
11646 OpenUNIX*|UnixWare*)
11647 if test "$GCC" = "yes"
11648 then CCSHARED="-fPIC"
11649 else CCSHARED="-KPIC"
11650 fi;;
11651 SCO_SV*)
11652 if test "$GCC" = "yes"
11653 then CCSHARED="-fPIC"
11654 else CCSHARED="-Kpic -belf"
11655 fi;;
11656 Monterey*) CCSHARED="-G";;
11657 IRIX*/6*) case $CC in
11658 *gcc*) CCSHARED="-shared";;
11659 *) CCSHARED="";;
11660 esac;;
11661 atheos*) CCSHARED="-fPIC";;
11662 esac
11664 echo "$as_me:$LINENO: result: $CCSHARED" >&5
11665 echo "${ECHO_T}$CCSHARED" >&6
11666 # LINKFORSHARED are the flags passed to the $(CC) command that links
11667 # the python executable -- this is only needed for a few systems
11668 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
11669 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
11670 if test -z "$LINKFORSHARED"
11671 then
11672 case $ac_sys_system/$ac_sys_release in
11673 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
11674 hp*|HP*)
11675 LINKFORSHARED="-Wl,-E -Wl,+s";;
11676 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
11677 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
11678 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
11679 # -u libsys_s pulls in all symbols in libsys
11680 Darwin/*)
11681 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
11682 # which is
11683 # not used by the core itself but which needs to be in the core so
11684 # that dynamically loaded extension modules have access to it.
11685 # -prebind is no longer used, because it actually seems to give a
11686 # slowdown in stead of a speedup, maybe due to the large number of
11687 # dynamic loads Python does.
11689 LINKFORSHARED="$extra_undefs"
11690 if test "$enable_framework"
11691 then
11692 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11694 LINKFORSHARED="$LINKFORSHARED";;
11695 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
11696 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
11697 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
11698 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
11699 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11700 then
11701 LINKFORSHARED="-Wl,--export-dynamic"
11702 fi;;
11703 SunOS/5*) case $CC in
11704 *gcc*)
11705 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
11706 then
11707 LINKFORSHARED="-Xlinker --export-dynamic"
11708 fi;;
11709 esac;;
11710 CYGWIN*)
11711 if test $enable_shared = "no"
11712 then
11713 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
11714 fi;;
11715 esac
11717 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
11718 echo "${ECHO_T}$LINKFORSHARED" >&6
11721 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
11722 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
11723 if test ! "$LIBRARY" = "$LDLIBRARY"
11724 then
11725 case $ac_sys_system in
11726 CYGWIN*)
11727 # Cygwin needs CCSHARED when building extension DLLs
11728 # but not when building the interpreter DLL.
11729 CFLAGSFORSHARED='';;
11731 CFLAGSFORSHARED='$(CCSHARED)'
11732 esac
11734 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
11735 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
11737 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
11738 # library (with --enable-shared).
11739 # For platforms on which shared libraries are not allowed to have unresolved
11740 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
11741 # if it is not required, since it creates a dependency of the shared library
11742 # to LIBS. This, in turn, means that applications linking the shared libpython
11743 # don't need to link LIBS explicitly. The default should be only changed
11744 # on systems where this approach causes problems.
11746 echo "$as_me:$LINENO: checking SHLIBS" >&5
11747 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
11748 case "$ac_sys_system" in
11750 SHLIBS='$(LIBS)';;
11751 esac
11752 echo "$as_me:$LINENO: result: $SHLIBS" >&5
11753 echo "${ECHO_T}$SHLIBS" >&6
11756 # checks for libraries
11758 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11759 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11760 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11761 echo $ECHO_N "(cached) $ECHO_C" >&6
11762 else
11763 ac_check_lib_save_LIBS=$LIBS
11764 LIBS="-ldl $LIBS"
11765 cat >conftest.$ac_ext <<_ACEOF
11766 /* confdefs.h. */
11767 _ACEOF
11768 cat confdefs.h >>conftest.$ac_ext
11769 cat >>conftest.$ac_ext <<_ACEOF
11770 /* end confdefs.h. */
11772 /* Override any gcc2 internal prototype to avoid an error. */
11773 #ifdef __cplusplus
11774 extern "C"
11775 #endif
11776 /* We use char because int might match the return type of a gcc2
11777 builtin and then its argument prototype would still apply. */
11778 char dlopen ();
11780 main ()
11782 dlopen ();
11784 return 0;
11786 _ACEOF
11787 rm -f conftest.$ac_objext conftest$ac_exeext
11788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11789 (eval $ac_link) 2>conftest.er1
11790 ac_status=$?
11791 grep -v '^ *+' conftest.er1 >conftest.err
11792 rm -f conftest.er1
11793 cat conftest.err >&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
11796 { ac_try='test -z "$ac_c_werror_flag"
11797 || test ! -s conftest.err'
11798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11799 (eval $ac_try) 2>&5
11800 ac_status=$?
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }; } &&
11803 { ac_try='test -s conftest$ac_exeext'
11804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11805 (eval $ac_try) 2>&5
11806 ac_status=$?
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; }; then
11809 ac_cv_lib_dl_dlopen=yes
11810 else
11811 echo "$as_me: failed program was:" >&5
11812 sed 's/^/| /' conftest.$ac_ext >&5
11814 ac_cv_lib_dl_dlopen=no
11816 rm -f conftest.err conftest.$ac_objext \
11817 conftest$ac_exeext conftest.$ac_ext
11818 LIBS=$ac_check_lib_save_LIBS
11820 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11821 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11822 if test $ac_cv_lib_dl_dlopen = yes; then
11823 cat >>confdefs.h <<_ACEOF
11824 #define HAVE_LIBDL 1
11825 _ACEOF
11827 LIBS="-ldl $LIBS"
11830 # Dynamic linking for SunOS/Solaris and SYSV
11832 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11833 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11834 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11835 echo $ECHO_N "(cached) $ECHO_C" >&6
11836 else
11837 ac_check_lib_save_LIBS=$LIBS
11838 LIBS="-ldld $LIBS"
11839 cat >conftest.$ac_ext <<_ACEOF
11840 /* confdefs.h. */
11841 _ACEOF
11842 cat confdefs.h >>conftest.$ac_ext
11843 cat >>conftest.$ac_ext <<_ACEOF
11844 /* end confdefs.h. */
11846 /* Override any gcc2 internal prototype to avoid an error. */
11847 #ifdef __cplusplus
11848 extern "C"
11849 #endif
11850 /* We use char because int might match the return type of a gcc2
11851 builtin and then its argument prototype would still apply. */
11852 char shl_load ();
11854 main ()
11856 shl_load ();
11858 return 0;
11860 _ACEOF
11861 rm -f conftest.$ac_objext conftest$ac_exeext
11862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11863 (eval $ac_link) 2>conftest.er1
11864 ac_status=$?
11865 grep -v '^ *+' conftest.er1 >conftest.err
11866 rm -f conftest.er1
11867 cat conftest.err >&5
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); } &&
11870 { ac_try='test -z "$ac_c_werror_flag"
11871 || test ! -s conftest.err'
11872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11873 (eval $ac_try) 2>&5
11874 ac_status=$?
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); }; } &&
11877 { ac_try='test -s conftest$ac_exeext'
11878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879 (eval $ac_try) 2>&5
11880 ac_status=$?
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); }; }; then
11883 ac_cv_lib_dld_shl_load=yes
11884 else
11885 echo "$as_me: failed program was:" >&5
11886 sed 's/^/| /' conftest.$ac_ext >&5
11888 ac_cv_lib_dld_shl_load=no
11890 rm -f conftest.err conftest.$ac_objext \
11891 conftest$ac_exeext conftest.$ac_ext
11892 LIBS=$ac_check_lib_save_LIBS
11894 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11895 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11896 if test $ac_cv_lib_dld_shl_load = yes; then
11897 cat >>confdefs.h <<_ACEOF
11898 #define HAVE_LIBDLD 1
11899 _ACEOF
11901 LIBS="-ldld $LIBS"
11904 # Dynamic linking for HP-UX
11906 # only check for sem_ini if thread support is requested
11907 if test "$with_threads" = "yes" -o -z "$with_threads"; then
11908 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
11909 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
11910 if test "${ac_cv_search_sem_init+set}" = set; then
11911 echo $ECHO_N "(cached) $ECHO_C" >&6
11912 else
11913 ac_func_search_save_LIBS=$LIBS
11914 ac_cv_search_sem_init=no
11915 cat >conftest.$ac_ext <<_ACEOF
11916 /* confdefs.h. */
11917 _ACEOF
11918 cat confdefs.h >>conftest.$ac_ext
11919 cat >>conftest.$ac_ext <<_ACEOF
11920 /* end confdefs.h. */
11922 /* Override any gcc2 internal prototype to avoid an error. */
11923 #ifdef __cplusplus
11924 extern "C"
11925 #endif
11926 /* We use char because int might match the return type of a gcc2
11927 builtin and then its argument prototype would still apply. */
11928 char sem_init ();
11930 main ()
11932 sem_init ();
11934 return 0;
11936 _ACEOF
11937 rm -f conftest.$ac_objext conftest$ac_exeext
11938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11939 (eval $ac_link) 2>conftest.er1
11940 ac_status=$?
11941 grep -v '^ *+' conftest.er1 >conftest.err
11942 rm -f conftest.er1
11943 cat conftest.err >&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); } &&
11946 { ac_try='test -z "$ac_c_werror_flag"
11947 || test ! -s conftest.err'
11948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11949 (eval $ac_try) 2>&5
11950 ac_status=$?
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); }; } &&
11953 { ac_try='test -s conftest$ac_exeext'
11954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955 (eval $ac_try) 2>&5
11956 ac_status=$?
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); }; }; then
11959 ac_cv_search_sem_init="none required"
11960 else
11961 echo "$as_me: failed program was:" >&5
11962 sed 's/^/| /' conftest.$ac_ext >&5
11965 rm -f conftest.err conftest.$ac_objext \
11966 conftest$ac_exeext conftest.$ac_ext
11967 if test "$ac_cv_search_sem_init" = no; then
11968 for ac_lib in pthread rt posix4; do
11969 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11970 cat >conftest.$ac_ext <<_ACEOF
11971 /* confdefs.h. */
11972 _ACEOF
11973 cat confdefs.h >>conftest.$ac_ext
11974 cat >>conftest.$ac_ext <<_ACEOF
11975 /* end confdefs.h. */
11977 /* Override any gcc2 internal prototype to avoid an error. */
11978 #ifdef __cplusplus
11979 extern "C"
11980 #endif
11981 /* We use char because int might match the return type of a gcc2
11982 builtin and then its argument prototype would still apply. */
11983 char sem_init ();
11985 main ()
11987 sem_init ();
11989 return 0;
11991 _ACEOF
11992 rm -f conftest.$ac_objext conftest$ac_exeext
11993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11994 (eval $ac_link) 2>conftest.er1
11995 ac_status=$?
11996 grep -v '^ *+' conftest.er1 >conftest.err
11997 rm -f conftest.er1
11998 cat conftest.err >&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); } &&
12001 { ac_try='test -z "$ac_c_werror_flag"
12002 || test ! -s conftest.err'
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12005 ac_status=$?
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; } &&
12008 { ac_try='test -s conftest$ac_exeext'
12009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12011 ac_status=$?
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014 ac_cv_search_sem_init="-l$ac_lib"
12015 break
12016 else
12017 echo "$as_me: failed program was:" >&5
12018 sed 's/^/| /' conftest.$ac_ext >&5
12021 rm -f conftest.err conftest.$ac_objext \
12022 conftest$ac_exeext conftest.$ac_ext
12023 done
12025 LIBS=$ac_func_search_save_LIBS
12027 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
12028 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
12029 if test "$ac_cv_search_sem_init" != no; then
12030 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
12033 # 'Real Time' functions on Solaris
12034 # posix4 on Solaris 2.6
12035 # pthread (first!) on Linux
12038 # check if we need libintl for locale functions
12039 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
12040 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
12041 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
12042 echo $ECHO_N "(cached) $ECHO_C" >&6
12043 else
12044 ac_check_lib_save_LIBS=$LIBS
12045 LIBS="-lintl $LIBS"
12046 cat >conftest.$ac_ext <<_ACEOF
12047 /* confdefs.h. */
12048 _ACEOF
12049 cat confdefs.h >>conftest.$ac_ext
12050 cat >>conftest.$ac_ext <<_ACEOF
12051 /* end confdefs.h. */
12053 /* Override any gcc2 internal prototype to avoid an error. */
12054 #ifdef __cplusplus
12055 extern "C"
12056 #endif
12057 /* We use char because int might match the return type of a gcc2
12058 builtin and then its argument prototype would still apply. */
12059 char textdomain ();
12061 main ()
12063 textdomain ();
12065 return 0;
12067 _ACEOF
12068 rm -f conftest.$ac_objext conftest$ac_exeext
12069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12070 (eval $ac_link) 2>conftest.er1
12071 ac_status=$?
12072 grep -v '^ *+' conftest.er1 >conftest.err
12073 rm -f conftest.er1
12074 cat conftest.err >&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); } &&
12077 { ac_try='test -z "$ac_c_werror_flag"
12078 || test ! -s conftest.err'
12079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12080 (eval $ac_try) 2>&5
12081 ac_status=$?
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); }; } &&
12084 { ac_try='test -s conftest$ac_exeext'
12085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12086 (eval $ac_try) 2>&5
12087 ac_status=$?
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); }; }; then
12090 ac_cv_lib_intl_textdomain=yes
12091 else
12092 echo "$as_me: failed program was:" >&5
12093 sed 's/^/| /' conftest.$ac_ext >&5
12095 ac_cv_lib_intl_textdomain=no
12097 rm -f conftest.err conftest.$ac_objext \
12098 conftest$ac_exeext conftest.$ac_ext
12099 LIBS=$ac_check_lib_save_LIBS
12101 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
12102 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
12103 if test $ac_cv_lib_intl_textdomain = yes; then
12105 cat >>confdefs.h <<\_ACEOF
12106 #define WITH_LIBINTL 1
12107 _ACEOF
12112 # checks for system dependent C++ extensions support
12113 case "$ac_sys_system" in
12114 AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
12115 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
12116 cat >conftest.$ac_ext <<_ACEOF
12117 /* confdefs.h. */
12118 _ACEOF
12119 cat confdefs.h >>conftest.$ac_ext
12120 cat >>conftest.$ac_ext <<_ACEOF
12121 /* end confdefs.h. */
12122 #include "/usr/lpp/xlC/include/load.h"
12124 main ()
12126 loadAndInit("", 0, "")
12128 return 0;
12130 _ACEOF
12131 rm -f conftest.$ac_objext conftest$ac_exeext
12132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12133 (eval $ac_link) 2>conftest.er1
12134 ac_status=$?
12135 grep -v '^ *+' conftest.er1 >conftest.err
12136 rm -f conftest.er1
12137 cat conftest.err >&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); } &&
12140 { ac_try='test -z "$ac_c_werror_flag"
12141 || test ! -s conftest.err'
12142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143 (eval $ac_try) 2>&5
12144 ac_status=$?
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; } &&
12147 { ac_try='test -s conftest$ac_exeext'
12148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12149 (eval $ac_try) 2>&5
12150 ac_status=$?
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); }; }; then
12154 cat >>confdefs.h <<\_ACEOF
12155 #define AIX_GENUINE_CPLUSPLUS 1
12156 _ACEOF
12158 echo "$as_me:$LINENO: result: yes" >&5
12159 echo "${ECHO_T}yes" >&6
12160 else
12161 echo "$as_me: failed program was:" >&5
12162 sed 's/^/| /' conftest.$ac_ext >&5
12164 echo "$as_me:$LINENO: result: no" >&5
12165 echo "${ECHO_T}no" >&6
12167 rm -f conftest.err conftest.$ac_objext \
12168 conftest$ac_exeext conftest.$ac_ext;;
12169 *) ;;
12170 esac
12172 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
12173 # BeOS' sockets are stashed in libnet.
12174 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
12175 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
12176 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
12177 echo $ECHO_N "(cached) $ECHO_C" >&6
12178 else
12179 ac_check_lib_save_LIBS=$LIBS
12180 LIBS="-lnsl $LIBS"
12181 cat >conftest.$ac_ext <<_ACEOF
12182 /* confdefs.h. */
12183 _ACEOF
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h. */
12188 /* Override any gcc2 internal prototype to avoid an error. */
12189 #ifdef __cplusplus
12190 extern "C"
12191 #endif
12192 /* We use char because int might match the return type of a gcc2
12193 builtin and then its argument prototype would still apply. */
12194 char t_open ();
12196 main ()
12198 t_open ();
12200 return 0;
12202 _ACEOF
12203 rm -f conftest.$ac_objext conftest$ac_exeext
12204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12205 (eval $ac_link) 2>conftest.er1
12206 ac_status=$?
12207 grep -v '^ *+' conftest.er1 >conftest.err
12208 rm -f conftest.er1
12209 cat conftest.err >&5
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); } &&
12212 { ac_try='test -z "$ac_c_werror_flag"
12213 || test ! -s conftest.err'
12214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12215 (eval $ac_try) 2>&5
12216 ac_status=$?
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; } &&
12219 { ac_try='test -s conftest$ac_exeext'
12220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12221 (eval $ac_try) 2>&5
12222 ac_status=$?
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }; }; then
12225 ac_cv_lib_nsl_t_open=yes
12226 else
12227 echo "$as_me: failed program was:" >&5
12228 sed 's/^/| /' conftest.$ac_ext >&5
12230 ac_cv_lib_nsl_t_open=no
12232 rm -f conftest.err conftest.$ac_objext \
12233 conftest$ac_exeext conftest.$ac_ext
12234 LIBS=$ac_check_lib_save_LIBS
12236 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
12237 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
12238 if test $ac_cv_lib_nsl_t_open = yes; then
12239 LIBS="-lnsl $LIBS"
12241 # SVR4
12242 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
12243 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
12244 if test "${ac_cv_lib_socket_socket+set}" = set; then
12245 echo $ECHO_N "(cached) $ECHO_C" >&6
12246 else
12247 ac_check_lib_save_LIBS=$LIBS
12248 LIBS="-lsocket $LIBS $LIBS"
12249 cat >conftest.$ac_ext <<_ACEOF
12250 /* confdefs.h. */
12251 _ACEOF
12252 cat confdefs.h >>conftest.$ac_ext
12253 cat >>conftest.$ac_ext <<_ACEOF
12254 /* end confdefs.h. */
12256 /* Override any gcc2 internal prototype to avoid an error. */
12257 #ifdef __cplusplus
12258 extern "C"
12259 #endif
12260 /* We use char because int might match the return type of a gcc2
12261 builtin and then its argument prototype would still apply. */
12262 char socket ();
12264 main ()
12266 socket ();
12268 return 0;
12270 _ACEOF
12271 rm -f conftest.$ac_objext conftest$ac_exeext
12272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12273 (eval $ac_link) 2>conftest.er1
12274 ac_status=$?
12275 grep -v '^ *+' conftest.er1 >conftest.err
12276 rm -f conftest.er1
12277 cat conftest.err >&5
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); } &&
12280 { ac_try='test -z "$ac_c_werror_flag"
12281 || test ! -s conftest.err'
12282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12283 (eval $ac_try) 2>&5
12284 ac_status=$?
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); }; } &&
12287 { ac_try='test -s conftest$ac_exeext'
12288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12289 (eval $ac_try) 2>&5
12290 ac_status=$?
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); }; }; then
12293 ac_cv_lib_socket_socket=yes
12294 else
12295 echo "$as_me: failed program was:" >&5
12296 sed 's/^/| /' conftest.$ac_ext >&5
12298 ac_cv_lib_socket_socket=no
12300 rm -f conftest.err conftest.$ac_objext \
12301 conftest$ac_exeext conftest.$ac_ext
12302 LIBS=$ac_check_lib_save_LIBS
12304 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
12305 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
12306 if test $ac_cv_lib_socket_socket = yes; then
12307 LIBS="-lsocket $LIBS"
12309 # SVR4 sockets
12311 case "$ac_sys_system" in
12312 BeOS*)
12313 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
12314 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
12315 if test "${ac_cv_lib_net_socket+set}" = set; then
12316 echo $ECHO_N "(cached) $ECHO_C" >&6
12317 else
12318 ac_check_lib_save_LIBS=$LIBS
12319 LIBS="-lnet $LIBS $LIBS"
12320 cat >conftest.$ac_ext <<_ACEOF
12321 /* confdefs.h. */
12322 _ACEOF
12323 cat confdefs.h >>conftest.$ac_ext
12324 cat >>conftest.$ac_ext <<_ACEOF
12325 /* end confdefs.h. */
12327 /* Override any gcc2 internal prototype to avoid an error. */
12328 #ifdef __cplusplus
12329 extern "C"
12330 #endif
12331 /* We use char because int might match the return type of a gcc2
12332 builtin and then its argument prototype would still apply. */
12333 char socket ();
12335 main ()
12337 socket ();
12339 return 0;
12341 _ACEOF
12342 rm -f conftest.$ac_objext conftest$ac_exeext
12343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12344 (eval $ac_link) 2>conftest.er1
12345 ac_status=$?
12346 grep -v '^ *+' conftest.er1 >conftest.err
12347 rm -f conftest.er1
12348 cat conftest.err >&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); } &&
12351 { ac_try='test -z "$ac_c_werror_flag"
12352 || test ! -s conftest.err'
12353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354 (eval $ac_try) 2>&5
12355 ac_status=$?
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }; } &&
12358 { ac_try='test -s conftest$ac_exeext'
12359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360 (eval $ac_try) 2>&5
12361 ac_status=$?
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }; }; then
12364 ac_cv_lib_net_socket=yes
12365 else
12366 echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12369 ac_cv_lib_net_socket=no
12371 rm -f conftest.err conftest.$ac_objext \
12372 conftest$ac_exeext conftest.$ac_ext
12373 LIBS=$ac_check_lib_save_LIBS
12375 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
12376 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
12377 if test $ac_cv_lib_net_socket = yes; then
12378 LIBS="-lnet $LIBS"
12380 # BeOS
12382 esac
12384 echo "$as_me:$LINENO: checking for --with-libs" >&5
12385 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
12387 # Check whether --with-libs or --without-libs was given.
12388 if test "${with_libs+set}" = set; then
12389 withval="$with_libs"
12391 echo "$as_me:$LINENO: result: $withval" >&5
12392 echo "${ECHO_T}$withval" >&6
12393 LIBS="$withval $LIBS"
12395 else
12396 echo "$as_me:$LINENO: result: no" >&5
12397 echo "${ECHO_T}no" >&6
12400 # Check for use of the system libffi library
12401 echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
12402 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6
12404 # Check whether --with-system_ffi or --without-system_ffi was given.
12405 if test "${with_system_ffi+set}" = set; then
12406 withval="$with_system_ffi"
12410 if test -z "$with_system_ffi"
12411 then with_system_ffi="no"
12413 echo "$as_me:$LINENO: result: $with_system_ffi" >&5
12414 echo "${ECHO_T}$with_system_ffi" >&6
12416 # Determine if signalmodule should be used.
12419 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
12420 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
12422 # Check whether --with-signal-module or --without-signal-module was given.
12423 if test "${with_signal_module+set}" = set; then
12424 withval="$with_signal_module"
12428 if test -z "$with_signal_module"
12429 then with_signal_module="yes"
12431 echo "$as_me:$LINENO: result: $with_signal_module" >&5
12432 echo "${ECHO_T}$with_signal_module" >&6
12434 if test "${with_signal_module}" = "yes"; then
12435 USE_SIGNAL_MODULE=""
12436 SIGNAL_OBJS=""
12437 else
12438 USE_SIGNAL_MODULE="#"
12439 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
12442 # This is used to generate Setup.config
12444 USE_THREAD_MODULE=""
12446 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
12447 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
12450 # Check whether --with-dec-threads or --without-dec-threads was given.
12451 if test "${with_dec_threads+set}" = set; then
12452 withval="$with_dec_threads"
12454 echo "$as_me:$LINENO: result: $withval" >&5
12455 echo "${ECHO_T}$withval" >&6
12456 LDLAST=-threads
12457 if test "${with_thread+set}" != set; then
12458 with_thread="$withval";
12460 else
12461 echo "$as_me:$LINENO: result: no" >&5
12462 echo "${ECHO_T}no" >&6
12465 # Templates for things AC_DEFINEd more than once.
12466 # For a single AC_DEFINE, no template is needed.
12474 echo "$as_me:$LINENO: checking for --with-threads" >&5
12475 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
12477 # Check whether --with-threads or --without-threads was given.
12478 if test "${with_threads+set}" = set; then
12479 withval="$with_threads"
12483 # --with-thread is deprecated, but check for it anyway
12485 # Check whether --with-thread or --without-thread was given.
12486 if test "${with_thread+set}" = set; then
12487 withval="$with_thread"
12488 with_threads=$with_thread
12491 if test -z "$with_threads"
12492 then with_threads="yes"
12494 echo "$as_me:$LINENO: result: $with_threads" >&5
12495 echo "${ECHO_T}$with_threads" >&6
12498 if test "$with_threads" = "no"
12499 then
12500 USE_THREAD_MODULE="#"
12501 elif test "$ac_cv_pthread_is_default" = yes
12502 then
12503 cat >>confdefs.h <<\_ACEOF
12504 #define WITH_THREAD 1
12505 _ACEOF
12507 # Defining _REENTRANT on system with POSIX threads should not hurt.
12508 cat >>confdefs.h <<\_ACEOF
12509 #define _REENTRANT 1
12510 _ACEOF
12512 posix_threads=yes
12513 THREADOBJ="Python/thread.o"
12514 elif test "$ac_cv_kpthread" = "yes"
12515 then
12516 CC="$CC -Kpthread"
12517 if test "$ac_cv_cxx_thread" = "yes"; then
12518 CXX="$CXX -Kpthread"
12520 cat >>confdefs.h <<\_ACEOF
12521 #define WITH_THREAD 1
12522 _ACEOF
12524 posix_threads=yes
12525 THREADOBJ="Python/thread.o"
12526 elif test "$ac_cv_kthread" = "yes"
12527 then
12528 CC="$CC -Kthread"
12529 if test "$ac_cv_cxx_thread" = "yes"; then
12530 CXX="$CXX -Kthread"
12532 cat >>confdefs.h <<\_ACEOF
12533 #define WITH_THREAD 1
12534 _ACEOF
12536 posix_threads=yes
12537 THREADOBJ="Python/thread.o"
12538 elif test "$ac_cv_pthread" = "yes"
12539 then
12540 CC="$CC -pthread"
12541 if test "$ac_cv_cxx_thread" = "yes"; then
12542 CXX="$CXX -pthread"
12544 cat >>confdefs.h <<\_ACEOF
12545 #define WITH_THREAD 1
12546 _ACEOF
12548 posix_threads=yes
12549 THREADOBJ="Python/thread.o"
12550 else
12551 if test ! -z "$with_threads" -a -d "$with_threads"
12552 then LDFLAGS="$LDFLAGS -L$with_threads"
12554 if test ! -z "$withval" -a -d "$withval"
12555 then LDFLAGS="$LDFLAGS -L$withval"
12558 # According to the POSIX spec, a pthreads implementation must
12559 # define _POSIX_THREADS in unistd.h. Some apparently don't
12560 # (e.g. gnu pth with pthread emulation)
12561 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
12562 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
12563 cat >conftest.$ac_ext <<_ACEOF
12564 /* confdefs.h. */
12565 _ACEOF
12566 cat confdefs.h >>conftest.$ac_ext
12567 cat >>conftest.$ac_ext <<_ACEOF
12568 /* end confdefs.h. */
12570 #include <unistd.h>
12571 #ifdef _POSIX_THREADS
12573 #endif
12575 _ACEOF
12576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12577 $EGREP "yes" >/dev/null 2>&1; then
12578 unistd_defines_pthreads=yes
12579 else
12580 unistd_defines_pthreads=no
12582 rm -f conftest*
12584 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
12585 echo "${ECHO_T}$unistd_defines_pthreads" >&6
12587 cat >>confdefs.h <<\_ACEOF
12588 #define _REENTRANT 1
12589 _ACEOF
12591 if test "${ac_cv_header_cthreads_h+set}" = set; then
12592 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12593 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12594 if test "${ac_cv_header_cthreads_h+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12597 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12598 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12599 else
12600 # Is the header compilable?
12601 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
12602 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
12603 cat >conftest.$ac_ext <<_ACEOF
12604 /* confdefs.h. */
12605 _ACEOF
12606 cat confdefs.h >>conftest.$ac_ext
12607 cat >>conftest.$ac_ext <<_ACEOF
12608 /* end confdefs.h. */
12609 $ac_includes_default
12610 #include <cthreads.h>
12611 _ACEOF
12612 rm -f conftest.$ac_objext
12613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12614 (eval $ac_compile) 2>conftest.er1
12615 ac_status=$?
12616 grep -v '^ *+' conftest.er1 >conftest.err
12617 rm -f conftest.er1
12618 cat conftest.err >&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } &&
12621 { ac_try='test -z "$ac_c_werror_flag"
12622 || test ! -s conftest.err'
12623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12624 (eval $ac_try) 2>&5
12625 ac_status=$?
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); }; } &&
12628 { ac_try='test -s conftest.$ac_objext'
12629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12630 (eval $ac_try) 2>&5
12631 ac_status=$?
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); }; }; then
12634 ac_header_compiler=yes
12635 else
12636 echo "$as_me: failed program was:" >&5
12637 sed 's/^/| /' conftest.$ac_ext >&5
12639 ac_header_compiler=no
12641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12642 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12643 echo "${ECHO_T}$ac_header_compiler" >&6
12645 # Is the header present?
12646 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
12647 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
12648 cat >conftest.$ac_ext <<_ACEOF
12649 /* confdefs.h. */
12650 _ACEOF
12651 cat confdefs.h >>conftest.$ac_ext
12652 cat >>conftest.$ac_ext <<_ACEOF
12653 /* end confdefs.h. */
12654 #include <cthreads.h>
12655 _ACEOF
12656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12658 ac_status=$?
12659 grep -v '^ *+' conftest.er1 >conftest.err
12660 rm -f conftest.er1
12661 cat conftest.err >&5
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); } >/dev/null; then
12664 if test -s conftest.err; then
12665 ac_cpp_err=$ac_c_preproc_warn_flag
12666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12667 else
12668 ac_cpp_err=
12670 else
12671 ac_cpp_err=yes
12673 if test -z "$ac_cpp_err"; then
12674 ac_header_preproc=yes
12675 else
12676 echo "$as_me: failed program was:" >&5
12677 sed 's/^/| /' conftest.$ac_ext >&5
12679 ac_header_preproc=no
12681 rm -f conftest.err conftest.$ac_ext
12682 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12683 echo "${ECHO_T}$ac_header_preproc" >&6
12685 # So? What about this header?
12686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12687 yes:no: )
12688 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12689 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12690 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
12691 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
12692 ac_header_preproc=yes
12694 no:yes:* )
12695 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
12696 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
12697 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
12698 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
12699 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
12700 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
12701 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12702 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12703 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
12704 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
12705 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
12706 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
12708 cat <<\_ASBOX
12709 ## ------------------------------------------------ ##
12710 ## Report this to http://www.python.org/python-bugs ##
12711 ## ------------------------------------------------ ##
12712 _ASBOX
12714 sed "s/^/$as_me: WARNING: /" >&2
12716 esac
12717 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12718 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12719 if test "${ac_cv_header_cthreads_h+set}" = set; then
12720 echo $ECHO_N "(cached) $ECHO_C" >&6
12721 else
12722 ac_cv_header_cthreads_h=$ac_header_preproc
12724 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12725 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12728 if test $ac_cv_header_cthreads_h = yes; then
12729 cat >>confdefs.h <<\_ACEOF
12730 #define WITH_THREAD 1
12731 _ACEOF
12733 cat >>confdefs.h <<\_ACEOF
12734 #define C_THREADS 1
12735 _ACEOF
12738 cat >>confdefs.h <<\_ACEOF
12739 #define HURD_C_THREADS 1
12740 _ACEOF
12742 LIBS="$LIBS -lthreads"
12743 THREADOBJ="Python/thread.o"
12744 else
12746 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12747 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12748 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12749 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12750 echo $ECHO_N "(cached) $ECHO_C" >&6
12752 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12753 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12754 else
12755 # Is the header compilable?
12756 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
12757 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
12758 cat >conftest.$ac_ext <<_ACEOF
12759 /* confdefs.h. */
12760 _ACEOF
12761 cat confdefs.h >>conftest.$ac_ext
12762 cat >>conftest.$ac_ext <<_ACEOF
12763 /* end confdefs.h. */
12764 $ac_includes_default
12765 #include <mach/cthreads.h>
12766 _ACEOF
12767 rm -f conftest.$ac_objext
12768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12769 (eval $ac_compile) 2>conftest.er1
12770 ac_status=$?
12771 grep -v '^ *+' conftest.er1 >conftest.err
12772 rm -f conftest.er1
12773 cat conftest.err >&5
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); } &&
12776 { ac_try='test -z "$ac_c_werror_flag"
12777 || test ! -s conftest.err'
12778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12779 (eval $ac_try) 2>&5
12780 ac_status=$?
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); }; } &&
12783 { ac_try='test -s conftest.$ac_objext'
12784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12785 (eval $ac_try) 2>&5
12786 ac_status=$?
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); }; }; then
12789 ac_header_compiler=yes
12790 else
12791 echo "$as_me: failed program was:" >&5
12792 sed 's/^/| /' conftest.$ac_ext >&5
12794 ac_header_compiler=no
12796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12797 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12798 echo "${ECHO_T}$ac_header_compiler" >&6
12800 # Is the header present?
12801 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
12802 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
12803 cat >conftest.$ac_ext <<_ACEOF
12804 /* confdefs.h. */
12805 _ACEOF
12806 cat confdefs.h >>conftest.$ac_ext
12807 cat >>conftest.$ac_ext <<_ACEOF
12808 /* end confdefs.h. */
12809 #include <mach/cthreads.h>
12810 _ACEOF
12811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12813 ac_status=$?
12814 grep -v '^ *+' conftest.er1 >conftest.err
12815 rm -f conftest.er1
12816 cat conftest.err >&5
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); } >/dev/null; then
12819 if test -s conftest.err; then
12820 ac_cpp_err=$ac_c_preproc_warn_flag
12821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12822 else
12823 ac_cpp_err=
12825 else
12826 ac_cpp_err=yes
12828 if test -z "$ac_cpp_err"; then
12829 ac_header_preproc=yes
12830 else
12831 echo "$as_me: failed program was:" >&5
12832 sed 's/^/| /' conftest.$ac_ext >&5
12834 ac_header_preproc=no
12836 rm -f conftest.err conftest.$ac_ext
12837 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12838 echo "${ECHO_T}$ac_header_preproc" >&6
12840 # So? What about this header?
12841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12842 yes:no: )
12843 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12844 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12845 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
12846 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
12847 ac_header_preproc=yes
12849 no:yes:* )
12850 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
12851 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
12852 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
12853 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
12854 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
12855 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
12856 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12857 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12858 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
12859 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
12860 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
12861 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
12863 cat <<\_ASBOX
12864 ## ------------------------------------------------ ##
12865 ## Report this to http://www.python.org/python-bugs ##
12866 ## ------------------------------------------------ ##
12867 _ASBOX
12869 sed "s/^/$as_me: WARNING: /" >&2
12871 esac
12872 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12873 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12874 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12875 echo $ECHO_N "(cached) $ECHO_C" >&6
12876 else
12877 ac_cv_header_mach_cthreads_h=$ac_header_preproc
12879 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12880 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12883 if test $ac_cv_header_mach_cthreads_h = yes; then
12884 cat >>confdefs.h <<\_ACEOF
12885 #define WITH_THREAD 1
12886 _ACEOF
12888 cat >>confdefs.h <<\_ACEOF
12889 #define C_THREADS 1
12890 _ACEOF
12893 cat >>confdefs.h <<\_ACEOF
12894 #define MACH_C_THREADS 1
12895 _ACEOF
12897 THREADOBJ="Python/thread.o"
12898 else
12900 echo "$as_me:$LINENO: checking for --with-pth" >&5
12901 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
12903 # Check whether --with-pth or --without-pth was given.
12904 if test "${with_pth+set}" = set; then
12905 withval="$with_pth"
12906 echo "$as_me:$LINENO: result: $withval" >&5
12907 echo "${ECHO_T}$withval" >&6
12908 cat >>confdefs.h <<\_ACEOF
12909 #define WITH_THREAD 1
12910 _ACEOF
12913 cat >>confdefs.h <<\_ACEOF
12914 #define HAVE_PTH 1
12915 _ACEOF
12917 LIBS="-lpth $LIBS"
12918 THREADOBJ="Python/thread.o"
12919 else
12920 echo "$as_me:$LINENO: result: no" >&5
12921 echo "${ECHO_T}no" >&6
12923 # Just looking for pthread_create in libpthread is not enough:
12924 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
12925 # So we really have to include pthread.h, and then link.
12926 _libs=$LIBS
12927 LIBS="$LIBS -lpthread"
12928 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
12929 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
12930 cat >conftest.$ac_ext <<_ACEOF
12931 /* confdefs.h. */
12932 _ACEOF
12933 cat confdefs.h >>conftest.$ac_ext
12934 cat >>conftest.$ac_ext <<_ACEOF
12935 /* end confdefs.h. */
12936 #include <pthread.h>
12938 void * start_routine (void *arg) { exit (0); }
12940 main ()
12943 pthread_create (NULL, NULL, start_routine, NULL)
12945 return 0;
12947 _ACEOF
12948 rm -f conftest.$ac_objext conftest$ac_exeext
12949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12950 (eval $ac_link) 2>conftest.er1
12951 ac_status=$?
12952 grep -v '^ *+' conftest.er1 >conftest.err
12953 rm -f conftest.er1
12954 cat conftest.err >&5
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); } &&
12957 { ac_try='test -z "$ac_c_werror_flag"
12958 || test ! -s conftest.err'
12959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12960 (eval $ac_try) 2>&5
12961 ac_status=$?
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); }; } &&
12964 { ac_try='test -s conftest$ac_exeext'
12965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12966 (eval $ac_try) 2>&5
12967 ac_status=$?
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); }; }; then
12971 echo "$as_me:$LINENO: result: yes" >&5
12972 echo "${ECHO_T}yes" >&6
12973 cat >>confdefs.h <<\_ACEOF
12974 #define WITH_THREAD 1
12975 _ACEOF
12977 posix_threads=yes
12978 THREADOBJ="Python/thread.o"
12979 else
12980 echo "$as_me: failed program was:" >&5
12981 sed 's/^/| /' conftest.$ac_ext >&5
12984 LIBS=$_libs
12985 echo "$as_me:$LINENO: checking for pthread_detach" >&5
12986 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
12987 if test "${ac_cv_func_pthread_detach+set}" = set; then
12988 echo $ECHO_N "(cached) $ECHO_C" >&6
12989 else
12990 cat >conftest.$ac_ext <<_ACEOF
12991 /* confdefs.h. */
12992 _ACEOF
12993 cat confdefs.h >>conftest.$ac_ext
12994 cat >>conftest.$ac_ext <<_ACEOF
12995 /* end confdefs.h. */
12996 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
12997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12998 #define pthread_detach innocuous_pthread_detach
13000 /* System header to define __stub macros and hopefully few prototypes,
13001 which can conflict with char pthread_detach (); below.
13002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13003 <limits.h> exists even on freestanding compilers. */
13005 #ifdef __STDC__
13006 # include <limits.h>
13007 #else
13008 # include <assert.h>
13009 #endif
13011 #undef pthread_detach
13013 /* Override any gcc2 internal prototype to avoid an error. */
13014 #ifdef __cplusplus
13015 extern "C"
13017 #endif
13018 /* We use char because int might match the return type of a gcc2
13019 builtin and then its argument prototype would still apply. */
13020 char pthread_detach ();
13021 /* The GNU C library defines this for functions which it implements
13022 to always fail with ENOSYS. Some functions are actually named
13023 something starting with __ and the normal name is an alias. */
13024 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
13025 choke me
13026 #else
13027 char (*f) () = pthread_detach;
13028 #endif
13029 #ifdef __cplusplus
13031 #endif
13034 main ()
13036 return f != pthread_detach;
13038 return 0;
13040 _ACEOF
13041 rm -f conftest.$ac_objext conftest$ac_exeext
13042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13043 (eval $ac_link) 2>conftest.er1
13044 ac_status=$?
13045 grep -v '^ *+' conftest.er1 >conftest.err
13046 rm -f conftest.er1
13047 cat conftest.err >&5
13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); } &&
13050 { ac_try='test -z "$ac_c_werror_flag"
13051 || test ! -s conftest.err'
13052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13053 (eval $ac_try) 2>&5
13054 ac_status=$?
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); }; } &&
13057 { ac_try='test -s conftest$ac_exeext'
13058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13059 (eval $ac_try) 2>&5
13060 ac_status=$?
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }; }; then
13063 ac_cv_func_pthread_detach=yes
13064 else
13065 echo "$as_me: failed program was:" >&5
13066 sed 's/^/| /' conftest.$ac_ext >&5
13068 ac_cv_func_pthread_detach=no
13070 rm -f conftest.err conftest.$ac_objext \
13071 conftest$ac_exeext conftest.$ac_ext
13073 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
13074 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
13075 if test $ac_cv_func_pthread_detach = yes; then
13076 cat >>confdefs.h <<\_ACEOF
13077 #define WITH_THREAD 1
13078 _ACEOF
13080 posix_threads=yes
13081 THREADOBJ="Python/thread.o"
13082 else
13084 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13085 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
13086 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
13087 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13088 echo $ECHO_N "(cached) $ECHO_C" >&6
13090 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
13091 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
13092 else
13093 # Is the header compilable?
13094 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
13095 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
13096 cat >conftest.$ac_ext <<_ACEOF
13097 /* confdefs.h. */
13098 _ACEOF
13099 cat confdefs.h >>conftest.$ac_ext
13100 cat >>conftest.$ac_ext <<_ACEOF
13101 /* end confdefs.h. */
13102 $ac_includes_default
13103 #include <atheos/threads.h>
13104 _ACEOF
13105 rm -f conftest.$ac_objext
13106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13107 (eval $ac_compile) 2>conftest.er1
13108 ac_status=$?
13109 grep -v '^ *+' conftest.er1 >conftest.err
13110 rm -f conftest.er1
13111 cat conftest.err >&5
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); } &&
13114 { ac_try='test -z "$ac_c_werror_flag"
13115 || test ! -s conftest.err'
13116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13117 (eval $ac_try) 2>&5
13118 ac_status=$?
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); }; } &&
13121 { ac_try='test -s conftest.$ac_objext'
13122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13123 (eval $ac_try) 2>&5
13124 ac_status=$?
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); }; }; then
13127 ac_header_compiler=yes
13128 else
13129 echo "$as_me: failed program was:" >&5
13130 sed 's/^/| /' conftest.$ac_ext >&5
13132 ac_header_compiler=no
13134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13135 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13136 echo "${ECHO_T}$ac_header_compiler" >&6
13138 # Is the header present?
13139 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
13140 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
13141 cat >conftest.$ac_ext <<_ACEOF
13142 /* confdefs.h. */
13143 _ACEOF
13144 cat confdefs.h >>conftest.$ac_ext
13145 cat >>conftest.$ac_ext <<_ACEOF
13146 /* end confdefs.h. */
13147 #include <atheos/threads.h>
13148 _ACEOF
13149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13151 ac_status=$?
13152 grep -v '^ *+' conftest.er1 >conftest.err
13153 rm -f conftest.er1
13154 cat conftest.err >&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); } >/dev/null; then
13157 if test -s conftest.err; then
13158 ac_cpp_err=$ac_c_preproc_warn_flag
13159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13160 else
13161 ac_cpp_err=
13163 else
13164 ac_cpp_err=yes
13166 if test -z "$ac_cpp_err"; then
13167 ac_header_preproc=yes
13168 else
13169 echo "$as_me: failed program was:" >&5
13170 sed 's/^/| /' conftest.$ac_ext >&5
13172 ac_header_preproc=no
13174 rm -f conftest.err conftest.$ac_ext
13175 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13176 echo "${ECHO_T}$ac_header_preproc" >&6
13178 # So? What about this header?
13179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13180 yes:no: )
13181 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13182 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13183 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
13184 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
13185 ac_header_preproc=yes
13187 no:yes:* )
13188 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
13189 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
13190 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
13191 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
13192 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
13193 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
13194 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
13195 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13196 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
13197 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
13198 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
13199 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
13201 cat <<\_ASBOX
13202 ## ------------------------------------------------ ##
13203 ## Report this to http://www.python.org/python-bugs ##
13204 ## ------------------------------------------------ ##
13205 _ASBOX
13207 sed "s/^/$as_me: WARNING: /" >&2
13209 esac
13210 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
13211 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
13212 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13213 echo $ECHO_N "(cached) $ECHO_C" >&6
13214 else
13215 ac_cv_header_atheos_threads_h=$ac_header_preproc
13217 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
13218 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
13221 if test $ac_cv_header_atheos_threads_h = yes; then
13222 cat >>confdefs.h <<\_ACEOF
13223 #define WITH_THREAD 1
13224 _ACEOF
13227 cat >>confdefs.h <<\_ACEOF
13228 #define ATHEOS_THREADS 1
13229 _ACEOF
13231 THREADOBJ="Python/thread.o"
13232 else
13234 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
13235 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
13236 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
13237 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
13238 echo $ECHO_N "(cached) $ECHO_C" >&6
13240 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
13241 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
13242 else
13243 # Is the header compilable?
13244 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
13245 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
13246 cat >conftest.$ac_ext <<_ACEOF
13247 /* confdefs.h. */
13248 _ACEOF
13249 cat confdefs.h >>conftest.$ac_ext
13250 cat >>conftest.$ac_ext <<_ACEOF
13251 /* end confdefs.h. */
13252 $ac_includes_default
13253 #include <kernel/OS.h>
13254 _ACEOF
13255 rm -f conftest.$ac_objext
13256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13257 (eval $ac_compile) 2>conftest.er1
13258 ac_status=$?
13259 grep -v '^ *+' conftest.er1 >conftest.err
13260 rm -f conftest.er1
13261 cat conftest.err >&5
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); } &&
13264 { ac_try='test -z "$ac_c_werror_flag"
13265 || test ! -s conftest.err'
13266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13267 (eval $ac_try) 2>&5
13268 ac_status=$?
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); }; } &&
13271 { ac_try='test -s conftest.$ac_objext'
13272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13273 (eval $ac_try) 2>&5
13274 ac_status=$?
13275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276 (exit $ac_status); }; }; then
13277 ac_header_compiler=yes
13278 else
13279 echo "$as_me: failed program was:" >&5
13280 sed 's/^/| /' conftest.$ac_ext >&5
13282 ac_header_compiler=no
13284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13285 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13286 echo "${ECHO_T}$ac_header_compiler" >&6
13288 # Is the header present?
13289 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
13290 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
13291 cat >conftest.$ac_ext <<_ACEOF
13292 /* confdefs.h. */
13293 _ACEOF
13294 cat confdefs.h >>conftest.$ac_ext
13295 cat >>conftest.$ac_ext <<_ACEOF
13296 /* end confdefs.h. */
13297 #include <kernel/OS.h>
13298 _ACEOF
13299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13301 ac_status=$?
13302 grep -v '^ *+' conftest.er1 >conftest.err
13303 rm -f conftest.er1
13304 cat conftest.err >&5
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); } >/dev/null; then
13307 if test -s conftest.err; then
13308 ac_cpp_err=$ac_c_preproc_warn_flag
13309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13310 else
13311 ac_cpp_err=
13313 else
13314 ac_cpp_err=yes
13316 if test -z "$ac_cpp_err"; then
13317 ac_header_preproc=yes
13318 else
13319 echo "$as_me: failed program was:" >&5
13320 sed 's/^/| /' conftest.$ac_ext >&5
13322 ac_header_preproc=no
13324 rm -f conftest.err conftest.$ac_ext
13325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13326 echo "${ECHO_T}$ac_header_preproc" >&6
13328 # So? What about this header?
13329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13330 yes:no: )
13331 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
13332 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13333 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
13334 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
13335 ac_header_preproc=yes
13337 no:yes:* )
13338 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
13339 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
13340 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
13341 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
13342 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
13343 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
13344 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
13345 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
13346 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
13347 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
13348 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
13349 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
13351 cat <<\_ASBOX
13352 ## ------------------------------------------------ ##
13353 ## Report this to http://www.python.org/python-bugs ##
13354 ## ------------------------------------------------ ##
13355 _ASBOX
13357 sed "s/^/$as_me: WARNING: /" >&2
13359 esac
13360 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
13361 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
13362 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
13363 echo $ECHO_N "(cached) $ECHO_C" >&6
13364 else
13365 ac_cv_header_kernel_OS_h=$ac_header_preproc
13367 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
13368 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
13371 if test $ac_cv_header_kernel_OS_h = yes; then
13372 cat >>confdefs.h <<\_ACEOF
13373 #define WITH_THREAD 1
13374 _ACEOF
13377 cat >>confdefs.h <<\_ACEOF
13378 #define BEOS_THREADS 1
13379 _ACEOF
13381 THREADOBJ="Python/thread.o"
13382 else
13384 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
13385 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
13386 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
13387 echo $ECHO_N "(cached) $ECHO_C" >&6
13388 else
13389 ac_check_lib_save_LIBS=$LIBS
13390 LIBS="-lpthreads $LIBS"
13391 cat >conftest.$ac_ext <<_ACEOF
13392 /* confdefs.h. */
13393 _ACEOF
13394 cat confdefs.h >>conftest.$ac_ext
13395 cat >>conftest.$ac_ext <<_ACEOF
13396 /* end confdefs.h. */
13398 /* Override any gcc2 internal prototype to avoid an error. */
13399 #ifdef __cplusplus
13400 extern "C"
13401 #endif
13402 /* We use char because int might match the return type of a gcc2
13403 builtin and then its argument prototype would still apply. */
13404 char pthread_create ();
13406 main ()
13408 pthread_create ();
13410 return 0;
13412 _ACEOF
13413 rm -f conftest.$ac_objext conftest$ac_exeext
13414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13415 (eval $ac_link) 2>conftest.er1
13416 ac_status=$?
13417 grep -v '^ *+' conftest.er1 >conftest.err
13418 rm -f conftest.er1
13419 cat conftest.err >&5
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); } &&
13422 { ac_try='test -z "$ac_c_werror_flag"
13423 || test ! -s conftest.err'
13424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13425 (eval $ac_try) 2>&5
13426 ac_status=$?
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); }; } &&
13429 { ac_try='test -s conftest$ac_exeext'
13430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13431 (eval $ac_try) 2>&5
13432 ac_status=$?
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; }; then
13435 ac_cv_lib_pthreads_pthread_create=yes
13436 else
13437 echo "$as_me: failed program was:" >&5
13438 sed 's/^/| /' conftest.$ac_ext >&5
13440 ac_cv_lib_pthreads_pthread_create=no
13442 rm -f conftest.err conftest.$ac_objext \
13443 conftest$ac_exeext conftest.$ac_ext
13444 LIBS=$ac_check_lib_save_LIBS
13446 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
13447 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
13448 if test $ac_cv_lib_pthreads_pthread_create = yes; then
13449 cat >>confdefs.h <<\_ACEOF
13450 #define WITH_THREAD 1
13451 _ACEOF
13453 posix_threads=yes
13454 LIBS="$LIBS -lpthreads"
13455 THREADOBJ="Python/thread.o"
13456 else
13458 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
13459 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
13460 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
13461 echo $ECHO_N "(cached) $ECHO_C" >&6
13462 else
13463 ac_check_lib_save_LIBS=$LIBS
13464 LIBS="-lc_r $LIBS"
13465 cat >conftest.$ac_ext <<_ACEOF
13466 /* confdefs.h. */
13467 _ACEOF
13468 cat confdefs.h >>conftest.$ac_ext
13469 cat >>conftest.$ac_ext <<_ACEOF
13470 /* end confdefs.h. */
13472 /* Override any gcc2 internal prototype to avoid an error. */
13473 #ifdef __cplusplus
13474 extern "C"
13475 #endif
13476 /* We use char because int might match the return type of a gcc2
13477 builtin and then its argument prototype would still apply. */
13478 char pthread_create ();
13480 main ()
13482 pthread_create ();
13484 return 0;
13486 _ACEOF
13487 rm -f conftest.$ac_objext conftest$ac_exeext
13488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13489 (eval $ac_link) 2>conftest.er1
13490 ac_status=$?
13491 grep -v '^ *+' conftest.er1 >conftest.err
13492 rm -f conftest.er1
13493 cat conftest.err >&5
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); } &&
13496 { ac_try='test -z "$ac_c_werror_flag"
13497 || test ! -s conftest.err'
13498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13499 (eval $ac_try) 2>&5
13500 ac_status=$?
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); }; } &&
13503 { ac_try='test -s conftest$ac_exeext'
13504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505 (eval $ac_try) 2>&5
13506 ac_status=$?
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); }; }; then
13509 ac_cv_lib_c_r_pthread_create=yes
13510 else
13511 echo "$as_me: failed program was:" >&5
13512 sed 's/^/| /' conftest.$ac_ext >&5
13514 ac_cv_lib_c_r_pthread_create=no
13516 rm -f conftest.err conftest.$ac_objext \
13517 conftest$ac_exeext conftest.$ac_ext
13518 LIBS=$ac_check_lib_save_LIBS
13520 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
13521 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
13522 if test $ac_cv_lib_c_r_pthread_create = yes; then
13523 cat >>confdefs.h <<\_ACEOF
13524 #define WITH_THREAD 1
13525 _ACEOF
13527 posix_threads=yes
13528 LIBS="$LIBS -lc_r"
13529 THREADOBJ="Python/thread.o"
13530 else
13532 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
13533 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
13534 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
13535 echo $ECHO_N "(cached) $ECHO_C" >&6
13536 else
13537 ac_check_lib_save_LIBS=$LIBS
13538 LIBS="-lpthread $LIBS"
13539 cat >conftest.$ac_ext <<_ACEOF
13540 /* confdefs.h. */
13541 _ACEOF
13542 cat confdefs.h >>conftest.$ac_ext
13543 cat >>conftest.$ac_ext <<_ACEOF
13544 /* end confdefs.h. */
13546 /* Override any gcc2 internal prototype to avoid an error. */
13547 #ifdef __cplusplus
13548 extern "C"
13549 #endif
13550 /* We use char because int might match the return type of a gcc2
13551 builtin and then its argument prototype would still apply. */
13552 char __pthread_create_system ();
13554 main ()
13556 __pthread_create_system ();
13558 return 0;
13560 _ACEOF
13561 rm -f conftest.$ac_objext conftest$ac_exeext
13562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13563 (eval $ac_link) 2>conftest.er1
13564 ac_status=$?
13565 grep -v '^ *+' conftest.er1 >conftest.err
13566 rm -f conftest.er1
13567 cat conftest.err >&5
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); } &&
13570 { ac_try='test -z "$ac_c_werror_flag"
13571 || test ! -s conftest.err'
13572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13573 (eval $ac_try) 2>&5
13574 ac_status=$?
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); }; } &&
13577 { ac_try='test -s conftest$ac_exeext'
13578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13579 (eval $ac_try) 2>&5
13580 ac_status=$?
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); }; }; then
13583 ac_cv_lib_pthread___pthread_create_system=yes
13584 else
13585 echo "$as_me: failed program was:" >&5
13586 sed 's/^/| /' conftest.$ac_ext >&5
13588 ac_cv_lib_pthread___pthread_create_system=no
13590 rm -f conftest.err conftest.$ac_objext \
13591 conftest$ac_exeext conftest.$ac_ext
13592 LIBS=$ac_check_lib_save_LIBS
13594 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
13595 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
13596 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
13597 cat >>confdefs.h <<\_ACEOF
13598 #define WITH_THREAD 1
13599 _ACEOF
13601 posix_threads=yes
13602 LIBS="$LIBS -lpthread"
13603 THREADOBJ="Python/thread.o"
13604 else
13606 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
13607 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
13608 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
13609 echo $ECHO_N "(cached) $ECHO_C" >&6
13610 else
13611 ac_check_lib_save_LIBS=$LIBS
13612 LIBS="-lcma $LIBS"
13613 cat >conftest.$ac_ext <<_ACEOF
13614 /* confdefs.h. */
13615 _ACEOF
13616 cat confdefs.h >>conftest.$ac_ext
13617 cat >>conftest.$ac_ext <<_ACEOF
13618 /* end confdefs.h. */
13620 /* Override any gcc2 internal prototype to avoid an error. */
13621 #ifdef __cplusplus
13622 extern "C"
13623 #endif
13624 /* We use char because int might match the return type of a gcc2
13625 builtin and then its argument prototype would still apply. */
13626 char pthread_create ();
13628 main ()
13630 pthread_create ();
13632 return 0;
13634 _ACEOF
13635 rm -f conftest.$ac_objext conftest$ac_exeext
13636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13637 (eval $ac_link) 2>conftest.er1
13638 ac_status=$?
13639 grep -v '^ *+' conftest.er1 >conftest.err
13640 rm -f conftest.er1
13641 cat conftest.err >&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } &&
13644 { ac_try='test -z "$ac_c_werror_flag"
13645 || test ! -s conftest.err'
13646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13647 (eval $ac_try) 2>&5
13648 ac_status=$?
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); }; } &&
13651 { ac_try='test -s conftest$ac_exeext'
13652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13653 (eval $ac_try) 2>&5
13654 ac_status=$?
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); }; }; then
13657 ac_cv_lib_cma_pthread_create=yes
13658 else
13659 echo "$as_me: failed program was:" >&5
13660 sed 's/^/| /' conftest.$ac_ext >&5
13662 ac_cv_lib_cma_pthread_create=no
13664 rm -f conftest.err conftest.$ac_objext \
13665 conftest$ac_exeext conftest.$ac_ext
13666 LIBS=$ac_check_lib_save_LIBS
13668 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
13669 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
13670 if test $ac_cv_lib_cma_pthread_create = yes; then
13671 cat >>confdefs.h <<\_ACEOF
13672 #define WITH_THREAD 1
13673 _ACEOF
13675 posix_threads=yes
13676 LIBS="$LIBS -lcma"
13677 THREADOBJ="Python/thread.o"
13678 else
13680 USE_THREAD_MODULE="#"
13699 rm -f conftest.err conftest.$ac_objext \
13700 conftest$ac_exeext conftest.$ac_ext
13709 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
13710 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
13711 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
13712 echo $ECHO_N "(cached) $ECHO_C" >&6
13713 else
13714 ac_check_lib_save_LIBS=$LIBS
13715 LIBS="-lmpc $LIBS"
13716 cat >conftest.$ac_ext <<_ACEOF
13717 /* confdefs.h. */
13718 _ACEOF
13719 cat confdefs.h >>conftest.$ac_ext
13720 cat >>conftest.$ac_ext <<_ACEOF
13721 /* end confdefs.h. */
13723 /* Override any gcc2 internal prototype to avoid an error. */
13724 #ifdef __cplusplus
13725 extern "C"
13726 #endif
13727 /* We use char because int might match the return type of a gcc2
13728 builtin and then its argument prototype would still apply. */
13729 char usconfig ();
13731 main ()
13733 usconfig ();
13735 return 0;
13737 _ACEOF
13738 rm -f conftest.$ac_objext conftest$ac_exeext
13739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13740 (eval $ac_link) 2>conftest.er1
13741 ac_status=$?
13742 grep -v '^ *+' conftest.er1 >conftest.err
13743 rm -f conftest.er1
13744 cat conftest.err >&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); } &&
13747 { ac_try='test -z "$ac_c_werror_flag"
13748 || test ! -s conftest.err'
13749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13750 (eval $ac_try) 2>&5
13751 ac_status=$?
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; } &&
13754 { ac_try='test -s conftest$ac_exeext'
13755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13756 (eval $ac_try) 2>&5
13757 ac_status=$?
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); }; }; then
13760 ac_cv_lib_mpc_usconfig=yes
13761 else
13762 echo "$as_me: failed program was:" >&5
13763 sed 's/^/| /' conftest.$ac_ext >&5
13765 ac_cv_lib_mpc_usconfig=no
13767 rm -f conftest.err conftest.$ac_objext \
13768 conftest$ac_exeext conftest.$ac_ext
13769 LIBS=$ac_check_lib_save_LIBS
13771 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
13772 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
13773 if test $ac_cv_lib_mpc_usconfig = yes; then
13774 cat >>confdefs.h <<\_ACEOF
13775 #define WITH_THREAD 1
13776 _ACEOF
13778 LIBS="$LIBS -lmpc"
13779 THREADOBJ="Python/thread.o"
13780 USE_THREAD_MODULE=""
13784 if test "$posix_threads" != "yes"; then
13785 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
13786 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
13787 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
13788 echo $ECHO_N "(cached) $ECHO_C" >&6
13789 else
13790 ac_check_lib_save_LIBS=$LIBS
13791 LIBS="-lthread $LIBS"
13792 cat >conftest.$ac_ext <<_ACEOF
13793 /* confdefs.h. */
13794 _ACEOF
13795 cat confdefs.h >>conftest.$ac_ext
13796 cat >>conftest.$ac_ext <<_ACEOF
13797 /* end confdefs.h. */
13799 /* Override any gcc2 internal prototype to avoid an error. */
13800 #ifdef __cplusplus
13801 extern "C"
13802 #endif
13803 /* We use char because int might match the return type of a gcc2
13804 builtin and then its argument prototype would still apply. */
13805 char thr_create ();
13807 main ()
13809 thr_create ();
13811 return 0;
13813 _ACEOF
13814 rm -f conftest.$ac_objext conftest$ac_exeext
13815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13816 (eval $ac_link) 2>conftest.er1
13817 ac_status=$?
13818 grep -v '^ *+' conftest.er1 >conftest.err
13819 rm -f conftest.er1
13820 cat conftest.err >&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } &&
13823 { ac_try='test -z "$ac_c_werror_flag"
13824 || test ! -s conftest.err'
13825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13826 (eval $ac_try) 2>&5
13827 ac_status=$?
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); }; } &&
13830 { ac_try='test -s conftest$ac_exeext'
13831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13832 (eval $ac_try) 2>&5
13833 ac_status=$?
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); }; }; then
13836 ac_cv_lib_thread_thr_create=yes
13837 else
13838 echo "$as_me: failed program was:" >&5
13839 sed 's/^/| /' conftest.$ac_ext >&5
13841 ac_cv_lib_thread_thr_create=no
13843 rm -f conftest.err conftest.$ac_objext \
13844 conftest$ac_exeext conftest.$ac_ext
13845 LIBS=$ac_check_lib_save_LIBS
13847 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
13848 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
13849 if test $ac_cv_lib_thread_thr_create = yes; then
13850 cat >>confdefs.h <<\_ACEOF
13851 #define WITH_THREAD 1
13852 _ACEOF
13854 LIBS="$LIBS -lthread"
13855 THREADOBJ="Python/thread.o"
13856 USE_THREAD_MODULE=""
13861 if test "$USE_THREAD_MODULE" != "#"
13862 then
13863 # If the above checks didn't disable threads, (at least) OSF1
13864 # needs this '-threads' argument during linking.
13865 case $ac_sys_system in
13866 OSF1) LDLAST=-threads;;
13867 esac
13871 if test "$posix_threads" = "yes"; then
13872 if test "$unistd_defines_pthreads" = "no"; then
13874 cat >>confdefs.h <<\_ACEOF
13875 #define _POSIX_THREADS 1
13876 _ACEOF
13880 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
13881 case $ac_sys_system/$ac_sys_release in
13882 SunOS/5.6)
13883 cat >>confdefs.h <<\_ACEOF
13884 #define HAVE_PTHREAD_DESTRUCTOR 1
13885 _ACEOF
13888 SunOS/5.8)
13889 cat >>confdefs.h <<\_ACEOF
13890 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
13891 _ACEOF
13894 esac
13896 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
13897 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
13898 if test "${ac_cv_pthread_system_supported+set}" = set; then
13899 echo $ECHO_N "(cached) $ECHO_C" >&6
13900 else
13901 if test "$cross_compiling" = yes; then
13902 ac_cv_pthread_system_supported=no
13903 else
13904 cat >conftest.$ac_ext <<_ACEOF
13905 /* confdefs.h. */
13906 _ACEOF
13907 cat confdefs.h >>conftest.$ac_ext
13908 cat >>conftest.$ac_ext <<_ACEOF
13909 /* end confdefs.h. */
13910 #include <pthread.h>
13911 void *foo(void *parm) {
13912 return NULL;
13914 main() {
13915 pthread_attr_t attr;
13916 pthread_t id;
13917 if (pthread_attr_init(&attr)) exit(-1);
13918 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
13919 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
13920 exit(0);
13922 _ACEOF
13923 rm -f conftest$ac_exeext
13924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13925 (eval $ac_link) 2>&5
13926 ac_status=$?
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13930 (eval $ac_try) 2>&5
13931 ac_status=$?
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); }; }; then
13934 ac_cv_pthread_system_supported=yes
13935 else
13936 echo "$as_me: program exited with status $ac_status" >&5
13937 echo "$as_me: failed program was:" >&5
13938 sed 's/^/| /' conftest.$ac_ext >&5
13940 ( exit $ac_status )
13941 ac_cv_pthread_system_supported=no
13943 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13948 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
13949 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
13950 if test "$ac_cv_pthread_system_supported" = "yes"; then
13952 cat >>confdefs.h <<\_ACEOF
13953 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
13954 _ACEOF
13958 for ac_func in pthread_sigmask
13960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13961 echo "$as_me:$LINENO: checking for $ac_func" >&5
13962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13963 if eval "test \"\${$as_ac_var+set}\" = set"; then
13964 echo $ECHO_N "(cached) $ECHO_C" >&6
13965 else
13966 cat >conftest.$ac_ext <<_ACEOF
13967 /* confdefs.h. */
13968 _ACEOF
13969 cat confdefs.h >>conftest.$ac_ext
13970 cat >>conftest.$ac_ext <<_ACEOF
13971 /* end confdefs.h. */
13972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13974 #define $ac_func innocuous_$ac_func
13976 /* System header to define __stub macros and hopefully few prototypes,
13977 which can conflict with char $ac_func (); below.
13978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13979 <limits.h> exists even on freestanding compilers. */
13981 #ifdef __STDC__
13982 # include <limits.h>
13983 #else
13984 # include <assert.h>
13985 #endif
13987 #undef $ac_func
13989 /* Override any gcc2 internal prototype to avoid an error. */
13990 #ifdef __cplusplus
13991 extern "C"
13993 #endif
13994 /* We use char because int might match the return type of a gcc2
13995 builtin and then its argument prototype would still apply. */
13996 char $ac_func ();
13997 /* The GNU C library defines this for functions which it implements
13998 to always fail with ENOSYS. Some functions are actually named
13999 something starting with __ and the normal name is an alias. */
14000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14001 choke me
14002 #else
14003 char (*f) () = $ac_func;
14004 #endif
14005 #ifdef __cplusplus
14007 #endif
14010 main ()
14012 return f != $ac_func;
14014 return 0;
14016 _ACEOF
14017 rm -f conftest.$ac_objext conftest$ac_exeext
14018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14019 (eval $ac_link) 2>conftest.er1
14020 ac_status=$?
14021 grep -v '^ *+' conftest.er1 >conftest.err
14022 rm -f conftest.er1
14023 cat conftest.err >&5
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); } &&
14026 { ac_try='test -z "$ac_c_werror_flag"
14027 || test ! -s conftest.err'
14028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029 (eval $ac_try) 2>&5
14030 ac_status=$?
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; } &&
14033 { ac_try='test -s conftest$ac_exeext'
14034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14035 (eval $ac_try) 2>&5
14036 ac_status=$?
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); }; }; then
14039 eval "$as_ac_var=yes"
14040 else
14041 echo "$as_me: failed program was:" >&5
14042 sed 's/^/| /' conftest.$ac_ext >&5
14044 eval "$as_ac_var=no"
14046 rm -f conftest.err conftest.$ac_objext \
14047 conftest$ac_exeext conftest.$ac_ext
14049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14050 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14051 if test `eval echo '${'$as_ac_var'}'` = yes; then
14052 cat >>confdefs.h <<_ACEOF
14053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14054 _ACEOF
14055 case $ac_sys_system in
14056 CYGWIN*)
14058 cat >>confdefs.h <<\_ACEOF
14059 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
14060 _ACEOF
14063 esac
14065 done
14070 # Check for enable-ipv6
14073 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
14074 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
14075 # Check whether --enable-ipv6 or --disable-ipv6 was given.
14076 if test "${enable_ipv6+set}" = set; then
14077 enableval="$enable_ipv6"
14078 case "$enableval" in
14080 echo "$as_me:$LINENO: result: no" >&5
14081 echo "${ECHO_T}no" >&6
14082 ipv6=no
14084 *) echo "$as_me:$LINENO: result: yes" >&5
14085 echo "${ECHO_T}yes" >&6
14086 cat >>confdefs.h <<\_ACEOF
14087 #define ENABLE_IPV6 1
14088 _ACEOF
14090 ipv6=yes
14092 esac
14093 else
14095 if test "$cross_compiling" = yes; then
14096 echo "$as_me:$LINENO: result: no" >&5
14097 echo "${ECHO_T}no" >&6
14098 ipv6=no
14100 else
14101 cat >conftest.$ac_ext <<_ACEOF
14102 /* confdefs.h. */
14103 _ACEOF
14104 cat confdefs.h >>conftest.$ac_ext
14105 cat >>conftest.$ac_ext <<_ACEOF
14106 /* end confdefs.h. */
14107 /* AF_INET6 available check */
14108 #include <sys/types.h>
14109 #include <sys/socket.h>
14110 main()
14112 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
14113 exit(1);
14114 else
14115 exit(0);
14118 _ACEOF
14119 rm -f conftest$ac_exeext
14120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14121 (eval $ac_link) 2>&5
14122 ac_status=$?
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14126 (eval $ac_try) 2>&5
14127 ac_status=$?
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); }; }; then
14130 echo "$as_me:$LINENO: result: yes" >&5
14131 echo "${ECHO_T}yes" >&6
14132 ipv6=yes
14133 else
14134 echo "$as_me: program exited with status $ac_status" >&5
14135 echo "$as_me: failed program was:" >&5
14136 sed 's/^/| /' conftest.$ac_ext >&5
14138 ( exit $ac_status )
14139 echo "$as_me:$LINENO: result: no" >&5
14140 echo "${ECHO_T}no" >&6
14141 ipv6=no
14143 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14146 if test "$ipv6" = "yes"; then
14147 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
14148 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
14149 cat >conftest.$ac_ext <<_ACEOF
14150 /* confdefs.h. */
14151 _ACEOF
14152 cat confdefs.h >>conftest.$ac_ext
14153 cat >>conftest.$ac_ext <<_ACEOF
14154 /* end confdefs.h. */
14155 #include <sys/types.h>
14156 #include <netinet/in.h>
14158 main ()
14160 struct sockaddr_in6 x;
14161 x.sin6_scope_id;
14163 return 0;
14165 _ACEOF
14166 rm -f conftest.$ac_objext
14167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14168 (eval $ac_compile) 2>conftest.er1
14169 ac_status=$?
14170 grep -v '^ *+' conftest.er1 >conftest.err
14171 rm -f conftest.er1
14172 cat conftest.err >&5
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); } &&
14175 { ac_try='test -z "$ac_c_werror_flag"
14176 || test ! -s conftest.err'
14177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178 (eval $ac_try) 2>&5
14179 ac_status=$?
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; } &&
14182 { ac_try='test -s conftest.$ac_objext'
14183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14184 (eval $ac_try) 2>&5
14185 ac_status=$?
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); }; }; then
14188 echo "$as_me:$LINENO: result: yes" >&5
14189 echo "${ECHO_T}yes" >&6
14190 ipv6=yes
14191 else
14192 echo "$as_me: failed program was:" >&5
14193 sed 's/^/| /' conftest.$ac_ext >&5
14195 echo "$as_me:$LINENO: result: no" >&5
14196 echo "${ECHO_T}no" >&6
14197 ipv6=no
14199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14202 if test "$ipv6" = "yes"; then
14203 cat >>confdefs.h <<\_ACEOF
14204 #define ENABLE_IPV6 1
14205 _ACEOF
14211 ipv6type=unknown
14212 ipv6lib=none
14213 ipv6trylibc=no
14215 if test "$ipv6" = "yes"; then
14216 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
14217 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
14218 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
14220 case $i in
14221 inria)
14222 cat >conftest.$ac_ext <<_ACEOF
14223 /* confdefs.h. */
14224 _ACEOF
14225 cat confdefs.h >>conftest.$ac_ext
14226 cat >>conftest.$ac_ext <<_ACEOF
14227 /* end confdefs.h. */
14229 #include <netinet/in.h>
14230 #ifdef IPV6_INRIA_VERSION
14232 #endif
14233 _ACEOF
14234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14235 $EGREP "yes" >/dev/null 2>&1; then
14236 ipv6type=$i
14238 rm -f conftest*
14241 kame)
14242 cat >conftest.$ac_ext <<_ACEOF
14243 /* confdefs.h. */
14244 _ACEOF
14245 cat confdefs.h >>conftest.$ac_ext
14246 cat >>conftest.$ac_ext <<_ACEOF
14247 /* end confdefs.h. */
14249 #include <netinet/in.h>
14250 #ifdef __KAME__
14252 #endif
14253 _ACEOF
14254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14255 $EGREP "yes" >/dev/null 2>&1; then
14256 ipv6type=$i;
14257 ipv6lib=inet6
14258 ipv6libdir=/usr/local/v6/lib
14259 ipv6trylibc=yes
14261 rm -f conftest*
14264 linux-glibc)
14265 cat >conftest.$ac_ext <<_ACEOF
14266 /* confdefs.h. */
14267 _ACEOF
14268 cat confdefs.h >>conftest.$ac_ext
14269 cat >>conftest.$ac_ext <<_ACEOF
14270 /* end confdefs.h. */
14272 #include <features.h>
14273 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
14275 #endif
14276 _ACEOF
14277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14278 $EGREP "yes" >/dev/null 2>&1; then
14279 ipv6type=$i;
14280 ipv6trylibc=yes
14282 rm -f conftest*
14285 linux-inet6)
14286 if test -d /usr/inet6; then
14287 ipv6type=$i
14288 ipv6lib=inet6
14289 ipv6libdir=/usr/inet6/lib
14290 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
14293 solaris)
14294 if test -f /etc/netconfig; then
14295 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
14296 ipv6type=$i
14297 ipv6trylibc=yes
14301 toshiba)
14302 cat >conftest.$ac_ext <<_ACEOF
14303 /* confdefs.h. */
14304 _ACEOF
14305 cat confdefs.h >>conftest.$ac_ext
14306 cat >>conftest.$ac_ext <<_ACEOF
14307 /* end confdefs.h. */
14309 #include <sys/param.h>
14310 #ifdef _TOSHIBA_INET6
14312 #endif
14313 _ACEOF
14314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14315 $EGREP "yes" >/dev/null 2>&1; then
14316 ipv6type=$i;
14317 ipv6lib=inet6;
14318 ipv6libdir=/usr/local/v6/lib
14320 rm -f conftest*
14323 v6d)
14324 cat >conftest.$ac_ext <<_ACEOF
14325 /* confdefs.h. */
14326 _ACEOF
14327 cat confdefs.h >>conftest.$ac_ext
14328 cat >>conftest.$ac_ext <<_ACEOF
14329 /* end confdefs.h. */
14331 #include </usr/local/v6/include/sys/v6config.h>
14332 #ifdef __V6D__
14334 #endif
14335 _ACEOF
14336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14337 $EGREP "yes" >/dev/null 2>&1; then
14338 ipv6type=$i;
14339 ipv6lib=v6;
14340 ipv6libdir=/usr/local/v6/lib;
14341 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
14343 rm -f conftest*
14346 zeta)
14347 cat >conftest.$ac_ext <<_ACEOF
14348 /* confdefs.h. */
14349 _ACEOF
14350 cat confdefs.h >>conftest.$ac_ext
14351 cat >>conftest.$ac_ext <<_ACEOF
14352 /* end confdefs.h. */
14354 #include <sys/param.h>
14355 #ifdef _ZETA_MINAMI_INET6
14357 #endif
14358 _ACEOF
14359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14360 $EGREP "yes" >/dev/null 2>&1; then
14361 ipv6type=$i;
14362 ipv6lib=inet6;
14363 ipv6libdir=/usr/local/v6/lib
14365 rm -f conftest*
14368 esac
14369 if test "$ipv6type" != "unknown"; then
14370 break
14372 done
14373 echo "$as_me:$LINENO: result: $ipv6type" >&5
14374 echo "${ECHO_T}$ipv6type" >&6
14377 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
14378 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
14379 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
14380 echo "using lib$ipv6lib"
14381 else
14382 if test $ipv6trylibc = "yes"; then
14383 echo "using libc"
14384 else
14385 echo 'Fatal: no $ipv6lib library found. cannot continue.'
14386 echo "You need to fetch lib$ipv6lib.a from appropriate"
14387 echo 'ipv6 kit and compile beforehand.'
14388 exit 1
14393 # Check for --with-doc-strings
14394 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
14395 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
14397 # Check whether --with-doc-strings or --without-doc-strings was given.
14398 if test "${with_doc_strings+set}" = set; then
14399 withval="$with_doc_strings"
14403 if test -z "$with_doc_strings"
14404 then with_doc_strings="yes"
14406 if test "$with_doc_strings" != "no"
14407 then
14409 cat >>confdefs.h <<\_ACEOF
14410 #define WITH_DOC_STRINGS 1
14411 _ACEOF
14414 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
14415 echo "${ECHO_T}$with_doc_strings" >&6
14417 # Check for Python-specific malloc support
14418 echo "$as_me:$LINENO: checking for --with-tsc" >&5
14419 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6
14421 # Check whether --with-tsc or --without-tsc was given.
14422 if test "${with_tsc+set}" = set; then
14423 withval="$with_tsc"
14425 if test "$withval" != no
14426 then
14428 cat >>confdefs.h <<\_ACEOF
14429 #define WITH_TSC 1
14430 _ACEOF
14432 echo "$as_me:$LINENO: result: yes" >&5
14433 echo "${ECHO_T}yes" >&6
14434 else echo "$as_me:$LINENO: result: no" >&5
14435 echo "${ECHO_T}no" >&6
14437 else
14438 echo "$as_me:$LINENO: result: no" >&5
14439 echo "${ECHO_T}no" >&6
14442 # Check for Python-specific malloc support
14443 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
14444 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
14446 # Check whether --with-pymalloc or --without-pymalloc was given.
14447 if test "${with_pymalloc+set}" = set; then
14448 withval="$with_pymalloc"
14452 if test -z "$with_pymalloc"
14453 then with_pymalloc="yes"
14455 if test "$with_pymalloc" != "no"
14456 then
14458 cat >>confdefs.h <<\_ACEOF
14459 #define WITH_PYMALLOC 1
14460 _ACEOF
14463 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
14464 echo "${ECHO_T}$with_pymalloc" >&6
14466 # Check for --with-wctype-functions
14467 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
14468 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
14470 # Check whether --with-wctype-functions or --without-wctype-functions was given.
14471 if test "${with_wctype_functions+set}" = set; then
14472 withval="$with_wctype_functions"
14474 if test "$withval" != no
14475 then
14477 cat >>confdefs.h <<\_ACEOF
14478 #define WANT_WCTYPE_FUNCTIONS 1
14479 _ACEOF
14481 echo "$as_me:$LINENO: result: yes" >&5
14482 echo "${ECHO_T}yes" >&6
14483 else echo "$as_me:$LINENO: result: no" >&5
14484 echo "${ECHO_T}no" >&6
14486 else
14487 echo "$as_me:$LINENO: result: no" >&5
14488 echo "${ECHO_T}no" >&6
14491 # -I${DLINCLDIR} is added to the compile rule for importdl.o
14493 DLINCLDIR=.
14495 # the dlopen() function means we might want to use dynload_shlib.o. some
14496 # platforms, such as AIX, have dlopen(), but don't want to use it.
14498 for ac_func in dlopen
14500 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14501 echo "$as_me:$LINENO: checking for $ac_func" >&5
14502 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14503 if eval "test \"\${$as_ac_var+set}\" = set"; then
14504 echo $ECHO_N "(cached) $ECHO_C" >&6
14505 else
14506 cat >conftest.$ac_ext <<_ACEOF
14507 /* confdefs.h. */
14508 _ACEOF
14509 cat confdefs.h >>conftest.$ac_ext
14510 cat >>conftest.$ac_ext <<_ACEOF
14511 /* end confdefs.h. */
14512 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14514 #define $ac_func innocuous_$ac_func
14516 /* System header to define __stub macros and hopefully few prototypes,
14517 which can conflict with char $ac_func (); below.
14518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14519 <limits.h> exists even on freestanding compilers. */
14521 #ifdef __STDC__
14522 # include <limits.h>
14523 #else
14524 # include <assert.h>
14525 #endif
14527 #undef $ac_func
14529 /* Override any gcc2 internal prototype to avoid an error. */
14530 #ifdef __cplusplus
14531 extern "C"
14533 #endif
14534 /* We use char because int might match the return type of a gcc2
14535 builtin and then its argument prototype would still apply. */
14536 char $ac_func ();
14537 /* The GNU C library defines this for functions which it implements
14538 to always fail with ENOSYS. Some functions are actually named
14539 something starting with __ and the normal name is an alias. */
14540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14541 choke me
14542 #else
14543 char (*f) () = $ac_func;
14544 #endif
14545 #ifdef __cplusplus
14547 #endif
14550 main ()
14552 return f != $ac_func;
14554 return 0;
14556 _ACEOF
14557 rm -f conftest.$ac_objext conftest$ac_exeext
14558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14559 (eval $ac_link) 2>conftest.er1
14560 ac_status=$?
14561 grep -v '^ *+' conftest.er1 >conftest.err
14562 rm -f conftest.er1
14563 cat conftest.err >&5
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); } &&
14566 { ac_try='test -z "$ac_c_werror_flag"
14567 || test ! -s conftest.err'
14568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14569 (eval $ac_try) 2>&5
14570 ac_status=$?
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); }; } &&
14573 { ac_try='test -s conftest$ac_exeext'
14574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14575 (eval $ac_try) 2>&5
14576 ac_status=$?
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); }; }; then
14579 eval "$as_ac_var=yes"
14580 else
14581 echo "$as_me: failed program was:" >&5
14582 sed 's/^/| /' conftest.$ac_ext >&5
14584 eval "$as_ac_var=no"
14586 rm -f conftest.err conftest.$ac_objext \
14587 conftest$ac_exeext conftest.$ac_ext
14589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14590 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14591 if test `eval echo '${'$as_ac_var'}'` = yes; then
14592 cat >>confdefs.h <<_ACEOF
14593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14594 _ACEOF
14597 done
14600 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
14601 # loading of modules.
14603 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
14604 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
14605 if test -z "$DYNLOADFILE"
14606 then
14607 case $ac_sys_system/$ac_sys_release in
14608 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
14609 if test "$ac_cv_func_dlopen" = yes
14610 then DYNLOADFILE="dynload_shlib.o"
14611 else DYNLOADFILE="dynload_aix.o"
14614 BeOS*) DYNLOADFILE="dynload_beos.o";;
14615 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
14616 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
14617 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
14618 atheos*) DYNLOADFILE="dynload_atheos.o";;
14620 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
14621 # out any dynamic loading
14622 if test "$ac_cv_func_dlopen" = yes
14623 then DYNLOADFILE="dynload_shlib.o"
14624 else DYNLOADFILE="dynload_stub.o"
14627 esac
14629 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
14630 echo "${ECHO_T}$DYNLOADFILE" >&6
14631 if test "$DYNLOADFILE" != "dynload_stub.o"
14632 then
14634 cat >>confdefs.h <<\_ACEOF
14635 #define HAVE_DYNAMIC_LOADING 1
14636 _ACEOF
14640 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
14643 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
14644 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
14645 if test -z "$MACHDEP_OBJS"
14646 then
14647 MACHDEP_OBJS=$extra_machdep_objs
14648 else
14649 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
14651 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
14652 echo "${ECHO_T}MACHDEP_OBJS" >&6
14654 # checks for library functions
14733 for ac_func in alarm bind_textdomain_codeset chflags chown clock confstr \
14734 ctermid execv fork fpathconf ftime ftruncate \
14735 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
14736 getpriority getpwent getspnam getspent getsid getwd \
14737 kill killpg lchflags lchown lstat mkfifo mknod mktime \
14738 mremap nice pathconf pause plock poll pthread_init \
14739 putenv readlink realpath \
14740 select setegid seteuid setgid \
14741 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
14742 sigaction siginterrupt sigrelse strftime \
14743 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
14744 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
14746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14747 echo "$as_me:$LINENO: checking for $ac_func" >&5
14748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14749 if eval "test \"\${$as_ac_var+set}\" = set"; then
14750 echo $ECHO_N "(cached) $ECHO_C" >&6
14751 else
14752 cat >conftest.$ac_ext <<_ACEOF
14753 /* confdefs.h. */
14754 _ACEOF
14755 cat confdefs.h >>conftest.$ac_ext
14756 cat >>conftest.$ac_ext <<_ACEOF
14757 /* end confdefs.h. */
14758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14760 #define $ac_func innocuous_$ac_func
14762 /* System header to define __stub macros and hopefully few prototypes,
14763 which can conflict with char $ac_func (); below.
14764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14765 <limits.h> exists even on freestanding compilers. */
14767 #ifdef __STDC__
14768 # include <limits.h>
14769 #else
14770 # include <assert.h>
14771 #endif
14773 #undef $ac_func
14775 /* Override any gcc2 internal prototype to avoid an error. */
14776 #ifdef __cplusplus
14777 extern "C"
14779 #endif
14780 /* We use char because int might match the return type of a gcc2
14781 builtin and then its argument prototype would still apply. */
14782 char $ac_func ();
14783 /* The GNU C library defines this for functions which it implements
14784 to always fail with ENOSYS. Some functions are actually named
14785 something starting with __ and the normal name is an alias. */
14786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14787 choke me
14788 #else
14789 char (*f) () = $ac_func;
14790 #endif
14791 #ifdef __cplusplus
14793 #endif
14796 main ()
14798 return f != $ac_func;
14800 return 0;
14802 _ACEOF
14803 rm -f conftest.$ac_objext conftest$ac_exeext
14804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14805 (eval $ac_link) 2>conftest.er1
14806 ac_status=$?
14807 grep -v '^ *+' conftest.er1 >conftest.err
14808 rm -f conftest.er1
14809 cat conftest.err >&5
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); } &&
14812 { ac_try='test -z "$ac_c_werror_flag"
14813 || test ! -s conftest.err'
14814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14815 (eval $ac_try) 2>&5
14816 ac_status=$?
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); }; } &&
14819 { ac_try='test -s conftest$ac_exeext'
14820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14821 (eval $ac_try) 2>&5
14822 ac_status=$?
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); }; }; then
14825 eval "$as_ac_var=yes"
14826 else
14827 echo "$as_me: failed program was:" >&5
14828 sed 's/^/| /' conftest.$ac_ext >&5
14830 eval "$as_ac_var=no"
14832 rm -f conftest.err conftest.$ac_objext \
14833 conftest$ac_exeext conftest.$ac_ext
14835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14837 if test `eval echo '${'$as_ac_var'}'` = yes; then
14838 cat >>confdefs.h <<_ACEOF
14839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14840 _ACEOF
14843 done
14846 # For some functions, having a definition is not sufficient, since
14847 # we want to take their address.
14848 echo "$as_me:$LINENO: checking for chroot" >&5
14849 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
14850 cat >conftest.$ac_ext <<_ACEOF
14851 /* confdefs.h. */
14852 _ACEOF
14853 cat confdefs.h >>conftest.$ac_ext
14854 cat >>conftest.$ac_ext <<_ACEOF
14855 /* end confdefs.h. */
14856 #include <unistd.h>
14858 main ()
14860 void *x=chroot
14862 return 0;
14864 _ACEOF
14865 rm -f conftest.$ac_objext
14866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14867 (eval $ac_compile) 2>conftest.er1
14868 ac_status=$?
14869 grep -v '^ *+' conftest.er1 >conftest.err
14870 rm -f conftest.er1
14871 cat conftest.err >&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); } &&
14874 { ac_try='test -z "$ac_c_werror_flag"
14875 || test ! -s conftest.err'
14876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14877 (eval $ac_try) 2>&5
14878 ac_status=$?
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); }; } &&
14881 { ac_try='test -s conftest.$ac_objext'
14882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14883 (eval $ac_try) 2>&5
14884 ac_status=$?
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); }; }; then
14888 cat >>confdefs.h <<\_ACEOF
14889 #define HAVE_CHROOT 1
14890 _ACEOF
14892 echo "$as_me:$LINENO: result: yes" >&5
14893 echo "${ECHO_T}yes" >&6
14894 else
14895 echo "$as_me: failed program was:" >&5
14896 sed 's/^/| /' conftest.$ac_ext >&5
14898 echo "$as_me:$LINENO: result: no" >&5
14899 echo "${ECHO_T}no" >&6
14902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14903 echo "$as_me:$LINENO: checking for link" >&5
14904 echo $ECHO_N "checking for link... $ECHO_C" >&6
14905 cat >conftest.$ac_ext <<_ACEOF
14906 /* confdefs.h. */
14907 _ACEOF
14908 cat confdefs.h >>conftest.$ac_ext
14909 cat >>conftest.$ac_ext <<_ACEOF
14910 /* end confdefs.h. */
14911 #include <unistd.h>
14913 main ()
14915 void *x=link
14917 return 0;
14919 _ACEOF
14920 rm -f conftest.$ac_objext
14921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14922 (eval $ac_compile) 2>conftest.er1
14923 ac_status=$?
14924 grep -v '^ *+' conftest.er1 >conftest.err
14925 rm -f conftest.er1
14926 cat conftest.err >&5
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); } &&
14929 { ac_try='test -z "$ac_c_werror_flag"
14930 || test ! -s conftest.err'
14931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14932 (eval $ac_try) 2>&5
14933 ac_status=$?
14934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935 (exit $ac_status); }; } &&
14936 { ac_try='test -s conftest.$ac_objext'
14937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14938 (eval $ac_try) 2>&5
14939 ac_status=$?
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); }; }; then
14943 cat >>confdefs.h <<\_ACEOF
14944 #define HAVE_LINK 1
14945 _ACEOF
14947 echo "$as_me:$LINENO: result: yes" >&5
14948 echo "${ECHO_T}yes" >&6
14949 else
14950 echo "$as_me: failed program was:" >&5
14951 sed 's/^/| /' conftest.$ac_ext >&5
14953 echo "$as_me:$LINENO: result: no" >&5
14954 echo "${ECHO_T}no" >&6
14957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14958 echo "$as_me:$LINENO: checking for symlink" >&5
14959 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
14960 cat >conftest.$ac_ext <<_ACEOF
14961 /* confdefs.h. */
14962 _ACEOF
14963 cat confdefs.h >>conftest.$ac_ext
14964 cat >>conftest.$ac_ext <<_ACEOF
14965 /* end confdefs.h. */
14966 #include <unistd.h>
14968 main ()
14970 void *x=symlink
14972 return 0;
14974 _ACEOF
14975 rm -f conftest.$ac_objext
14976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14977 (eval $ac_compile) 2>conftest.er1
14978 ac_status=$?
14979 grep -v '^ *+' conftest.er1 >conftest.err
14980 rm -f conftest.er1
14981 cat conftest.err >&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); } &&
14984 { ac_try='test -z "$ac_c_werror_flag"
14985 || test ! -s conftest.err'
14986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14987 (eval $ac_try) 2>&5
14988 ac_status=$?
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); }; } &&
14991 { ac_try='test -s conftest.$ac_objext'
14992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14993 (eval $ac_try) 2>&5
14994 ac_status=$?
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); }; }; then
14998 cat >>confdefs.h <<\_ACEOF
14999 #define HAVE_SYMLINK 1
15000 _ACEOF
15002 echo "$as_me:$LINENO: result: yes" >&5
15003 echo "${ECHO_T}yes" >&6
15004 else
15005 echo "$as_me: failed program was:" >&5
15006 sed 's/^/| /' conftest.$ac_ext >&5
15008 echo "$as_me:$LINENO: result: no" >&5
15009 echo "${ECHO_T}no" >&6
15012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15013 echo "$as_me:$LINENO: checking for fchdir" >&5
15014 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
15015 cat >conftest.$ac_ext <<_ACEOF
15016 /* confdefs.h. */
15017 _ACEOF
15018 cat confdefs.h >>conftest.$ac_ext
15019 cat >>conftest.$ac_ext <<_ACEOF
15020 /* end confdefs.h. */
15021 #include <unistd.h>
15023 main ()
15025 void *x=fchdir
15027 return 0;
15029 _ACEOF
15030 rm -f conftest.$ac_objext
15031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15032 (eval $ac_compile) 2>conftest.er1
15033 ac_status=$?
15034 grep -v '^ *+' conftest.er1 >conftest.err
15035 rm -f conftest.er1
15036 cat conftest.err >&5
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); } &&
15039 { ac_try='test -z "$ac_c_werror_flag"
15040 || test ! -s conftest.err'
15041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15042 (eval $ac_try) 2>&5
15043 ac_status=$?
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); }; } &&
15046 { ac_try='test -s conftest.$ac_objext'
15047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15048 (eval $ac_try) 2>&5
15049 ac_status=$?
15050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051 (exit $ac_status); }; }; then
15053 cat >>confdefs.h <<\_ACEOF
15054 #define HAVE_FCHDIR 1
15055 _ACEOF
15057 echo "$as_me:$LINENO: result: yes" >&5
15058 echo "${ECHO_T}yes" >&6
15059 else
15060 echo "$as_me: failed program was:" >&5
15061 sed 's/^/| /' conftest.$ac_ext >&5
15063 echo "$as_me:$LINENO: result: no" >&5
15064 echo "${ECHO_T}no" >&6
15067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15068 echo "$as_me:$LINENO: checking for fsync" >&5
15069 echo $ECHO_N "checking for fsync... $ECHO_C" >&6
15070 cat >conftest.$ac_ext <<_ACEOF
15071 /* confdefs.h. */
15072 _ACEOF
15073 cat confdefs.h >>conftest.$ac_ext
15074 cat >>conftest.$ac_ext <<_ACEOF
15075 /* end confdefs.h. */
15076 #include <unistd.h>
15078 main ()
15080 void *x=fsync
15082 return 0;
15084 _ACEOF
15085 rm -f conftest.$ac_objext
15086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15087 (eval $ac_compile) 2>conftest.er1
15088 ac_status=$?
15089 grep -v '^ *+' conftest.er1 >conftest.err
15090 rm -f conftest.er1
15091 cat conftest.err >&5
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); } &&
15094 { ac_try='test -z "$ac_c_werror_flag"
15095 || test ! -s conftest.err'
15096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15097 (eval $ac_try) 2>&5
15098 ac_status=$?
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); }; } &&
15101 { ac_try='test -s conftest.$ac_objext'
15102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15103 (eval $ac_try) 2>&5
15104 ac_status=$?
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); }; }; then
15108 cat >>confdefs.h <<\_ACEOF
15109 #define HAVE_FSYNC 1
15110 _ACEOF
15112 echo "$as_me:$LINENO: result: yes" >&5
15113 echo "${ECHO_T}yes" >&6
15114 else
15115 echo "$as_me: failed program was:" >&5
15116 sed 's/^/| /' conftest.$ac_ext >&5
15118 echo "$as_me:$LINENO: result: no" >&5
15119 echo "${ECHO_T}no" >&6
15122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15123 echo "$as_me:$LINENO: checking for fdatasync" >&5
15124 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
15125 cat >conftest.$ac_ext <<_ACEOF
15126 /* confdefs.h. */
15127 _ACEOF
15128 cat confdefs.h >>conftest.$ac_ext
15129 cat >>conftest.$ac_ext <<_ACEOF
15130 /* end confdefs.h. */
15131 #include <unistd.h>
15133 main ()
15135 void *x=fdatasync
15137 return 0;
15139 _ACEOF
15140 rm -f conftest.$ac_objext
15141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15142 (eval $ac_compile) 2>conftest.er1
15143 ac_status=$?
15144 grep -v '^ *+' conftest.er1 >conftest.err
15145 rm -f conftest.er1
15146 cat conftest.err >&5
15147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 (exit $ac_status); } &&
15149 { ac_try='test -z "$ac_c_werror_flag"
15150 || test ! -s conftest.err'
15151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15152 (eval $ac_try) 2>&5
15153 ac_status=$?
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); }; } &&
15156 { ac_try='test -s conftest.$ac_objext'
15157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15158 (eval $ac_try) 2>&5
15159 ac_status=$?
15160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161 (exit $ac_status); }; }; then
15163 cat >>confdefs.h <<\_ACEOF
15164 #define HAVE_FDATASYNC 1
15165 _ACEOF
15167 echo "$as_me:$LINENO: result: yes" >&5
15168 echo "${ECHO_T}yes" >&6
15169 else
15170 echo "$as_me: failed program was:" >&5
15171 sed 's/^/| /' conftest.$ac_ext >&5
15173 echo "$as_me:$LINENO: result: no" >&5
15174 echo "${ECHO_T}no" >&6
15177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15179 # On some systems (eg. FreeBSD 5), we would find a definition of the
15180 # functions ctermid_r, setgroups in the library, but no prototype
15181 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
15182 # address to avoid compiler warnings and potential miscompilations
15183 # because of the missing prototypes.
15185 echo "$as_me:$LINENO: checking for ctermid_r" >&5
15186 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
15187 cat >conftest.$ac_ext <<_ACEOF
15188 /* confdefs.h. */
15189 _ACEOF
15190 cat confdefs.h >>conftest.$ac_ext
15191 cat >>conftest.$ac_ext <<_ACEOF
15192 /* end confdefs.h. */
15194 #include "confdefs.h"
15195 #include <stdio.h>
15198 main ()
15200 void* p = ctermid_r
15202 return 0;
15204 _ACEOF
15205 rm -f conftest.$ac_objext
15206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15207 (eval $ac_compile) 2>conftest.er1
15208 ac_status=$?
15209 grep -v '^ *+' conftest.er1 >conftest.err
15210 rm -f conftest.er1
15211 cat conftest.err >&5
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); } &&
15214 { ac_try='test -z "$ac_c_werror_flag"
15215 || test ! -s conftest.err'
15216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15217 (eval $ac_try) 2>&5
15218 ac_status=$?
15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 (exit $ac_status); }; } &&
15221 { ac_try='test -s conftest.$ac_objext'
15222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15223 (eval $ac_try) 2>&5
15224 ac_status=$?
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); }; }; then
15228 cat >>confdefs.h <<\_ACEOF
15229 #define HAVE_CTERMID_R 1
15230 _ACEOF
15232 echo "$as_me:$LINENO: result: yes" >&5
15233 echo "${ECHO_T}yes" >&6
15234 else
15235 echo "$as_me: failed program was:" >&5
15236 sed 's/^/| /' conftest.$ac_ext >&5
15238 echo "$as_me:$LINENO: result: no" >&5
15239 echo "${ECHO_T}no" >&6
15242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15244 echo "$as_me:$LINENO: checking for flock" >&5
15245 echo $ECHO_N "checking for flock... $ECHO_C" >&6
15246 cat >conftest.$ac_ext <<_ACEOF
15247 /* confdefs.h. */
15248 _ACEOF
15249 cat confdefs.h >>conftest.$ac_ext
15250 cat >>conftest.$ac_ext <<_ACEOF
15251 /* end confdefs.h. */
15253 #include "confdefs.h"
15254 #include <sys/file.h>
15257 main ()
15259 void* p = flock
15261 return 0;
15263 _ACEOF
15264 rm -f conftest.$ac_objext
15265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15266 (eval $ac_compile) 2>conftest.er1
15267 ac_status=$?
15268 grep -v '^ *+' conftest.er1 >conftest.err
15269 rm -f conftest.er1
15270 cat conftest.err >&5
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); } &&
15273 { ac_try='test -z "$ac_c_werror_flag"
15274 || test ! -s conftest.err'
15275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15276 (eval $ac_try) 2>&5
15277 ac_status=$?
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); }; } &&
15280 { ac_try='test -s conftest.$ac_objext'
15281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15282 (eval $ac_try) 2>&5
15283 ac_status=$?
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); }; }; then
15287 cat >>confdefs.h <<\_ACEOF
15288 #define HAVE_FLOCK 1
15289 _ACEOF
15291 echo "$as_me:$LINENO: result: yes" >&5
15292 echo "${ECHO_T}yes" >&6
15293 else
15294 echo "$as_me: failed program was:" >&5
15295 sed 's/^/| /' conftest.$ac_ext >&5
15297 echo "$as_me:$LINENO: result: no" >&5
15298 echo "${ECHO_T}no" >&6
15301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15303 echo "$as_me:$LINENO: checking for getpagesize" >&5
15304 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
15305 cat >conftest.$ac_ext <<_ACEOF
15306 /* confdefs.h. */
15307 _ACEOF
15308 cat confdefs.h >>conftest.$ac_ext
15309 cat >>conftest.$ac_ext <<_ACEOF
15310 /* end confdefs.h. */
15312 #include "confdefs.h"
15313 #include <unistd.h>
15316 main ()
15318 void* p = getpagesize
15320 return 0;
15322 _ACEOF
15323 rm -f conftest.$ac_objext
15324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15325 (eval $ac_compile) 2>conftest.er1
15326 ac_status=$?
15327 grep -v '^ *+' conftest.er1 >conftest.err
15328 rm -f conftest.er1
15329 cat conftest.err >&5
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); } &&
15332 { ac_try='test -z "$ac_c_werror_flag"
15333 || test ! -s conftest.err'
15334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15335 (eval $ac_try) 2>&5
15336 ac_status=$?
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); }; } &&
15339 { ac_try='test -s conftest.$ac_objext'
15340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15341 (eval $ac_try) 2>&5
15342 ac_status=$?
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); }; }; then
15346 cat >>confdefs.h <<\_ACEOF
15347 #define HAVE_GETPAGESIZE 1
15348 _ACEOF
15350 echo "$as_me:$LINENO: result: yes" >&5
15351 echo "${ECHO_T}yes" >&6
15352 else
15353 echo "$as_me: failed program was:" >&5
15354 sed 's/^/| /' conftest.$ac_ext >&5
15356 echo "$as_me:$LINENO: result: no" >&5
15357 echo "${ECHO_T}no" >&6
15360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15362 for ac_prog in true
15364 # Extract the first word of "$ac_prog", so it can be a program name with args.
15365 set dummy $ac_prog; ac_word=$2
15366 echo "$as_me:$LINENO: checking for $ac_word" >&5
15367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15368 if test "${ac_cv_prog_TRUE+set}" = set; then
15369 echo $ECHO_N "(cached) $ECHO_C" >&6
15370 else
15371 if test -n "$TRUE"; then
15372 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
15373 else
15374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15375 for as_dir in $PATH
15377 IFS=$as_save_IFS
15378 test -z "$as_dir" && as_dir=.
15379 for ac_exec_ext in '' $ac_executable_extensions; do
15380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15381 ac_cv_prog_TRUE="$ac_prog"
15382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15383 break 2
15385 done
15386 done
15390 TRUE=$ac_cv_prog_TRUE
15391 if test -n "$TRUE"; then
15392 echo "$as_me:$LINENO: result: $TRUE" >&5
15393 echo "${ECHO_T}$TRUE" >&6
15394 else
15395 echo "$as_me:$LINENO: result: no" >&5
15396 echo "${ECHO_T}no" >&6
15399 test -n "$TRUE" && break
15400 done
15401 test -n "$TRUE" || TRUE="/bin/true"
15404 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
15405 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
15406 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
15407 echo $ECHO_N "(cached) $ECHO_C" >&6
15408 else
15409 ac_check_lib_save_LIBS=$LIBS
15410 LIBS="-lc $LIBS"
15411 cat >conftest.$ac_ext <<_ACEOF
15412 /* confdefs.h. */
15413 _ACEOF
15414 cat confdefs.h >>conftest.$ac_ext
15415 cat >>conftest.$ac_ext <<_ACEOF
15416 /* end confdefs.h. */
15418 /* Override any gcc2 internal prototype to avoid an error. */
15419 #ifdef __cplusplus
15420 extern "C"
15421 #endif
15422 /* We use char because int might match the return type of a gcc2
15423 builtin and then its argument prototype would still apply. */
15424 char inet_aton ();
15426 main ()
15428 inet_aton ();
15430 return 0;
15432 _ACEOF
15433 rm -f conftest.$ac_objext conftest$ac_exeext
15434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15435 (eval $ac_link) 2>conftest.er1
15436 ac_status=$?
15437 grep -v '^ *+' conftest.er1 >conftest.err
15438 rm -f conftest.er1
15439 cat conftest.err >&5
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); } &&
15442 { ac_try='test -z "$ac_c_werror_flag"
15443 || test ! -s conftest.err'
15444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15445 (eval $ac_try) 2>&5
15446 ac_status=$?
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); }; } &&
15449 { ac_try='test -s conftest$ac_exeext'
15450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15451 (eval $ac_try) 2>&5
15452 ac_status=$?
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); }; }; then
15455 ac_cv_lib_c_inet_aton=yes
15456 else
15457 echo "$as_me: failed program was:" >&5
15458 sed 's/^/| /' conftest.$ac_ext >&5
15460 ac_cv_lib_c_inet_aton=no
15462 rm -f conftest.err conftest.$ac_objext \
15463 conftest$ac_exeext conftest.$ac_ext
15464 LIBS=$ac_check_lib_save_LIBS
15466 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
15467 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
15468 if test $ac_cv_lib_c_inet_aton = yes; then
15469 $ac_cv_prog_TRUE
15470 else
15472 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
15473 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
15474 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
15475 echo $ECHO_N "(cached) $ECHO_C" >&6
15476 else
15477 ac_check_lib_save_LIBS=$LIBS
15478 LIBS="-lresolv $LIBS"
15479 cat >conftest.$ac_ext <<_ACEOF
15480 /* confdefs.h. */
15481 _ACEOF
15482 cat confdefs.h >>conftest.$ac_ext
15483 cat >>conftest.$ac_ext <<_ACEOF
15484 /* end confdefs.h. */
15486 /* Override any gcc2 internal prototype to avoid an error. */
15487 #ifdef __cplusplus
15488 extern "C"
15489 #endif
15490 /* We use char because int might match the return type of a gcc2
15491 builtin and then its argument prototype would still apply. */
15492 char inet_aton ();
15494 main ()
15496 inet_aton ();
15498 return 0;
15500 _ACEOF
15501 rm -f conftest.$ac_objext conftest$ac_exeext
15502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15503 (eval $ac_link) 2>conftest.er1
15504 ac_status=$?
15505 grep -v '^ *+' conftest.er1 >conftest.err
15506 rm -f conftest.er1
15507 cat conftest.err >&5
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); } &&
15510 { ac_try='test -z "$ac_c_werror_flag"
15511 || test ! -s conftest.err'
15512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15513 (eval $ac_try) 2>&5
15514 ac_status=$?
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); }; } &&
15517 { ac_try='test -s conftest$ac_exeext'
15518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15519 (eval $ac_try) 2>&5
15520 ac_status=$?
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); }; }; then
15523 ac_cv_lib_resolv_inet_aton=yes
15524 else
15525 echo "$as_me: failed program was:" >&5
15526 sed 's/^/| /' conftest.$ac_ext >&5
15528 ac_cv_lib_resolv_inet_aton=no
15530 rm -f conftest.err conftest.$ac_objext \
15531 conftest$ac_exeext conftest.$ac_ext
15532 LIBS=$ac_check_lib_save_LIBS
15534 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
15535 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
15536 if test $ac_cv_lib_resolv_inet_aton = yes; then
15537 cat >>confdefs.h <<_ACEOF
15538 #define HAVE_LIBRESOLV 1
15539 _ACEOF
15541 LIBS="-lresolv $LIBS"
15549 case $ac_sys_system/$ac_sys_release in
15550 Darwin/*)
15551 _CUR_CFLAGS="${CFLAGS}"
15552 _CUR_LDFLAGS="${LDFLAGS}"
15553 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
15554 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
15556 esac
15558 echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
15559 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6
15560 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
15561 echo $ECHO_N "(cached) $ECHO_C" >&6
15562 else
15563 ac_check_lib_save_LIBS=$LIBS
15564 LIBS="-lz $LIBS"
15565 cat >conftest.$ac_ext <<_ACEOF
15566 /* confdefs.h. */
15567 _ACEOF
15568 cat confdefs.h >>conftest.$ac_ext
15569 cat >>conftest.$ac_ext <<_ACEOF
15570 /* end confdefs.h. */
15572 /* Override any gcc2 internal prototype to avoid an error. */
15573 #ifdef __cplusplus
15574 extern "C"
15575 #endif
15576 /* We use char because int might match the return type of a gcc2
15577 builtin and then its argument prototype would still apply. */
15578 char inflateCopy ();
15580 main ()
15582 inflateCopy ();
15584 return 0;
15586 _ACEOF
15587 rm -f conftest.$ac_objext conftest$ac_exeext
15588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15589 (eval $ac_link) 2>conftest.er1
15590 ac_status=$?
15591 grep -v '^ *+' conftest.er1 >conftest.err
15592 rm -f conftest.er1
15593 cat conftest.err >&5
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); } &&
15596 { ac_try='test -z "$ac_c_werror_flag"
15597 || test ! -s conftest.err'
15598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15599 (eval $ac_try) 2>&5
15600 ac_status=$?
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); }; } &&
15603 { ac_try='test -s conftest$ac_exeext'
15604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15605 (eval $ac_try) 2>&5
15606 ac_status=$?
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); }; }; then
15609 ac_cv_lib_z_inflateCopy=yes
15610 else
15611 echo "$as_me: failed program was:" >&5
15612 sed 's/^/| /' conftest.$ac_ext >&5
15614 ac_cv_lib_z_inflateCopy=no
15616 rm -f conftest.err conftest.$ac_objext \
15617 conftest$ac_exeext conftest.$ac_ext
15618 LIBS=$ac_check_lib_save_LIBS
15620 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
15621 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6
15622 if test $ac_cv_lib_z_inflateCopy = yes; then
15624 cat >>confdefs.h <<\_ACEOF
15625 #define HAVE_ZLIB_COPY 1
15626 _ACEOF
15631 case $ac_sys_system/$ac_sys_release in
15632 Darwin/*)
15633 CFLAGS="${_CUR_CFLAGS}"
15634 LDFLAGS="${_CUR_LDFLAGS}"
15636 esac
15638 echo "$as_me:$LINENO: checking for hstrerror" >&5
15639 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
15640 cat >conftest.$ac_ext <<_ACEOF
15641 /* confdefs.h. */
15642 _ACEOF
15643 cat confdefs.h >>conftest.$ac_ext
15644 cat >>conftest.$ac_ext <<_ACEOF
15645 /* end confdefs.h. */
15647 #include "confdefs.h"
15648 #include <netdb.h>
15651 main ()
15653 void* p = hstrerror; hstrerror(0)
15655 return 0;
15657 _ACEOF
15658 rm -f conftest.$ac_objext conftest$ac_exeext
15659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15660 (eval $ac_link) 2>conftest.er1
15661 ac_status=$?
15662 grep -v '^ *+' conftest.er1 >conftest.err
15663 rm -f conftest.er1
15664 cat conftest.err >&5
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); } &&
15667 { ac_try='test -z "$ac_c_werror_flag"
15668 || test ! -s conftest.err'
15669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15670 (eval $ac_try) 2>&5
15671 ac_status=$?
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); }; } &&
15674 { ac_try='test -s conftest$ac_exeext'
15675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15676 (eval $ac_try) 2>&5
15677 ac_status=$?
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); }; }; then
15681 cat >>confdefs.h <<\_ACEOF
15682 #define HAVE_HSTRERROR 1
15683 _ACEOF
15685 echo "$as_me:$LINENO: result: yes" >&5
15686 echo "${ECHO_T}yes" >&6
15687 else
15688 echo "$as_me: failed program was:" >&5
15689 sed 's/^/| /' conftest.$ac_ext >&5
15691 echo "$as_me:$LINENO: result: no" >&5
15692 echo "${ECHO_T}no" >&6
15695 rm -f conftest.err conftest.$ac_objext \
15696 conftest$ac_exeext conftest.$ac_ext
15698 echo "$as_me:$LINENO: checking for inet_aton" >&5
15699 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
15700 cat >conftest.$ac_ext <<_ACEOF
15701 /* confdefs.h. */
15702 _ACEOF
15703 cat confdefs.h >>conftest.$ac_ext
15704 cat >>conftest.$ac_ext <<_ACEOF
15705 /* end confdefs.h. */
15707 #include "confdefs.h"
15708 #include <sys/types.h>
15709 #include <sys/socket.h>
15710 #include <netinet/in.h>
15711 #include <arpa/inet.h>
15714 main ()
15716 void* p = inet_aton;inet_aton(0,0)
15718 return 0;
15720 _ACEOF
15721 rm -f conftest.$ac_objext conftest$ac_exeext
15722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15723 (eval $ac_link) 2>conftest.er1
15724 ac_status=$?
15725 grep -v '^ *+' conftest.er1 >conftest.err
15726 rm -f conftest.er1
15727 cat conftest.err >&5
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); } &&
15730 { ac_try='test -z "$ac_c_werror_flag"
15731 || test ! -s conftest.err'
15732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15733 (eval $ac_try) 2>&5
15734 ac_status=$?
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); }; } &&
15737 { ac_try='test -s conftest$ac_exeext'
15738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15739 (eval $ac_try) 2>&5
15740 ac_status=$?
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); }; }; then
15744 cat >>confdefs.h <<\_ACEOF
15745 #define HAVE_INET_ATON 1
15746 _ACEOF
15748 echo "$as_me:$LINENO: result: yes" >&5
15749 echo "${ECHO_T}yes" >&6
15750 else
15751 echo "$as_me: failed program was:" >&5
15752 sed 's/^/| /' conftest.$ac_ext >&5
15754 echo "$as_me:$LINENO: result: no" >&5
15755 echo "${ECHO_T}no" >&6
15758 rm -f conftest.err conftest.$ac_objext \
15759 conftest$ac_exeext conftest.$ac_ext
15761 echo "$as_me:$LINENO: checking for inet_pton" >&5
15762 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
15763 cat >conftest.$ac_ext <<_ACEOF
15764 /* confdefs.h. */
15765 _ACEOF
15766 cat confdefs.h >>conftest.$ac_ext
15767 cat >>conftest.$ac_ext <<_ACEOF
15768 /* end confdefs.h. */
15770 #include "confdefs.h"
15771 #include <sys/types.h>
15772 #include <sys/socket.h>
15773 #include <netinet/in.h>
15774 #include <arpa/inet.h>
15777 main ()
15779 void* p = inet_pton
15781 return 0;
15783 _ACEOF
15784 rm -f conftest.$ac_objext
15785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15786 (eval $ac_compile) 2>conftest.er1
15787 ac_status=$?
15788 grep -v '^ *+' conftest.er1 >conftest.err
15789 rm -f conftest.er1
15790 cat conftest.err >&5
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); } &&
15793 { ac_try='test -z "$ac_c_werror_flag"
15794 || test ! -s conftest.err'
15795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15796 (eval $ac_try) 2>&5
15797 ac_status=$?
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); }; } &&
15800 { ac_try='test -s conftest.$ac_objext'
15801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15802 (eval $ac_try) 2>&5
15803 ac_status=$?
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); }; }; then
15807 cat >>confdefs.h <<\_ACEOF
15808 #define HAVE_INET_PTON 1
15809 _ACEOF
15811 echo "$as_me:$LINENO: result: yes" >&5
15812 echo "${ECHO_T}yes" >&6
15813 else
15814 echo "$as_me: failed program was:" >&5
15815 sed 's/^/| /' conftest.$ac_ext >&5
15817 echo "$as_me:$LINENO: result: no" >&5
15818 echo "${ECHO_T}no" >&6
15821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15823 # On some systems, setgroups is in unistd.h, on others, in grp.h
15824 echo "$as_me:$LINENO: checking for setgroups" >&5
15825 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
15826 cat >conftest.$ac_ext <<_ACEOF
15827 /* confdefs.h. */
15828 _ACEOF
15829 cat confdefs.h >>conftest.$ac_ext
15830 cat >>conftest.$ac_ext <<_ACEOF
15831 /* end confdefs.h. */
15833 #include "confdefs.h"
15834 #include <unistd.h>
15835 #ifdef HAVE_GRP_H
15836 #include <grp.h>
15837 #endif
15840 main ()
15842 void* p = setgroups
15844 return 0;
15846 _ACEOF
15847 rm -f conftest.$ac_objext
15848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15849 (eval $ac_compile) 2>conftest.er1
15850 ac_status=$?
15851 grep -v '^ *+' conftest.er1 >conftest.err
15852 rm -f conftest.er1
15853 cat conftest.err >&5
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); } &&
15856 { ac_try='test -z "$ac_c_werror_flag"
15857 || test ! -s conftest.err'
15858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15859 (eval $ac_try) 2>&5
15860 ac_status=$?
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); }; } &&
15863 { ac_try='test -s conftest.$ac_objext'
15864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15865 (eval $ac_try) 2>&5
15866 ac_status=$?
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); }; }; then
15870 cat >>confdefs.h <<\_ACEOF
15871 #define HAVE_SETGROUPS 1
15872 _ACEOF
15874 echo "$as_me:$LINENO: result: yes" >&5
15875 echo "${ECHO_T}yes" >&6
15876 else
15877 echo "$as_me: failed program was:" >&5
15878 sed 's/^/| /' conftest.$ac_ext >&5
15880 echo "$as_me:$LINENO: result: no" >&5
15881 echo "${ECHO_T}no" >&6
15884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15886 # check for openpty and forkpty
15889 for ac_func in openpty
15891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15892 echo "$as_me:$LINENO: checking for $ac_func" >&5
15893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15894 if eval "test \"\${$as_ac_var+set}\" = set"; then
15895 echo $ECHO_N "(cached) $ECHO_C" >&6
15896 else
15897 cat >conftest.$ac_ext <<_ACEOF
15898 /* confdefs.h. */
15899 _ACEOF
15900 cat confdefs.h >>conftest.$ac_ext
15901 cat >>conftest.$ac_ext <<_ACEOF
15902 /* end confdefs.h. */
15903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15905 #define $ac_func innocuous_$ac_func
15907 /* System header to define __stub macros and hopefully few prototypes,
15908 which can conflict with char $ac_func (); below.
15909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15910 <limits.h> exists even on freestanding compilers. */
15912 #ifdef __STDC__
15913 # include <limits.h>
15914 #else
15915 # include <assert.h>
15916 #endif
15918 #undef $ac_func
15920 /* Override any gcc2 internal prototype to avoid an error. */
15921 #ifdef __cplusplus
15922 extern "C"
15924 #endif
15925 /* We use char because int might match the return type of a gcc2
15926 builtin and then its argument prototype would still apply. */
15927 char $ac_func ();
15928 /* The GNU C library defines this for functions which it implements
15929 to always fail with ENOSYS. Some functions are actually named
15930 something starting with __ and the normal name is an alias. */
15931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15932 choke me
15933 #else
15934 char (*f) () = $ac_func;
15935 #endif
15936 #ifdef __cplusplus
15938 #endif
15941 main ()
15943 return f != $ac_func;
15945 return 0;
15947 _ACEOF
15948 rm -f conftest.$ac_objext conftest$ac_exeext
15949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15950 (eval $ac_link) 2>conftest.er1
15951 ac_status=$?
15952 grep -v '^ *+' conftest.er1 >conftest.err
15953 rm -f conftest.er1
15954 cat conftest.err >&5
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); } &&
15957 { ac_try='test -z "$ac_c_werror_flag"
15958 || test ! -s conftest.err'
15959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15960 (eval $ac_try) 2>&5
15961 ac_status=$?
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); }; } &&
15964 { ac_try='test -s conftest$ac_exeext'
15965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15966 (eval $ac_try) 2>&5
15967 ac_status=$?
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); }; }; then
15970 eval "$as_ac_var=yes"
15971 else
15972 echo "$as_me: failed program was:" >&5
15973 sed 's/^/| /' conftest.$ac_ext >&5
15975 eval "$as_ac_var=no"
15977 rm -f conftest.err conftest.$ac_objext \
15978 conftest$ac_exeext conftest.$ac_ext
15980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15981 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15982 if test `eval echo '${'$as_ac_var'}'` = yes; then
15983 cat >>confdefs.h <<_ACEOF
15984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15985 _ACEOF
15987 else
15988 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15989 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15990 if test "${ac_cv_lib_util_openpty+set}" = set; then
15991 echo $ECHO_N "(cached) $ECHO_C" >&6
15992 else
15993 ac_check_lib_save_LIBS=$LIBS
15994 LIBS="-lutil $LIBS"
15995 cat >conftest.$ac_ext <<_ACEOF
15996 /* confdefs.h. */
15997 _ACEOF
15998 cat confdefs.h >>conftest.$ac_ext
15999 cat >>conftest.$ac_ext <<_ACEOF
16000 /* end confdefs.h. */
16002 /* Override any gcc2 internal prototype to avoid an error. */
16003 #ifdef __cplusplus
16004 extern "C"
16005 #endif
16006 /* We use char because int might match the return type of a gcc2
16007 builtin and then its argument prototype would still apply. */
16008 char openpty ();
16010 main ()
16012 openpty ();
16014 return 0;
16016 _ACEOF
16017 rm -f conftest.$ac_objext conftest$ac_exeext
16018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16019 (eval $ac_link) 2>conftest.er1
16020 ac_status=$?
16021 grep -v '^ *+' conftest.er1 >conftest.err
16022 rm -f conftest.er1
16023 cat conftest.err >&5
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); } &&
16026 { ac_try='test -z "$ac_c_werror_flag"
16027 || test ! -s conftest.err'
16028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16029 (eval $ac_try) 2>&5
16030 ac_status=$?
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); }; } &&
16033 { ac_try='test -s conftest$ac_exeext'
16034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16035 (eval $ac_try) 2>&5
16036 ac_status=$?
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); }; }; then
16039 ac_cv_lib_util_openpty=yes
16040 else
16041 echo "$as_me: failed program was:" >&5
16042 sed 's/^/| /' conftest.$ac_ext >&5
16044 ac_cv_lib_util_openpty=no
16046 rm -f conftest.err conftest.$ac_objext \
16047 conftest$ac_exeext conftest.$ac_ext
16048 LIBS=$ac_check_lib_save_LIBS
16050 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
16051 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
16052 if test $ac_cv_lib_util_openpty = yes; then
16053 cat >>confdefs.h <<\_ACEOF
16054 #define HAVE_OPENPTY 1
16055 _ACEOF
16056 LIBS="$LIBS -lutil"
16057 else
16058 echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
16059 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6
16060 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
16061 echo $ECHO_N "(cached) $ECHO_C" >&6
16062 else
16063 ac_check_lib_save_LIBS=$LIBS
16064 LIBS="-lbsd $LIBS"
16065 cat >conftest.$ac_ext <<_ACEOF
16066 /* confdefs.h. */
16067 _ACEOF
16068 cat confdefs.h >>conftest.$ac_ext
16069 cat >>conftest.$ac_ext <<_ACEOF
16070 /* end confdefs.h. */
16072 /* Override any gcc2 internal prototype to avoid an error. */
16073 #ifdef __cplusplus
16074 extern "C"
16075 #endif
16076 /* We use char because int might match the return type of a gcc2
16077 builtin and then its argument prototype would still apply. */
16078 char openpty ();
16080 main ()
16082 openpty ();
16084 return 0;
16086 _ACEOF
16087 rm -f conftest.$ac_objext conftest$ac_exeext
16088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16089 (eval $ac_link) 2>conftest.er1
16090 ac_status=$?
16091 grep -v '^ *+' conftest.er1 >conftest.err
16092 rm -f conftest.er1
16093 cat conftest.err >&5
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); } &&
16096 { ac_try='test -z "$ac_c_werror_flag"
16097 || test ! -s conftest.err'
16098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099 (eval $ac_try) 2>&5
16100 ac_status=$?
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); }; } &&
16103 { ac_try='test -s conftest$ac_exeext'
16104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105 (eval $ac_try) 2>&5
16106 ac_status=$?
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); }; }; then
16109 ac_cv_lib_bsd_openpty=yes
16110 else
16111 echo "$as_me: failed program was:" >&5
16112 sed 's/^/| /' conftest.$ac_ext >&5
16114 ac_cv_lib_bsd_openpty=no
16116 rm -f conftest.err conftest.$ac_objext \
16117 conftest$ac_exeext conftest.$ac_ext
16118 LIBS=$ac_check_lib_save_LIBS
16120 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
16121 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6
16122 if test $ac_cv_lib_bsd_openpty = yes; then
16123 cat >>confdefs.h <<\_ACEOF
16124 #define HAVE_OPENPTY 1
16125 _ACEOF
16126 LIBS="$LIBS -lbsd"
16134 done
16137 for ac_func in forkpty
16139 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16140 echo "$as_me:$LINENO: checking for $ac_func" >&5
16141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16142 if eval "test \"\${$as_ac_var+set}\" = set"; then
16143 echo $ECHO_N "(cached) $ECHO_C" >&6
16144 else
16145 cat >conftest.$ac_ext <<_ACEOF
16146 /* confdefs.h. */
16147 _ACEOF
16148 cat confdefs.h >>conftest.$ac_ext
16149 cat >>conftest.$ac_ext <<_ACEOF
16150 /* end confdefs.h. */
16151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16153 #define $ac_func innocuous_$ac_func
16155 /* System header to define __stub macros and hopefully few prototypes,
16156 which can conflict with char $ac_func (); below.
16157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16158 <limits.h> exists even on freestanding compilers. */
16160 #ifdef __STDC__
16161 # include <limits.h>
16162 #else
16163 # include <assert.h>
16164 #endif
16166 #undef $ac_func
16168 /* Override any gcc2 internal prototype to avoid an error. */
16169 #ifdef __cplusplus
16170 extern "C"
16172 #endif
16173 /* We use char because int might match the return type of a gcc2
16174 builtin and then its argument prototype would still apply. */
16175 char $ac_func ();
16176 /* The GNU C library defines this for functions which it implements
16177 to always fail with ENOSYS. Some functions are actually named
16178 something starting with __ and the normal name is an alias. */
16179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16180 choke me
16181 #else
16182 char (*f) () = $ac_func;
16183 #endif
16184 #ifdef __cplusplus
16186 #endif
16189 main ()
16191 return f != $ac_func;
16193 return 0;
16195 _ACEOF
16196 rm -f conftest.$ac_objext conftest$ac_exeext
16197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16198 (eval $ac_link) 2>conftest.er1
16199 ac_status=$?
16200 grep -v '^ *+' conftest.er1 >conftest.err
16201 rm -f conftest.er1
16202 cat conftest.err >&5
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); } &&
16205 { ac_try='test -z "$ac_c_werror_flag"
16206 || test ! -s conftest.err'
16207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16208 (eval $ac_try) 2>&5
16209 ac_status=$?
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); }; } &&
16212 { ac_try='test -s conftest$ac_exeext'
16213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16214 (eval $ac_try) 2>&5
16215 ac_status=$?
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); }; }; then
16218 eval "$as_ac_var=yes"
16219 else
16220 echo "$as_me: failed program was:" >&5
16221 sed 's/^/| /' conftest.$ac_ext >&5
16223 eval "$as_ac_var=no"
16225 rm -f conftest.err conftest.$ac_objext \
16226 conftest$ac_exeext conftest.$ac_ext
16228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16229 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16230 if test `eval echo '${'$as_ac_var'}'` = yes; then
16231 cat >>confdefs.h <<_ACEOF
16232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16233 _ACEOF
16235 else
16236 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
16237 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
16238 if test "${ac_cv_lib_util_forkpty+set}" = set; then
16239 echo $ECHO_N "(cached) $ECHO_C" >&6
16240 else
16241 ac_check_lib_save_LIBS=$LIBS
16242 LIBS="-lutil $LIBS"
16243 cat >conftest.$ac_ext <<_ACEOF
16244 /* confdefs.h. */
16245 _ACEOF
16246 cat confdefs.h >>conftest.$ac_ext
16247 cat >>conftest.$ac_ext <<_ACEOF
16248 /* end confdefs.h. */
16250 /* Override any gcc2 internal prototype to avoid an error. */
16251 #ifdef __cplusplus
16252 extern "C"
16253 #endif
16254 /* We use char because int might match the return type of a gcc2
16255 builtin and then its argument prototype would still apply. */
16256 char forkpty ();
16258 main ()
16260 forkpty ();
16262 return 0;
16264 _ACEOF
16265 rm -f conftest.$ac_objext conftest$ac_exeext
16266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16267 (eval $ac_link) 2>conftest.er1
16268 ac_status=$?
16269 grep -v '^ *+' conftest.er1 >conftest.err
16270 rm -f conftest.er1
16271 cat conftest.err >&5
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); } &&
16274 { ac_try='test -z "$ac_c_werror_flag"
16275 || test ! -s conftest.err'
16276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16277 (eval $ac_try) 2>&5
16278 ac_status=$?
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); }; } &&
16281 { ac_try='test -s conftest$ac_exeext'
16282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16283 (eval $ac_try) 2>&5
16284 ac_status=$?
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); }; }; then
16287 ac_cv_lib_util_forkpty=yes
16288 else
16289 echo "$as_me: failed program was:" >&5
16290 sed 's/^/| /' conftest.$ac_ext >&5
16292 ac_cv_lib_util_forkpty=no
16294 rm -f conftest.err conftest.$ac_objext \
16295 conftest$ac_exeext conftest.$ac_ext
16296 LIBS=$ac_check_lib_save_LIBS
16298 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
16299 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
16300 if test $ac_cv_lib_util_forkpty = yes; then
16301 cat >>confdefs.h <<\_ACEOF
16302 #define HAVE_FORKPTY 1
16303 _ACEOF
16304 LIBS="$LIBS -lutil"
16305 else
16306 echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
16307 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6
16308 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
16309 echo $ECHO_N "(cached) $ECHO_C" >&6
16310 else
16311 ac_check_lib_save_LIBS=$LIBS
16312 LIBS="-lbsd $LIBS"
16313 cat >conftest.$ac_ext <<_ACEOF
16314 /* confdefs.h. */
16315 _ACEOF
16316 cat confdefs.h >>conftest.$ac_ext
16317 cat >>conftest.$ac_ext <<_ACEOF
16318 /* end confdefs.h. */
16320 /* Override any gcc2 internal prototype to avoid an error. */
16321 #ifdef __cplusplus
16322 extern "C"
16323 #endif
16324 /* We use char because int might match the return type of a gcc2
16325 builtin and then its argument prototype would still apply. */
16326 char forkpty ();
16328 main ()
16330 forkpty ();
16332 return 0;
16334 _ACEOF
16335 rm -f conftest.$ac_objext conftest$ac_exeext
16336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16337 (eval $ac_link) 2>conftest.er1
16338 ac_status=$?
16339 grep -v '^ *+' conftest.er1 >conftest.err
16340 rm -f conftest.er1
16341 cat conftest.err >&5
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); } &&
16344 { ac_try='test -z "$ac_c_werror_flag"
16345 || test ! -s conftest.err'
16346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16347 (eval $ac_try) 2>&5
16348 ac_status=$?
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); }; } &&
16351 { ac_try='test -s conftest$ac_exeext'
16352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16353 (eval $ac_try) 2>&5
16354 ac_status=$?
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); }; }; then
16357 ac_cv_lib_bsd_forkpty=yes
16358 else
16359 echo "$as_me: failed program was:" >&5
16360 sed 's/^/| /' conftest.$ac_ext >&5
16362 ac_cv_lib_bsd_forkpty=no
16364 rm -f conftest.err conftest.$ac_objext \
16365 conftest$ac_exeext conftest.$ac_ext
16366 LIBS=$ac_check_lib_save_LIBS
16368 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
16369 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6
16370 if test $ac_cv_lib_bsd_forkpty = yes; then
16371 cat >>confdefs.h <<\_ACEOF
16372 #define HAVE_FORKPTY 1
16373 _ACEOF
16374 LIBS="$LIBS -lbsd"
16382 done
16385 # check for long file support functions
16392 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
16394 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16395 echo "$as_me:$LINENO: checking for $ac_func" >&5
16396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16397 if eval "test \"\${$as_ac_var+set}\" = set"; then
16398 echo $ECHO_N "(cached) $ECHO_C" >&6
16399 else
16400 cat >conftest.$ac_ext <<_ACEOF
16401 /* confdefs.h. */
16402 _ACEOF
16403 cat confdefs.h >>conftest.$ac_ext
16404 cat >>conftest.$ac_ext <<_ACEOF
16405 /* end confdefs.h. */
16406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16408 #define $ac_func innocuous_$ac_func
16410 /* System header to define __stub macros and hopefully few prototypes,
16411 which can conflict with char $ac_func (); below.
16412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16413 <limits.h> exists even on freestanding compilers. */
16415 #ifdef __STDC__
16416 # include <limits.h>
16417 #else
16418 # include <assert.h>
16419 #endif
16421 #undef $ac_func
16423 /* Override any gcc2 internal prototype to avoid an error. */
16424 #ifdef __cplusplus
16425 extern "C"
16427 #endif
16428 /* We use char because int might match the return type of a gcc2
16429 builtin and then its argument prototype would still apply. */
16430 char $ac_func ();
16431 /* The GNU C library defines this for functions which it implements
16432 to always fail with ENOSYS. Some functions are actually named
16433 something starting with __ and the normal name is an alias. */
16434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16435 choke me
16436 #else
16437 char (*f) () = $ac_func;
16438 #endif
16439 #ifdef __cplusplus
16441 #endif
16444 main ()
16446 return f != $ac_func;
16448 return 0;
16450 _ACEOF
16451 rm -f conftest.$ac_objext conftest$ac_exeext
16452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16453 (eval $ac_link) 2>conftest.er1
16454 ac_status=$?
16455 grep -v '^ *+' conftest.er1 >conftest.err
16456 rm -f conftest.er1
16457 cat conftest.err >&5
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); } &&
16460 { ac_try='test -z "$ac_c_werror_flag"
16461 || test ! -s conftest.err'
16462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16463 (eval $ac_try) 2>&5
16464 ac_status=$?
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); }; } &&
16467 { ac_try='test -s conftest$ac_exeext'
16468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16469 (eval $ac_try) 2>&5
16470 ac_status=$?
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); }; }; then
16473 eval "$as_ac_var=yes"
16474 else
16475 echo "$as_me: failed program was:" >&5
16476 sed 's/^/| /' conftest.$ac_ext >&5
16478 eval "$as_ac_var=no"
16480 rm -f conftest.err conftest.$ac_objext \
16481 conftest$ac_exeext conftest.$ac_ext
16483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16484 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16485 if test `eval echo '${'$as_ac_var'}'` = yes; then
16486 cat >>confdefs.h <<_ACEOF
16487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16488 _ACEOF
16491 done
16499 for ac_func in dup2 getcwd strdup strerror memmove
16501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16502 echo "$as_me:$LINENO: checking for $ac_func" >&5
16503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16504 if eval "test \"\${$as_ac_var+set}\" = set"; then
16505 echo $ECHO_N "(cached) $ECHO_C" >&6
16506 else
16507 cat >conftest.$ac_ext <<_ACEOF
16508 /* confdefs.h. */
16509 _ACEOF
16510 cat confdefs.h >>conftest.$ac_ext
16511 cat >>conftest.$ac_ext <<_ACEOF
16512 /* end confdefs.h. */
16513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16515 #define $ac_func innocuous_$ac_func
16517 /* System header to define __stub macros and hopefully few prototypes,
16518 which can conflict with char $ac_func (); below.
16519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16520 <limits.h> exists even on freestanding compilers. */
16522 #ifdef __STDC__
16523 # include <limits.h>
16524 #else
16525 # include <assert.h>
16526 #endif
16528 #undef $ac_func
16530 /* Override any gcc2 internal prototype to avoid an error. */
16531 #ifdef __cplusplus
16532 extern "C"
16534 #endif
16535 /* We use char because int might match the return type of a gcc2
16536 builtin and then its argument prototype would still apply. */
16537 char $ac_func ();
16538 /* The GNU C library defines this for functions which it implements
16539 to always fail with ENOSYS. Some functions are actually named
16540 something starting with __ and the normal name is an alias. */
16541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16542 choke me
16543 #else
16544 char (*f) () = $ac_func;
16545 #endif
16546 #ifdef __cplusplus
16548 #endif
16551 main ()
16553 return f != $ac_func;
16555 return 0;
16557 _ACEOF
16558 rm -f conftest.$ac_objext conftest$ac_exeext
16559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16560 (eval $ac_link) 2>conftest.er1
16561 ac_status=$?
16562 grep -v '^ *+' conftest.er1 >conftest.err
16563 rm -f conftest.er1
16564 cat conftest.err >&5
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); } &&
16567 { ac_try='test -z "$ac_c_werror_flag"
16568 || test ! -s conftest.err'
16569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16570 (eval $ac_try) 2>&5
16571 ac_status=$?
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); }; } &&
16574 { ac_try='test -s conftest$ac_exeext'
16575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16576 (eval $ac_try) 2>&5
16577 ac_status=$?
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); }; }; then
16580 eval "$as_ac_var=yes"
16581 else
16582 echo "$as_me: failed program was:" >&5
16583 sed 's/^/| /' conftest.$ac_ext >&5
16585 eval "$as_ac_var=no"
16587 rm -f conftest.err conftest.$ac_objext \
16588 conftest$ac_exeext conftest.$ac_ext
16590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16591 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16592 if test `eval echo '${'$as_ac_var'}'` = yes; then
16593 cat >>confdefs.h <<_ACEOF
16594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16595 _ACEOF
16597 else
16598 case $LIBOBJS in
16599 "$ac_func.$ac_objext" | \
16600 *" $ac_func.$ac_objext" | \
16601 "$ac_func.$ac_objext "* | \
16602 *" $ac_func.$ac_objext "* ) ;;
16603 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
16604 esac
16607 done
16611 for ac_func in getpgrp
16613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16614 echo "$as_me:$LINENO: checking for $ac_func" >&5
16615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16616 if eval "test \"\${$as_ac_var+set}\" = set"; then
16617 echo $ECHO_N "(cached) $ECHO_C" >&6
16618 else
16619 cat >conftest.$ac_ext <<_ACEOF
16620 /* confdefs.h. */
16621 _ACEOF
16622 cat confdefs.h >>conftest.$ac_ext
16623 cat >>conftest.$ac_ext <<_ACEOF
16624 /* end confdefs.h. */
16625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16627 #define $ac_func innocuous_$ac_func
16629 /* System header to define __stub macros and hopefully few prototypes,
16630 which can conflict with char $ac_func (); below.
16631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16632 <limits.h> exists even on freestanding compilers. */
16634 #ifdef __STDC__
16635 # include <limits.h>
16636 #else
16637 # include <assert.h>
16638 #endif
16640 #undef $ac_func
16642 /* Override any gcc2 internal prototype to avoid an error. */
16643 #ifdef __cplusplus
16644 extern "C"
16646 #endif
16647 /* We use char because int might match the return type of a gcc2
16648 builtin and then its argument prototype would still apply. */
16649 char $ac_func ();
16650 /* The GNU C library defines this for functions which it implements
16651 to always fail with ENOSYS. Some functions are actually named
16652 something starting with __ and the normal name is an alias. */
16653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16654 choke me
16655 #else
16656 char (*f) () = $ac_func;
16657 #endif
16658 #ifdef __cplusplus
16660 #endif
16663 main ()
16665 return f != $ac_func;
16667 return 0;
16669 _ACEOF
16670 rm -f conftest.$ac_objext conftest$ac_exeext
16671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16672 (eval $ac_link) 2>conftest.er1
16673 ac_status=$?
16674 grep -v '^ *+' conftest.er1 >conftest.err
16675 rm -f conftest.er1
16676 cat conftest.err >&5
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); } &&
16679 { ac_try='test -z "$ac_c_werror_flag"
16680 || test ! -s conftest.err'
16681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16682 (eval $ac_try) 2>&5
16683 ac_status=$?
16684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685 (exit $ac_status); }; } &&
16686 { ac_try='test -s conftest$ac_exeext'
16687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16688 (eval $ac_try) 2>&5
16689 ac_status=$?
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); }; }; then
16692 eval "$as_ac_var=yes"
16693 else
16694 echo "$as_me: failed program was:" >&5
16695 sed 's/^/| /' conftest.$ac_ext >&5
16697 eval "$as_ac_var=no"
16699 rm -f conftest.err conftest.$ac_objext \
16700 conftest$ac_exeext conftest.$ac_ext
16702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16703 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16704 if test `eval echo '${'$as_ac_var'}'` = yes; then
16705 cat >>confdefs.h <<_ACEOF
16706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16707 _ACEOF
16708 cat >conftest.$ac_ext <<_ACEOF
16709 /* confdefs.h. */
16710 _ACEOF
16711 cat confdefs.h >>conftest.$ac_ext
16712 cat >>conftest.$ac_ext <<_ACEOF
16713 /* end confdefs.h. */
16714 #include <unistd.h>
16716 main ()
16718 getpgrp(0);
16720 return 0;
16722 _ACEOF
16723 rm -f conftest.$ac_objext
16724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16725 (eval $ac_compile) 2>conftest.er1
16726 ac_status=$?
16727 grep -v '^ *+' conftest.er1 >conftest.err
16728 rm -f conftest.er1
16729 cat conftest.err >&5
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); } &&
16732 { ac_try='test -z "$ac_c_werror_flag"
16733 || test ! -s conftest.err'
16734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16735 (eval $ac_try) 2>&5
16736 ac_status=$?
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); }; } &&
16739 { ac_try='test -s conftest.$ac_objext'
16740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16741 (eval $ac_try) 2>&5
16742 ac_status=$?
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); }; }; then
16746 cat >>confdefs.h <<\_ACEOF
16747 #define GETPGRP_HAVE_ARG 1
16748 _ACEOF
16751 else
16752 echo "$as_me: failed program was:" >&5
16753 sed 's/^/| /' conftest.$ac_ext >&5
16756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16759 done
16762 for ac_func in setpgrp
16764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16765 echo "$as_me:$LINENO: checking for $ac_func" >&5
16766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16767 if eval "test \"\${$as_ac_var+set}\" = set"; then
16768 echo $ECHO_N "(cached) $ECHO_C" >&6
16769 else
16770 cat >conftest.$ac_ext <<_ACEOF
16771 /* confdefs.h. */
16772 _ACEOF
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h. */
16776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16778 #define $ac_func innocuous_$ac_func
16780 /* System header to define __stub macros and hopefully few prototypes,
16781 which can conflict with char $ac_func (); below.
16782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16783 <limits.h> exists even on freestanding compilers. */
16785 #ifdef __STDC__
16786 # include <limits.h>
16787 #else
16788 # include <assert.h>
16789 #endif
16791 #undef $ac_func
16793 /* Override any gcc2 internal prototype to avoid an error. */
16794 #ifdef __cplusplus
16795 extern "C"
16797 #endif
16798 /* We use char because int might match the return type of a gcc2
16799 builtin and then its argument prototype would still apply. */
16800 char $ac_func ();
16801 /* The GNU C library defines this for functions which it implements
16802 to always fail with ENOSYS. Some functions are actually named
16803 something starting with __ and the normal name is an alias. */
16804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16805 choke me
16806 #else
16807 char (*f) () = $ac_func;
16808 #endif
16809 #ifdef __cplusplus
16811 #endif
16814 main ()
16816 return f != $ac_func;
16818 return 0;
16820 _ACEOF
16821 rm -f conftest.$ac_objext conftest$ac_exeext
16822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16823 (eval $ac_link) 2>conftest.er1
16824 ac_status=$?
16825 grep -v '^ *+' conftest.er1 >conftest.err
16826 rm -f conftest.er1
16827 cat conftest.err >&5
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); } &&
16830 { ac_try='test -z "$ac_c_werror_flag"
16831 || test ! -s conftest.err'
16832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16833 (eval $ac_try) 2>&5
16834 ac_status=$?
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; } &&
16837 { ac_try='test -s conftest$ac_exeext'
16838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16839 (eval $ac_try) 2>&5
16840 ac_status=$?
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; }; then
16843 eval "$as_ac_var=yes"
16844 else
16845 echo "$as_me: failed program was:" >&5
16846 sed 's/^/| /' conftest.$ac_ext >&5
16848 eval "$as_ac_var=no"
16850 rm -f conftest.err conftest.$ac_objext \
16851 conftest$ac_exeext conftest.$ac_ext
16853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16854 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16855 if test `eval echo '${'$as_ac_var'}'` = yes; then
16856 cat >>confdefs.h <<_ACEOF
16857 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16858 _ACEOF
16859 cat >conftest.$ac_ext <<_ACEOF
16860 /* confdefs.h. */
16861 _ACEOF
16862 cat confdefs.h >>conftest.$ac_ext
16863 cat >>conftest.$ac_ext <<_ACEOF
16864 /* end confdefs.h. */
16865 #include <unistd.h>
16867 main ()
16869 setpgrp(0,0);
16871 return 0;
16873 _ACEOF
16874 rm -f conftest.$ac_objext
16875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16876 (eval $ac_compile) 2>conftest.er1
16877 ac_status=$?
16878 grep -v '^ *+' conftest.er1 >conftest.err
16879 rm -f conftest.er1
16880 cat conftest.err >&5
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); } &&
16883 { ac_try='test -z "$ac_c_werror_flag"
16884 || test ! -s conftest.err'
16885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16886 (eval $ac_try) 2>&5
16887 ac_status=$?
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); }; } &&
16890 { ac_try='test -s conftest.$ac_objext'
16891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16892 (eval $ac_try) 2>&5
16893 ac_status=$?
16894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); }; }; then
16897 cat >>confdefs.h <<\_ACEOF
16898 #define SETPGRP_HAVE_ARG 1
16899 _ACEOF
16902 else
16903 echo "$as_me: failed program was:" >&5
16904 sed 's/^/| /' conftest.$ac_ext >&5
16907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16910 done
16913 for ac_func in gettimeofday
16915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16916 echo "$as_me:$LINENO: checking for $ac_func" >&5
16917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16918 if eval "test \"\${$as_ac_var+set}\" = set"; then
16919 echo $ECHO_N "(cached) $ECHO_C" >&6
16920 else
16921 cat >conftest.$ac_ext <<_ACEOF
16922 /* confdefs.h. */
16923 _ACEOF
16924 cat confdefs.h >>conftest.$ac_ext
16925 cat >>conftest.$ac_ext <<_ACEOF
16926 /* end confdefs.h. */
16927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16929 #define $ac_func innocuous_$ac_func
16931 /* System header to define __stub macros and hopefully few prototypes,
16932 which can conflict with char $ac_func (); below.
16933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16934 <limits.h> exists even on freestanding compilers. */
16936 #ifdef __STDC__
16937 # include <limits.h>
16938 #else
16939 # include <assert.h>
16940 #endif
16942 #undef $ac_func
16944 /* Override any gcc2 internal prototype to avoid an error. */
16945 #ifdef __cplusplus
16946 extern "C"
16948 #endif
16949 /* We use char because int might match the return type of a gcc2
16950 builtin and then its argument prototype would still apply. */
16951 char $ac_func ();
16952 /* The GNU C library defines this for functions which it implements
16953 to always fail with ENOSYS. Some functions are actually named
16954 something starting with __ and the normal name is an alias. */
16955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16956 choke me
16957 #else
16958 char (*f) () = $ac_func;
16959 #endif
16960 #ifdef __cplusplus
16962 #endif
16965 main ()
16967 return f != $ac_func;
16969 return 0;
16971 _ACEOF
16972 rm -f conftest.$ac_objext conftest$ac_exeext
16973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16974 (eval $ac_link) 2>conftest.er1
16975 ac_status=$?
16976 grep -v '^ *+' conftest.er1 >conftest.err
16977 rm -f conftest.er1
16978 cat conftest.err >&5
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); } &&
16981 { ac_try='test -z "$ac_c_werror_flag"
16982 || test ! -s conftest.err'
16983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16984 (eval $ac_try) 2>&5
16985 ac_status=$?
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); }; } &&
16988 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16994 eval "$as_ac_var=yes"
16995 else
16996 echo "$as_me: failed program was:" >&5
16997 sed 's/^/| /' conftest.$ac_ext >&5
16999 eval "$as_ac_var=no"
17001 rm -f conftest.err conftest.$ac_objext \
17002 conftest$ac_exeext conftest.$ac_ext
17004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17005 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17006 if test `eval echo '${'$as_ac_var'}'` = yes; then
17007 cat >>confdefs.h <<_ACEOF
17008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17009 _ACEOF
17010 cat >conftest.$ac_ext <<_ACEOF
17011 /* confdefs.h. */
17012 _ACEOF
17013 cat confdefs.h >>conftest.$ac_ext
17014 cat >>conftest.$ac_ext <<_ACEOF
17015 /* end confdefs.h. */
17016 #include <sys/time.h>
17018 main ()
17020 gettimeofday((struct timeval*)0,(struct timezone*)0);
17022 return 0;
17024 _ACEOF
17025 rm -f conftest.$ac_objext
17026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17027 (eval $ac_compile) 2>conftest.er1
17028 ac_status=$?
17029 grep -v '^ *+' conftest.er1 >conftest.err
17030 rm -f conftest.er1
17031 cat conftest.err >&5
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); } &&
17034 { ac_try='test -z "$ac_c_werror_flag"
17035 || test ! -s conftest.err'
17036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17037 (eval $ac_try) 2>&5
17038 ac_status=$?
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); }; } &&
17041 { ac_try='test -s conftest.$ac_objext'
17042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17043 (eval $ac_try) 2>&5
17044 ac_status=$?
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); }; }; then
17048 else
17049 echo "$as_me: failed program was:" >&5
17050 sed 's/^/| /' conftest.$ac_ext >&5
17053 cat >>confdefs.h <<\_ACEOF
17054 #define GETTIMEOFDAY_NO_TZ 1
17055 _ACEOF
17059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17062 done
17065 echo "$as_me:$LINENO: checking for major" >&5
17066 echo $ECHO_N "checking for major... $ECHO_C" >&6
17067 cat >conftest.$ac_ext <<_ACEOF
17068 /* confdefs.h. */
17069 _ACEOF
17070 cat confdefs.h >>conftest.$ac_ext
17071 cat >>conftest.$ac_ext <<_ACEOF
17072 /* end confdefs.h. */
17074 #if defined(MAJOR_IN_MKDEV)
17075 #include <sys/mkdev.h>
17076 #elif defined(MAJOR_IN_SYSMACROS)
17077 #include <sys/sysmacros.h>
17078 #else
17079 #include <sys/types.h>
17080 #endif
17083 main ()
17086 makedev(major(0),minor(0));
17089 return 0;
17091 _ACEOF
17092 rm -f conftest.$ac_objext conftest$ac_exeext
17093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17094 (eval $ac_link) 2>conftest.er1
17095 ac_status=$?
17096 grep -v '^ *+' conftest.er1 >conftest.err
17097 rm -f conftest.er1
17098 cat conftest.err >&5
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); } &&
17101 { ac_try='test -z "$ac_c_werror_flag"
17102 || test ! -s conftest.err'
17103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17104 (eval $ac_try) 2>&5
17105 ac_status=$?
17106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107 (exit $ac_status); }; } &&
17108 { ac_try='test -s conftest$ac_exeext'
17109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17110 (eval $ac_try) 2>&5
17111 ac_status=$?
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); }; }; then
17116 cat >>confdefs.h <<\_ACEOF
17117 #define HAVE_DEVICE_MACROS 1
17118 _ACEOF
17120 echo "$as_me:$LINENO: result: yes" >&5
17121 echo "${ECHO_T}yes" >&6
17123 else
17124 echo "$as_me: failed program was:" >&5
17125 sed 's/^/| /' conftest.$ac_ext >&5
17128 echo "$as_me:$LINENO: result: no" >&5
17129 echo "${ECHO_T}no" >&6
17132 rm -f conftest.err conftest.$ac_objext \
17133 conftest$ac_exeext conftest.$ac_ext
17135 # On OSF/1 V5.1, getaddrinfo is available, but a define
17136 # for [no]getaddrinfo in netdb.h.
17137 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
17138 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
17139 cat >conftest.$ac_ext <<_ACEOF
17140 /* confdefs.h. */
17141 _ACEOF
17142 cat confdefs.h >>conftest.$ac_ext
17143 cat >>conftest.$ac_ext <<_ACEOF
17144 /* end confdefs.h. */
17146 #include <sys/types.h>
17147 #include <sys/socket.h>
17148 #include <netdb.h>
17149 #include <stdio.h>
17152 main ()
17155 getaddrinfo(NULL, NULL, NULL, NULL);
17158 return 0;
17160 _ACEOF
17161 rm -f conftest.$ac_objext conftest$ac_exeext
17162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17163 (eval $ac_link) 2>conftest.er1
17164 ac_status=$?
17165 grep -v '^ *+' conftest.er1 >conftest.err
17166 rm -f conftest.er1
17167 cat conftest.err >&5
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); } &&
17170 { ac_try='test -z "$ac_c_werror_flag"
17171 || test ! -s conftest.err'
17172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17173 (eval $ac_try) 2>&5
17174 ac_status=$?
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); }; } &&
17177 { ac_try='test -s conftest$ac_exeext'
17178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17179 (eval $ac_try) 2>&5
17180 ac_status=$?
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); }; }; then
17184 echo "$as_me:$LINENO: result: yes" >&5
17185 echo "${ECHO_T}yes" >&6
17186 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
17187 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
17188 if test "$cross_compiling" = yes; then
17189 echo "$as_me:$LINENO: result: buggy" >&5
17190 echo "${ECHO_T}buggy" >&6
17191 buggygetaddrinfo=yes
17192 else
17193 cat >conftest.$ac_ext <<_ACEOF
17194 /* confdefs.h. */
17195 _ACEOF
17196 cat confdefs.h >>conftest.$ac_ext
17197 cat >>conftest.$ac_ext <<_ACEOF
17198 /* end confdefs.h. */
17200 #include <sys/types.h>
17201 #include <netdb.h>
17202 #include <string.h>
17203 #include <sys/socket.h>
17204 #include <netinet/in.h>
17206 main()
17208 int passive, gaierr, inet4 = 0, inet6 = 0;
17209 struct addrinfo hints, *ai, *aitop;
17210 char straddr[INET6_ADDRSTRLEN], strport[16];
17212 for (passive = 0; passive <= 1; passive++) {
17213 memset(&hints, 0, sizeof(hints));
17214 hints.ai_family = AF_UNSPEC;
17215 hints.ai_flags = passive ? AI_PASSIVE : 0;
17216 hints.ai_socktype = SOCK_STREAM;
17217 hints.ai_protocol = IPPROTO_TCP;
17218 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
17219 (void)gai_strerror(gaierr);
17220 goto bad;
17222 for (ai = aitop; ai; ai = ai->ai_next) {
17223 if (ai->ai_addr == NULL ||
17224 ai->ai_addrlen == 0 ||
17225 getnameinfo(ai->ai_addr, ai->ai_addrlen,
17226 straddr, sizeof(straddr), strport, sizeof(strport),
17227 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
17228 goto bad;
17230 switch (ai->ai_family) {
17231 case AF_INET:
17232 if (strcmp(strport, "54321") != 0) {
17233 goto bad;
17235 if (passive) {
17236 if (strcmp(straddr, "0.0.0.0") != 0) {
17237 goto bad;
17239 } else {
17240 if (strcmp(straddr, "127.0.0.1") != 0) {
17241 goto bad;
17244 inet4++;
17245 break;
17246 case AF_INET6:
17247 if (strcmp(strport, "54321") != 0) {
17248 goto bad;
17250 if (passive) {
17251 if (strcmp(straddr, "::") != 0) {
17252 goto bad;
17254 } else {
17255 if (strcmp(straddr, "::1") != 0) {
17256 goto bad;
17259 inet6++;
17260 break;
17261 case AF_UNSPEC:
17262 goto bad;
17263 break;
17264 default:
17265 /* another family support? */
17266 break;
17271 if (!(inet4 == 0 || inet4 == 2))
17272 goto bad;
17273 if (!(inet6 == 0 || inet6 == 2))
17274 goto bad;
17276 if (aitop)
17277 freeaddrinfo(aitop);
17278 exit(0);
17280 bad:
17281 if (aitop)
17282 freeaddrinfo(aitop);
17283 exit(1);
17286 _ACEOF
17287 rm -f conftest$ac_exeext
17288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17289 (eval $ac_link) 2>&5
17290 ac_status=$?
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17294 (eval $ac_try) 2>&5
17295 ac_status=$?
17296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297 (exit $ac_status); }; }; then
17298 echo "$as_me:$LINENO: result: good" >&5
17299 echo "${ECHO_T}good" >&6
17300 buggygetaddrinfo=no
17301 else
17302 echo "$as_me: program exited with status $ac_status" >&5
17303 echo "$as_me: failed program was:" >&5
17304 sed 's/^/| /' conftest.$ac_ext >&5
17306 ( exit $ac_status )
17307 echo "$as_me:$LINENO: result: buggy" >&5
17308 echo "${ECHO_T}buggy" >&6
17309 buggygetaddrinfo=yes
17311 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17313 else
17314 echo "$as_me: failed program was:" >&5
17315 sed 's/^/| /' conftest.$ac_ext >&5
17318 echo "$as_me:$LINENO: result: no" >&5
17319 echo "${ECHO_T}no" >&6
17320 buggygetaddrinfo=yes
17323 rm -f conftest.err conftest.$ac_objext \
17324 conftest$ac_exeext conftest.$ac_ext
17326 if test "$buggygetaddrinfo" = "yes"; then
17327 if test "$ipv6" = "yes"; then
17328 echo 'Fatal: You must get working getaddrinfo() function.'
17329 echo ' or you can specify "--disable-ipv6"'.
17330 exit 1
17332 else
17334 cat >>confdefs.h <<\_ACEOF
17335 #define HAVE_GETADDRINFO 1
17336 _ACEOF
17340 for ac_func in getnameinfo
17342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17343 echo "$as_me:$LINENO: checking for $ac_func" >&5
17344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17345 if eval "test \"\${$as_ac_var+set}\" = set"; then
17346 echo $ECHO_N "(cached) $ECHO_C" >&6
17347 else
17348 cat >conftest.$ac_ext <<_ACEOF
17349 /* confdefs.h. */
17350 _ACEOF
17351 cat confdefs.h >>conftest.$ac_ext
17352 cat >>conftest.$ac_ext <<_ACEOF
17353 /* end confdefs.h. */
17354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17356 #define $ac_func innocuous_$ac_func
17358 /* System header to define __stub macros and hopefully few prototypes,
17359 which can conflict with char $ac_func (); below.
17360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17361 <limits.h> exists even on freestanding compilers. */
17363 #ifdef __STDC__
17364 # include <limits.h>
17365 #else
17366 # include <assert.h>
17367 #endif
17369 #undef $ac_func
17371 /* Override any gcc2 internal prototype to avoid an error. */
17372 #ifdef __cplusplus
17373 extern "C"
17375 #endif
17376 /* We use char because int might match the return type of a gcc2
17377 builtin and then its argument prototype would still apply. */
17378 char $ac_func ();
17379 /* The GNU C library defines this for functions which it implements
17380 to always fail with ENOSYS. Some functions are actually named
17381 something starting with __ and the normal name is an alias. */
17382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17383 choke me
17384 #else
17385 char (*f) () = $ac_func;
17386 #endif
17387 #ifdef __cplusplus
17389 #endif
17392 main ()
17394 return f != $ac_func;
17396 return 0;
17398 _ACEOF
17399 rm -f conftest.$ac_objext conftest$ac_exeext
17400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17401 (eval $ac_link) 2>conftest.er1
17402 ac_status=$?
17403 grep -v '^ *+' conftest.er1 >conftest.err
17404 rm -f conftest.er1
17405 cat conftest.err >&5
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); } &&
17408 { ac_try='test -z "$ac_c_werror_flag"
17409 || test ! -s conftest.err'
17410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17411 (eval $ac_try) 2>&5
17412 ac_status=$?
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); }; } &&
17415 { ac_try='test -s conftest$ac_exeext'
17416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17417 (eval $ac_try) 2>&5
17418 ac_status=$?
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); }; }; then
17421 eval "$as_ac_var=yes"
17422 else
17423 echo "$as_me: failed program was:" >&5
17424 sed 's/^/| /' conftest.$ac_ext >&5
17426 eval "$as_ac_var=no"
17428 rm -f conftest.err conftest.$ac_objext \
17429 conftest$ac_exeext conftest.$ac_ext
17431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17432 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17433 if test `eval echo '${'$as_ac_var'}'` = yes; then
17434 cat >>confdefs.h <<_ACEOF
17435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17436 _ACEOF
17439 done
17442 # checks for structures
17443 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
17444 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
17445 if test "${ac_cv_header_time+set}" = set; then
17446 echo $ECHO_N "(cached) $ECHO_C" >&6
17447 else
17448 cat >conftest.$ac_ext <<_ACEOF
17449 /* confdefs.h. */
17450 _ACEOF
17451 cat confdefs.h >>conftest.$ac_ext
17452 cat >>conftest.$ac_ext <<_ACEOF
17453 /* end confdefs.h. */
17454 #include <sys/types.h>
17455 #include <sys/time.h>
17456 #include <time.h>
17459 main ()
17461 if ((struct tm *) 0)
17462 return 0;
17464 return 0;
17466 _ACEOF
17467 rm -f conftest.$ac_objext
17468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17469 (eval $ac_compile) 2>conftest.er1
17470 ac_status=$?
17471 grep -v '^ *+' conftest.er1 >conftest.err
17472 rm -f conftest.er1
17473 cat conftest.err >&5
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); } &&
17476 { ac_try='test -z "$ac_c_werror_flag"
17477 || test ! -s conftest.err'
17478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17479 (eval $ac_try) 2>&5
17480 ac_status=$?
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); }; } &&
17483 { ac_try='test -s conftest.$ac_objext'
17484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17485 (eval $ac_try) 2>&5
17486 ac_status=$?
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); }; }; then
17489 ac_cv_header_time=yes
17490 else
17491 echo "$as_me: failed program was:" >&5
17492 sed 's/^/| /' conftest.$ac_ext >&5
17494 ac_cv_header_time=no
17496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17498 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
17499 echo "${ECHO_T}$ac_cv_header_time" >&6
17500 if test $ac_cv_header_time = yes; then
17502 cat >>confdefs.h <<\_ACEOF
17503 #define TIME_WITH_SYS_TIME 1
17504 _ACEOF
17508 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17509 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
17510 if test "${ac_cv_struct_tm+set}" = set; then
17511 echo $ECHO_N "(cached) $ECHO_C" >&6
17512 else
17513 cat >conftest.$ac_ext <<_ACEOF
17514 /* confdefs.h. */
17515 _ACEOF
17516 cat confdefs.h >>conftest.$ac_ext
17517 cat >>conftest.$ac_ext <<_ACEOF
17518 /* end confdefs.h. */
17519 #include <sys/types.h>
17520 #include <time.h>
17523 main ()
17525 struct tm *tp; tp->tm_sec;
17527 return 0;
17529 _ACEOF
17530 rm -f conftest.$ac_objext
17531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17532 (eval $ac_compile) 2>conftest.er1
17533 ac_status=$?
17534 grep -v '^ *+' conftest.er1 >conftest.err
17535 rm -f conftest.er1
17536 cat conftest.err >&5
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); } &&
17539 { ac_try='test -z "$ac_c_werror_flag"
17540 || test ! -s conftest.err'
17541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17542 (eval $ac_try) 2>&5
17543 ac_status=$?
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); }; } &&
17546 { ac_try='test -s conftest.$ac_objext'
17547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17548 (eval $ac_try) 2>&5
17549 ac_status=$?
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); }; }; then
17552 ac_cv_struct_tm=time.h
17553 else
17554 echo "$as_me: failed program was:" >&5
17555 sed 's/^/| /' conftest.$ac_ext >&5
17557 ac_cv_struct_tm=sys/time.h
17559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17561 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17562 echo "${ECHO_T}$ac_cv_struct_tm" >&6
17563 if test $ac_cv_struct_tm = sys/time.h; then
17565 cat >>confdefs.h <<\_ACEOF
17566 #define TM_IN_SYS_TIME 1
17567 _ACEOF
17571 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
17572 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
17573 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
17574 echo $ECHO_N "(cached) $ECHO_C" >&6
17575 else
17576 cat >conftest.$ac_ext <<_ACEOF
17577 /* confdefs.h. */
17578 _ACEOF
17579 cat confdefs.h >>conftest.$ac_ext
17580 cat >>conftest.$ac_ext <<_ACEOF
17581 /* end confdefs.h. */
17582 #include <sys/types.h>
17583 #include <$ac_cv_struct_tm>
17587 main ()
17589 static struct tm ac_aggr;
17590 if (ac_aggr.tm_zone)
17591 return 0;
17593 return 0;
17595 _ACEOF
17596 rm -f conftest.$ac_objext
17597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17598 (eval $ac_compile) 2>conftest.er1
17599 ac_status=$?
17600 grep -v '^ *+' conftest.er1 >conftest.err
17601 rm -f conftest.er1
17602 cat conftest.err >&5
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); } &&
17605 { ac_try='test -z "$ac_c_werror_flag"
17606 || test ! -s conftest.err'
17607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17608 (eval $ac_try) 2>&5
17609 ac_status=$?
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); }; } &&
17612 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17618 ac_cv_member_struct_tm_tm_zone=yes
17619 else
17620 echo "$as_me: failed program was:" >&5
17621 sed 's/^/| /' conftest.$ac_ext >&5
17623 cat >conftest.$ac_ext <<_ACEOF
17624 /* confdefs.h. */
17625 _ACEOF
17626 cat confdefs.h >>conftest.$ac_ext
17627 cat >>conftest.$ac_ext <<_ACEOF
17628 /* end confdefs.h. */
17629 #include <sys/types.h>
17630 #include <$ac_cv_struct_tm>
17634 main ()
17636 static struct tm ac_aggr;
17637 if (sizeof ac_aggr.tm_zone)
17638 return 0;
17640 return 0;
17642 _ACEOF
17643 rm -f conftest.$ac_objext
17644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17645 (eval $ac_compile) 2>conftest.er1
17646 ac_status=$?
17647 grep -v '^ *+' conftest.er1 >conftest.err
17648 rm -f conftest.er1
17649 cat conftest.err >&5
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); } &&
17652 { ac_try='test -z "$ac_c_werror_flag"
17653 || test ! -s conftest.err'
17654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655 (eval $ac_try) 2>&5
17656 ac_status=$?
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); }; } &&
17659 { ac_try='test -s conftest.$ac_objext'
17660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661 (eval $ac_try) 2>&5
17662 ac_status=$?
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; }; then
17665 ac_cv_member_struct_tm_tm_zone=yes
17666 else
17667 echo "$as_me: failed program was:" >&5
17668 sed 's/^/| /' conftest.$ac_ext >&5
17670 ac_cv_member_struct_tm_tm_zone=no
17672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17676 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
17677 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
17678 if test $ac_cv_member_struct_tm_tm_zone = yes; then
17680 cat >>confdefs.h <<_ACEOF
17681 #define HAVE_STRUCT_TM_TM_ZONE 1
17682 _ACEOF
17687 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17689 cat >>confdefs.h <<\_ACEOF
17690 #define HAVE_TM_ZONE 1
17691 _ACEOF
17693 else
17694 echo "$as_me:$LINENO: checking for tzname" >&5
17695 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
17696 if test "${ac_cv_var_tzname+set}" = set; then
17697 echo $ECHO_N "(cached) $ECHO_C" >&6
17698 else
17699 cat >conftest.$ac_ext <<_ACEOF
17700 /* confdefs.h. */
17701 _ACEOF
17702 cat confdefs.h >>conftest.$ac_ext
17703 cat >>conftest.$ac_ext <<_ACEOF
17704 /* end confdefs.h. */
17705 #include <time.h>
17706 #ifndef tzname /* For SGI. */
17707 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
17708 #endif
17711 main ()
17713 atoi(*tzname);
17715 return 0;
17717 _ACEOF
17718 rm -f conftest.$ac_objext conftest$ac_exeext
17719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17720 (eval $ac_link) 2>conftest.er1
17721 ac_status=$?
17722 grep -v '^ *+' conftest.er1 >conftest.err
17723 rm -f conftest.er1
17724 cat conftest.err >&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); } &&
17727 { ac_try='test -z "$ac_c_werror_flag"
17728 || test ! -s conftest.err'
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); }; } &&
17734 { ac_try='test -s conftest$ac_exeext'
17735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17736 (eval $ac_try) 2>&5
17737 ac_status=$?
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); }; }; then
17740 ac_cv_var_tzname=yes
17741 else
17742 echo "$as_me: failed program was:" >&5
17743 sed 's/^/| /' conftest.$ac_ext >&5
17745 ac_cv_var_tzname=no
17747 rm -f conftest.err conftest.$ac_objext \
17748 conftest$ac_exeext conftest.$ac_ext
17750 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17751 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17752 if test $ac_cv_var_tzname = yes; then
17754 cat >>confdefs.h <<\_ACEOF
17755 #define HAVE_TZNAME 1
17756 _ACEOF
17761 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
17762 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
17763 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
17764 echo $ECHO_N "(cached) $ECHO_C" >&6
17765 else
17766 cat >conftest.$ac_ext <<_ACEOF
17767 /* confdefs.h. */
17768 _ACEOF
17769 cat confdefs.h >>conftest.$ac_ext
17770 cat >>conftest.$ac_ext <<_ACEOF
17771 /* end confdefs.h. */
17772 $ac_includes_default
17774 main ()
17776 static struct stat ac_aggr;
17777 if (ac_aggr.st_rdev)
17778 return 0;
17780 return 0;
17782 _ACEOF
17783 rm -f conftest.$ac_objext
17784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17785 (eval $ac_compile) 2>conftest.er1
17786 ac_status=$?
17787 grep -v '^ *+' conftest.er1 >conftest.err
17788 rm -f conftest.er1
17789 cat conftest.err >&5
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); } &&
17792 { ac_try='test -z "$ac_c_werror_flag"
17793 || test ! -s conftest.err'
17794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17795 (eval $ac_try) 2>&5
17796 ac_status=$?
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); }; } &&
17799 { ac_try='test -s conftest.$ac_objext'
17800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17801 (eval $ac_try) 2>&5
17802 ac_status=$?
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); }; }; then
17805 ac_cv_member_struct_stat_st_rdev=yes
17806 else
17807 echo "$as_me: failed program was:" >&5
17808 sed 's/^/| /' conftest.$ac_ext >&5
17810 cat >conftest.$ac_ext <<_ACEOF
17811 /* confdefs.h. */
17812 _ACEOF
17813 cat confdefs.h >>conftest.$ac_ext
17814 cat >>conftest.$ac_ext <<_ACEOF
17815 /* end confdefs.h. */
17816 $ac_includes_default
17818 main ()
17820 static struct stat ac_aggr;
17821 if (sizeof ac_aggr.st_rdev)
17822 return 0;
17824 return 0;
17826 _ACEOF
17827 rm -f conftest.$ac_objext
17828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17829 (eval $ac_compile) 2>conftest.er1
17830 ac_status=$?
17831 grep -v '^ *+' conftest.er1 >conftest.err
17832 rm -f conftest.er1
17833 cat conftest.err >&5
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); } &&
17836 { ac_try='test -z "$ac_c_werror_flag"
17837 || test ! -s conftest.err'
17838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17839 (eval $ac_try) 2>&5
17840 ac_status=$?
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); }; } &&
17843 { ac_try='test -s conftest.$ac_objext'
17844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17845 (eval $ac_try) 2>&5
17846 ac_status=$?
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); }; }; then
17849 ac_cv_member_struct_stat_st_rdev=yes
17850 else
17851 echo "$as_me: failed program was:" >&5
17852 sed 's/^/| /' conftest.$ac_ext >&5
17854 ac_cv_member_struct_stat_st_rdev=no
17856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17860 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
17861 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
17862 if test $ac_cv_member_struct_stat_st_rdev = yes; then
17864 cat >>confdefs.h <<_ACEOF
17865 #define HAVE_STRUCT_STAT_ST_RDEV 1
17866 _ACEOF
17871 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17872 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
17873 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17874 echo $ECHO_N "(cached) $ECHO_C" >&6
17875 else
17876 cat >conftest.$ac_ext <<_ACEOF
17877 /* confdefs.h. */
17878 _ACEOF
17879 cat confdefs.h >>conftest.$ac_ext
17880 cat >>conftest.$ac_ext <<_ACEOF
17881 /* end confdefs.h. */
17882 $ac_includes_default
17884 main ()
17886 static struct stat ac_aggr;
17887 if (ac_aggr.st_blksize)
17888 return 0;
17890 return 0;
17892 _ACEOF
17893 rm -f conftest.$ac_objext
17894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17895 (eval $ac_compile) 2>conftest.er1
17896 ac_status=$?
17897 grep -v '^ *+' conftest.er1 >conftest.err
17898 rm -f conftest.er1
17899 cat conftest.err >&5
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); } &&
17902 { ac_try='test -z "$ac_c_werror_flag"
17903 || test ! -s conftest.err'
17904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17905 (eval $ac_try) 2>&5
17906 ac_status=$?
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); }; } &&
17909 { ac_try='test -s conftest.$ac_objext'
17910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17911 (eval $ac_try) 2>&5
17912 ac_status=$?
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); }; }; then
17915 ac_cv_member_struct_stat_st_blksize=yes
17916 else
17917 echo "$as_me: failed program was:" >&5
17918 sed 's/^/| /' conftest.$ac_ext >&5
17920 cat >conftest.$ac_ext <<_ACEOF
17921 /* confdefs.h. */
17922 _ACEOF
17923 cat confdefs.h >>conftest.$ac_ext
17924 cat >>conftest.$ac_ext <<_ACEOF
17925 /* end confdefs.h. */
17926 $ac_includes_default
17928 main ()
17930 static struct stat ac_aggr;
17931 if (sizeof ac_aggr.st_blksize)
17932 return 0;
17934 return 0;
17936 _ACEOF
17937 rm -f conftest.$ac_objext
17938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17939 (eval $ac_compile) 2>conftest.er1
17940 ac_status=$?
17941 grep -v '^ *+' conftest.er1 >conftest.err
17942 rm -f conftest.er1
17943 cat conftest.err >&5
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); } &&
17946 { ac_try='test -z "$ac_c_werror_flag"
17947 || test ! -s conftest.err'
17948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17949 (eval $ac_try) 2>&5
17950 ac_status=$?
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); }; } &&
17953 { ac_try='test -s conftest.$ac_objext'
17954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17955 (eval $ac_try) 2>&5
17956 ac_status=$?
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); }; }; then
17959 ac_cv_member_struct_stat_st_blksize=yes
17960 else
17961 echo "$as_me: failed program was:" >&5
17962 sed 's/^/| /' conftest.$ac_ext >&5
17964 ac_cv_member_struct_stat_st_blksize=no
17966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17970 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17971 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
17972 if test $ac_cv_member_struct_stat_st_blksize = yes; then
17974 cat >>confdefs.h <<_ACEOF
17975 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17976 _ACEOF
17981 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
17982 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
17983 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
17984 echo $ECHO_N "(cached) $ECHO_C" >&6
17985 else
17986 cat >conftest.$ac_ext <<_ACEOF
17987 /* confdefs.h. */
17988 _ACEOF
17989 cat confdefs.h >>conftest.$ac_ext
17990 cat >>conftest.$ac_ext <<_ACEOF
17991 /* end confdefs.h. */
17992 $ac_includes_default
17994 main ()
17996 static struct stat ac_aggr;
17997 if (ac_aggr.st_flags)
17998 return 0;
18000 return 0;
18002 _ACEOF
18003 rm -f conftest.$ac_objext
18004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18005 (eval $ac_compile) 2>conftest.er1
18006 ac_status=$?
18007 grep -v '^ *+' conftest.er1 >conftest.err
18008 rm -f conftest.er1
18009 cat conftest.err >&5
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); } &&
18012 { ac_try='test -z "$ac_c_werror_flag"
18013 || test ! -s conftest.err'
18014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18015 (eval $ac_try) 2>&5
18016 ac_status=$?
18017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018 (exit $ac_status); }; } &&
18019 { ac_try='test -s conftest.$ac_objext'
18020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18021 (eval $ac_try) 2>&5
18022 ac_status=$?
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); }; }; then
18025 ac_cv_member_struct_stat_st_flags=yes
18026 else
18027 echo "$as_me: failed program was:" >&5
18028 sed 's/^/| /' conftest.$ac_ext >&5
18030 cat >conftest.$ac_ext <<_ACEOF
18031 /* confdefs.h. */
18032 _ACEOF
18033 cat confdefs.h >>conftest.$ac_ext
18034 cat >>conftest.$ac_ext <<_ACEOF
18035 /* end confdefs.h. */
18036 $ac_includes_default
18038 main ()
18040 static struct stat ac_aggr;
18041 if (sizeof ac_aggr.st_flags)
18042 return 0;
18044 return 0;
18046 _ACEOF
18047 rm -f conftest.$ac_objext
18048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18049 (eval $ac_compile) 2>conftest.er1
18050 ac_status=$?
18051 grep -v '^ *+' conftest.er1 >conftest.err
18052 rm -f conftest.er1
18053 cat conftest.err >&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); } &&
18056 { ac_try='test -z "$ac_c_werror_flag"
18057 || test ! -s conftest.err'
18058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18059 (eval $ac_try) 2>&5
18060 ac_status=$?
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); }; } &&
18063 { ac_try='test -s conftest.$ac_objext'
18064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18065 (eval $ac_try) 2>&5
18066 ac_status=$?
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); }; }; then
18069 ac_cv_member_struct_stat_st_flags=yes
18070 else
18071 echo "$as_me: failed program was:" >&5
18072 sed 's/^/| /' conftest.$ac_ext >&5
18074 ac_cv_member_struct_stat_st_flags=no
18076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18080 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
18081 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
18082 if test $ac_cv_member_struct_stat_st_flags = yes; then
18084 cat >>confdefs.h <<_ACEOF
18085 #define HAVE_STRUCT_STAT_ST_FLAGS 1
18086 _ACEOF
18091 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
18092 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
18093 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
18094 echo $ECHO_N "(cached) $ECHO_C" >&6
18095 else
18096 cat >conftest.$ac_ext <<_ACEOF
18097 /* confdefs.h. */
18098 _ACEOF
18099 cat confdefs.h >>conftest.$ac_ext
18100 cat >>conftest.$ac_ext <<_ACEOF
18101 /* end confdefs.h. */
18102 $ac_includes_default
18104 main ()
18106 static struct stat ac_aggr;
18107 if (ac_aggr.st_gen)
18108 return 0;
18110 return 0;
18112 _ACEOF
18113 rm -f conftest.$ac_objext
18114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18115 (eval $ac_compile) 2>conftest.er1
18116 ac_status=$?
18117 grep -v '^ *+' conftest.er1 >conftest.err
18118 rm -f conftest.er1
18119 cat conftest.err >&5
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); } &&
18122 { ac_try='test -z "$ac_c_werror_flag"
18123 || test ! -s conftest.err'
18124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18125 (eval $ac_try) 2>&5
18126 ac_status=$?
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); }; } &&
18129 { ac_try='test -s conftest.$ac_objext'
18130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18131 (eval $ac_try) 2>&5
18132 ac_status=$?
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); }; }; then
18135 ac_cv_member_struct_stat_st_gen=yes
18136 else
18137 echo "$as_me: failed program was:" >&5
18138 sed 's/^/| /' conftest.$ac_ext >&5
18140 cat >conftest.$ac_ext <<_ACEOF
18141 /* confdefs.h. */
18142 _ACEOF
18143 cat confdefs.h >>conftest.$ac_ext
18144 cat >>conftest.$ac_ext <<_ACEOF
18145 /* end confdefs.h. */
18146 $ac_includes_default
18148 main ()
18150 static struct stat ac_aggr;
18151 if (sizeof ac_aggr.st_gen)
18152 return 0;
18154 return 0;
18156 _ACEOF
18157 rm -f conftest.$ac_objext
18158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18159 (eval $ac_compile) 2>conftest.er1
18160 ac_status=$?
18161 grep -v '^ *+' conftest.er1 >conftest.err
18162 rm -f conftest.er1
18163 cat conftest.err >&5
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); } &&
18166 { ac_try='test -z "$ac_c_werror_flag"
18167 || test ! -s conftest.err'
18168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18169 (eval $ac_try) 2>&5
18170 ac_status=$?
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); }; } &&
18173 { ac_try='test -s conftest.$ac_objext'
18174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18175 (eval $ac_try) 2>&5
18176 ac_status=$?
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); }; }; then
18179 ac_cv_member_struct_stat_st_gen=yes
18180 else
18181 echo "$as_me: failed program was:" >&5
18182 sed 's/^/| /' conftest.$ac_ext >&5
18184 ac_cv_member_struct_stat_st_gen=no
18186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18190 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
18191 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
18192 if test $ac_cv_member_struct_stat_st_gen = yes; then
18194 cat >>confdefs.h <<_ACEOF
18195 #define HAVE_STRUCT_STAT_ST_GEN 1
18196 _ACEOF
18201 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
18202 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
18203 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
18204 echo $ECHO_N "(cached) $ECHO_C" >&6
18205 else
18206 cat >conftest.$ac_ext <<_ACEOF
18207 /* confdefs.h. */
18208 _ACEOF
18209 cat confdefs.h >>conftest.$ac_ext
18210 cat >>conftest.$ac_ext <<_ACEOF
18211 /* end confdefs.h. */
18212 $ac_includes_default
18214 main ()
18216 static struct stat ac_aggr;
18217 if (ac_aggr.st_birthtime)
18218 return 0;
18220 return 0;
18222 _ACEOF
18223 rm -f conftest.$ac_objext
18224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18225 (eval $ac_compile) 2>conftest.er1
18226 ac_status=$?
18227 grep -v '^ *+' conftest.er1 >conftest.err
18228 rm -f conftest.er1
18229 cat conftest.err >&5
18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); } &&
18232 { ac_try='test -z "$ac_c_werror_flag"
18233 || test ! -s conftest.err'
18234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18235 (eval $ac_try) 2>&5
18236 ac_status=$?
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); }; } &&
18239 { ac_try='test -s conftest.$ac_objext'
18240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18241 (eval $ac_try) 2>&5
18242 ac_status=$?
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); }; }; then
18245 ac_cv_member_struct_stat_st_birthtime=yes
18246 else
18247 echo "$as_me: failed program was:" >&5
18248 sed 's/^/| /' conftest.$ac_ext >&5
18250 cat >conftest.$ac_ext <<_ACEOF
18251 /* confdefs.h. */
18252 _ACEOF
18253 cat confdefs.h >>conftest.$ac_ext
18254 cat >>conftest.$ac_ext <<_ACEOF
18255 /* end confdefs.h. */
18256 $ac_includes_default
18258 main ()
18260 static struct stat ac_aggr;
18261 if (sizeof ac_aggr.st_birthtime)
18262 return 0;
18264 return 0;
18266 _ACEOF
18267 rm -f conftest.$ac_objext
18268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18269 (eval $ac_compile) 2>conftest.er1
18270 ac_status=$?
18271 grep -v '^ *+' conftest.er1 >conftest.err
18272 rm -f conftest.er1
18273 cat conftest.err >&5
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); } &&
18276 { ac_try='test -z "$ac_c_werror_flag"
18277 || test ! -s conftest.err'
18278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18279 (eval $ac_try) 2>&5
18280 ac_status=$?
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); }; } &&
18283 { ac_try='test -s conftest.$ac_objext'
18284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18285 (eval $ac_try) 2>&5
18286 ac_status=$?
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); }; }; then
18289 ac_cv_member_struct_stat_st_birthtime=yes
18290 else
18291 echo "$as_me: failed program was:" >&5
18292 sed 's/^/| /' conftest.$ac_ext >&5
18294 ac_cv_member_struct_stat_st_birthtime=no
18296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18300 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
18301 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
18302 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
18304 cat >>confdefs.h <<_ACEOF
18305 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
18306 _ACEOF
18311 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
18312 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
18313 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
18314 echo $ECHO_N "(cached) $ECHO_C" >&6
18315 else
18316 cat >conftest.$ac_ext <<_ACEOF
18317 /* confdefs.h. */
18318 _ACEOF
18319 cat confdefs.h >>conftest.$ac_ext
18320 cat >>conftest.$ac_ext <<_ACEOF
18321 /* end confdefs.h. */
18322 $ac_includes_default
18324 main ()
18326 static struct stat ac_aggr;
18327 if (ac_aggr.st_blocks)
18328 return 0;
18330 return 0;
18332 _ACEOF
18333 rm -f conftest.$ac_objext
18334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18335 (eval $ac_compile) 2>conftest.er1
18336 ac_status=$?
18337 grep -v '^ *+' conftest.er1 >conftest.err
18338 rm -f conftest.er1
18339 cat conftest.err >&5
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); } &&
18342 { ac_try='test -z "$ac_c_werror_flag"
18343 || test ! -s conftest.err'
18344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18345 (eval $ac_try) 2>&5
18346 ac_status=$?
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); }; } &&
18349 { ac_try='test -s conftest.$ac_objext'
18350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18351 (eval $ac_try) 2>&5
18352 ac_status=$?
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); }; }; then
18355 ac_cv_member_struct_stat_st_blocks=yes
18356 else
18357 echo "$as_me: failed program was:" >&5
18358 sed 's/^/| /' conftest.$ac_ext >&5
18360 cat >conftest.$ac_ext <<_ACEOF
18361 /* confdefs.h. */
18362 _ACEOF
18363 cat confdefs.h >>conftest.$ac_ext
18364 cat >>conftest.$ac_ext <<_ACEOF
18365 /* end confdefs.h. */
18366 $ac_includes_default
18368 main ()
18370 static struct stat ac_aggr;
18371 if (sizeof ac_aggr.st_blocks)
18372 return 0;
18374 return 0;
18376 _ACEOF
18377 rm -f conftest.$ac_objext
18378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18379 (eval $ac_compile) 2>conftest.er1
18380 ac_status=$?
18381 grep -v '^ *+' conftest.er1 >conftest.err
18382 rm -f conftest.er1
18383 cat conftest.err >&5
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); } &&
18386 { ac_try='test -z "$ac_c_werror_flag"
18387 || test ! -s conftest.err'
18388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18389 (eval $ac_try) 2>&5
18390 ac_status=$?
18391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392 (exit $ac_status); }; } &&
18393 { ac_try='test -s conftest.$ac_objext'
18394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18395 (eval $ac_try) 2>&5
18396 ac_status=$?
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); }; }; then
18399 ac_cv_member_struct_stat_st_blocks=yes
18400 else
18401 echo "$as_me: failed program was:" >&5
18402 sed 's/^/| /' conftest.$ac_ext >&5
18404 ac_cv_member_struct_stat_st_blocks=no
18406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18410 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
18411 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
18412 if test $ac_cv_member_struct_stat_st_blocks = yes; then
18414 cat >>confdefs.h <<_ACEOF
18415 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
18416 _ACEOF
18419 cat >>confdefs.h <<\_ACEOF
18420 #define HAVE_ST_BLOCKS 1
18421 _ACEOF
18423 else
18424 case $LIBOBJS in
18425 "fileblocks.$ac_objext" | \
18426 *" fileblocks.$ac_objext" | \
18427 "fileblocks.$ac_objext "* | \
18428 *" fileblocks.$ac_objext "* ) ;;
18429 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
18430 esac
18436 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
18437 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
18438 if test "${ac_cv_header_time_altzone+set}" = set; then
18439 echo $ECHO_N "(cached) $ECHO_C" >&6
18440 else
18441 cat >conftest.$ac_ext <<_ACEOF
18442 /* confdefs.h. */
18443 _ACEOF
18444 cat confdefs.h >>conftest.$ac_ext
18445 cat >>conftest.$ac_ext <<_ACEOF
18446 /* end confdefs.h. */
18447 #include <time.h>
18449 main ()
18451 return altzone;
18453 return 0;
18455 _ACEOF
18456 rm -f conftest.$ac_objext
18457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18458 (eval $ac_compile) 2>conftest.er1
18459 ac_status=$?
18460 grep -v '^ *+' conftest.er1 >conftest.err
18461 rm -f conftest.er1
18462 cat conftest.err >&5
18463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464 (exit $ac_status); } &&
18465 { ac_try='test -z "$ac_c_werror_flag"
18466 || test ! -s conftest.err'
18467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18468 (eval $ac_try) 2>&5
18469 ac_status=$?
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); }; } &&
18472 { ac_try='test -s conftest.$ac_objext'
18473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18474 (eval $ac_try) 2>&5
18475 ac_status=$?
18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477 (exit $ac_status); }; }; then
18478 ac_cv_header_time_altzone=yes
18479 else
18480 echo "$as_me: failed program was:" >&5
18481 sed 's/^/| /' conftest.$ac_ext >&5
18483 ac_cv_header_time_altzone=no
18485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18488 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
18489 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
18490 if test $ac_cv_header_time_altzone = yes; then
18492 cat >>confdefs.h <<\_ACEOF
18493 #define HAVE_ALTZONE 1
18494 _ACEOF
18498 was_it_defined=no
18499 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
18500 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
18501 cat >conftest.$ac_ext <<_ACEOF
18502 /* confdefs.h. */
18503 _ACEOF
18504 cat confdefs.h >>conftest.$ac_ext
18505 cat >>conftest.$ac_ext <<_ACEOF
18506 /* end confdefs.h. */
18508 #include <sys/types.h>
18509 #include <sys/select.h>
18510 #include <sys/time.h>
18513 main ()
18517 return 0;
18519 _ACEOF
18520 rm -f conftest.$ac_objext
18521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18522 (eval $ac_compile) 2>conftest.er1
18523 ac_status=$?
18524 grep -v '^ *+' conftest.er1 >conftest.err
18525 rm -f conftest.er1
18526 cat conftest.err >&5
18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); } &&
18529 { ac_try='test -z "$ac_c_werror_flag"
18530 || test ! -s conftest.err'
18531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18532 (eval $ac_try) 2>&5
18533 ac_status=$?
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); }; } &&
18536 { ac_try='test -s conftest.$ac_objext'
18537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18538 (eval $ac_try) 2>&5
18539 ac_status=$?
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); }; }; then
18544 cat >>confdefs.h <<\_ACEOF
18545 #define SYS_SELECT_WITH_SYS_TIME 1
18546 _ACEOF
18548 was_it_defined=yes
18550 else
18551 echo "$as_me: failed program was:" >&5
18552 sed 's/^/| /' conftest.$ac_ext >&5
18555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18556 echo "$as_me:$LINENO: result: $was_it_defined" >&5
18557 echo "${ECHO_T}$was_it_defined" >&6
18559 echo "$as_me:$LINENO: checking for addrinfo" >&5
18560 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
18561 if test "${ac_cv_struct_addrinfo+set}" = set; then
18562 echo $ECHO_N "(cached) $ECHO_C" >&6
18563 else
18564 cat >conftest.$ac_ext <<_ACEOF
18565 /* confdefs.h. */
18566 _ACEOF
18567 cat confdefs.h >>conftest.$ac_ext
18568 cat >>conftest.$ac_ext <<_ACEOF
18569 /* end confdefs.h. */
18571 # include <netdb.h>
18573 main ()
18575 struct addrinfo a
18577 return 0;
18579 _ACEOF
18580 rm -f conftest.$ac_objext
18581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18582 (eval $ac_compile) 2>conftest.er1
18583 ac_status=$?
18584 grep -v '^ *+' conftest.er1 >conftest.err
18585 rm -f conftest.er1
18586 cat conftest.err >&5
18587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); } &&
18589 { ac_try='test -z "$ac_c_werror_flag"
18590 || test ! -s conftest.err'
18591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18592 (eval $ac_try) 2>&5
18593 ac_status=$?
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); }; } &&
18596 { ac_try='test -s conftest.$ac_objext'
18597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18598 (eval $ac_try) 2>&5
18599 ac_status=$?
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); }; }; then
18602 ac_cv_struct_addrinfo=yes
18603 else
18604 echo "$as_me: failed program was:" >&5
18605 sed 's/^/| /' conftest.$ac_ext >&5
18607 ac_cv_struct_addrinfo=no
18609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18612 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
18613 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
18614 if test $ac_cv_struct_addrinfo = yes; then
18616 cat >>confdefs.h <<\_ACEOF
18617 #define HAVE_ADDRINFO 1
18618 _ACEOF
18622 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
18623 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
18624 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
18625 echo $ECHO_N "(cached) $ECHO_C" >&6
18626 else
18627 cat >conftest.$ac_ext <<_ACEOF
18628 /* confdefs.h. */
18629 _ACEOF
18630 cat confdefs.h >>conftest.$ac_ext
18631 cat >>conftest.$ac_ext <<_ACEOF
18632 /* end confdefs.h. */
18634 # include <sys/types.h>
18635 # include <sys/socket.h>
18637 main ()
18639 struct sockaddr_storage s
18641 return 0;
18643 _ACEOF
18644 rm -f conftest.$ac_objext
18645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18646 (eval $ac_compile) 2>conftest.er1
18647 ac_status=$?
18648 grep -v '^ *+' conftest.er1 >conftest.err
18649 rm -f conftest.er1
18650 cat conftest.err >&5
18651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652 (exit $ac_status); } &&
18653 { ac_try='test -z "$ac_c_werror_flag"
18654 || test ! -s conftest.err'
18655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18656 (eval $ac_try) 2>&5
18657 ac_status=$?
18658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); }; } &&
18660 { ac_try='test -s conftest.$ac_objext'
18661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18662 (eval $ac_try) 2>&5
18663 ac_status=$?
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); }; }; then
18666 ac_cv_struct_sockaddr_storage=yes
18667 else
18668 echo "$as_me: failed program was:" >&5
18669 sed 's/^/| /' conftest.$ac_ext >&5
18671 ac_cv_struct_sockaddr_storage=no
18673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18676 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
18677 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
18678 if test $ac_cv_struct_sockaddr_storage = yes; then
18680 cat >>confdefs.h <<\_ACEOF
18681 #define HAVE_SOCKADDR_STORAGE 1
18682 _ACEOF
18686 # checks for compiler characteristics
18689 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
18690 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
18691 if test "${ac_cv_c_char_unsigned+set}" = set; then
18692 echo $ECHO_N "(cached) $ECHO_C" >&6
18693 else
18694 cat >conftest.$ac_ext <<_ACEOF
18695 /* confdefs.h. */
18696 _ACEOF
18697 cat confdefs.h >>conftest.$ac_ext
18698 cat >>conftest.$ac_ext <<_ACEOF
18699 /* end confdefs.h. */
18700 $ac_includes_default
18702 main ()
18704 static int test_array [1 - 2 * !(((char) -1) < 0)];
18705 test_array [0] = 0
18708 return 0;
18710 _ACEOF
18711 rm -f conftest.$ac_objext
18712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18713 (eval $ac_compile) 2>conftest.er1
18714 ac_status=$?
18715 grep -v '^ *+' conftest.er1 >conftest.err
18716 rm -f conftest.er1
18717 cat conftest.err >&5
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); } &&
18720 { ac_try='test -z "$ac_c_werror_flag"
18721 || test ! -s conftest.err'
18722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18723 (eval $ac_try) 2>&5
18724 ac_status=$?
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); }; } &&
18727 { ac_try='test -s conftest.$ac_objext'
18728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18729 (eval $ac_try) 2>&5
18730 ac_status=$?
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); }; }; then
18733 ac_cv_c_char_unsigned=no
18734 else
18735 echo "$as_me: failed program was:" >&5
18736 sed 's/^/| /' conftest.$ac_ext >&5
18738 ac_cv_c_char_unsigned=yes
18740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18742 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
18743 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
18744 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18745 cat >>confdefs.h <<\_ACEOF
18746 #define __CHAR_UNSIGNED__ 1
18747 _ACEOF
18751 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18752 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18753 if test "${ac_cv_c_const+set}" = set; then
18754 echo $ECHO_N "(cached) $ECHO_C" >&6
18755 else
18756 cat >conftest.$ac_ext <<_ACEOF
18757 /* confdefs.h. */
18758 _ACEOF
18759 cat confdefs.h >>conftest.$ac_ext
18760 cat >>conftest.$ac_ext <<_ACEOF
18761 /* end confdefs.h. */
18764 main ()
18766 /* FIXME: Include the comments suggested by Paul. */
18767 #ifndef __cplusplus
18768 /* Ultrix mips cc rejects this. */
18769 typedef int charset[2];
18770 const charset x;
18771 /* SunOS 4.1.1 cc rejects this. */
18772 char const *const *ccp;
18773 char **p;
18774 /* NEC SVR4.0.2 mips cc rejects this. */
18775 struct point {int x, y;};
18776 static struct point const zero = {0,0};
18777 /* AIX XL C 1.02.0.0 rejects this.
18778 It does not let you subtract one const X* pointer from another in
18779 an arm of an if-expression whose if-part is not a constant
18780 expression */
18781 const char *g = "string";
18782 ccp = &g + (g ? g-g : 0);
18783 /* HPUX 7.0 cc rejects these. */
18784 ++ccp;
18785 p = (char**) ccp;
18786 ccp = (char const *const *) p;
18787 { /* SCO 3.2v4 cc rejects this. */
18788 char *t;
18789 char const *s = 0 ? (char *) 0 : (char const *) 0;
18791 *t++ = 0;
18793 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18794 int x[] = {25, 17};
18795 const int *foo = &x[0];
18796 ++foo;
18798 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18799 typedef const int *iptr;
18800 iptr p = 0;
18801 ++p;
18803 { /* AIX XL C 1.02.0.0 rejects this saying
18804 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18805 struct s { int j; const int *ap[3]; };
18806 struct s *b; b->j = 5;
18808 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18809 const int foo = 10;
18811 #endif
18814 return 0;
18816 _ACEOF
18817 rm -f conftest.$ac_objext
18818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18819 (eval $ac_compile) 2>conftest.er1
18820 ac_status=$?
18821 grep -v '^ *+' conftest.er1 >conftest.err
18822 rm -f conftest.er1
18823 cat conftest.err >&5
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); } &&
18826 { ac_try='test -z "$ac_c_werror_flag"
18827 || test ! -s conftest.err'
18828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18829 (eval $ac_try) 2>&5
18830 ac_status=$?
18831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832 (exit $ac_status); }; } &&
18833 { ac_try='test -s conftest.$ac_objext'
18834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18835 (eval $ac_try) 2>&5
18836 ac_status=$?
18837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838 (exit $ac_status); }; }; then
18839 ac_cv_c_const=yes
18840 else
18841 echo "$as_me: failed program was:" >&5
18842 sed 's/^/| /' conftest.$ac_ext >&5
18844 ac_cv_c_const=no
18846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18848 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18849 echo "${ECHO_T}$ac_cv_c_const" >&6
18850 if test $ac_cv_c_const = no; then
18852 cat >>confdefs.h <<\_ACEOF
18853 #define const
18854 _ACEOF
18859 works=no
18860 echo "$as_me:$LINENO: checking for working volatile" >&5
18861 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
18862 cat >conftest.$ac_ext <<_ACEOF
18863 /* confdefs.h. */
18864 _ACEOF
18865 cat confdefs.h >>conftest.$ac_ext
18866 cat >>conftest.$ac_ext <<_ACEOF
18867 /* end confdefs.h. */
18870 main ()
18872 volatile int x; x = 0;
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
18899 works=yes
18900 else
18901 echo "$as_me: failed program was:" >&5
18902 sed 's/^/| /' conftest.$ac_ext >&5
18905 cat >>confdefs.h <<\_ACEOF
18906 #define volatile
18907 _ACEOF
18911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18912 echo "$as_me:$LINENO: result: $works" >&5
18913 echo "${ECHO_T}$works" >&6
18915 works=no
18916 echo "$as_me:$LINENO: checking for working signed char" >&5
18917 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
18918 cat >conftest.$ac_ext <<_ACEOF
18919 /* confdefs.h. */
18920 _ACEOF
18921 cat confdefs.h >>conftest.$ac_ext
18922 cat >>conftest.$ac_ext <<_ACEOF
18923 /* end confdefs.h. */
18926 main ()
18928 signed char c;
18930 return 0;
18932 _ACEOF
18933 rm -f conftest.$ac_objext
18934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18935 (eval $ac_compile) 2>conftest.er1
18936 ac_status=$?
18937 grep -v '^ *+' conftest.er1 >conftest.err
18938 rm -f conftest.er1
18939 cat conftest.err >&5
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); } &&
18942 { ac_try='test -z "$ac_c_werror_flag"
18943 || test ! -s conftest.err'
18944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18945 (eval $ac_try) 2>&5
18946 ac_status=$?
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); }; } &&
18949 { ac_try='test -s conftest.$ac_objext'
18950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18951 (eval $ac_try) 2>&5
18952 ac_status=$?
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); }; }; then
18955 works=yes
18956 else
18957 echo "$as_me: failed program was:" >&5
18958 sed 's/^/| /' conftest.$ac_ext >&5
18961 cat >>confdefs.h <<\_ACEOF
18962 #define signed
18963 _ACEOF
18967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18968 echo "$as_me:$LINENO: result: $works" >&5
18969 echo "${ECHO_T}$works" >&6
18971 have_prototypes=no
18972 echo "$as_me:$LINENO: checking for prototypes" >&5
18973 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
18974 cat >conftest.$ac_ext <<_ACEOF
18975 /* confdefs.h. */
18976 _ACEOF
18977 cat confdefs.h >>conftest.$ac_ext
18978 cat >>conftest.$ac_ext <<_ACEOF
18979 /* end confdefs.h. */
18980 int foo(int x) { return 0; }
18982 main ()
18984 return foo(10);
18986 return 0;
18988 _ACEOF
18989 rm -f conftest.$ac_objext
18990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18991 (eval $ac_compile) 2>conftest.er1
18992 ac_status=$?
18993 grep -v '^ *+' conftest.er1 >conftest.err
18994 rm -f conftest.er1
18995 cat conftest.err >&5
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); } &&
18998 { ac_try='test -z "$ac_c_werror_flag"
18999 || test ! -s conftest.err'
19000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19001 (eval $ac_try) 2>&5
19002 ac_status=$?
19003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004 (exit $ac_status); }; } &&
19005 { ac_try='test -s conftest.$ac_objext'
19006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19007 (eval $ac_try) 2>&5
19008 ac_status=$?
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); }; }; then
19013 cat >>confdefs.h <<\_ACEOF
19014 #define HAVE_PROTOTYPES 1
19015 _ACEOF
19017 have_prototypes=yes
19019 else
19020 echo "$as_me: failed program was:" >&5
19021 sed 's/^/| /' conftest.$ac_ext >&5
19024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19025 echo "$as_me:$LINENO: result: $have_prototypes" >&5
19026 echo "${ECHO_T}$have_prototypes" >&6
19028 works=no
19029 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
19030 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
19031 cat >conftest.$ac_ext <<_ACEOF
19032 /* confdefs.h. */
19033 _ACEOF
19034 cat confdefs.h >>conftest.$ac_ext
19035 cat >>conftest.$ac_ext <<_ACEOF
19036 /* end confdefs.h. */
19038 #include <stdarg.h>
19039 int foo(int x, ...) {
19040 va_list va;
19041 va_start(va, x);
19042 va_arg(va, int);
19043 va_arg(va, char *);
19044 va_arg(va, double);
19045 return 0;
19049 main ()
19051 return foo(10, "", 3.14);
19053 return 0;
19055 _ACEOF
19056 rm -f conftest.$ac_objext
19057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19058 (eval $ac_compile) 2>conftest.er1
19059 ac_status=$?
19060 grep -v '^ *+' conftest.er1 >conftest.err
19061 rm -f conftest.er1
19062 cat conftest.err >&5
19063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 (exit $ac_status); } &&
19065 { ac_try='test -z "$ac_c_werror_flag"
19066 || test ! -s conftest.err'
19067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19068 (eval $ac_try) 2>&5
19069 ac_status=$?
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); }; } &&
19072 { ac_try='test -s conftest.$ac_objext'
19073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19074 (eval $ac_try) 2>&5
19075 ac_status=$?
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); }; }; then
19080 cat >>confdefs.h <<\_ACEOF
19081 #define HAVE_STDARG_PROTOTYPES 1
19082 _ACEOF
19084 works=yes
19086 else
19087 echo "$as_me: failed program was:" >&5
19088 sed 's/^/| /' conftest.$ac_ext >&5
19091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19092 echo "$as_me:$LINENO: result: $works" >&5
19093 echo "${ECHO_T}$works" >&6
19095 # check for socketpair
19096 echo "$as_me:$LINENO: checking for socketpair" >&5
19097 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6
19098 cat >conftest.$ac_ext <<_ACEOF
19099 /* confdefs.h. */
19100 _ACEOF
19101 cat confdefs.h >>conftest.$ac_ext
19102 cat >>conftest.$ac_ext <<_ACEOF
19103 /* end confdefs.h. */
19105 #include <sys/types.h>
19106 #include <sys/socket.h>
19109 main ()
19111 void *x=socketpair
19113 return 0;
19115 _ACEOF
19116 rm -f conftest.$ac_objext
19117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19118 (eval $ac_compile) 2>conftest.er1
19119 ac_status=$?
19120 grep -v '^ *+' conftest.er1 >conftest.err
19121 rm -f conftest.er1
19122 cat conftest.err >&5
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); } &&
19125 { ac_try='test -z "$ac_c_werror_flag"
19126 || test ! -s conftest.err'
19127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19128 (eval $ac_try) 2>&5
19129 ac_status=$?
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); }; } &&
19132 { ac_try='test -s conftest.$ac_objext'
19133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19134 (eval $ac_try) 2>&5
19135 ac_status=$?
19136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137 (exit $ac_status); }; }; then
19139 cat >>confdefs.h <<\_ACEOF
19140 #define HAVE_SOCKETPAIR 1
19141 _ACEOF
19143 echo "$as_me:$LINENO: result: yes" >&5
19144 echo "${ECHO_T}yes" >&6
19145 else
19146 echo "$as_me: failed program was:" >&5
19147 sed 's/^/| /' conftest.$ac_ext >&5
19149 echo "$as_me:$LINENO: result: no" >&5
19150 echo "${ECHO_T}no" >&6
19153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19155 # check if sockaddr has sa_len member
19156 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
19157 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
19158 cat >conftest.$ac_ext <<_ACEOF
19159 /* confdefs.h. */
19160 _ACEOF
19161 cat confdefs.h >>conftest.$ac_ext
19162 cat >>conftest.$ac_ext <<_ACEOF
19163 /* end confdefs.h. */
19164 #include <sys/types.h>
19165 #include <sys/socket.h>
19167 main ()
19169 struct sockaddr x;
19170 x.sa_len = 0;
19172 return 0;
19174 _ACEOF
19175 rm -f conftest.$ac_objext
19176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19177 (eval $ac_compile) 2>conftest.er1
19178 ac_status=$?
19179 grep -v '^ *+' conftest.er1 >conftest.err
19180 rm -f conftest.er1
19181 cat conftest.err >&5
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); } &&
19184 { ac_try='test -z "$ac_c_werror_flag"
19185 || test ! -s conftest.err'
19186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19187 (eval $ac_try) 2>&5
19188 ac_status=$?
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); }; } &&
19191 { ac_try='test -s conftest.$ac_objext'
19192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19193 (eval $ac_try) 2>&5
19194 ac_status=$?
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); }; }; then
19197 echo "$as_me:$LINENO: result: yes" >&5
19198 echo "${ECHO_T}yes" >&6
19200 cat >>confdefs.h <<\_ACEOF
19201 #define HAVE_SOCKADDR_SA_LEN 1
19202 _ACEOF
19204 else
19205 echo "$as_me: failed program was:" >&5
19206 sed 's/^/| /' conftest.$ac_ext >&5
19208 echo "$as_me:$LINENO: result: no" >&5
19209 echo "${ECHO_T}no" >&6
19211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19213 va_list_is_array=no
19214 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
19215 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
19216 cat >conftest.$ac_ext <<_ACEOF
19217 /* confdefs.h. */
19218 _ACEOF
19219 cat confdefs.h >>conftest.$ac_ext
19220 cat >>conftest.$ac_ext <<_ACEOF
19221 /* end confdefs.h. */
19223 #ifdef HAVE_STDARG_PROTOTYPES
19224 #include <stdarg.h>
19225 #else
19226 #include <varargs.h>
19227 #endif
19230 main ()
19232 va_list list1, list2; list1 = list2;
19234 return 0;
19236 _ACEOF
19237 rm -f conftest.$ac_objext
19238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19239 (eval $ac_compile) 2>conftest.er1
19240 ac_status=$?
19241 grep -v '^ *+' conftest.er1 >conftest.err
19242 rm -f conftest.er1
19243 cat conftest.err >&5
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); } &&
19246 { ac_try='test -z "$ac_c_werror_flag"
19247 || test ! -s conftest.err'
19248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19249 (eval $ac_try) 2>&5
19250 ac_status=$?
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); }; } &&
19253 { ac_try='test -s conftest.$ac_objext'
19254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19255 (eval $ac_try) 2>&5
19256 ac_status=$?
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); }; }; then
19260 else
19261 echo "$as_me: failed program was:" >&5
19262 sed 's/^/| /' conftest.$ac_ext >&5
19266 cat >>confdefs.h <<\_ACEOF
19267 #define VA_LIST_IS_ARRAY 1
19268 _ACEOF
19270 va_list_is_array=yes
19273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19274 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
19275 echo "${ECHO_T}$va_list_is_array" >&6
19277 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
19281 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
19282 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
19283 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
19284 echo $ECHO_N "(cached) $ECHO_C" >&6
19285 else
19286 cat >conftest.$ac_ext <<_ACEOF
19287 /* confdefs.h. */
19288 _ACEOF
19289 cat confdefs.h >>conftest.$ac_ext
19290 cat >>conftest.$ac_ext <<_ACEOF
19291 /* end confdefs.h. */
19292 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
19293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19294 #define gethostbyname_r innocuous_gethostbyname_r
19296 /* System header to define __stub macros and hopefully few prototypes,
19297 which can conflict with char gethostbyname_r (); below.
19298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19299 <limits.h> exists even on freestanding compilers. */
19301 #ifdef __STDC__
19302 # include <limits.h>
19303 #else
19304 # include <assert.h>
19305 #endif
19307 #undef gethostbyname_r
19309 /* Override any gcc2 internal prototype to avoid an error. */
19310 #ifdef __cplusplus
19311 extern "C"
19313 #endif
19314 /* We use char because int might match the return type of a gcc2
19315 builtin and then its argument prototype would still apply. */
19316 char gethostbyname_r ();
19317 /* The GNU C library defines this for functions which it implements
19318 to always fail with ENOSYS. Some functions are actually named
19319 something starting with __ and the normal name is an alias. */
19320 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
19321 choke me
19322 #else
19323 char (*f) () = gethostbyname_r;
19324 #endif
19325 #ifdef __cplusplus
19327 #endif
19330 main ()
19332 return f != gethostbyname_r;
19334 return 0;
19336 _ACEOF
19337 rm -f conftest.$ac_objext conftest$ac_exeext
19338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19339 (eval $ac_link) 2>conftest.er1
19340 ac_status=$?
19341 grep -v '^ *+' conftest.er1 >conftest.err
19342 rm -f conftest.er1
19343 cat conftest.err >&5
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); } &&
19346 { ac_try='test -z "$ac_c_werror_flag"
19347 || test ! -s conftest.err'
19348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19349 (eval $ac_try) 2>&5
19350 ac_status=$?
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); }; } &&
19353 { ac_try='test -s conftest$ac_exeext'
19354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19355 (eval $ac_try) 2>&5
19356 ac_status=$?
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); }; }; then
19359 ac_cv_func_gethostbyname_r=yes
19360 else
19361 echo "$as_me: failed program was:" >&5
19362 sed 's/^/| /' conftest.$ac_ext >&5
19364 ac_cv_func_gethostbyname_r=no
19366 rm -f conftest.err conftest.$ac_objext \
19367 conftest$ac_exeext conftest.$ac_ext
19369 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
19370 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
19371 if test $ac_cv_func_gethostbyname_r = yes; then
19373 cat >>confdefs.h <<\_ACEOF
19374 #define HAVE_GETHOSTBYNAME_R 1
19375 _ACEOF
19377 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
19378 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
19379 OLD_CFLAGS=$CFLAGS
19380 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
19381 cat >conftest.$ac_ext <<_ACEOF
19382 /* confdefs.h. */
19383 _ACEOF
19384 cat confdefs.h >>conftest.$ac_ext
19385 cat >>conftest.$ac_ext <<_ACEOF
19386 /* end confdefs.h. */
19388 # include <netdb.h>
19391 main ()
19394 char *name;
19395 struct hostent *he, *res;
19396 char buffer[2048];
19397 int buflen = 2048;
19398 int h_errnop;
19400 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
19403 return 0;
19405 _ACEOF
19406 rm -f conftest.$ac_objext
19407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19408 (eval $ac_compile) 2>conftest.er1
19409 ac_status=$?
19410 grep -v '^ *+' conftest.er1 >conftest.err
19411 rm -f conftest.er1
19412 cat conftest.err >&5
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); } &&
19415 { ac_try='test -z "$ac_c_werror_flag"
19416 || test ! -s conftest.err'
19417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19418 (eval $ac_try) 2>&5
19419 ac_status=$?
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); }; } &&
19422 { ac_try='test -s conftest.$ac_objext'
19423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19424 (eval $ac_try) 2>&5
19425 ac_status=$?
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); }; }; then
19429 cat >>confdefs.h <<\_ACEOF
19430 #define HAVE_GETHOSTBYNAME_R 1
19431 _ACEOF
19434 cat >>confdefs.h <<\_ACEOF
19435 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
19436 _ACEOF
19438 echo "$as_me:$LINENO: result: yes" >&5
19439 echo "${ECHO_T}yes" >&6
19441 else
19442 echo "$as_me: failed program was:" >&5
19443 sed 's/^/| /' conftest.$ac_ext >&5
19446 echo "$as_me:$LINENO: result: no" >&5
19447 echo "${ECHO_T}no" >&6
19448 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
19449 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
19450 cat >conftest.$ac_ext <<_ACEOF
19451 /* confdefs.h. */
19452 _ACEOF
19453 cat confdefs.h >>conftest.$ac_ext
19454 cat >>conftest.$ac_ext <<_ACEOF
19455 /* end confdefs.h. */
19457 # include <netdb.h>
19460 main ()
19463 char *name;
19464 struct hostent *he;
19465 char buffer[2048];
19466 int buflen = 2048;
19467 int h_errnop;
19469 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
19472 return 0;
19474 _ACEOF
19475 rm -f conftest.$ac_objext
19476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19477 (eval $ac_compile) 2>conftest.er1
19478 ac_status=$?
19479 grep -v '^ *+' conftest.er1 >conftest.err
19480 rm -f conftest.er1
19481 cat conftest.err >&5
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); } &&
19484 { ac_try='test -z "$ac_c_werror_flag"
19485 || test ! -s conftest.err'
19486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19487 (eval $ac_try) 2>&5
19488 ac_status=$?
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); }; } &&
19491 { ac_try='test -s conftest.$ac_objext'
19492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19493 (eval $ac_try) 2>&5
19494 ac_status=$?
19495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); }; }; then
19498 cat >>confdefs.h <<\_ACEOF
19499 #define HAVE_GETHOSTBYNAME_R 1
19500 _ACEOF
19503 cat >>confdefs.h <<\_ACEOF
19504 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
19505 _ACEOF
19507 echo "$as_me:$LINENO: result: yes" >&5
19508 echo "${ECHO_T}yes" >&6
19510 else
19511 echo "$as_me: failed program was:" >&5
19512 sed 's/^/| /' conftest.$ac_ext >&5
19515 echo "$as_me:$LINENO: result: no" >&5
19516 echo "${ECHO_T}no" >&6
19517 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
19518 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
19519 cat >conftest.$ac_ext <<_ACEOF
19520 /* confdefs.h. */
19521 _ACEOF
19522 cat confdefs.h >>conftest.$ac_ext
19523 cat >>conftest.$ac_ext <<_ACEOF
19524 /* end confdefs.h. */
19526 # include <netdb.h>
19529 main ()
19532 char *name;
19533 struct hostent *he;
19534 struct hostent_data data;
19536 (void) gethostbyname_r(name, he, &data);
19539 return 0;
19541 _ACEOF
19542 rm -f conftest.$ac_objext
19543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19544 (eval $ac_compile) 2>conftest.er1
19545 ac_status=$?
19546 grep -v '^ *+' conftest.er1 >conftest.err
19547 rm -f conftest.er1
19548 cat conftest.err >&5
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); } &&
19551 { ac_try='test -z "$ac_c_werror_flag"
19552 || test ! -s conftest.err'
19553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19554 (eval $ac_try) 2>&5
19555 ac_status=$?
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; } &&
19558 { ac_try='test -s conftest.$ac_objext'
19559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560 (eval $ac_try) 2>&5
19561 ac_status=$?
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); }; }; then
19565 cat >>confdefs.h <<\_ACEOF
19566 #define HAVE_GETHOSTBYNAME_R 1
19567 _ACEOF
19570 cat >>confdefs.h <<\_ACEOF
19571 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
19572 _ACEOF
19574 echo "$as_me:$LINENO: result: yes" >&5
19575 echo "${ECHO_T}yes" >&6
19577 else
19578 echo "$as_me: failed program was:" >&5
19579 sed 's/^/| /' conftest.$ac_ext >&5
19582 echo "$as_me:$LINENO: result: no" >&5
19583 echo "${ECHO_T}no" >&6
19586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19593 CFLAGS=$OLD_CFLAGS
19595 else
19598 for ac_func in gethostbyname
19600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19601 echo "$as_me:$LINENO: checking for $ac_func" >&5
19602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19603 if eval "test \"\${$as_ac_var+set}\" = set"; then
19604 echo $ECHO_N "(cached) $ECHO_C" >&6
19605 else
19606 cat >conftest.$ac_ext <<_ACEOF
19607 /* confdefs.h. */
19608 _ACEOF
19609 cat confdefs.h >>conftest.$ac_ext
19610 cat >>conftest.$ac_ext <<_ACEOF
19611 /* end confdefs.h. */
19612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19614 #define $ac_func innocuous_$ac_func
19616 /* System header to define __stub macros and hopefully few prototypes,
19617 which can conflict with char $ac_func (); below.
19618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19619 <limits.h> exists even on freestanding compilers. */
19621 #ifdef __STDC__
19622 # include <limits.h>
19623 #else
19624 # include <assert.h>
19625 #endif
19627 #undef $ac_func
19629 /* Override any gcc2 internal prototype to avoid an error. */
19630 #ifdef __cplusplus
19631 extern "C"
19633 #endif
19634 /* We use char because int might match the return type of a gcc2
19635 builtin and then its argument prototype would still apply. */
19636 char $ac_func ();
19637 /* The GNU C library defines this for functions which it implements
19638 to always fail with ENOSYS. Some functions are actually named
19639 something starting with __ and the normal name is an alias. */
19640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19641 choke me
19642 #else
19643 char (*f) () = $ac_func;
19644 #endif
19645 #ifdef __cplusplus
19647 #endif
19650 main ()
19652 return f != $ac_func;
19654 return 0;
19656 _ACEOF
19657 rm -f conftest.$ac_objext conftest$ac_exeext
19658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19659 (eval $ac_link) 2>conftest.er1
19660 ac_status=$?
19661 grep -v '^ *+' conftest.er1 >conftest.err
19662 rm -f conftest.er1
19663 cat conftest.err >&5
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); } &&
19666 { ac_try='test -z "$ac_c_werror_flag"
19667 || test ! -s conftest.err'
19668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19669 (eval $ac_try) 2>&5
19670 ac_status=$?
19671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672 (exit $ac_status); }; } &&
19673 { ac_try='test -s conftest$ac_exeext'
19674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19675 (eval $ac_try) 2>&5
19676 ac_status=$?
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); }; }; then
19679 eval "$as_ac_var=yes"
19680 else
19681 echo "$as_me: failed program was:" >&5
19682 sed 's/^/| /' conftest.$ac_ext >&5
19684 eval "$as_ac_var=no"
19686 rm -f conftest.err conftest.$ac_objext \
19687 conftest$ac_exeext conftest.$ac_ext
19689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19690 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19691 if test `eval echo '${'$as_ac_var'}'` = yes; then
19692 cat >>confdefs.h <<_ACEOF
19693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19694 _ACEOF
19697 done
19708 # checks for system services
19709 # (none yet)
19711 # Linux requires this for correct f.p. operations
19712 echo "$as_me:$LINENO: checking for __fpu_control" >&5
19713 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
19714 if test "${ac_cv_func___fpu_control+set}" = set; then
19715 echo $ECHO_N "(cached) $ECHO_C" >&6
19716 else
19717 cat >conftest.$ac_ext <<_ACEOF
19718 /* confdefs.h. */
19719 _ACEOF
19720 cat confdefs.h >>conftest.$ac_ext
19721 cat >>conftest.$ac_ext <<_ACEOF
19722 /* end confdefs.h. */
19723 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
19724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19725 #define __fpu_control innocuous___fpu_control
19727 /* System header to define __stub macros and hopefully few prototypes,
19728 which can conflict with char __fpu_control (); below.
19729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19730 <limits.h> exists even on freestanding compilers. */
19732 #ifdef __STDC__
19733 # include <limits.h>
19734 #else
19735 # include <assert.h>
19736 #endif
19738 #undef __fpu_control
19740 /* Override any gcc2 internal prototype to avoid an error. */
19741 #ifdef __cplusplus
19742 extern "C"
19744 #endif
19745 /* We use char because int might match the return type of a gcc2
19746 builtin and then its argument prototype would still apply. */
19747 char __fpu_control ();
19748 /* The GNU C library defines this for functions which it implements
19749 to always fail with ENOSYS. Some functions are actually named
19750 something starting with __ and the normal name is an alias. */
19751 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
19752 choke me
19753 #else
19754 char (*f) () = __fpu_control;
19755 #endif
19756 #ifdef __cplusplus
19758 #endif
19761 main ()
19763 return f != __fpu_control;
19765 return 0;
19767 _ACEOF
19768 rm -f conftest.$ac_objext conftest$ac_exeext
19769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19770 (eval $ac_link) 2>conftest.er1
19771 ac_status=$?
19772 grep -v '^ *+' conftest.er1 >conftest.err
19773 rm -f conftest.er1
19774 cat conftest.err >&5
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); } &&
19777 { ac_try='test -z "$ac_c_werror_flag"
19778 || test ! -s conftest.err'
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); }; } &&
19784 { ac_try='test -s conftest$ac_exeext'
19785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19786 (eval $ac_try) 2>&5
19787 ac_status=$?
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); }; }; then
19790 ac_cv_func___fpu_control=yes
19791 else
19792 echo "$as_me: failed program was:" >&5
19793 sed 's/^/| /' conftest.$ac_ext >&5
19795 ac_cv_func___fpu_control=no
19797 rm -f conftest.err conftest.$ac_objext \
19798 conftest$ac_exeext conftest.$ac_ext
19800 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
19801 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
19802 if test $ac_cv_func___fpu_control = yes; then
19804 else
19806 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
19807 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
19808 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
19809 echo $ECHO_N "(cached) $ECHO_C" >&6
19810 else
19811 ac_check_lib_save_LIBS=$LIBS
19812 LIBS="-lieee $LIBS"
19813 cat >conftest.$ac_ext <<_ACEOF
19814 /* confdefs.h. */
19815 _ACEOF
19816 cat confdefs.h >>conftest.$ac_ext
19817 cat >>conftest.$ac_ext <<_ACEOF
19818 /* end confdefs.h. */
19820 /* Override any gcc2 internal prototype to avoid an error. */
19821 #ifdef __cplusplus
19822 extern "C"
19823 #endif
19824 /* We use char because int might match the return type of a gcc2
19825 builtin and then its argument prototype would still apply. */
19826 char __fpu_control ();
19828 main ()
19830 __fpu_control ();
19832 return 0;
19834 _ACEOF
19835 rm -f conftest.$ac_objext conftest$ac_exeext
19836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19837 (eval $ac_link) 2>conftest.er1
19838 ac_status=$?
19839 grep -v '^ *+' conftest.er1 >conftest.err
19840 rm -f conftest.er1
19841 cat conftest.err >&5
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); } &&
19844 { ac_try='test -z "$ac_c_werror_flag"
19845 || test ! -s conftest.err'
19846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19847 (eval $ac_try) 2>&5
19848 ac_status=$?
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); }; } &&
19851 { ac_try='test -s conftest$ac_exeext'
19852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19853 (eval $ac_try) 2>&5
19854 ac_status=$?
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); }; }; then
19857 ac_cv_lib_ieee___fpu_control=yes
19858 else
19859 echo "$as_me: failed program was:" >&5
19860 sed 's/^/| /' conftest.$ac_ext >&5
19862 ac_cv_lib_ieee___fpu_control=no
19864 rm -f conftest.err conftest.$ac_objext \
19865 conftest$ac_exeext conftest.$ac_ext
19866 LIBS=$ac_check_lib_save_LIBS
19868 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
19869 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
19870 if test $ac_cv_lib_ieee___fpu_control = yes; then
19871 cat >>confdefs.h <<_ACEOF
19872 #define HAVE_LIBIEEE 1
19873 _ACEOF
19875 LIBS="-lieee $LIBS"
19883 # Check for --with-fpectl
19884 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
19885 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
19887 # Check whether --with-fpectl or --without-fpectl was given.
19888 if test "${with_fpectl+set}" = set; then
19889 withval="$with_fpectl"
19891 if test "$withval" != no
19892 then
19894 cat >>confdefs.h <<\_ACEOF
19895 #define WANT_SIGFPE_HANDLER 1
19896 _ACEOF
19898 echo "$as_me:$LINENO: result: yes" >&5
19899 echo "${ECHO_T}yes" >&6
19900 else echo "$as_me:$LINENO: result: no" >&5
19901 echo "${ECHO_T}no" >&6
19903 else
19904 echo "$as_me:$LINENO: result: no" >&5
19905 echo "${ECHO_T}no" >&6
19908 # check for --with-libm=...
19910 case $ac_sys_system in
19911 Darwin) ;;
19912 BeOS) ;;
19913 *) LIBM=-lm
19914 esac
19915 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
19916 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
19918 # Check whether --with-libm or --without-libm was given.
19919 if test "${with_libm+set}" = set; then
19920 withval="$with_libm"
19922 if test "$withval" = no
19923 then LIBM=
19924 echo "$as_me:$LINENO: result: force LIBM empty" >&5
19925 echo "${ECHO_T}force LIBM empty" >&6
19926 elif test "$withval" != yes
19927 then LIBM=$withval
19928 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
19929 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
19930 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
19931 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
19932 { (exit 1); exit 1; }; }
19934 else
19935 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
19936 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
19939 # check for --with-libc=...
19941 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
19942 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
19944 # Check whether --with-libc or --without-libc was given.
19945 if test "${with_libc+set}" = set; then
19946 withval="$with_libc"
19948 if test "$withval" = no
19949 then LIBC=
19950 echo "$as_me:$LINENO: result: force LIBC empty" >&5
19951 echo "${ECHO_T}force LIBC empty" >&6
19952 elif test "$withval" != yes
19953 then LIBC=$withval
19954 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
19955 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
19956 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
19957 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
19958 { (exit 1); exit 1; }; }
19960 else
19961 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
19962 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
19965 # check for hypot() in math library
19966 LIBS_SAVE=$LIBS
19967 LIBS="$LIBS $LIBM"
19969 for ac_func in hypot
19971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19972 echo "$as_me:$LINENO: checking for $ac_func" >&5
19973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19974 if eval "test \"\${$as_ac_var+set}\" = set"; then
19975 echo $ECHO_N "(cached) $ECHO_C" >&6
19976 else
19977 cat >conftest.$ac_ext <<_ACEOF
19978 /* confdefs.h. */
19979 _ACEOF
19980 cat confdefs.h >>conftest.$ac_ext
19981 cat >>conftest.$ac_ext <<_ACEOF
19982 /* end confdefs.h. */
19983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19985 #define $ac_func innocuous_$ac_func
19987 /* System header to define __stub macros and hopefully few prototypes,
19988 which can conflict with char $ac_func (); below.
19989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19990 <limits.h> exists even on freestanding compilers. */
19992 #ifdef __STDC__
19993 # include <limits.h>
19994 #else
19995 # include <assert.h>
19996 #endif
19998 #undef $ac_func
20000 /* Override any gcc2 internal prototype to avoid an error. */
20001 #ifdef __cplusplus
20002 extern "C"
20004 #endif
20005 /* We use char because int might match the return type of a gcc2
20006 builtin and then its argument prototype would still apply. */
20007 char $ac_func ();
20008 /* The GNU C library defines this for functions which it implements
20009 to always fail with ENOSYS. Some functions are actually named
20010 something starting with __ and the normal name is an alias. */
20011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20012 choke me
20013 #else
20014 char (*f) () = $ac_func;
20015 #endif
20016 #ifdef __cplusplus
20018 #endif
20021 main ()
20023 return f != $ac_func;
20025 return 0;
20027 _ACEOF
20028 rm -f conftest.$ac_objext conftest$ac_exeext
20029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20030 (eval $ac_link) 2>conftest.er1
20031 ac_status=$?
20032 grep -v '^ *+' conftest.er1 >conftest.err
20033 rm -f conftest.er1
20034 cat conftest.err >&5
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); } &&
20037 { ac_try='test -z "$ac_c_werror_flag"
20038 || test ! -s conftest.err'
20039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20040 (eval $ac_try) 2>&5
20041 ac_status=$?
20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); }; } &&
20044 { ac_try='test -s conftest$ac_exeext'
20045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20046 (eval $ac_try) 2>&5
20047 ac_status=$?
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); }; }; then
20050 eval "$as_ac_var=yes"
20051 else
20052 echo "$as_me: failed program was:" >&5
20053 sed 's/^/| /' conftest.$ac_ext >&5
20055 eval "$as_ac_var=no"
20057 rm -f conftest.err conftest.$ac_objext \
20058 conftest$ac_exeext conftest.$ac_ext
20060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20062 if test `eval echo '${'$as_ac_var'}'` = yes; then
20063 cat >>confdefs.h <<_ACEOF
20064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20065 _ACEOF
20067 else
20068 case $LIBOBJS in
20069 "$ac_func.$ac_objext" | \
20070 *" $ac_func.$ac_objext" | \
20071 "$ac_func.$ac_objext "* | \
20072 *" $ac_func.$ac_objext "* ) ;;
20073 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20074 esac
20077 done
20080 LIBS=$LIBS_SAVE
20082 # check for wchar.h
20083 if test "${ac_cv_header_wchar_h+set}" = set; then
20084 echo "$as_me:$LINENO: checking for wchar.h" >&5
20085 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
20086 if test "${ac_cv_header_wchar_h+set}" = set; then
20087 echo $ECHO_N "(cached) $ECHO_C" >&6
20089 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
20090 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
20091 else
20092 # Is the header compilable?
20093 echo "$as_me:$LINENO: checking wchar.h usability" >&5
20094 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
20095 cat >conftest.$ac_ext <<_ACEOF
20096 /* confdefs.h. */
20097 _ACEOF
20098 cat confdefs.h >>conftest.$ac_ext
20099 cat >>conftest.$ac_ext <<_ACEOF
20100 /* end confdefs.h. */
20101 $ac_includes_default
20102 #include <wchar.h>
20103 _ACEOF
20104 rm -f conftest.$ac_objext
20105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20106 (eval $ac_compile) 2>conftest.er1
20107 ac_status=$?
20108 grep -v '^ *+' conftest.er1 >conftest.err
20109 rm -f conftest.er1
20110 cat conftest.err >&5
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); } &&
20113 { ac_try='test -z "$ac_c_werror_flag"
20114 || test ! -s conftest.err'
20115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20116 (eval $ac_try) 2>&5
20117 ac_status=$?
20118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); }; } &&
20120 { ac_try='test -s conftest.$ac_objext'
20121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20122 (eval $ac_try) 2>&5
20123 ac_status=$?
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); }; }; then
20126 ac_header_compiler=yes
20127 else
20128 echo "$as_me: failed program was:" >&5
20129 sed 's/^/| /' conftest.$ac_ext >&5
20131 ac_header_compiler=no
20133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20134 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20135 echo "${ECHO_T}$ac_header_compiler" >&6
20137 # Is the header present?
20138 echo "$as_me:$LINENO: checking wchar.h presence" >&5
20139 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
20140 cat >conftest.$ac_ext <<_ACEOF
20141 /* confdefs.h. */
20142 _ACEOF
20143 cat confdefs.h >>conftest.$ac_ext
20144 cat >>conftest.$ac_ext <<_ACEOF
20145 /* end confdefs.h. */
20146 #include <wchar.h>
20147 _ACEOF
20148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20150 ac_status=$?
20151 grep -v '^ *+' conftest.er1 >conftest.err
20152 rm -f conftest.er1
20153 cat conftest.err >&5
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); } >/dev/null; then
20156 if test -s conftest.err; then
20157 ac_cpp_err=$ac_c_preproc_warn_flag
20158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20159 else
20160 ac_cpp_err=
20162 else
20163 ac_cpp_err=yes
20165 if test -z "$ac_cpp_err"; then
20166 ac_header_preproc=yes
20167 else
20168 echo "$as_me: failed program was:" >&5
20169 sed 's/^/| /' conftest.$ac_ext >&5
20171 ac_header_preproc=no
20173 rm -f conftest.err conftest.$ac_ext
20174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20175 echo "${ECHO_T}$ac_header_preproc" >&6
20177 # So? What about this header?
20178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20179 yes:no: )
20180 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
20181 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20182 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
20183 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
20184 ac_header_preproc=yes
20186 no:yes:* )
20187 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
20188 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
20189 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
20190 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
20191 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
20192 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
20193 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
20194 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
20195 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
20196 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
20197 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
20198 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
20200 cat <<\_ASBOX
20201 ## ------------------------------------------------ ##
20202 ## Report this to http://www.python.org/python-bugs ##
20203 ## ------------------------------------------------ ##
20204 _ASBOX
20206 sed "s/^/$as_me: WARNING: /" >&2
20208 esac
20209 echo "$as_me:$LINENO: checking for wchar.h" >&5
20210 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
20211 if test "${ac_cv_header_wchar_h+set}" = set; then
20212 echo $ECHO_N "(cached) $ECHO_C" >&6
20213 else
20214 ac_cv_header_wchar_h=$ac_header_preproc
20216 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
20217 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
20220 if test $ac_cv_header_wchar_h = yes; then
20223 cat >>confdefs.h <<\_ACEOF
20224 #define HAVE_WCHAR_H 1
20225 _ACEOF
20227 wchar_h="yes"
20229 else
20230 wchar_h="no"
20236 # determine wchar_t size
20237 if test "$wchar_h" = yes
20238 then
20239 echo "$as_me:$LINENO: checking for wchar_t" >&5
20240 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
20241 if test "${ac_cv_type_wchar_t+set}" = set; then
20242 echo $ECHO_N "(cached) $ECHO_C" >&6
20243 else
20244 cat >conftest.$ac_ext <<_ACEOF
20245 /* confdefs.h. */
20246 _ACEOF
20247 cat confdefs.h >>conftest.$ac_ext
20248 cat >>conftest.$ac_ext <<_ACEOF
20249 /* end confdefs.h. */
20250 #include <wchar.h>
20253 main ()
20255 if ((wchar_t *) 0)
20256 return 0;
20257 if (sizeof (wchar_t))
20258 return 0;
20260 return 0;
20262 _ACEOF
20263 rm -f conftest.$ac_objext
20264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20265 (eval $ac_compile) 2>conftest.er1
20266 ac_status=$?
20267 grep -v '^ *+' conftest.er1 >conftest.err
20268 rm -f conftest.er1
20269 cat conftest.err >&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); } &&
20272 { ac_try='test -z "$ac_c_werror_flag"
20273 || test ! -s conftest.err'
20274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20275 (eval $ac_try) 2>&5
20276 ac_status=$?
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); }; } &&
20279 { ac_try='test -s conftest.$ac_objext'
20280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20281 (eval $ac_try) 2>&5
20282 ac_status=$?
20283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); }; }; then
20285 ac_cv_type_wchar_t=yes
20286 else
20287 echo "$as_me: failed program was:" >&5
20288 sed 's/^/| /' conftest.$ac_ext >&5
20290 ac_cv_type_wchar_t=no
20292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20294 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
20295 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
20297 echo "$as_me:$LINENO: checking size of wchar_t" >&5
20298 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
20299 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
20300 echo $ECHO_N "(cached) $ECHO_C" >&6
20301 else
20302 if test "$ac_cv_type_wchar_t" = yes; then
20303 # The cast to unsigned long works around a bug in the HP C Compiler
20304 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20305 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20306 # This bug is HP SR number 8606223364.
20307 if test "$cross_compiling" = yes; then
20308 # Depending upon the size, compute the lo and hi bounds.
20309 cat >conftest.$ac_ext <<_ACEOF
20310 /* confdefs.h. */
20311 _ACEOF
20312 cat confdefs.h >>conftest.$ac_ext
20313 cat >>conftest.$ac_ext <<_ACEOF
20314 /* end confdefs.h. */
20315 #include <wchar.h>
20318 main ()
20320 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
20321 test_array [0] = 0
20324 return 0;
20326 _ACEOF
20327 rm -f conftest.$ac_objext
20328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20329 (eval $ac_compile) 2>conftest.er1
20330 ac_status=$?
20331 grep -v '^ *+' conftest.er1 >conftest.err
20332 rm -f conftest.er1
20333 cat conftest.err >&5
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); } &&
20336 { ac_try='test -z "$ac_c_werror_flag"
20337 || test ! -s conftest.err'
20338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20339 (eval $ac_try) 2>&5
20340 ac_status=$?
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); }; } &&
20343 { ac_try='test -s conftest.$ac_objext'
20344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20345 (eval $ac_try) 2>&5
20346 ac_status=$?
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); }; }; then
20349 ac_lo=0 ac_mid=0
20350 while :; do
20351 cat >conftest.$ac_ext <<_ACEOF
20352 /* confdefs.h. */
20353 _ACEOF
20354 cat confdefs.h >>conftest.$ac_ext
20355 cat >>conftest.$ac_ext <<_ACEOF
20356 /* end confdefs.h. */
20357 #include <wchar.h>
20360 main ()
20362 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20363 test_array [0] = 0
20366 return 0;
20368 _ACEOF
20369 rm -f conftest.$ac_objext
20370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20371 (eval $ac_compile) 2>conftest.er1
20372 ac_status=$?
20373 grep -v '^ *+' conftest.er1 >conftest.err
20374 rm -f conftest.er1
20375 cat conftest.err >&5
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); } &&
20378 { ac_try='test -z "$ac_c_werror_flag"
20379 || test ! -s conftest.err'
20380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20381 (eval $ac_try) 2>&5
20382 ac_status=$?
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); }; } &&
20385 { ac_try='test -s conftest.$ac_objext'
20386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20387 (eval $ac_try) 2>&5
20388 ac_status=$?
20389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390 (exit $ac_status); }; }; then
20391 ac_hi=$ac_mid; break
20392 else
20393 echo "$as_me: failed program was:" >&5
20394 sed 's/^/| /' conftest.$ac_ext >&5
20396 ac_lo=`expr $ac_mid + 1`
20397 if test $ac_lo -le $ac_mid; then
20398 ac_lo= ac_hi=
20399 break
20401 ac_mid=`expr 2 '*' $ac_mid + 1`
20403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20404 done
20405 else
20406 echo "$as_me: failed program was:" >&5
20407 sed 's/^/| /' conftest.$ac_ext >&5
20409 cat >conftest.$ac_ext <<_ACEOF
20410 /* confdefs.h. */
20411 _ACEOF
20412 cat confdefs.h >>conftest.$ac_ext
20413 cat >>conftest.$ac_ext <<_ACEOF
20414 /* end confdefs.h. */
20415 #include <wchar.h>
20418 main ()
20420 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
20421 test_array [0] = 0
20424 return 0;
20426 _ACEOF
20427 rm -f conftest.$ac_objext
20428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20429 (eval $ac_compile) 2>conftest.er1
20430 ac_status=$?
20431 grep -v '^ *+' conftest.er1 >conftest.err
20432 rm -f conftest.er1
20433 cat conftest.err >&5
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); } &&
20436 { ac_try='test -z "$ac_c_werror_flag"
20437 || test ! -s conftest.err'
20438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20439 (eval $ac_try) 2>&5
20440 ac_status=$?
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); }; } &&
20443 { ac_try='test -s conftest.$ac_objext'
20444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20445 (eval $ac_try) 2>&5
20446 ac_status=$?
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); }; }; then
20449 ac_hi=-1 ac_mid=-1
20450 while :; do
20451 cat >conftest.$ac_ext <<_ACEOF
20452 /* confdefs.h. */
20453 _ACEOF
20454 cat confdefs.h >>conftest.$ac_ext
20455 cat >>conftest.$ac_ext <<_ACEOF
20456 /* end confdefs.h. */
20457 #include <wchar.h>
20460 main ()
20462 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
20463 test_array [0] = 0
20466 return 0;
20468 _ACEOF
20469 rm -f conftest.$ac_objext
20470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20471 (eval $ac_compile) 2>conftest.er1
20472 ac_status=$?
20473 grep -v '^ *+' conftest.er1 >conftest.err
20474 rm -f conftest.er1
20475 cat conftest.err >&5
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); } &&
20478 { ac_try='test -z "$ac_c_werror_flag"
20479 || test ! -s conftest.err'
20480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20481 (eval $ac_try) 2>&5
20482 ac_status=$?
20483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); }; } &&
20485 { ac_try='test -s conftest.$ac_objext'
20486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20487 (eval $ac_try) 2>&5
20488 ac_status=$?
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); }; }; then
20491 ac_lo=$ac_mid; break
20492 else
20493 echo "$as_me: failed program was:" >&5
20494 sed 's/^/| /' conftest.$ac_ext >&5
20496 ac_hi=`expr '(' $ac_mid ')' - 1`
20497 if test $ac_mid -le $ac_hi; then
20498 ac_lo= ac_hi=
20499 break
20501 ac_mid=`expr 2 '*' $ac_mid`
20503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20504 done
20505 else
20506 echo "$as_me: failed program was:" >&5
20507 sed 's/^/| /' conftest.$ac_ext >&5
20509 ac_lo= ac_hi=
20511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20514 # Binary search between lo and hi bounds.
20515 while test "x$ac_lo" != "x$ac_hi"; do
20516 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20517 cat >conftest.$ac_ext <<_ACEOF
20518 /* confdefs.h. */
20519 _ACEOF
20520 cat confdefs.h >>conftest.$ac_ext
20521 cat >>conftest.$ac_ext <<_ACEOF
20522 /* end confdefs.h. */
20523 #include <wchar.h>
20526 main ()
20528 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20529 test_array [0] = 0
20532 return 0;
20534 _ACEOF
20535 rm -f conftest.$ac_objext
20536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20537 (eval $ac_compile) 2>conftest.er1
20538 ac_status=$?
20539 grep -v '^ *+' conftest.er1 >conftest.err
20540 rm -f conftest.er1
20541 cat conftest.err >&5
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); } &&
20544 { ac_try='test -z "$ac_c_werror_flag"
20545 || test ! -s conftest.err'
20546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20547 (eval $ac_try) 2>&5
20548 ac_status=$?
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); }; } &&
20551 { ac_try='test -s conftest.$ac_objext'
20552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20553 (eval $ac_try) 2>&5
20554 ac_status=$?
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); }; }; then
20557 ac_hi=$ac_mid
20558 else
20559 echo "$as_me: failed program was:" >&5
20560 sed 's/^/| /' conftest.$ac_ext >&5
20562 ac_lo=`expr '(' $ac_mid ')' + 1`
20564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20565 done
20566 case $ac_lo in
20567 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
20568 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20569 See \`config.log' for more details." >&5
20570 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20571 See \`config.log' for more details." >&2;}
20572 { (exit 1); exit 1; }; } ;;
20573 esac
20574 else
20575 if test "$cross_compiling" = yes; then
20576 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20577 See \`config.log' for more details." >&5
20578 echo "$as_me: error: cannot run test program while cross compiling
20579 See \`config.log' for more details." >&2;}
20580 { (exit 1); exit 1; }; }
20581 else
20582 cat >conftest.$ac_ext <<_ACEOF
20583 /* confdefs.h. */
20584 _ACEOF
20585 cat confdefs.h >>conftest.$ac_ext
20586 cat >>conftest.$ac_ext <<_ACEOF
20587 /* end confdefs.h. */
20588 #include <wchar.h>
20590 long longval () { return (long) (sizeof (wchar_t)); }
20591 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
20592 #include <stdio.h>
20593 #include <stdlib.h>
20595 main ()
20598 FILE *f = fopen ("conftest.val", "w");
20599 if (! f)
20600 exit (1);
20601 if (((long) (sizeof (wchar_t))) < 0)
20603 long i = longval ();
20604 if (i != ((long) (sizeof (wchar_t))))
20605 exit (1);
20606 fprintf (f, "%ld\n", i);
20608 else
20610 unsigned long i = ulongval ();
20611 if (i != ((long) (sizeof (wchar_t))))
20612 exit (1);
20613 fprintf (f, "%lu\n", i);
20615 exit (ferror (f) || fclose (f) != 0);
20618 return 0;
20620 _ACEOF
20621 rm -f conftest$ac_exeext
20622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20623 (eval $ac_link) 2>&5
20624 ac_status=$?
20625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20628 (eval $ac_try) 2>&5
20629 ac_status=$?
20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 (exit $ac_status); }; }; then
20632 ac_cv_sizeof_wchar_t=`cat conftest.val`
20633 else
20634 echo "$as_me: program exited with status $ac_status" >&5
20635 echo "$as_me: failed program was:" >&5
20636 sed 's/^/| /' conftest.$ac_ext >&5
20638 ( exit $ac_status )
20639 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20640 See \`config.log' for more details." >&5
20641 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20642 See \`config.log' for more details." >&2;}
20643 { (exit 1); exit 1; }; }
20645 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20648 rm -f conftest.val
20649 else
20650 ac_cv_sizeof_wchar_t=0
20653 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
20654 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
20655 cat >>confdefs.h <<_ACEOF
20656 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
20657 _ACEOF
20662 echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
20663 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6
20664 have_ucs4_tcl=no
20665 cat >conftest.$ac_ext <<_ACEOF
20666 /* confdefs.h. */
20667 _ACEOF
20668 cat confdefs.h >>conftest.$ac_ext
20669 cat >>conftest.$ac_ext <<_ACEOF
20670 /* end confdefs.h. */
20672 #include <tcl.h>
20673 #if TCL_UTF_MAX != 6
20674 # error "NOT UCS4_TCL"
20675 #endif
20677 main ()
20681 return 0;
20683 _ACEOF
20684 rm -f conftest.$ac_objext
20685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20686 (eval $ac_compile) 2>conftest.er1
20687 ac_status=$?
20688 grep -v '^ *+' conftest.er1 >conftest.err
20689 rm -f conftest.er1
20690 cat conftest.err >&5
20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692 (exit $ac_status); } &&
20693 { ac_try='test -z "$ac_c_werror_flag"
20694 || test ! -s conftest.err'
20695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20696 (eval $ac_try) 2>&5
20697 ac_status=$?
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); }; } &&
20700 { ac_try='test -s conftest.$ac_objext'
20701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20702 (eval $ac_try) 2>&5
20703 ac_status=$?
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); }; }; then
20708 cat >>confdefs.h <<\_ACEOF
20709 #define HAVE_UCS4_TCL 1
20710 _ACEOF
20712 have_ucs4_tcl=yes
20714 else
20715 echo "$as_me: failed program was:" >&5
20716 sed 's/^/| /' conftest.$ac_ext >&5
20719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20720 echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
20721 echo "${ECHO_T}$have_ucs4_tcl" >&6
20723 # check whether wchar_t is signed or not
20724 if test "$wchar_h" = yes
20725 then
20726 # check whether wchar_t is signed or not
20727 echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
20728 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6
20729 if test "${ac_cv_wchar_t_signed+set}" = set; then
20730 echo $ECHO_N "(cached) $ECHO_C" >&6
20731 else
20733 if test "$cross_compiling" = yes; then
20734 ac_cv_wchar_t_signed=yes
20735 else
20736 cat >conftest.$ac_ext <<_ACEOF
20737 /* confdefs.h. */
20738 _ACEOF
20739 cat confdefs.h >>conftest.$ac_ext
20740 cat >>conftest.$ac_ext <<_ACEOF
20741 /* end confdefs.h. */
20743 #include <wchar.h>
20744 int main()
20746 /* Success: exit code 0 */
20747 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
20750 _ACEOF
20751 rm -f conftest$ac_exeext
20752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20753 (eval $ac_link) 2>&5
20754 ac_status=$?
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20758 (eval $ac_try) 2>&5
20759 ac_status=$?
20760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761 (exit $ac_status); }; }; then
20762 ac_cv_wchar_t_signed=yes
20763 else
20764 echo "$as_me: program exited with status $ac_status" >&5
20765 echo "$as_me: failed program was:" >&5
20766 sed 's/^/| /' conftest.$ac_ext >&5
20768 ( exit $ac_status )
20769 ac_cv_wchar_t_signed=no
20771 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20775 echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
20776 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6
20779 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
20780 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
20781 # Check whether --enable-unicode or --disable-unicode was given.
20782 if test "${enable_unicode+set}" = set; then
20783 enableval="$enable_unicode"
20785 else
20786 enable_unicode=yes
20789 if test $enable_unicode = yes
20790 then
20791 # Without any arguments, Py_UNICODE defaults to two-byte mode
20792 case "$have_ucs4_tcl" in
20793 yes) enable_unicode="ucs4"
20795 *) enable_unicode="ucs2"
20797 esac
20802 case "$enable_unicode" in
20803 ucs2) unicode_size="2"
20804 cat >>confdefs.h <<\_ACEOF
20805 #define Py_UNICODE_SIZE 2
20806 _ACEOF
20809 ucs4) unicode_size="4"
20810 cat >>confdefs.h <<\_ACEOF
20811 #define Py_UNICODE_SIZE 4
20812 _ACEOF
20815 esac
20821 if test "$enable_unicode" = "no"
20822 then
20823 UNICODE_OBJS=""
20824 echo "$as_me:$LINENO: result: not used" >&5
20825 echo "${ECHO_T}not used" >&6
20826 else
20827 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
20829 cat >>confdefs.h <<\_ACEOF
20830 #define Py_USING_UNICODE 1
20831 _ACEOF
20834 # wchar_t is only usable if it maps to an unsigned type
20835 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
20836 -a "$ac_cv_wchar_t_signed" = "no"
20837 then
20838 PY_UNICODE_TYPE="wchar_t"
20840 cat >>confdefs.h <<\_ACEOF
20841 #define HAVE_USABLE_WCHAR_T 1
20842 _ACEOF
20844 cat >>confdefs.h <<\_ACEOF
20845 #define PY_UNICODE_TYPE wchar_t
20846 _ACEOF
20848 elif test "$ac_cv_sizeof_short" = "$unicode_size"
20849 then
20850 PY_UNICODE_TYPE="unsigned short"
20851 cat >>confdefs.h <<\_ACEOF
20852 #define PY_UNICODE_TYPE unsigned short
20853 _ACEOF
20855 elif test "$ac_cv_sizeof_long" = "$unicode_size"
20856 then
20857 PY_UNICODE_TYPE="unsigned long"
20858 cat >>confdefs.h <<\_ACEOF
20859 #define PY_UNICODE_TYPE unsigned long
20860 _ACEOF
20862 else
20863 PY_UNICODE_TYPE="no type found"
20865 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
20866 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
20869 # check for endianness
20870 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20871 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20872 if test "${ac_cv_c_bigendian+set}" = set; then
20873 echo $ECHO_N "(cached) $ECHO_C" >&6
20874 else
20875 # See if sys/param.h defines the BYTE_ORDER macro.
20876 cat >conftest.$ac_ext <<_ACEOF
20877 /* confdefs.h. */
20878 _ACEOF
20879 cat confdefs.h >>conftest.$ac_ext
20880 cat >>conftest.$ac_ext <<_ACEOF
20881 /* end confdefs.h. */
20882 #include <sys/types.h>
20883 #include <sys/param.h>
20886 main ()
20888 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20889 bogus endian macros
20890 #endif
20893 return 0;
20895 _ACEOF
20896 rm -f conftest.$ac_objext
20897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20898 (eval $ac_compile) 2>conftest.er1
20899 ac_status=$?
20900 grep -v '^ *+' conftest.er1 >conftest.err
20901 rm -f conftest.er1
20902 cat conftest.err >&5
20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); } &&
20905 { ac_try='test -z "$ac_c_werror_flag"
20906 || test ! -s conftest.err'
20907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20908 (eval $ac_try) 2>&5
20909 ac_status=$?
20910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911 (exit $ac_status); }; } &&
20912 { ac_try='test -s conftest.$ac_objext'
20913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20914 (eval $ac_try) 2>&5
20915 ac_status=$?
20916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917 (exit $ac_status); }; }; then
20918 # It does; now see whether it defined to BIG_ENDIAN or not.
20919 cat >conftest.$ac_ext <<_ACEOF
20920 /* confdefs.h. */
20921 _ACEOF
20922 cat confdefs.h >>conftest.$ac_ext
20923 cat >>conftest.$ac_ext <<_ACEOF
20924 /* end confdefs.h. */
20925 #include <sys/types.h>
20926 #include <sys/param.h>
20929 main ()
20931 #if BYTE_ORDER != BIG_ENDIAN
20932 not big endian
20933 #endif
20936 return 0;
20938 _ACEOF
20939 rm -f conftest.$ac_objext
20940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20941 (eval $ac_compile) 2>conftest.er1
20942 ac_status=$?
20943 grep -v '^ *+' conftest.er1 >conftest.err
20944 rm -f conftest.er1
20945 cat conftest.err >&5
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947 (exit $ac_status); } &&
20948 { ac_try='test -z "$ac_c_werror_flag"
20949 || test ! -s conftest.err'
20950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20951 (eval $ac_try) 2>&5
20952 ac_status=$?
20953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954 (exit $ac_status); }; } &&
20955 { ac_try='test -s conftest.$ac_objext'
20956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20957 (eval $ac_try) 2>&5
20958 ac_status=$?
20959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20960 (exit $ac_status); }; }; then
20961 ac_cv_c_bigendian=yes
20962 else
20963 echo "$as_me: failed program was:" >&5
20964 sed 's/^/| /' conftest.$ac_ext >&5
20966 ac_cv_c_bigendian=no
20968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20969 else
20970 echo "$as_me: failed program was:" >&5
20971 sed 's/^/| /' conftest.$ac_ext >&5
20973 # It does not; compile a test program.
20974 if test "$cross_compiling" = yes; then
20975 # try to guess the endianness by grepping values into an object file
20976 ac_cv_c_bigendian=unknown
20977 cat >conftest.$ac_ext <<_ACEOF
20978 /* confdefs.h. */
20979 _ACEOF
20980 cat confdefs.h >>conftest.$ac_ext
20981 cat >>conftest.$ac_ext <<_ACEOF
20982 /* end confdefs.h. */
20983 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20984 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20985 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20986 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20987 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20988 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20990 main ()
20992 _ascii (); _ebcdic ();
20994 return 0;
20996 _ACEOF
20997 rm -f conftest.$ac_objext
20998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20999 (eval $ac_compile) 2>conftest.er1
21000 ac_status=$?
21001 grep -v '^ *+' conftest.er1 >conftest.err
21002 rm -f conftest.er1
21003 cat conftest.err >&5
21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005 (exit $ac_status); } &&
21006 { ac_try='test -z "$ac_c_werror_flag"
21007 || test ! -s conftest.err'
21008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21009 (eval $ac_try) 2>&5
21010 ac_status=$?
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); }; } &&
21013 { ac_try='test -s conftest.$ac_objext'
21014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21015 (eval $ac_try) 2>&5
21016 ac_status=$?
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); }; }; then
21019 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21020 ac_cv_c_bigendian=yes
21022 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21023 if test "$ac_cv_c_bigendian" = unknown; then
21024 ac_cv_c_bigendian=no
21025 else
21026 # finding both strings is unlikely to happen, but who knows?
21027 ac_cv_c_bigendian=unknown
21030 else
21031 echo "$as_me: failed program was:" >&5
21032 sed 's/^/| /' conftest.$ac_ext >&5
21035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21036 else
21037 cat >conftest.$ac_ext <<_ACEOF
21038 /* confdefs.h. */
21039 _ACEOF
21040 cat confdefs.h >>conftest.$ac_ext
21041 cat >>conftest.$ac_ext <<_ACEOF
21042 /* end confdefs.h. */
21044 main ()
21046 /* Are we little or big endian? From Harbison&Steele. */
21047 union
21049 long l;
21050 char c[sizeof (long)];
21051 } u;
21052 u.l = 1;
21053 exit (u.c[sizeof (long) - 1] == 1);
21055 _ACEOF
21056 rm -f conftest$ac_exeext
21057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21058 (eval $ac_link) 2>&5
21059 ac_status=$?
21060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21063 (eval $ac_try) 2>&5
21064 ac_status=$?
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); }; }; then
21067 ac_cv_c_bigendian=no
21068 else
21069 echo "$as_me: program exited with status $ac_status" >&5
21070 echo "$as_me: failed program was:" >&5
21071 sed 's/^/| /' conftest.$ac_ext >&5
21073 ( exit $ac_status )
21074 ac_cv_c_bigendian=yes
21076 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21081 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21082 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21083 case $ac_cv_c_bigendian in
21084 yes)
21086 cat >>confdefs.h <<\_ACEOF
21087 #define WORDS_BIGENDIAN 1
21088 _ACEOF
21093 { { echo "$as_me:$LINENO: error: unknown endianness
21094 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21095 echo "$as_me: error: unknown endianness
21096 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21097 { (exit 1); exit 1; }; } ;;
21098 esac
21103 # Check whether right shifting a negative integer extends the sign bit
21104 # or fills with zeros (like the Cray J90, according to Tim Peters).
21105 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
21106 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
21107 if test "${ac_cv_rshift_extends_sign+set}" = set; then
21108 echo $ECHO_N "(cached) $ECHO_C" >&6
21109 else
21111 if test "$cross_compiling" = yes; then
21112 ac_cv_rshift_extends_sign=yes
21113 else
21114 cat >conftest.$ac_ext <<_ACEOF
21115 /* confdefs.h. */
21116 _ACEOF
21117 cat confdefs.h >>conftest.$ac_ext
21118 cat >>conftest.$ac_ext <<_ACEOF
21119 /* end confdefs.h. */
21121 int main()
21123 exit(((-1)>>3 == -1) ? 0 : 1);
21126 _ACEOF
21127 rm -f conftest$ac_exeext
21128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21129 (eval $ac_link) 2>&5
21130 ac_status=$?
21131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21134 (eval $ac_try) 2>&5
21135 ac_status=$?
21136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 (exit $ac_status); }; }; then
21138 ac_cv_rshift_extends_sign=yes
21139 else
21140 echo "$as_me: program exited with status $ac_status" >&5
21141 echo "$as_me: failed program was:" >&5
21142 sed 's/^/| /' conftest.$ac_ext >&5
21144 ( exit $ac_status )
21145 ac_cv_rshift_extends_sign=no
21147 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21151 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
21152 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
21153 if test "$ac_cv_rshift_extends_sign" = no
21154 then
21156 cat >>confdefs.h <<\_ACEOF
21157 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
21158 _ACEOF
21162 # check for getc_unlocked and related locking functions
21163 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
21164 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
21165 if test "${ac_cv_have_getc_unlocked+set}" = set; then
21166 echo $ECHO_N "(cached) $ECHO_C" >&6
21167 else
21169 cat >conftest.$ac_ext <<_ACEOF
21170 /* confdefs.h. */
21171 _ACEOF
21172 cat confdefs.h >>conftest.$ac_ext
21173 cat >>conftest.$ac_ext <<_ACEOF
21174 /* end confdefs.h. */
21175 #include <stdio.h>
21177 main ()
21180 FILE *f = fopen("/dev/null", "r");
21181 flockfile(f);
21182 getc_unlocked(f);
21183 funlockfile(f);
21186 return 0;
21188 _ACEOF
21189 rm -f conftest.$ac_objext conftest$ac_exeext
21190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21191 (eval $ac_link) 2>conftest.er1
21192 ac_status=$?
21193 grep -v '^ *+' conftest.er1 >conftest.err
21194 rm -f conftest.er1
21195 cat conftest.err >&5
21196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197 (exit $ac_status); } &&
21198 { ac_try='test -z "$ac_c_werror_flag"
21199 || test ! -s conftest.err'
21200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21201 (eval $ac_try) 2>&5
21202 ac_status=$?
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); }; } &&
21205 { ac_try='test -s conftest$ac_exeext'
21206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21207 (eval $ac_try) 2>&5
21208 ac_status=$?
21209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210 (exit $ac_status); }; }; then
21211 ac_cv_have_getc_unlocked=yes
21212 else
21213 echo "$as_me: failed program was:" >&5
21214 sed 's/^/| /' conftest.$ac_ext >&5
21216 ac_cv_have_getc_unlocked=no
21218 rm -f conftest.err conftest.$ac_objext \
21219 conftest$ac_exeext conftest.$ac_ext
21222 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
21223 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
21224 if test "$ac_cv_have_getc_unlocked" = yes
21225 then
21227 cat >>confdefs.h <<\_ACEOF
21228 #define HAVE_GETC_UNLOCKED 1
21229 _ACEOF
21233 # check where readline lives
21234 # save the value of LIBS so we don't actually link Python with readline
21235 LIBS_no_readline=$LIBS
21237 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
21238 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
21239 if test "${ac_cv_lib_readline_readline+set}" = set; then
21240 echo $ECHO_N "(cached) $ECHO_C" >&6
21241 else
21242 ac_check_lib_save_LIBS=$LIBS
21243 LIBS="-lreadline $LIBS"
21244 cat >conftest.$ac_ext <<_ACEOF
21245 /* confdefs.h. */
21246 _ACEOF
21247 cat confdefs.h >>conftest.$ac_ext
21248 cat >>conftest.$ac_ext <<_ACEOF
21249 /* end confdefs.h. */
21251 /* Override any gcc2 internal prototype to avoid an error. */
21252 #ifdef __cplusplus
21253 extern "C"
21254 #endif
21255 /* We use char because int might match the return type of a gcc2
21256 builtin and then its argument prototype would still apply. */
21257 char readline ();
21259 main ()
21261 readline ();
21263 return 0;
21265 _ACEOF
21266 rm -f conftest.$ac_objext conftest$ac_exeext
21267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21268 (eval $ac_link) 2>conftest.er1
21269 ac_status=$?
21270 grep -v '^ *+' conftest.er1 >conftest.err
21271 rm -f conftest.er1
21272 cat conftest.err >&5
21273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274 (exit $ac_status); } &&
21275 { ac_try='test -z "$ac_c_werror_flag"
21276 || test ! -s conftest.err'
21277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21278 (eval $ac_try) 2>&5
21279 ac_status=$?
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); }; } &&
21282 { ac_try='test -s conftest$ac_exeext'
21283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21284 (eval $ac_try) 2>&5
21285 ac_status=$?
21286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287 (exit $ac_status); }; }; then
21288 ac_cv_lib_readline_readline=yes
21289 else
21290 echo "$as_me: failed program was:" >&5
21291 sed 's/^/| /' conftest.$ac_ext >&5
21293 ac_cv_lib_readline_readline=no
21295 rm -f conftest.err conftest.$ac_objext \
21296 conftest$ac_exeext conftest.$ac_ext
21297 LIBS=$ac_check_lib_save_LIBS
21299 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
21300 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
21301 if test $ac_cv_lib_readline_readline = yes; then
21302 cat >>confdefs.h <<_ACEOF
21303 #define HAVE_LIBREADLINE 1
21304 _ACEOF
21306 LIBS="-lreadline $LIBS"
21310 if test "$ac_cv_have_readline_readline" = no
21311 then
21313 echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
21314 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6
21315 if test "${ac_cv_lib_termcap_readline+set}" = set; then
21316 echo $ECHO_N "(cached) $ECHO_C" >&6
21317 else
21318 ac_check_lib_save_LIBS=$LIBS
21319 LIBS="-ltermcap $LIBS"
21320 cat >conftest.$ac_ext <<_ACEOF
21321 /* confdefs.h. */
21322 _ACEOF
21323 cat confdefs.h >>conftest.$ac_ext
21324 cat >>conftest.$ac_ext <<_ACEOF
21325 /* end confdefs.h. */
21327 /* Override any gcc2 internal prototype to avoid an error. */
21328 #ifdef __cplusplus
21329 extern "C"
21330 #endif
21331 /* We use char because int might match the return type of a gcc2
21332 builtin and then its argument prototype would still apply. */
21333 char readline ();
21335 main ()
21337 readline ();
21339 return 0;
21341 _ACEOF
21342 rm -f conftest.$ac_objext conftest$ac_exeext
21343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21344 (eval $ac_link) 2>conftest.er1
21345 ac_status=$?
21346 grep -v '^ *+' conftest.er1 >conftest.err
21347 rm -f conftest.er1
21348 cat conftest.err >&5
21349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350 (exit $ac_status); } &&
21351 { ac_try='test -z "$ac_c_werror_flag"
21352 || test ! -s conftest.err'
21353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21354 (eval $ac_try) 2>&5
21355 ac_status=$?
21356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357 (exit $ac_status); }; } &&
21358 { ac_try='test -s conftest$ac_exeext'
21359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21360 (eval $ac_try) 2>&5
21361 ac_status=$?
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); }; }; then
21364 ac_cv_lib_termcap_readline=yes
21365 else
21366 echo "$as_me: failed program was:" >&5
21367 sed 's/^/| /' conftest.$ac_ext >&5
21369 ac_cv_lib_termcap_readline=no
21371 rm -f conftest.err conftest.$ac_objext \
21372 conftest$ac_exeext conftest.$ac_ext
21373 LIBS=$ac_check_lib_save_LIBS
21375 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
21376 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6
21377 if test $ac_cv_lib_termcap_readline = yes; then
21378 cat >>confdefs.h <<_ACEOF
21379 #define HAVE_LIBTERMCAP 1
21380 _ACEOF
21382 LIBS="-ltermcap $LIBS"
21388 # check for readline 2.1
21389 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
21390 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
21391 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
21392 echo $ECHO_N "(cached) $ECHO_C" >&6
21393 else
21394 ac_check_lib_save_LIBS=$LIBS
21395 LIBS="-lreadline $LIBS"
21396 cat >conftest.$ac_ext <<_ACEOF
21397 /* confdefs.h. */
21398 _ACEOF
21399 cat confdefs.h >>conftest.$ac_ext
21400 cat >>conftest.$ac_ext <<_ACEOF
21401 /* end confdefs.h. */
21403 /* Override any gcc2 internal prototype to avoid an error. */
21404 #ifdef __cplusplus
21405 extern "C"
21406 #endif
21407 /* We use char because int might match the return type of a gcc2
21408 builtin and then its argument prototype would still apply. */
21409 char rl_callback_handler_install ();
21411 main ()
21413 rl_callback_handler_install ();
21415 return 0;
21417 _ACEOF
21418 rm -f conftest.$ac_objext conftest$ac_exeext
21419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21420 (eval $ac_link) 2>conftest.er1
21421 ac_status=$?
21422 grep -v '^ *+' conftest.er1 >conftest.err
21423 rm -f conftest.er1
21424 cat conftest.err >&5
21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426 (exit $ac_status); } &&
21427 { ac_try='test -z "$ac_c_werror_flag"
21428 || test ! -s conftest.err'
21429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21430 (eval $ac_try) 2>&5
21431 ac_status=$?
21432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433 (exit $ac_status); }; } &&
21434 { ac_try='test -s conftest$ac_exeext'
21435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21436 (eval $ac_try) 2>&5
21437 ac_status=$?
21438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439 (exit $ac_status); }; }; then
21440 ac_cv_lib_readline_rl_callback_handler_install=yes
21441 else
21442 echo "$as_me: failed program was:" >&5
21443 sed 's/^/| /' conftest.$ac_ext >&5
21445 ac_cv_lib_readline_rl_callback_handler_install=no
21447 rm -f conftest.err conftest.$ac_objext \
21448 conftest$ac_exeext conftest.$ac_ext
21449 LIBS=$ac_check_lib_save_LIBS
21451 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
21452 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
21453 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
21455 cat >>confdefs.h <<\_ACEOF
21456 #define HAVE_RL_CALLBACK 1
21457 _ACEOF
21462 # check for readline 2.2
21463 cat >conftest.$ac_ext <<_ACEOF
21464 /* confdefs.h. */
21465 _ACEOF
21466 cat confdefs.h >>conftest.$ac_ext
21467 cat >>conftest.$ac_ext <<_ACEOF
21468 /* end confdefs.h. */
21469 #include <readline/readline.h>
21470 _ACEOF
21471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21473 ac_status=$?
21474 grep -v '^ *+' conftest.er1 >conftest.err
21475 rm -f conftest.er1
21476 cat conftest.err >&5
21477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478 (exit $ac_status); } >/dev/null; then
21479 if test -s conftest.err; then
21480 ac_cpp_err=$ac_c_preproc_warn_flag
21481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21482 else
21483 ac_cpp_err=
21485 else
21486 ac_cpp_err=yes
21488 if test -z "$ac_cpp_err"; then
21489 have_readline=yes
21490 else
21491 echo "$as_me: failed program was:" >&5
21492 sed 's/^/| /' conftest.$ac_ext >&5
21494 have_readline=no
21496 rm -f conftest.err conftest.$ac_ext
21497 if test $have_readline = yes
21498 then
21499 cat >conftest.$ac_ext <<_ACEOF
21500 /* confdefs.h. */
21501 _ACEOF
21502 cat confdefs.h >>conftest.$ac_ext
21503 cat >>conftest.$ac_ext <<_ACEOF
21504 /* end confdefs.h. */
21505 #include <readline/readline.h>
21507 _ACEOF
21508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21509 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
21511 cat >>confdefs.h <<\_ACEOF
21512 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
21513 _ACEOF
21516 rm -f conftest*
21520 # check for readline 4.0
21521 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
21522 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
21523 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
21524 echo $ECHO_N "(cached) $ECHO_C" >&6
21525 else
21526 ac_check_lib_save_LIBS=$LIBS
21527 LIBS="-lreadline $LIBS"
21528 cat >conftest.$ac_ext <<_ACEOF
21529 /* confdefs.h. */
21530 _ACEOF
21531 cat confdefs.h >>conftest.$ac_ext
21532 cat >>conftest.$ac_ext <<_ACEOF
21533 /* end confdefs.h. */
21535 /* Override any gcc2 internal prototype to avoid an error. */
21536 #ifdef __cplusplus
21537 extern "C"
21538 #endif
21539 /* We use char because int might match the return type of a gcc2
21540 builtin and then its argument prototype would still apply. */
21541 char rl_pre_input_hook ();
21543 main ()
21545 rl_pre_input_hook ();
21547 return 0;
21549 _ACEOF
21550 rm -f conftest.$ac_objext conftest$ac_exeext
21551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21552 (eval $ac_link) 2>conftest.er1
21553 ac_status=$?
21554 grep -v '^ *+' conftest.er1 >conftest.err
21555 rm -f conftest.er1
21556 cat conftest.err >&5
21557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558 (exit $ac_status); } &&
21559 { ac_try='test -z "$ac_c_werror_flag"
21560 || test ! -s conftest.err'
21561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21562 (eval $ac_try) 2>&5
21563 ac_status=$?
21564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); }; } &&
21566 { ac_try='test -s conftest$ac_exeext'
21567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21568 (eval $ac_try) 2>&5
21569 ac_status=$?
21570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571 (exit $ac_status); }; }; then
21572 ac_cv_lib_readline_rl_pre_input_hook=yes
21573 else
21574 echo "$as_me: failed program was:" >&5
21575 sed 's/^/| /' conftest.$ac_ext >&5
21577 ac_cv_lib_readline_rl_pre_input_hook=no
21579 rm -f conftest.err conftest.$ac_objext \
21580 conftest$ac_exeext conftest.$ac_ext
21581 LIBS=$ac_check_lib_save_LIBS
21583 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
21584 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
21585 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
21587 cat >>confdefs.h <<\_ACEOF
21588 #define HAVE_RL_PRE_INPUT_HOOK 1
21589 _ACEOF
21594 # check for readline 4.2
21595 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
21596 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
21597 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
21598 echo $ECHO_N "(cached) $ECHO_C" >&6
21599 else
21600 ac_check_lib_save_LIBS=$LIBS
21601 LIBS="-lreadline $LIBS"
21602 cat >conftest.$ac_ext <<_ACEOF
21603 /* confdefs.h. */
21604 _ACEOF
21605 cat confdefs.h >>conftest.$ac_ext
21606 cat >>conftest.$ac_ext <<_ACEOF
21607 /* end confdefs.h. */
21609 /* Override any gcc2 internal prototype to avoid an error. */
21610 #ifdef __cplusplus
21611 extern "C"
21612 #endif
21613 /* We use char because int might match the return type of a gcc2
21614 builtin and then its argument prototype would still apply. */
21615 char rl_completion_matches ();
21617 main ()
21619 rl_completion_matches ();
21621 return 0;
21623 _ACEOF
21624 rm -f conftest.$ac_objext conftest$ac_exeext
21625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21626 (eval $ac_link) 2>conftest.er1
21627 ac_status=$?
21628 grep -v '^ *+' conftest.er1 >conftest.err
21629 rm -f conftest.er1
21630 cat conftest.err >&5
21631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632 (exit $ac_status); } &&
21633 { ac_try='test -z "$ac_c_werror_flag"
21634 || test ! -s conftest.err'
21635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21636 (eval $ac_try) 2>&5
21637 ac_status=$?
21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639 (exit $ac_status); }; } &&
21640 { ac_try='test -s conftest$ac_exeext'
21641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21642 (eval $ac_try) 2>&5
21643 ac_status=$?
21644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645 (exit $ac_status); }; }; then
21646 ac_cv_lib_readline_rl_completion_matches=yes
21647 else
21648 echo "$as_me: failed program was:" >&5
21649 sed 's/^/| /' conftest.$ac_ext >&5
21651 ac_cv_lib_readline_rl_completion_matches=no
21653 rm -f conftest.err conftest.$ac_objext \
21654 conftest$ac_exeext conftest.$ac_ext
21655 LIBS=$ac_check_lib_save_LIBS
21657 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
21658 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
21659 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
21661 cat >>confdefs.h <<\_ACEOF
21662 #define HAVE_RL_COMPLETION_MATCHES 1
21663 _ACEOF
21668 # also in readline 4.2
21669 cat >conftest.$ac_ext <<_ACEOF
21670 /* confdefs.h. */
21671 _ACEOF
21672 cat confdefs.h >>conftest.$ac_ext
21673 cat >>conftest.$ac_ext <<_ACEOF
21674 /* end confdefs.h. */
21675 #include <readline/readline.h>
21676 _ACEOF
21677 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21678 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21679 ac_status=$?
21680 grep -v '^ *+' conftest.er1 >conftest.err
21681 rm -f conftest.er1
21682 cat conftest.err >&5
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); } >/dev/null; then
21685 if test -s conftest.err; then
21686 ac_cpp_err=$ac_c_preproc_warn_flag
21687 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21688 else
21689 ac_cpp_err=
21691 else
21692 ac_cpp_err=yes
21694 if test -z "$ac_cpp_err"; then
21695 have_readline=yes
21696 else
21697 echo "$as_me: failed program was:" >&5
21698 sed 's/^/| /' conftest.$ac_ext >&5
21700 have_readline=no
21702 rm -f conftest.err conftest.$ac_ext
21703 if test $have_readline = yes
21704 then
21705 cat >conftest.$ac_ext <<_ACEOF
21706 /* confdefs.h. */
21707 _ACEOF
21708 cat confdefs.h >>conftest.$ac_ext
21709 cat >>conftest.$ac_ext <<_ACEOF
21710 /* end confdefs.h. */
21711 #include <readline/readline.h>
21713 _ACEOF
21714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21715 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
21717 cat >>confdefs.h <<\_ACEOF
21718 #define HAVE_RL_CATCH_SIGNAL 1
21719 _ACEOF
21722 rm -f conftest*
21726 # End of readline checks: restore LIBS
21727 LIBS=$LIBS_no_readline
21729 echo "$as_me:$LINENO: checking for broken nice()" >&5
21730 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
21731 if test "${ac_cv_broken_nice+set}" = set; then
21732 echo $ECHO_N "(cached) $ECHO_C" >&6
21733 else
21735 if test "$cross_compiling" = yes; then
21736 ac_cv_broken_nice=no
21737 else
21738 cat >conftest.$ac_ext <<_ACEOF
21739 /* confdefs.h. */
21740 _ACEOF
21741 cat confdefs.h >>conftest.$ac_ext
21742 cat >>conftest.$ac_ext <<_ACEOF
21743 /* end confdefs.h. */
21745 int main()
21747 int val1 = nice(1);
21748 if (val1 != -1 && val1 == nice(2))
21749 exit(0);
21750 exit(1);
21753 _ACEOF
21754 rm -f conftest$ac_exeext
21755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21756 (eval $ac_link) 2>&5
21757 ac_status=$?
21758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21761 (eval $ac_try) 2>&5
21762 ac_status=$?
21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); }; }; then
21765 ac_cv_broken_nice=yes
21766 else
21767 echo "$as_me: program exited with status $ac_status" >&5
21768 echo "$as_me: failed program was:" >&5
21769 sed 's/^/| /' conftest.$ac_ext >&5
21771 ( exit $ac_status )
21772 ac_cv_broken_nice=no
21774 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21778 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
21779 echo "${ECHO_T}$ac_cv_broken_nice" >&6
21780 if test "$ac_cv_broken_nice" = yes
21781 then
21783 cat >>confdefs.h <<\_ACEOF
21784 #define HAVE_BROKEN_NICE 1
21785 _ACEOF
21789 echo "$as_me:$LINENO: checking for broken poll()" >&5
21790 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6
21791 if test "$cross_compiling" = yes; then
21792 ac_cv_broken_poll=no
21793 else
21794 cat >conftest.$ac_ext <<_ACEOF
21795 /* confdefs.h. */
21796 _ACEOF
21797 cat confdefs.h >>conftest.$ac_ext
21798 cat >>conftest.$ac_ext <<_ACEOF
21799 /* end confdefs.h. */
21801 #include <poll.h>
21803 int main (void)
21805 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
21807 close (42);
21809 int poll_test = poll (&poll_struct, 1, 0);
21811 if (poll_test < 0)
21813 exit(0);
21815 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
21817 exit(0);
21819 else
21821 exit(1);
21825 _ACEOF
21826 rm -f conftest$ac_exeext
21827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21828 (eval $ac_link) 2>&5
21829 ac_status=$?
21830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21833 (eval $ac_try) 2>&5
21834 ac_status=$?
21835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21836 (exit $ac_status); }; }; then
21837 ac_cv_broken_poll=yes
21838 else
21839 echo "$as_me: program exited with status $ac_status" >&5
21840 echo "$as_me: failed program was:" >&5
21841 sed 's/^/| /' conftest.$ac_ext >&5
21843 ( exit $ac_status )
21844 ac_cv_broken_poll=no
21846 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21848 echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
21849 echo "${ECHO_T}$ac_cv_broken_poll" >&6
21850 if test "$ac_cv_broken_poll" = yes
21851 then
21853 cat >>confdefs.h <<\_ACEOF
21854 #define HAVE_BROKEN_POLL 1
21855 _ACEOF
21859 # Before we can test tzset, we need to check if struct tm has a tm_zone
21860 # (which is not required by ISO C or UNIX spec) and/or if we support
21861 # tzname[]
21862 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21863 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21864 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21865 echo $ECHO_N "(cached) $ECHO_C" >&6
21866 else
21867 cat >conftest.$ac_ext <<_ACEOF
21868 /* confdefs.h. */
21869 _ACEOF
21870 cat confdefs.h >>conftest.$ac_ext
21871 cat >>conftest.$ac_ext <<_ACEOF
21872 /* end confdefs.h. */
21873 #include <sys/types.h>
21874 #include <$ac_cv_struct_tm>
21878 main ()
21880 static struct tm ac_aggr;
21881 if (ac_aggr.tm_zone)
21882 return 0;
21884 return 0;
21886 _ACEOF
21887 rm -f conftest.$ac_objext
21888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21889 (eval $ac_compile) 2>conftest.er1
21890 ac_status=$?
21891 grep -v '^ *+' conftest.er1 >conftest.err
21892 rm -f conftest.er1
21893 cat conftest.err >&5
21894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895 (exit $ac_status); } &&
21896 { ac_try='test -z "$ac_c_werror_flag"
21897 || test ! -s conftest.err'
21898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21899 (eval $ac_try) 2>&5
21900 ac_status=$?
21901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902 (exit $ac_status); }; } &&
21903 { ac_try='test -s conftest.$ac_objext'
21904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21905 (eval $ac_try) 2>&5
21906 ac_status=$?
21907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908 (exit $ac_status); }; }; then
21909 ac_cv_member_struct_tm_tm_zone=yes
21910 else
21911 echo "$as_me: failed program was:" >&5
21912 sed 's/^/| /' conftest.$ac_ext >&5
21914 cat >conftest.$ac_ext <<_ACEOF
21915 /* confdefs.h. */
21916 _ACEOF
21917 cat confdefs.h >>conftest.$ac_ext
21918 cat >>conftest.$ac_ext <<_ACEOF
21919 /* end confdefs.h. */
21920 #include <sys/types.h>
21921 #include <$ac_cv_struct_tm>
21925 main ()
21927 static struct tm ac_aggr;
21928 if (sizeof ac_aggr.tm_zone)
21929 return 0;
21931 return 0;
21933 _ACEOF
21934 rm -f conftest.$ac_objext
21935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21936 (eval $ac_compile) 2>conftest.er1
21937 ac_status=$?
21938 grep -v '^ *+' conftest.er1 >conftest.err
21939 rm -f conftest.er1
21940 cat conftest.err >&5
21941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942 (exit $ac_status); } &&
21943 { ac_try='test -z "$ac_c_werror_flag"
21944 || test ! -s conftest.err'
21945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21946 (eval $ac_try) 2>&5
21947 ac_status=$?
21948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21949 (exit $ac_status); }; } &&
21950 { ac_try='test -s conftest.$ac_objext'
21951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21952 (eval $ac_try) 2>&5
21953 ac_status=$?
21954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21955 (exit $ac_status); }; }; then
21956 ac_cv_member_struct_tm_tm_zone=yes
21957 else
21958 echo "$as_me: failed program was:" >&5
21959 sed 's/^/| /' conftest.$ac_ext >&5
21961 ac_cv_member_struct_tm_tm_zone=no
21963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21967 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21968 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21969 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21971 cat >>confdefs.h <<_ACEOF
21972 #define HAVE_STRUCT_TM_TM_ZONE 1
21973 _ACEOF
21978 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21980 cat >>confdefs.h <<\_ACEOF
21981 #define HAVE_TM_ZONE 1
21982 _ACEOF
21984 else
21985 echo "$as_me:$LINENO: checking for tzname" >&5
21986 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21987 if test "${ac_cv_var_tzname+set}" = set; then
21988 echo $ECHO_N "(cached) $ECHO_C" >&6
21989 else
21990 cat >conftest.$ac_ext <<_ACEOF
21991 /* confdefs.h. */
21992 _ACEOF
21993 cat confdefs.h >>conftest.$ac_ext
21994 cat >>conftest.$ac_ext <<_ACEOF
21995 /* end confdefs.h. */
21996 #include <time.h>
21997 #ifndef tzname /* For SGI. */
21998 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21999 #endif
22002 main ()
22004 atoi(*tzname);
22006 return 0;
22008 _ACEOF
22009 rm -f conftest.$ac_objext conftest$ac_exeext
22010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22011 (eval $ac_link) 2>conftest.er1
22012 ac_status=$?
22013 grep -v '^ *+' conftest.er1 >conftest.err
22014 rm -f conftest.er1
22015 cat conftest.err >&5
22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017 (exit $ac_status); } &&
22018 { ac_try='test -z "$ac_c_werror_flag"
22019 || test ! -s conftest.err'
22020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22021 (eval $ac_try) 2>&5
22022 ac_status=$?
22023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024 (exit $ac_status); }; } &&
22025 { ac_try='test -s conftest$ac_exeext'
22026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22027 (eval $ac_try) 2>&5
22028 ac_status=$?
22029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030 (exit $ac_status); }; }; then
22031 ac_cv_var_tzname=yes
22032 else
22033 echo "$as_me: failed program was:" >&5
22034 sed 's/^/| /' conftest.$ac_ext >&5
22036 ac_cv_var_tzname=no
22038 rm -f conftest.err conftest.$ac_objext \
22039 conftest$ac_exeext conftest.$ac_ext
22041 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
22042 echo "${ECHO_T}$ac_cv_var_tzname" >&6
22043 if test $ac_cv_var_tzname = yes; then
22045 cat >>confdefs.h <<\_ACEOF
22046 #define HAVE_TZNAME 1
22047 _ACEOF
22053 # check tzset(3) exists and works like we expect it to
22054 echo "$as_me:$LINENO: checking for working tzset()" >&5
22055 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
22056 if test "${ac_cv_working_tzset+set}" = set; then
22057 echo $ECHO_N "(cached) $ECHO_C" >&6
22058 else
22060 if test "$cross_compiling" = yes; then
22061 ac_cv_working_tzset=no
22062 else
22063 cat >conftest.$ac_ext <<_ACEOF
22064 /* confdefs.h. */
22065 _ACEOF
22066 cat confdefs.h >>conftest.$ac_ext
22067 cat >>conftest.$ac_ext <<_ACEOF
22068 /* end confdefs.h. */
22070 #include <stdlib.h>
22071 #include <time.h>
22072 #include <string.h>
22074 #if HAVE_TZNAME
22075 extern char *tzname[];
22076 #endif
22078 int main()
22080 /* Note that we need to ensure that not only does tzset(3)
22081 do 'something' with localtime, but it works as documented
22082 in the library reference and as expected by the test suite.
22083 This includes making sure that tzname is set properly if
22084 tm->tm_zone does not exist since it is the alternative way
22085 of getting timezone info.
22087 Red Hat 6.2 doesn't understand the southern hemisphere
22088 after New Year's Day.
22091 time_t groundhogday = 1044144000; /* GMT-based */
22092 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
22094 putenv("TZ=UTC+0");
22095 tzset();
22096 if (localtime(&groundhogday)->tm_hour != 0)
22097 exit(1);
22098 #if HAVE_TZNAME
22099 /* For UTC, tzname[1] is sometimes "", sometimes " " */
22100 if (strcmp(tzname[0], "UTC") ||
22101 (tzname[1][0] != 0 && tzname[1][0] != ' '))
22102 exit(1);
22103 #endif
22105 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
22106 tzset();
22107 if (localtime(&groundhogday)->tm_hour != 19)
22108 exit(1);
22109 #if HAVE_TZNAME
22110 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
22111 exit(1);
22112 #endif
22114 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
22115 tzset();
22116 if (localtime(&groundhogday)->tm_hour != 11)
22117 exit(1);
22118 #if HAVE_TZNAME
22119 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
22120 exit(1);
22121 #endif
22123 #if HAVE_STRUCT_TM_TM_ZONE
22124 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
22125 exit(1);
22126 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
22127 exit(1);
22128 #endif
22130 exit(0);
22133 _ACEOF
22134 rm -f conftest$ac_exeext
22135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22136 (eval $ac_link) 2>&5
22137 ac_status=$?
22138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22141 (eval $ac_try) 2>&5
22142 ac_status=$?
22143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144 (exit $ac_status); }; }; then
22145 ac_cv_working_tzset=yes
22146 else
22147 echo "$as_me: program exited with status $ac_status" >&5
22148 echo "$as_me: failed program was:" >&5
22149 sed 's/^/| /' conftest.$ac_ext >&5
22151 ( exit $ac_status )
22152 ac_cv_working_tzset=no
22154 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22158 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
22159 echo "${ECHO_T}$ac_cv_working_tzset" >&6
22160 if test "$ac_cv_working_tzset" = yes
22161 then
22163 cat >>confdefs.h <<\_ACEOF
22164 #define HAVE_WORKING_TZSET 1
22165 _ACEOF
22169 # Look for subsecond timestamps in struct stat
22170 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
22171 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
22172 if test "${ac_cv_stat_tv_nsec+set}" = set; then
22173 echo $ECHO_N "(cached) $ECHO_C" >&6
22174 else
22175 cat >conftest.$ac_ext <<_ACEOF
22176 /* confdefs.h. */
22177 _ACEOF
22178 cat confdefs.h >>conftest.$ac_ext
22179 cat >>conftest.$ac_ext <<_ACEOF
22180 /* end confdefs.h. */
22181 #include <sys/stat.h>
22183 main ()
22186 struct stat st;
22187 st.st_mtim.tv_nsec = 1;
22190 return 0;
22192 _ACEOF
22193 rm -f conftest.$ac_objext
22194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22195 (eval $ac_compile) 2>conftest.er1
22196 ac_status=$?
22197 grep -v '^ *+' conftest.er1 >conftest.err
22198 rm -f conftest.er1
22199 cat conftest.err >&5
22200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201 (exit $ac_status); } &&
22202 { ac_try='test -z "$ac_c_werror_flag"
22203 || test ! -s conftest.err'
22204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22205 (eval $ac_try) 2>&5
22206 ac_status=$?
22207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208 (exit $ac_status); }; } &&
22209 { ac_try='test -s conftest.$ac_objext'
22210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22211 (eval $ac_try) 2>&5
22212 ac_status=$?
22213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214 (exit $ac_status); }; }; then
22215 ac_cv_stat_tv_nsec=yes
22216 else
22217 echo "$as_me: failed program was:" >&5
22218 sed 's/^/| /' conftest.$ac_ext >&5
22220 ac_cv_stat_tv_nsec=no
22222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22225 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
22226 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
22227 if test "$ac_cv_stat_tv_nsec" = yes
22228 then
22230 cat >>confdefs.h <<\_ACEOF
22231 #define HAVE_STAT_TV_NSEC 1
22232 _ACEOF
22236 # Look for BSD style subsecond timestamps in struct stat
22237 echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
22238 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6
22239 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
22240 echo $ECHO_N "(cached) $ECHO_C" >&6
22241 else
22242 cat >conftest.$ac_ext <<_ACEOF
22243 /* confdefs.h. */
22244 _ACEOF
22245 cat confdefs.h >>conftest.$ac_ext
22246 cat >>conftest.$ac_ext <<_ACEOF
22247 /* end confdefs.h. */
22248 #include <sys/stat.h>
22250 main ()
22253 struct stat st;
22254 st.st_mtimespec.tv_nsec = 1;
22257 return 0;
22259 _ACEOF
22260 rm -f conftest.$ac_objext
22261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22262 (eval $ac_compile) 2>conftest.er1
22263 ac_status=$?
22264 grep -v '^ *+' conftest.er1 >conftest.err
22265 rm -f conftest.er1
22266 cat conftest.err >&5
22267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268 (exit $ac_status); } &&
22269 { ac_try='test -z "$ac_c_werror_flag"
22270 || test ! -s conftest.err'
22271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22272 (eval $ac_try) 2>&5
22273 ac_status=$?
22274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275 (exit $ac_status); }; } &&
22276 { ac_try='test -s conftest.$ac_objext'
22277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22278 (eval $ac_try) 2>&5
22279 ac_status=$?
22280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281 (exit $ac_status); }; }; then
22282 ac_cv_stat_tv_nsec2=yes
22283 else
22284 echo "$as_me: failed program was:" >&5
22285 sed 's/^/| /' conftest.$ac_ext >&5
22287 ac_cv_stat_tv_nsec2=no
22289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22292 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
22293 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6
22294 if test "$ac_cv_stat_tv_nsec2" = yes
22295 then
22297 cat >>confdefs.h <<\_ACEOF
22298 #define HAVE_STAT_TV_NSEC2 1
22299 _ACEOF
22303 # On HP/UX 11.0, mvwdelch is a block with a return statement
22304 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
22305 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
22306 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
22307 echo $ECHO_N "(cached) $ECHO_C" >&6
22308 else
22309 cat >conftest.$ac_ext <<_ACEOF
22310 /* confdefs.h. */
22311 _ACEOF
22312 cat confdefs.h >>conftest.$ac_ext
22313 cat >>conftest.$ac_ext <<_ACEOF
22314 /* end confdefs.h. */
22315 #include <curses.h>
22317 main ()
22320 int rtn;
22321 rtn = mvwdelch(0,0,0);
22324 return 0;
22326 _ACEOF
22327 rm -f conftest.$ac_objext
22328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22329 (eval $ac_compile) 2>conftest.er1
22330 ac_status=$?
22331 grep -v '^ *+' conftest.er1 >conftest.err
22332 rm -f conftest.er1
22333 cat conftest.err >&5
22334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22335 (exit $ac_status); } &&
22336 { ac_try='test -z "$ac_c_werror_flag"
22337 || test ! -s conftest.err'
22338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22339 (eval $ac_try) 2>&5
22340 ac_status=$?
22341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342 (exit $ac_status); }; } &&
22343 { ac_try='test -s conftest.$ac_objext'
22344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22345 (eval $ac_try) 2>&5
22346 ac_status=$?
22347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22348 (exit $ac_status); }; }; then
22349 ac_cv_mvwdelch_is_expression=yes
22350 else
22351 echo "$as_me: failed program was:" >&5
22352 sed 's/^/| /' conftest.$ac_ext >&5
22354 ac_cv_mvwdelch_is_expression=no
22356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22359 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
22360 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
22362 if test "$ac_cv_mvwdelch_is_expression" = yes
22363 then
22365 cat >>confdefs.h <<\_ACEOF
22366 #define MVWDELCH_IS_EXPRESSION 1
22367 _ACEOF
22371 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
22372 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
22373 if test "${ac_cv_window_has_flags+set}" = set; then
22374 echo $ECHO_N "(cached) $ECHO_C" >&6
22375 else
22376 cat >conftest.$ac_ext <<_ACEOF
22377 /* confdefs.h. */
22378 _ACEOF
22379 cat confdefs.h >>conftest.$ac_ext
22380 cat >>conftest.$ac_ext <<_ACEOF
22381 /* end confdefs.h. */
22382 #include <curses.h>
22384 main ()
22387 WINDOW *w;
22388 w->_flags = 0;
22391 return 0;
22393 _ACEOF
22394 rm -f conftest.$ac_objext
22395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22396 (eval $ac_compile) 2>conftest.er1
22397 ac_status=$?
22398 grep -v '^ *+' conftest.er1 >conftest.err
22399 rm -f conftest.er1
22400 cat conftest.err >&5
22401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402 (exit $ac_status); } &&
22403 { ac_try='test -z "$ac_c_werror_flag"
22404 || test ! -s conftest.err'
22405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22406 (eval $ac_try) 2>&5
22407 ac_status=$?
22408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 (exit $ac_status); }; } &&
22410 { ac_try='test -s conftest.$ac_objext'
22411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22412 (eval $ac_try) 2>&5
22413 ac_status=$?
22414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22415 (exit $ac_status); }; }; then
22416 ac_cv_window_has_flags=yes
22417 else
22418 echo "$as_me: failed program was:" >&5
22419 sed 's/^/| /' conftest.$ac_ext >&5
22421 ac_cv_window_has_flags=no
22423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22426 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
22427 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
22430 if test "$ac_cv_window_has_flags" = yes
22431 then
22433 cat >>confdefs.h <<\_ACEOF
22434 #define WINDOW_HAS_FLAGS 1
22435 _ACEOF
22439 echo "$as_me:$LINENO: checking for is_term_resized" >&5
22440 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6
22441 cat >conftest.$ac_ext <<_ACEOF
22442 /* confdefs.h. */
22443 _ACEOF
22444 cat confdefs.h >>conftest.$ac_ext
22445 cat >>conftest.$ac_ext <<_ACEOF
22446 /* end confdefs.h. */
22447 #include <curses.h>
22449 main ()
22451 void *x=is_term_resized
22453 return 0;
22455 _ACEOF
22456 rm -f conftest.$ac_objext
22457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22458 (eval $ac_compile) 2>conftest.er1
22459 ac_status=$?
22460 grep -v '^ *+' conftest.er1 >conftest.err
22461 rm -f conftest.er1
22462 cat conftest.err >&5
22463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22464 (exit $ac_status); } &&
22465 { ac_try='test -z "$ac_c_werror_flag"
22466 || test ! -s conftest.err'
22467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22468 (eval $ac_try) 2>&5
22469 ac_status=$?
22470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22471 (exit $ac_status); }; } &&
22472 { ac_try='test -s conftest.$ac_objext'
22473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22474 (eval $ac_try) 2>&5
22475 ac_status=$?
22476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477 (exit $ac_status); }; }; then
22479 cat >>confdefs.h <<\_ACEOF
22480 #define HAVE_CURSES_IS_TERM_RESIZED 1
22481 _ACEOF
22483 echo "$as_me:$LINENO: result: yes" >&5
22484 echo "${ECHO_T}yes" >&6
22485 else
22486 echo "$as_me: failed program was:" >&5
22487 sed 's/^/| /' conftest.$ac_ext >&5
22489 echo "$as_me:$LINENO: result: no" >&5
22490 echo "${ECHO_T}no" >&6
22493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22495 echo "$as_me:$LINENO: checking for resize_term" >&5
22496 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6
22497 cat >conftest.$ac_ext <<_ACEOF
22498 /* confdefs.h. */
22499 _ACEOF
22500 cat confdefs.h >>conftest.$ac_ext
22501 cat >>conftest.$ac_ext <<_ACEOF
22502 /* end confdefs.h. */
22503 #include <curses.h>
22505 main ()
22507 void *x=resize_term
22509 return 0;
22511 _ACEOF
22512 rm -f conftest.$ac_objext
22513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22514 (eval $ac_compile) 2>conftest.er1
22515 ac_status=$?
22516 grep -v '^ *+' conftest.er1 >conftest.err
22517 rm -f conftest.er1
22518 cat conftest.err >&5
22519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22520 (exit $ac_status); } &&
22521 { ac_try='test -z "$ac_c_werror_flag"
22522 || test ! -s conftest.err'
22523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22524 (eval $ac_try) 2>&5
22525 ac_status=$?
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); }; } &&
22528 { ac_try='test -s conftest.$ac_objext'
22529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22530 (eval $ac_try) 2>&5
22531 ac_status=$?
22532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533 (exit $ac_status); }; }; then
22535 cat >>confdefs.h <<\_ACEOF
22536 #define HAVE_CURSES_RESIZE_TERM 1
22537 _ACEOF
22539 echo "$as_me:$LINENO: result: yes" >&5
22540 echo "${ECHO_T}yes" >&6
22541 else
22542 echo "$as_me: failed program was:" >&5
22543 sed 's/^/| /' conftest.$ac_ext >&5
22545 echo "$as_me:$LINENO: result: no" >&5
22546 echo "${ECHO_T}no" >&6
22549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22551 echo "$as_me:$LINENO: checking for resizeterm" >&5
22552 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6
22553 cat >conftest.$ac_ext <<_ACEOF
22554 /* confdefs.h. */
22555 _ACEOF
22556 cat confdefs.h >>conftest.$ac_ext
22557 cat >>conftest.$ac_ext <<_ACEOF
22558 /* end confdefs.h. */
22559 #include <curses.h>
22561 main ()
22563 void *x=resizeterm
22565 return 0;
22567 _ACEOF
22568 rm -f conftest.$ac_objext
22569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22570 (eval $ac_compile) 2>conftest.er1
22571 ac_status=$?
22572 grep -v '^ *+' conftest.er1 >conftest.err
22573 rm -f conftest.er1
22574 cat conftest.err >&5
22575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576 (exit $ac_status); } &&
22577 { ac_try='test -z "$ac_c_werror_flag"
22578 || test ! -s conftest.err'
22579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22580 (eval $ac_try) 2>&5
22581 ac_status=$?
22582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22583 (exit $ac_status); }; } &&
22584 { ac_try='test -s conftest.$ac_objext'
22585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22586 (eval $ac_try) 2>&5
22587 ac_status=$?
22588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22589 (exit $ac_status); }; }; then
22591 cat >>confdefs.h <<\_ACEOF
22592 #define HAVE_CURSES_RESIZETERM 1
22593 _ACEOF
22595 echo "$as_me:$LINENO: result: yes" >&5
22596 echo "${ECHO_T}yes" >&6
22597 else
22598 echo "$as_me: failed program was:" >&5
22599 sed 's/^/| /' conftest.$ac_ext >&5
22601 echo "$as_me:$LINENO: result: no" >&5
22602 echo "${ECHO_T}no" >&6
22605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22607 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
22608 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
22610 if test -r /dev/ptmx
22611 then
22612 echo "$as_me:$LINENO: result: yes" >&5
22613 echo "${ECHO_T}yes" >&6
22615 cat >>confdefs.h <<\_ACEOF
22616 #define HAVE_DEV_PTMX 1
22617 _ACEOF
22619 else
22620 echo "$as_me:$LINENO: result: no" >&5
22621 echo "${ECHO_T}no" >&6
22624 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
22625 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
22627 if test -r /dev/ptc
22628 then
22629 echo "$as_me:$LINENO: result: yes" >&5
22630 echo "${ECHO_T}yes" >&6
22632 cat >>confdefs.h <<\_ACEOF
22633 #define HAVE_DEV_PTC 1
22634 _ACEOF
22636 else
22637 echo "$as_me:$LINENO: result: no" >&5
22638 echo "${ECHO_T}no" >&6
22641 echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
22642 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6
22643 if test "$cross_compiling" = yes; then
22644 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22645 See \`config.log' for more details." >&5
22646 echo "$as_me: error: cannot run test program while cross compiling
22647 See \`config.log' for more details." >&2;}
22648 { (exit 1); exit 1; }; }
22649 else
22650 cat >conftest.$ac_ext <<_ACEOF
22651 /* confdefs.h. */
22652 _ACEOF
22653 cat confdefs.h >>conftest.$ac_ext
22654 cat >>conftest.$ac_ext <<_ACEOF
22655 /* end confdefs.h. */
22656 #include <stdio.h>
22657 #include <stddef.h>
22658 #include <string.h>
22660 int main()
22662 char buffer[256];
22664 #ifdef HAVE_SSIZE_T
22665 typedef ssize_t Py_ssize_t;
22666 #elif SIZEOF_VOID_P == SIZEOF_LONG
22667 typedef long Py_ssize_t;
22668 #else
22669 typedef int Py_ssize_t;
22670 #endif
22672 if(sprintf(buffer, "%zd", (size_t)123) < 0)
22673 return 1;
22675 if (strcmp(buffer, "123"))
22676 return 1;
22678 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
22679 return 1;
22681 if (strcmp(buffer, "-123"))
22682 return 1;
22684 return 0;
22686 _ACEOF
22687 rm -f conftest$ac_exeext
22688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22689 (eval $ac_link) 2>&5
22690 ac_status=$?
22691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22694 (eval $ac_try) 2>&5
22695 ac_status=$?
22696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697 (exit $ac_status); }; }; then
22698 echo "$as_me:$LINENO: result: yes" >&5
22699 echo "${ECHO_T}yes" >&6
22701 cat >>confdefs.h <<\_ACEOF
22702 #define PY_FORMAT_SIZE_T "z"
22703 _ACEOF
22705 else
22706 echo "$as_me: program exited with status $ac_status" >&5
22707 echo "$as_me: failed program was:" >&5
22708 sed 's/^/| /' conftest.$ac_ext >&5
22710 ( exit $ac_status )
22711 echo "$as_me:$LINENO: result: no" >&5
22712 echo "${ECHO_T}no" >&6
22714 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22717 echo "$as_me:$LINENO: checking for socklen_t" >&5
22718 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
22719 if test "${ac_cv_type_socklen_t+set}" = set; then
22720 echo $ECHO_N "(cached) $ECHO_C" >&6
22721 else
22722 cat >conftest.$ac_ext <<_ACEOF
22723 /* confdefs.h. */
22724 _ACEOF
22725 cat confdefs.h >>conftest.$ac_ext
22726 cat >>conftest.$ac_ext <<_ACEOF
22727 /* end confdefs.h. */
22729 #ifdef HAVE_SYS_TYPES_H
22730 #include <sys/types.h>
22731 #endif
22732 #ifdef HAVE_SYS_SOCKET_H
22733 #include <sys/socket.h>
22734 #endif
22738 main ()
22740 if ((socklen_t *) 0)
22741 return 0;
22742 if (sizeof (socklen_t))
22743 return 0;
22745 return 0;
22747 _ACEOF
22748 rm -f conftest.$ac_objext
22749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22750 (eval $ac_compile) 2>conftest.er1
22751 ac_status=$?
22752 grep -v '^ *+' conftest.er1 >conftest.err
22753 rm -f conftest.er1
22754 cat conftest.err >&5
22755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756 (exit $ac_status); } &&
22757 { ac_try='test -z "$ac_c_werror_flag"
22758 || test ! -s conftest.err'
22759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22760 (eval $ac_try) 2>&5
22761 ac_status=$?
22762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22763 (exit $ac_status); }; } &&
22764 { ac_try='test -s conftest.$ac_objext'
22765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22766 (eval $ac_try) 2>&5
22767 ac_status=$?
22768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22769 (exit $ac_status); }; }; then
22770 ac_cv_type_socklen_t=yes
22771 else
22772 echo "$as_me: failed program was:" >&5
22773 sed 's/^/| /' conftest.$ac_ext >&5
22775 ac_cv_type_socklen_t=no
22777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22779 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22780 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
22781 if test $ac_cv_type_socklen_t = yes; then
22783 else
22785 cat >>confdefs.h <<\_ACEOF
22786 #define socklen_t int
22787 _ACEOF
22794 for h in `(cd $srcdir;echo Python/thread_*.h)`
22796 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
22797 done
22800 SRCDIRS="Parser Grammar Objects Python Modules Mac"
22801 echo "$as_me:$LINENO: checking for build directories" >&5
22802 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
22803 for dir in $SRCDIRS; do
22804 if test ! -d $dir; then
22805 mkdir $dir
22807 done
22808 echo "$as_me:$LINENO: result: done" >&5
22809 echo "${ECHO_T}done" >&6
22811 # generate output files
22812 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
22814 cat >confcache <<\_ACEOF
22815 # This file is a shell script that caches the results of configure
22816 # tests run on this system so they can be shared between configure
22817 # scripts and configure runs, see configure's option --config-cache.
22818 # It is not useful on other systems. If it contains results you don't
22819 # want to keep, you may remove or edit it.
22821 # config.status only pays attention to the cache file if you give it
22822 # the --recheck option to rerun configure.
22824 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22825 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22826 # following values.
22828 _ACEOF
22830 # The following way of writing the cache mishandles newlines in values,
22831 # but we know of no workaround that is simple, portable, and efficient.
22832 # So, don't put newlines in cache variables' values.
22833 # Ultrix sh set writes to stderr and can't be redirected directly,
22834 # and sets the high bit in the cache file unless we assign to the vars.
22836 (set) 2>&1 |
22837 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22838 *ac_space=\ *)
22839 # `set' does not quote correctly, so add quotes (double-quote
22840 # substitution turns \\\\ into \\, and sed turns \\ into \).
22841 sed -n \
22842 "s/'/'\\\\''/g;
22843 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22846 # `set' quotes correctly as required by POSIX, so do not add quotes.
22847 sed -n \
22848 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22850 esac;
22852 sed '
22853 t clear
22854 : clear
22855 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22856 t end
22857 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22858 : end' >>confcache
22859 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22860 if test -w $cache_file; then
22861 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22862 cat confcache >$cache_file
22863 else
22864 echo "not updating unwritable cache $cache_file"
22867 rm -f confcache
22869 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22870 # Let make expand exec_prefix.
22871 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22873 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22874 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22875 # trailing colons and then remove the whole line if VPATH becomes empty
22876 # (actually we leave an empty line to preserve line numbers).
22877 if test "x$srcdir" = x.; then
22878 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22879 s/:*\$(srcdir):*/:/;
22880 s/:*\${srcdir}:*/:/;
22881 s/:*@srcdir@:*/:/;
22882 s/^\([^=]*=[ ]*\):*/\1/;
22883 s/:*$//;
22884 s/^[^=]*=[ ]*$//;
22888 DEFS=-DHAVE_CONFIG_H
22890 ac_libobjs=
22891 ac_ltlibobjs=
22892 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22893 # 1. Remove the extension, and $U if already installed.
22894 ac_i=`echo "$ac_i" |
22895 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22896 # 2. Add them.
22897 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22898 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22899 done
22900 LIBOBJS=$ac_libobjs
22902 LTLIBOBJS=$ac_ltlibobjs
22906 : ${CONFIG_STATUS=./config.status}
22907 ac_clean_files_save=$ac_clean_files
22908 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22909 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22910 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22911 cat >$CONFIG_STATUS <<_ACEOF
22912 #! $SHELL
22913 # Generated by $as_me.
22914 # Run this file to recreate the current configuration.
22915 # Compiler output produced by configure, useful for debugging
22916 # configure, is in config.log if it exists.
22918 debug=false
22919 ac_cs_recheck=false
22920 ac_cs_silent=false
22921 SHELL=\${CONFIG_SHELL-$SHELL}
22922 _ACEOF
22924 cat >>$CONFIG_STATUS <<\_ACEOF
22925 ## --------------------- ##
22926 ## M4sh Initialization. ##
22927 ## --------------------- ##
22929 # Be Bourne compatible
22930 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22931 emulate sh
22932 NULLCMD=:
22933 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22934 # is contrary to our usage. Disable this feature.
22935 alias -g '${1+"$@"}'='"$@"'
22936 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22937 set -o posix
22939 DUALCASE=1; export DUALCASE # for MKS sh
22941 # Support unset when possible.
22942 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22943 as_unset=unset
22944 else
22945 as_unset=false
22949 # Work around bugs in pre-3.0 UWIN ksh.
22950 $as_unset ENV MAIL MAILPATH
22951 PS1='$ '
22952 PS2='> '
22953 PS4='+ '
22955 # NLS nuisances.
22956 for as_var in \
22957 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22958 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22959 LC_TELEPHONE LC_TIME
22961 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22962 eval $as_var=C; export $as_var
22963 else
22964 $as_unset $as_var
22966 done
22968 # Required to use basename.
22969 if expr a : '\(a\)' >/dev/null 2>&1; then
22970 as_expr=expr
22971 else
22972 as_expr=false
22975 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22976 as_basename=basename
22977 else
22978 as_basename=false
22982 # Name of the executable.
22983 as_me=`$as_basename "$0" ||
22984 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22985 X"$0" : 'X\(//\)$' \| \
22986 X"$0" : 'X\(/\)$' \| \
22987 . : '\(.\)' 2>/dev/null ||
22988 echo X/"$0" |
22989 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22990 /^X\/\(\/\/\)$/{ s//\1/; q; }
22991 /^X\/\(\/\).*/{ s//\1/; q; }
22992 s/.*/./; q'`
22995 # PATH needs CR, and LINENO needs CR and PATH.
22996 # Avoid depending upon Character Ranges.
22997 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22998 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22999 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23000 as_cr_digits='0123456789'
23001 as_cr_alnum=$as_cr_Letters$as_cr_digits
23003 # The user is always right.
23004 if test "${PATH_SEPARATOR+set}" != set; then
23005 echo "#! /bin/sh" >conf$$.sh
23006 echo "exit 0" >>conf$$.sh
23007 chmod +x conf$$.sh
23008 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23009 PATH_SEPARATOR=';'
23010 else
23011 PATH_SEPARATOR=:
23013 rm -f conf$$.sh
23017 as_lineno_1=$LINENO
23018 as_lineno_2=$LINENO
23019 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23020 test "x$as_lineno_1" != "x$as_lineno_2" &&
23021 test "x$as_lineno_3" = "x$as_lineno_2" || {
23022 # Find who we are. Look in the path if we contain no path at all
23023 # relative or not.
23024 case $0 in
23025 *[\\/]* ) as_myself=$0 ;;
23026 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23027 for as_dir in $PATH
23029 IFS=$as_save_IFS
23030 test -z "$as_dir" && as_dir=.
23031 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23032 done
23035 esac
23036 # We did not find ourselves, most probably we were run as `sh COMMAND'
23037 # in which case we are not to be found in the path.
23038 if test "x$as_myself" = x; then
23039 as_myself=$0
23041 if test ! -f "$as_myself"; then
23042 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23043 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23044 { (exit 1); exit 1; }; }
23046 case $CONFIG_SHELL in
23048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23049 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23051 IFS=$as_save_IFS
23052 test -z "$as_dir" && as_dir=.
23053 for as_base in sh bash ksh sh5; do
23054 case $as_dir in
23056 if ("$as_dir/$as_base" -c '
23057 as_lineno_1=$LINENO
23058 as_lineno_2=$LINENO
23059 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23060 test "x$as_lineno_1" != "x$as_lineno_2" &&
23061 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23062 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23063 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23064 CONFIG_SHELL=$as_dir/$as_base
23065 export CONFIG_SHELL
23066 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23067 fi;;
23068 esac
23069 done
23070 done
23072 esac
23074 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23075 # uniformly replaced by the line number. The first 'sed' inserts a
23076 # line-number line before each line; the second 'sed' does the real
23077 # work. The second script uses 'N' to pair each line-number line
23078 # with the numbered line, and appends trailing '-' during
23079 # substitution so that $LINENO is not a special case at line end.
23080 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23081 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23082 sed '=' <$as_myself |
23083 sed '
23085 s,$,-,
23086 : loop
23087 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23088 t loop
23089 s,-$,,
23090 s,^['$as_cr_digits']*\n,,
23091 ' >$as_me.lineno &&
23092 chmod +x $as_me.lineno ||
23093 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23094 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23095 { (exit 1); exit 1; }; }
23097 # Don't try to exec as it changes $[0], causing all sort of problems
23098 # (the dirname of $[0] is not the place where we might find the
23099 # original and so on. Autoconf is especially sensible to this).
23100 . ./$as_me.lineno
23101 # Exit status is that of the last command.
23102 exit
23106 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23107 *c*,-n*) ECHO_N= ECHO_C='
23108 ' ECHO_T=' ' ;;
23109 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23110 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23111 esac
23113 if expr a : '\(a\)' >/dev/null 2>&1; then
23114 as_expr=expr
23115 else
23116 as_expr=false
23119 rm -f conf$$ conf$$.exe conf$$.file
23120 echo >conf$$.file
23121 if ln -s conf$$.file conf$$ 2>/dev/null; then
23122 # We could just check for DJGPP; but this test a) works b) is more generic
23123 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23124 if test -f conf$$.exe; then
23125 # Don't use ln at all; we don't have any links
23126 as_ln_s='cp -p'
23127 else
23128 as_ln_s='ln -s'
23130 elif ln conf$$.file conf$$ 2>/dev/null; then
23131 as_ln_s=ln
23132 else
23133 as_ln_s='cp -p'
23135 rm -f conf$$ conf$$.exe conf$$.file
23137 if mkdir -p . 2>/dev/null; then
23138 as_mkdir_p=:
23139 else
23140 test -d ./-p && rmdir ./-p
23141 as_mkdir_p=false
23144 as_executable_p="test -f"
23146 # Sed expression to map a string onto a valid CPP name.
23147 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23149 # Sed expression to map a string onto a valid variable name.
23150 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23153 # IFS
23154 # We need space, tab and new line, in precisely that order.
23155 as_nl='
23157 IFS=" $as_nl"
23159 # CDPATH.
23160 $as_unset CDPATH
23162 exec 6>&1
23164 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23165 # report actual input values of CONFIG_FILES etc. instead of their
23166 # values after options handling. Logging --version etc. is OK.
23167 exec 5>>config.log
23169 echo
23170 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23171 ## Running $as_me. ##
23172 _ASBOX
23173 } >&5
23174 cat >&5 <<_CSEOF
23176 This file was extended by python $as_me 2.6, which was
23177 generated by GNU Autoconf 2.59. Invocation command line was
23179 CONFIG_FILES = $CONFIG_FILES
23180 CONFIG_HEADERS = $CONFIG_HEADERS
23181 CONFIG_LINKS = $CONFIG_LINKS
23182 CONFIG_COMMANDS = $CONFIG_COMMANDS
23183 $ $0 $@
23185 _CSEOF
23186 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23187 echo >&5
23188 _ACEOF
23190 # Files that config.status was made for.
23191 if test -n "$ac_config_files"; then
23192 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23195 if test -n "$ac_config_headers"; then
23196 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23199 if test -n "$ac_config_links"; then
23200 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23203 if test -n "$ac_config_commands"; then
23204 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23207 cat >>$CONFIG_STATUS <<\_ACEOF
23209 ac_cs_usage="\
23210 \`$as_me' instantiates files from templates according to the
23211 current configuration.
23213 Usage: $0 [OPTIONS] [FILE]...
23215 -h, --help print this help, then exit
23216 -V, --version print version number, then exit
23217 -q, --quiet do not print progress messages
23218 -d, --debug don't remove temporary files
23219 --recheck update $as_me by reconfiguring in the same conditions
23220 --file=FILE[:TEMPLATE]
23221 instantiate the configuration file FILE
23222 --header=FILE[:TEMPLATE]
23223 instantiate the configuration header FILE
23225 Configuration files:
23226 $config_files
23228 Configuration headers:
23229 $config_headers
23231 Report bugs to <bug-autoconf@gnu.org>."
23232 _ACEOF
23234 cat >>$CONFIG_STATUS <<_ACEOF
23235 ac_cs_version="\\
23236 python config.status 2.6
23237 configured by $0, generated by GNU Autoconf 2.59,
23238 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23240 Copyright (C) 2003 Free Software Foundation, Inc.
23241 This config.status script is free software; the Free Software Foundation
23242 gives unlimited permission to copy, distribute and modify it."
23243 srcdir=$srcdir
23244 INSTALL="$INSTALL"
23245 _ACEOF
23247 cat >>$CONFIG_STATUS <<\_ACEOF
23248 # If no file are specified by the user, then we need to provide default
23249 # value. By we need to know if files were specified by the user.
23250 ac_need_defaults=:
23251 while test $# != 0
23253 case $1 in
23254 --*=*)
23255 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23256 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23257 ac_shift=:
23260 ac_option=$1
23261 ac_optarg=$2
23262 ac_shift=shift
23264 *) # This is not an option, so the user has probably given explicit
23265 # arguments.
23266 ac_option=$1
23267 ac_need_defaults=false;;
23268 esac
23270 case $ac_option in
23271 # Handling of the options.
23272 _ACEOF
23273 cat >>$CONFIG_STATUS <<\_ACEOF
23274 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23275 ac_cs_recheck=: ;;
23276 --version | --vers* | -V )
23277 echo "$ac_cs_version"; exit 0 ;;
23278 --he | --h)
23279 # Conflict between --help and --header
23280 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23281 Try \`$0 --help' for more information." >&5
23282 echo "$as_me: error: ambiguous option: $1
23283 Try \`$0 --help' for more information." >&2;}
23284 { (exit 1); exit 1; }; };;
23285 --help | --hel | -h )
23286 echo "$ac_cs_usage"; exit 0 ;;
23287 --debug | --d* | -d )
23288 debug=: ;;
23289 --file | --fil | --fi | --f )
23290 $ac_shift
23291 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23292 ac_need_defaults=false;;
23293 --header | --heade | --head | --hea )
23294 $ac_shift
23295 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23296 ac_need_defaults=false;;
23297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23298 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23299 ac_cs_silent=: ;;
23301 # This is an error.
23302 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23303 Try \`$0 --help' for more information." >&5
23304 echo "$as_me: error: unrecognized option: $1
23305 Try \`$0 --help' for more information." >&2;}
23306 { (exit 1); exit 1; }; } ;;
23308 *) ac_config_targets="$ac_config_targets $1" ;;
23310 esac
23311 shift
23312 done
23314 ac_configure_extra_args=
23316 if $ac_cs_silent; then
23317 exec 6>/dev/null
23318 ac_configure_extra_args="$ac_configure_extra_args --silent"
23321 _ACEOF
23322 cat >>$CONFIG_STATUS <<_ACEOF
23323 if \$ac_cs_recheck; then
23324 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23325 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23328 _ACEOF
23334 cat >>$CONFIG_STATUS <<\_ACEOF
23335 for ac_config_target in $ac_config_targets
23337 case "$ac_config_target" in
23338 # Handling of arguments.
23339 "Mac/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
23340 "Mac/PythonLauncher/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
23341 "Mac/IDLE/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
23342 "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
23343 "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
23344 "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
23345 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23346 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23347 { (exit 1); exit 1; }; };;
23348 esac
23349 done
23351 # If the user did not use the arguments to specify the items to instantiate,
23352 # then the envvar interface is used. Set only those that are not.
23353 # We use the long form for the default assignment because of an extremely
23354 # bizarre bug on SunOS 4.1.3.
23355 if $ac_need_defaults; then
23356 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23357 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23360 # Have a temporary directory for convenience. Make it in the build tree
23361 # simply because there is no reason to put it here, and in addition,
23362 # creating and moving files from /tmp can sometimes cause problems.
23363 # Create a temporary directory, and hook for its removal unless debugging.
23364 $debug ||
23366 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23367 trap '{ (exit 1); exit 1; }' 1 2 13 15
23370 # Create a (secure) tmp directory for tmp files.
23373 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23374 test -n "$tmp" && test -d "$tmp"
23375 } ||
23377 tmp=./confstat$$-$RANDOM
23378 (umask 077 && mkdir $tmp)
23379 } ||
23381 echo "$me: cannot create a temporary directory in ." >&2
23382 { (exit 1); exit 1; }
23385 _ACEOF
23387 cat >>$CONFIG_STATUS <<_ACEOF
23390 # CONFIG_FILES section.
23393 # No need to generate the scripts if there are no CONFIG_FILES.
23394 # This happens for instance when ./config.status config.h
23395 if test -n "\$CONFIG_FILES"; then
23396 # Protect against being on the right side of a sed subst in config.status.
23397 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23398 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23399 s,@SHELL@,$SHELL,;t t
23400 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23401 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23402 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23403 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23404 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23405 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23406 s,@exec_prefix@,$exec_prefix,;t t
23407 s,@prefix@,$prefix,;t t
23408 s,@program_transform_name@,$program_transform_name,;t t
23409 s,@bindir@,$bindir,;t t
23410 s,@sbindir@,$sbindir,;t t
23411 s,@libexecdir@,$libexecdir,;t t
23412 s,@datadir@,$datadir,;t t
23413 s,@sysconfdir@,$sysconfdir,;t t
23414 s,@sharedstatedir@,$sharedstatedir,;t t
23415 s,@localstatedir@,$localstatedir,;t t
23416 s,@libdir@,$libdir,;t t
23417 s,@includedir@,$includedir,;t t
23418 s,@oldincludedir@,$oldincludedir,;t t
23419 s,@infodir@,$infodir,;t t
23420 s,@mandir@,$mandir,;t t
23421 s,@build_alias@,$build_alias,;t t
23422 s,@host_alias@,$host_alias,;t t
23423 s,@target_alias@,$target_alias,;t t
23424 s,@DEFS@,$DEFS,;t t
23425 s,@ECHO_C@,$ECHO_C,;t t
23426 s,@ECHO_N@,$ECHO_N,;t t
23427 s,@ECHO_T@,$ECHO_T,;t t
23428 s,@LIBS@,$LIBS,;t t
23429 s,@VERSION@,$VERSION,;t t
23430 s,@SOVERSION@,$SOVERSION,;t t
23431 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
23432 s,@UNIVERSALSDK@,$UNIVERSALSDK,;t t
23433 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
23434 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
23435 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
23436 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
23437 s,@FRAMEWORKINSTALLFIRST@,$FRAMEWORKINSTALLFIRST,;t t
23438 s,@FRAMEWORKINSTALLLAST@,$FRAMEWORKINSTALLLAST,;t t
23439 s,@FRAMEWORKALTINSTALLFIRST@,$FRAMEWORKALTINSTALLFIRST,;t t
23440 s,@FRAMEWORKALTINSTALLLAST@,$FRAMEWORKALTINSTALLLAST,;t t
23441 s,@FRAMEWORKUNIXTOOLSPREFIX@,$FRAMEWORKUNIXTOOLSPREFIX,;t t
23442 s,@MACHDEP@,$MACHDEP,;t t
23443 s,@SGI_ABI@,$SGI_ABI,;t t
23444 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
23445 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
23446 s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t
23447 s,@EXPORT_MACOSX_DEPLOYMENT_TARGET@,$EXPORT_MACOSX_DEPLOYMENT_TARGET,;t t
23448 s,@CC@,$CC,;t t
23449 s,@CFLAGS@,$CFLAGS,;t t
23450 s,@LDFLAGS@,$LDFLAGS,;t t
23451 s,@CPPFLAGS@,$CPPFLAGS,;t t
23452 s,@ac_ct_CC@,$ac_ct_CC,;t t
23453 s,@EXEEXT@,$EXEEXT,;t t
23454 s,@OBJEXT@,$OBJEXT,;t t
23455 s,@CXX@,$CXX,;t t
23456 s,@MAINCC@,$MAINCC,;t t
23457 s,@CPP@,$CPP,;t t
23458 s,@EGREP@,$EGREP,;t t
23459 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
23460 s,@LIBRARY@,$LIBRARY,;t t
23461 s,@LDLIBRARY@,$LDLIBRARY,;t t
23462 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
23463 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
23464 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
23465 s,@INSTSONAME@,$INSTSONAME,;t t
23466 s,@RUNSHARED@,$RUNSHARED,;t t
23467 s,@LINKCC@,$LINKCC,;t t
23468 s,@RANLIB@,$RANLIB,;t t
23469 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23470 s,@AR@,$AR,;t t
23471 s,@SVNVERSION@,$SVNVERSION,;t t
23472 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23473 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23474 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23475 s,@LN@,$LN,;t t
23476 s,@OPT@,$OPT,;t t
23477 s,@BASECFLAGS@,$BASECFLAGS,;t t
23478 s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t
23479 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
23480 s,@SO@,$SO,;t t
23481 s,@LDSHARED@,$LDSHARED,;t t
23482 s,@BLDSHARED@,$BLDSHARED,;t t
23483 s,@CCSHARED@,$CCSHARED,;t t
23484 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
23485 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
23486 s,@SHLIBS@,$SHLIBS,;t t
23487 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
23488 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
23489 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
23490 s,@LDLAST@,$LDLAST,;t t
23491 s,@THREADOBJ@,$THREADOBJ,;t t
23492 s,@DLINCLDIR@,$DLINCLDIR,;t t
23493 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
23494 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
23495 s,@TRUE@,$TRUE,;t t
23496 s,@LIBOBJS@,$LIBOBJS,;t t
23497 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
23498 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
23499 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
23500 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
23501 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
23502 s,@LIBM@,$LIBM,;t t
23503 s,@LIBC@,$LIBC,;t t
23504 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
23505 s,@THREADHEADERS@,$THREADHEADERS,;t t
23506 s,@SRCDIRS@,$SRCDIRS,;t t
23507 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23508 CEOF
23510 _ACEOF
23512 cat >>$CONFIG_STATUS <<\_ACEOF
23513 # Split the substitutions into bite-sized pieces for seds with
23514 # small command number limits, like on Digital OSF/1 and HP-UX.
23515 ac_max_sed_lines=48
23516 ac_sed_frag=1 # Number of current file.
23517 ac_beg=1 # First line for current file.
23518 ac_end=$ac_max_sed_lines # Line after last line for current file.
23519 ac_more_lines=:
23520 ac_sed_cmds=
23521 while $ac_more_lines; do
23522 if test $ac_beg -gt 1; then
23523 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23524 else
23525 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23527 if test ! -s $tmp/subs.frag; then
23528 ac_more_lines=false
23529 else
23530 # The purpose of the label and of the branching condition is to
23531 # speed up the sed processing (if there are no `@' at all, there
23532 # is no need to browse any of the substitutions).
23533 # These are the two extra sed commands mentioned above.
23534 (echo ':t
23535 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23536 if test -z "$ac_sed_cmds"; then
23537 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23538 else
23539 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23541 ac_sed_frag=`expr $ac_sed_frag + 1`
23542 ac_beg=$ac_end
23543 ac_end=`expr $ac_end + $ac_max_sed_lines`
23545 done
23546 if test -z "$ac_sed_cmds"; then
23547 ac_sed_cmds=cat
23549 fi # test -n "$CONFIG_FILES"
23551 _ACEOF
23552 cat >>$CONFIG_STATUS <<\_ACEOF
23553 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23554 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23555 case $ac_file in
23556 - | *:- | *:-:* ) # input from stdin
23557 cat >$tmp/stdin
23558 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23559 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23560 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23561 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23562 * ) ac_file_in=$ac_file.in ;;
23563 esac
23565 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23566 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23567 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23568 X"$ac_file" : 'X\(//\)[^/]' \| \
23569 X"$ac_file" : 'X\(//\)$' \| \
23570 X"$ac_file" : 'X\(/\)' \| \
23571 . : '\(.\)' 2>/dev/null ||
23572 echo X"$ac_file" |
23573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23574 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23575 /^X\(\/\/\)$/{ s//\1/; q; }
23576 /^X\(\/\).*/{ s//\1/; q; }
23577 s/.*/./; q'`
23578 { if $as_mkdir_p; then
23579 mkdir -p "$ac_dir"
23580 else
23581 as_dir="$ac_dir"
23582 as_dirs=
23583 while test ! -d "$as_dir"; do
23584 as_dirs="$as_dir $as_dirs"
23585 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23586 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23587 X"$as_dir" : 'X\(//\)[^/]' \| \
23588 X"$as_dir" : 'X\(//\)$' \| \
23589 X"$as_dir" : 'X\(/\)' \| \
23590 . : '\(.\)' 2>/dev/null ||
23591 echo X"$as_dir" |
23592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23593 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23594 /^X\(\/\/\)$/{ s//\1/; q; }
23595 /^X\(\/\).*/{ s//\1/; q; }
23596 s/.*/./; q'`
23597 done
23598 test ! -n "$as_dirs" || mkdir $as_dirs
23599 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23600 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23601 { (exit 1); exit 1; }; }; }
23603 ac_builddir=.
23605 if test "$ac_dir" != .; then
23606 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23607 # A "../" for each directory in $ac_dir_suffix.
23608 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23609 else
23610 ac_dir_suffix= ac_top_builddir=
23613 case $srcdir in
23614 .) # No --srcdir option. We are building in place.
23615 ac_srcdir=.
23616 if test -z "$ac_top_builddir"; then
23617 ac_top_srcdir=.
23618 else
23619 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23620 fi ;;
23621 [\\/]* | ?:[\\/]* ) # Absolute path.
23622 ac_srcdir=$srcdir$ac_dir_suffix;
23623 ac_top_srcdir=$srcdir ;;
23624 *) # Relative path.
23625 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23626 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23627 esac
23629 # Do not use `cd foo && pwd` to compute absolute paths, because
23630 # the directories may not exist.
23631 case `pwd` in
23632 .) ac_abs_builddir="$ac_dir";;
23634 case "$ac_dir" in
23635 .) ac_abs_builddir=`pwd`;;
23636 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23637 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23638 esac;;
23639 esac
23640 case $ac_abs_builddir in
23641 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23643 case ${ac_top_builddir}. in
23644 .) ac_abs_top_builddir=$ac_abs_builddir;;
23645 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23646 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23647 esac;;
23648 esac
23649 case $ac_abs_builddir in
23650 .) ac_abs_srcdir=$ac_srcdir;;
23652 case $ac_srcdir in
23653 .) ac_abs_srcdir=$ac_abs_builddir;;
23654 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23655 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23656 esac;;
23657 esac
23658 case $ac_abs_builddir in
23659 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23661 case $ac_top_srcdir in
23662 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23663 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23664 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23665 esac;;
23666 esac
23669 case $INSTALL in
23670 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23671 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23672 esac
23674 if test x"$ac_file" != x-; then
23675 { echo "$as_me:$LINENO: creating $ac_file" >&5
23676 echo "$as_me: creating $ac_file" >&6;}
23677 rm -f "$ac_file"
23679 # Let's still pretend it is `configure' which instantiates (i.e., don't
23680 # use $as_me), people would be surprised to read:
23681 # /* config.h. Generated by config.status. */
23682 if test x"$ac_file" = x-; then
23683 configure_input=
23684 else
23685 configure_input="$ac_file. "
23687 configure_input=$configure_input"Generated from `echo $ac_file_in |
23688 sed 's,.*/,,'` by configure."
23690 # First look for the input files in the build tree, otherwise in the
23691 # src tree.
23692 ac_file_inputs=`IFS=:
23693 for f in $ac_file_in; do
23694 case $f in
23695 -) echo $tmp/stdin ;;
23696 [\\/$]*)
23697 # Absolute (can't be DOS-style, as IFS=:)
23698 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23699 echo "$as_me: error: cannot find input file: $f" >&2;}
23700 { (exit 1); exit 1; }; }
23701 echo "$f";;
23702 *) # Relative
23703 if test -f "$f"; then
23704 # Build tree
23705 echo "$f"
23706 elif test -f "$srcdir/$f"; then
23707 # Source tree
23708 echo "$srcdir/$f"
23709 else
23710 # /dev/null tree
23711 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23712 echo "$as_me: error: cannot find input file: $f" >&2;}
23713 { (exit 1); exit 1; }; }
23714 fi;;
23715 esac
23716 done` || { (exit 1); exit 1; }
23717 _ACEOF
23718 cat >>$CONFIG_STATUS <<_ACEOF
23719 sed "$ac_vpsub
23720 $extrasub
23721 _ACEOF
23722 cat >>$CONFIG_STATUS <<\_ACEOF
23724 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23725 s,@configure_input@,$configure_input,;t t
23726 s,@srcdir@,$ac_srcdir,;t t
23727 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23728 s,@top_srcdir@,$ac_top_srcdir,;t t
23729 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23730 s,@builddir@,$ac_builddir,;t t
23731 s,@abs_builddir@,$ac_abs_builddir,;t t
23732 s,@top_builddir@,$ac_top_builddir,;t t
23733 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23734 s,@INSTALL@,$ac_INSTALL,;t t
23735 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23736 rm -f $tmp/stdin
23737 if test x"$ac_file" != x-; then
23738 mv $tmp/out $ac_file
23739 else
23740 cat $tmp/out
23741 rm -f $tmp/out
23744 done
23745 _ACEOF
23746 cat >>$CONFIG_STATUS <<\_ACEOF
23749 # CONFIG_HEADER section.
23752 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23753 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23755 # ac_d sets the value in "#define NAME VALUE" lines.
23756 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23757 ac_dB='[ ].*$,\1#\2'
23758 ac_dC=' '
23759 ac_dD=',;t'
23760 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23761 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23762 ac_uB='$,\1#\2define\3'
23763 ac_uC=' '
23764 ac_uD=',;t'
23766 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23767 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23768 case $ac_file in
23769 - | *:- | *:-:* ) # input from stdin
23770 cat >$tmp/stdin
23771 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23772 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23773 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23774 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23775 * ) ac_file_in=$ac_file.in ;;
23776 esac
23778 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23779 echo "$as_me: creating $ac_file" >&6;}
23781 # First look for the input files in the build tree, otherwise in the
23782 # src tree.
23783 ac_file_inputs=`IFS=:
23784 for f in $ac_file_in; do
23785 case $f in
23786 -) echo $tmp/stdin ;;
23787 [\\/$]*)
23788 # Absolute (can't be DOS-style, as IFS=:)
23789 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23790 echo "$as_me: error: cannot find input file: $f" >&2;}
23791 { (exit 1); exit 1; }; }
23792 # Do quote $f, to prevent DOS paths from being IFS'd.
23793 echo "$f";;
23794 *) # Relative
23795 if test -f "$f"; then
23796 # Build tree
23797 echo "$f"
23798 elif test -f "$srcdir/$f"; then
23799 # Source tree
23800 echo "$srcdir/$f"
23801 else
23802 # /dev/null tree
23803 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23804 echo "$as_me: error: cannot find input file: $f" >&2;}
23805 { (exit 1); exit 1; }; }
23806 fi;;
23807 esac
23808 done` || { (exit 1); exit 1; }
23809 # Remove the trailing spaces.
23810 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23812 _ACEOF
23814 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23815 # `conftest.undefs', that substitutes the proper values into
23816 # config.h.in to produce config.h. The first handles `#define'
23817 # templates, and the second `#undef' templates.
23818 # And first: Protect against being on the right side of a sed subst in
23819 # config.status. Protect against being in an unquoted here document
23820 # in config.status.
23821 rm -f conftest.defines conftest.undefs
23822 # Using a here document instead of a string reduces the quoting nightmare.
23823 # Putting comments in sed scripts is not portable.
23825 # `end' is used to avoid that the second main sed command (meant for
23826 # 0-ary CPP macros) applies to n-ary macro definitions.
23827 # See the Autoconf documentation for `clear'.
23828 cat >confdef2sed.sed <<\_ACEOF
23829 s/[\\&,]/\\&/g
23830 s,[\\$`],\\&,g
23831 t clear
23832 : clear
23833 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23834 t end
23835 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23836 : end
23837 _ACEOF
23838 # If some macros were called several times there might be several times
23839 # the same #defines, which is useless. Nevertheless, we may not want to
23840 # sort them, since we want the *last* AC-DEFINE to be honored.
23841 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23842 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23843 rm -f confdef2sed.sed
23845 # This sed command replaces #undef with comments. This is necessary, for
23846 # example, in the case of _POSIX_SOURCE, which is predefined and required
23847 # on some systems where configure will not decide to define it.
23848 cat >>conftest.undefs <<\_ACEOF
23849 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23850 _ACEOF
23852 # Break up conftest.defines because some shells have a limit on the size
23853 # of here documents, and old seds have small limits too (100 cmds).
23854 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23855 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23856 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23857 echo ' :' >>$CONFIG_STATUS
23858 rm -f conftest.tail
23859 while grep . conftest.defines >/dev/null
23861 # Write a limited-size here document to $tmp/defines.sed.
23862 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23863 # Speed up: don't consider the non `#define' lines.
23864 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23865 # Work around the forget-to-reset-the-flag bug.
23866 echo 't clr' >>$CONFIG_STATUS
23867 echo ': clr' >>$CONFIG_STATUS
23868 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23869 echo 'CEOF
23870 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23871 rm -f $tmp/in
23872 mv $tmp/out $tmp/in
23873 ' >>$CONFIG_STATUS
23874 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23875 rm -f conftest.defines
23876 mv conftest.tail conftest.defines
23877 done
23878 rm -f conftest.defines
23879 echo ' fi # grep' >>$CONFIG_STATUS
23880 echo >>$CONFIG_STATUS
23882 # Break up conftest.undefs because some shells have a limit on the size
23883 # of here documents, and old seds have small limits too (100 cmds).
23884 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23885 rm -f conftest.tail
23886 while grep . conftest.undefs >/dev/null
23888 # Write a limited-size here document to $tmp/undefs.sed.
23889 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23890 # Speed up: don't consider the non `#undef'
23891 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23892 # Work around the forget-to-reset-the-flag bug.
23893 echo 't clr' >>$CONFIG_STATUS
23894 echo ': clr' >>$CONFIG_STATUS
23895 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23896 echo 'CEOF
23897 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23898 rm -f $tmp/in
23899 mv $tmp/out $tmp/in
23900 ' >>$CONFIG_STATUS
23901 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23902 rm -f conftest.undefs
23903 mv conftest.tail conftest.undefs
23904 done
23905 rm -f conftest.undefs
23907 cat >>$CONFIG_STATUS <<\_ACEOF
23908 # Let's still pretend it is `configure' which instantiates (i.e., don't
23909 # use $as_me), people would be surprised to read:
23910 # /* config.h. Generated by config.status. */
23911 if test x"$ac_file" = x-; then
23912 echo "/* Generated by configure. */" >$tmp/config.h
23913 else
23914 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23916 cat $tmp/in >>$tmp/config.h
23917 rm -f $tmp/in
23918 if test x"$ac_file" != x-; then
23919 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23920 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23921 echo "$as_me: $ac_file is unchanged" >&6;}
23922 else
23923 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23924 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23925 X"$ac_file" : 'X\(//\)[^/]' \| \
23926 X"$ac_file" : 'X\(//\)$' \| \
23927 X"$ac_file" : 'X\(/\)' \| \
23928 . : '\(.\)' 2>/dev/null ||
23929 echo X"$ac_file" |
23930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23931 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23932 /^X\(\/\/\)$/{ s//\1/; q; }
23933 /^X\(\/\).*/{ s//\1/; q; }
23934 s/.*/./; q'`
23935 { if $as_mkdir_p; then
23936 mkdir -p "$ac_dir"
23937 else
23938 as_dir="$ac_dir"
23939 as_dirs=
23940 while test ! -d "$as_dir"; do
23941 as_dirs="$as_dir $as_dirs"
23942 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23943 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23944 X"$as_dir" : 'X\(//\)[^/]' \| \
23945 X"$as_dir" : 'X\(//\)$' \| \
23946 X"$as_dir" : 'X\(/\)' \| \
23947 . : '\(.\)' 2>/dev/null ||
23948 echo X"$as_dir" |
23949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23950 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23951 /^X\(\/\/\)$/{ s//\1/; q; }
23952 /^X\(\/\).*/{ s//\1/; q; }
23953 s/.*/./; q'`
23954 done
23955 test ! -n "$as_dirs" || mkdir $as_dirs
23956 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23957 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23958 { (exit 1); exit 1; }; }; }
23960 rm -f $ac_file
23961 mv $tmp/config.h $ac_file
23963 else
23964 cat $tmp/config.h
23965 rm -f $tmp/config.h
23967 done
23968 _ACEOF
23970 cat >>$CONFIG_STATUS <<\_ACEOF
23972 { (exit 0); exit 0; }
23973 _ACEOF
23974 chmod +x $CONFIG_STATUS
23975 ac_clean_files=$ac_clean_files_save
23978 # configure is writing to config.log, and then calls config.status.
23979 # config.status does its own redirection, appending to config.log.
23980 # Unfortunately, on DOS this fails, as config.log is still kept open
23981 # by configure, so config.status won't be able to write to it; its
23982 # output is simply discarded. So we exec the FD to /dev/null,
23983 # effectively closing config.log, so it can be properly (re)opened and
23984 # appended to by config.status. When coming back to configure, we
23985 # need to make the FD available again.
23986 if test "$no_create" != yes; then
23987 ac_cs_success=:
23988 ac_config_status_args=
23989 test "$silent" = yes &&
23990 ac_config_status_args="$ac_config_status_args --quiet"
23991 exec 5>/dev/null
23992 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23993 exec 5>>config.log
23994 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23995 # would make configure fail if this is the last instruction.
23996 $ac_cs_success || { (exit 1); exit 1; }
24000 echo "creating Modules/Setup"
24001 if test ! -f Modules/Setup
24002 then
24003 cp $srcdir/Modules/Setup.dist Modules/Setup
24006 echo "creating Modules/Setup.local"
24007 if test ! -f Modules/Setup.local
24008 then
24009 echo "# Edit this file for local setup changes" >Modules/Setup.local
24012 echo "creating Makefile"
24013 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
24014 -s Modules Modules/Setup.config \
24015 Modules/Setup.local Modules/Setup
24017 case $ac_sys_system in
24018 BeOS)
24019 { echo "$as_me:$LINENO: WARNING:
24021 Support for BeOS is deprecated as of Python 2.6.
24022 See PEP 11 for the gory details.
24023 " >&5
24024 echo "$as_me: WARNING:
24026 Support for BeOS is deprecated as of Python 2.6.
24027 See PEP 11 for the gory details.
24028 " >&2;}
24030 *) ;;
24031 esac
24033 mv config.c Modules