Add NamedTuple
[python.git] / configure
blob9065cb97121f580da46872a23f21591968d7ee4d
1 #! /bin/sh
2 # From configure.in Revision: 53508 .
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 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1392 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1394 cat >>confdefs.h <<\_ACEOF
1395 #define _BSD_TYPES 1
1396 _ACEOF
1399 define_xopen_source=yes
1401 # Arguments passed to configure.
1403 CONFIG_ARGS="$ac_configure_args"
1405 # Check whether --enable-universalsdk or --disable-universalsdk was given.
1406 if test "${enable_universalsdk+set}" = set; then
1407 enableval="$enable_universalsdk"
1409 case $enableval in
1410 yes)
1411 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1413 esac
1414 case $enableval in
1416 UNIVERSALSDK=
1417 enable_universalsdk=
1420 UNIVERSALSDK=$enableval
1422 esac
1424 else
1426 UNIVERSALSDK=
1427 enable_universalsdk=
1432 # Check whether --enable-framework or --disable-framework was given.
1433 if test "${enable_framework+set}" = set; then
1434 enableval="$enable_framework"
1436 case $enableval in
1437 yes)
1438 enableval=/Library/Frameworks
1439 esac
1440 case $enableval in
1442 PYTHONFRAMEWORK=
1443 PYTHONFRAMEWORKDIR=no-framework
1444 PYTHONFRAMEWORKPREFIX=
1445 PYTHONFRAMEWORKINSTALLDIR=
1446 FRAMEWORKINSTALLFIRST=
1447 FRAMEWORKINSTALLLAST=
1448 FRAMEWORKALTINSTALLFIRST=
1449 FRAMEWORKALTINSTALLLAST=
1450 if test "x${prefix}" = "xNONE"; then
1451 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1452 else
1453 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1455 enable_framework=
1458 PYTHONFRAMEWORK=Python
1459 PYTHONFRAMEWORKDIR=Python.framework
1460 PYTHONFRAMEWORKPREFIX=$enableval
1461 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1462 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1463 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1464 FRAMEWORKALTINSTALLFIRST="${FRAMEWORKINSTALLFIRST} bininstall maninstall"
1465 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1466 if test "x${prefix}" = "xNONE" ; then
1467 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1468 else
1469 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1471 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1473 # Add makefiles for Mac specific code to the list of output
1474 # files:
1475 ac_config_files="$ac_config_files Mac/Makefile"
1477 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
1479 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
1481 esac
1483 else
1485 PYTHONFRAMEWORK=
1486 PYTHONFRAMEWORKDIR=no-framework
1487 PYTHONFRAMEWORKPREFIX=
1488 PYTHONFRAMEWORKINSTALLDIR=
1489 FRAMEWORKINSTALLFIRST=
1490 FRAMEWORKINSTALLLAST=
1491 FRAMEWORKALTINSTALLFIRST=
1492 FRAMEWORKALTINSTALLLAST=
1493 if test "x${prefix}" = "xNONE" ; then
1494 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1495 else
1496 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1498 enable_framework=
1511 ##AC_ARG_WITH(dyld,
1512 ## AC_HELP_STRING(--with-dyld,
1513 ## Use (OpenStep|Rhapsody) dynamic linker))
1515 # Set name for machine-dependent library files
1517 echo "$as_me:$LINENO: checking MACHDEP" >&5
1518 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1519 if test -z "$MACHDEP"
1520 then
1521 ac_sys_system=`uname -s`
1522 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1523 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1524 ac_sys_release=`uname -v`
1525 else
1526 ac_sys_release=`uname -r`
1528 ac_md_system=`echo $ac_sys_system |
1529 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1530 ac_md_release=`echo $ac_sys_release |
1531 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
1532 MACHDEP="$ac_md_system$ac_md_release"
1534 case $MACHDEP in
1535 cygwin*) MACHDEP="cygwin";;
1536 darwin*) MACHDEP="darwin";;
1537 atheos*) MACHDEP="atheos";;
1538 irix646) MACHDEP="irix6";;
1539 '') MACHDEP="unknown";;
1540 esac
1543 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1544 # disable features if it is defined, without any means to access these
1545 # features as extensions. For these systems, we skip the definition of
1546 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1547 # some feature, make sure there is no alternative way to access this
1548 # feature. Also, when using wildcards, make sure you have verified the
1549 # need for not defining _XOPEN_SOURCE on all systems matching the
1550 # wildcard, and that the wildcard does not include future systems
1551 # (which may remove their limitations).
1552 case $ac_sys_system/$ac_sys_release in
1553 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
1554 # even though select is a POSIX function. Reported by J. Ribbens.
1555 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
1556 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0])
1557 define_xopen_source=no;;
1558 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
1559 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
1560 # Marc Recht
1561 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6A-S)
1562 define_xopen_source=no;;
1563 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
1564 # of union __?sigval. Reported by Stuart Bishop.
1565 SunOS/5.6)
1566 define_xopen_source=no;;
1567 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
1568 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
1569 # Reconfirmed for 7.1.4 by Martin v. Loewis.
1570 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
1571 define_xopen_source=no;;
1572 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
1573 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
1574 SCO_SV/3.2)
1575 define_xopen_source=no;;
1576 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
1577 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
1578 # this is fixed in 10.3, which identifies itself as Darwin/7.*
1579 # This should hopefully be fixed in FreeBSD 4.9
1580 FreeBSD/4.8* | Darwin/6* )
1581 define_xopen_source=no;;
1582 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
1583 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
1584 # or has another value. By not (re)defining it, the defaults come in place.
1585 AIX/4)
1586 define_xopen_source=no;;
1587 AIX/5)
1588 if test `uname -r` -eq 1; then
1589 define_xopen_source=no
1592 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1593 # disables platform specific features beyond repair.
1594 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1595 # has no effect, don't bother defining them
1596 Darwin/[789].*)
1597 define_xopen_source=no
1600 esac
1602 if test $define_xopen_source = yes
1603 then
1604 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
1605 # defined precisely as g++ defines it
1606 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
1607 # compiler
1608 case $ac_sys_system/$ac_sys_release in
1609 SunOS/5.8|SunOS/5.9|SunOS/5.10)
1611 cat >>confdefs.h <<\_ACEOF
1612 #define _XOPEN_SOURCE 500
1613 _ACEOF
1618 cat >>confdefs.h <<\_ACEOF
1619 #define _XOPEN_SOURCE 600
1620 _ACEOF
1623 esac
1625 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1626 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1627 # several APIs are not declared. Since this is also needed in some
1628 # cases for HP-UX, we define it globally.
1629 # except for Solaris 10, where it must not be defined,
1630 # as it implies XPG4.2
1631 case $ac_sys_system/$ac_sys_release in
1632 SunOS/5.10)
1636 cat >>confdefs.h <<\_ACEOF
1637 #define _XOPEN_SOURCE_EXTENDED 1
1638 _ACEOF
1641 esac
1644 cat >>confdefs.h <<\_ACEOF
1645 #define _POSIX_C_SOURCE 200112L
1646 _ACEOF
1652 # SGI compilers allow the specification of the both the ABI and the
1653 # ISA on the command line. Depending on the values of these switches,
1654 # different and often incompatable code will be generated.
1656 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1657 # thus supply support for various ABI/ISA combinations. The MACHDEP
1658 # variable is also adjusted.
1661 if test ! -z "$SGI_ABI"
1662 then
1663 CC="cc $SGI_ABI"
1664 LDFLAGS="$SGI_ABI $LDFLAGS"
1665 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1667 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1668 echo "${ECHO_T}$MACHDEP" >&6
1670 # And add extra plat-mac for darwin
1673 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1674 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1675 if test -z "$EXTRAPLATDIR"
1676 then
1677 case $MACHDEP in
1678 darwin)
1679 EXTRAPLATDIR="\$(PLATMACDIRS)"
1680 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
1683 EXTRAPLATDIR=""
1684 EXTRAMACHDEPPATH=""
1686 esac
1688 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1689 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1691 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
1692 # it may influence the way we can build extensions, so distutils
1693 # needs to check it
1696 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
1697 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
1699 # checks for alternative programs
1701 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1702 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1703 # just to get things to compile and link. Users are free to override OPT
1704 # when running configure or make. The build should not break if they do.
1705 # BASECFLAGS should generally not be messed with, however.
1707 # XXX shouldn't some/most/all of this code be merged with the stuff later
1708 # on that fiddles with OPT and BASECFLAGS?
1709 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1710 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1712 # Check whether --with-gcc or --without-gcc was given.
1713 if test "${with_gcc+set}" = set; then
1714 withval="$with_gcc"
1716 case $withval in
1717 no) CC=cc
1718 without_gcc=yes;;
1719 yes) CC=gcc
1720 without_gcc=no;;
1721 *) CC=$withval
1722 without_gcc=$withval;;
1723 esac
1724 else
1726 case $ac_sys_system in
1727 AIX*) CC=cc_r
1728 without_gcc=;;
1729 BeOS*)
1730 case $BE_HOST_CPU in
1731 ppc)
1732 CC=mwcc
1733 without_gcc=yes
1734 BASECFLAGS="$BASECFLAGS -export pragma"
1735 OPT="$OPT -O"
1736 LDFLAGS="$LDFLAGS -nodup"
1738 x86)
1739 CC=gcc
1740 without_gcc=no
1741 OPT="$OPT -O"
1744 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1745 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1746 { (exit 1); exit 1; }; }
1748 esac
1749 AR="\$(srcdir)/Modules/ar_beos"
1750 RANLIB=:
1752 Monterey*)
1753 RANLIB=:
1754 without_gcc=;;
1755 *) without_gcc=no;;
1756 esac
1758 echo "$as_me:$LINENO: result: $without_gcc" >&5
1759 echo "${ECHO_T}$without_gcc" >&6
1761 # If the user switches compilers, we can't believe the cache
1762 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1763 then
1764 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1765 (it is also a good idea to do 'make clean' before compiling)" >&5
1766 echo "$as_me: error: cached CC is different -- throw away $cache_file
1767 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1768 { (exit 1); exit 1; }; }
1771 ac_ext=c
1772 ac_cpp='$CPP $CPPFLAGS'
1773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1776 if test -n "$ac_tool_prefix"; then
1777 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1778 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1779 echo "$as_me:$LINENO: checking for $ac_word" >&5
1780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1781 if test "${ac_cv_prog_CC+set}" = set; then
1782 echo $ECHO_N "(cached) $ECHO_C" >&6
1783 else
1784 if test -n "$CC"; then
1785 ac_cv_prog_CC="$CC" # Let the user override the test.
1786 else
1787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1788 for as_dir in $PATH
1790 IFS=$as_save_IFS
1791 test -z "$as_dir" && as_dir=.
1792 for ac_exec_ext in '' $ac_executable_extensions; do
1793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1794 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1796 break 2
1798 done
1799 done
1803 CC=$ac_cv_prog_CC
1804 if test -n "$CC"; then
1805 echo "$as_me:$LINENO: result: $CC" >&5
1806 echo "${ECHO_T}$CC" >&6
1807 else
1808 echo "$as_me:$LINENO: result: no" >&5
1809 echo "${ECHO_T}no" >&6
1813 if test -z "$ac_cv_prog_CC"; then
1814 ac_ct_CC=$CC
1815 # Extract the first word of "gcc", so it can be a program name with args.
1816 set dummy gcc; ac_word=$2
1817 echo "$as_me:$LINENO: checking for $ac_word" >&5
1818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1820 echo $ECHO_N "(cached) $ECHO_C" >&6
1821 else
1822 if test -n "$ac_ct_CC"; then
1823 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1824 else
1825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1826 for as_dir in $PATH
1828 IFS=$as_save_IFS
1829 test -z "$as_dir" && as_dir=.
1830 for ac_exec_ext in '' $ac_executable_extensions; do
1831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1832 ac_cv_prog_ac_ct_CC="gcc"
1833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834 break 2
1836 done
1837 done
1841 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1842 if test -n "$ac_ct_CC"; then
1843 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1844 echo "${ECHO_T}$ac_ct_CC" >&6
1845 else
1846 echo "$as_me:$LINENO: result: no" >&5
1847 echo "${ECHO_T}no" >&6
1850 CC=$ac_ct_CC
1851 else
1852 CC="$ac_cv_prog_CC"
1855 if test -z "$CC"; then
1856 if test -n "$ac_tool_prefix"; then
1857 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1858 set dummy ${ac_tool_prefix}cc; ac_word=$2
1859 echo "$as_me:$LINENO: checking for $ac_word" >&5
1860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1861 if test "${ac_cv_prog_CC+set}" = set; then
1862 echo $ECHO_N "(cached) $ECHO_C" >&6
1863 else
1864 if test -n "$CC"; then
1865 ac_cv_prog_CC="$CC" # Let the user override the test.
1866 else
1867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868 for as_dir in $PATH
1870 IFS=$as_save_IFS
1871 test -z "$as_dir" && as_dir=.
1872 for ac_exec_ext in '' $ac_executable_extensions; do
1873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1874 ac_cv_prog_CC="${ac_tool_prefix}cc"
1875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876 break 2
1878 done
1879 done
1883 CC=$ac_cv_prog_CC
1884 if test -n "$CC"; then
1885 echo "$as_me:$LINENO: result: $CC" >&5
1886 echo "${ECHO_T}$CC" >&6
1887 else
1888 echo "$as_me:$LINENO: result: no" >&5
1889 echo "${ECHO_T}no" >&6
1893 if test -z "$ac_cv_prog_CC"; then
1894 ac_ct_CC=$CC
1895 # Extract the first word of "cc", so it can be a program name with args.
1896 set dummy cc; ac_word=$2
1897 echo "$as_me:$LINENO: checking for $ac_word" >&5
1898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1901 else
1902 if test -n "$ac_ct_CC"; then
1903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1904 else
1905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906 for as_dir in $PATH
1908 IFS=$as_save_IFS
1909 test -z "$as_dir" && as_dir=.
1910 for ac_exec_ext in '' $ac_executable_extensions; do
1911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912 ac_cv_prog_ac_ct_CC="cc"
1913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914 break 2
1916 done
1917 done
1921 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1922 if test -n "$ac_ct_CC"; then
1923 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1924 echo "${ECHO_T}$ac_ct_CC" >&6
1925 else
1926 echo "$as_me:$LINENO: result: no" >&5
1927 echo "${ECHO_T}no" >&6
1930 CC=$ac_ct_CC
1931 else
1932 CC="$ac_cv_prog_CC"
1936 if test -z "$CC"; then
1937 # Extract the first word of "cc", so it can be a program name with args.
1938 set dummy cc; ac_word=$2
1939 echo "$as_me:$LINENO: checking for $ac_word" >&5
1940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1941 if test "${ac_cv_prog_CC+set}" = set; then
1942 echo $ECHO_N "(cached) $ECHO_C" >&6
1943 else
1944 if test -n "$CC"; then
1945 ac_cv_prog_CC="$CC" # Let the user override the test.
1946 else
1947 ac_prog_rejected=no
1948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1949 for as_dir in $PATH
1951 IFS=$as_save_IFS
1952 test -z "$as_dir" && as_dir=.
1953 for ac_exec_ext in '' $ac_executable_extensions; do
1954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1955 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1956 ac_prog_rejected=yes
1957 continue
1959 ac_cv_prog_CC="cc"
1960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1961 break 2
1963 done
1964 done
1966 if test $ac_prog_rejected = yes; then
1967 # We found a bogon in the path, so make sure we never use it.
1968 set dummy $ac_cv_prog_CC
1969 shift
1970 if test $# != 0; then
1971 # We chose a different compiler from the bogus one.
1972 # However, it has the same basename, so the bogon will be chosen
1973 # first if we set CC to just the basename; use the full file name.
1974 shift
1975 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1980 CC=$ac_cv_prog_CC
1981 if test -n "$CC"; then
1982 echo "$as_me:$LINENO: result: $CC" >&5
1983 echo "${ECHO_T}$CC" >&6
1984 else
1985 echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1990 if test -z "$CC"; then
1991 if test -n "$ac_tool_prefix"; then
1992 for ac_prog in cl
1994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1995 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1996 echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1998 if test "${ac_cv_prog_CC+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001 if test -n "$CC"; then
2002 ac_cv_prog_CC="$CC" # Let the user override the test.
2003 else
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 for as_dir in $PATH
2007 IFS=$as_save_IFS
2008 test -z "$as_dir" && as_dir=.
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013 break 2
2015 done
2016 done
2020 CC=$ac_cv_prog_CC
2021 if test -n "$CC"; then
2022 echo "$as_me:$LINENO: result: $CC" >&5
2023 echo "${ECHO_T}$CC" >&6
2024 else
2025 echo "$as_me:$LINENO: result: no" >&5
2026 echo "${ECHO_T}no" >&6
2029 test -n "$CC" && break
2030 done
2032 if test -z "$CC"; then
2033 ac_ct_CC=$CC
2034 for ac_prog in cl
2036 # Extract the first word of "$ac_prog", so it can be a program name with args.
2037 set dummy $ac_prog; ac_word=$2
2038 echo "$as_me:$LINENO: checking for $ac_word" >&5
2039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2040 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2042 else
2043 if test -n "$ac_ct_CC"; then
2044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2045 else
2046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047 for as_dir in $PATH
2049 IFS=$as_save_IFS
2050 test -z "$as_dir" && as_dir=.
2051 for ac_exec_ext in '' $ac_executable_extensions; do
2052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2053 ac_cv_prog_ac_ct_CC="$ac_prog"
2054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055 break 2
2057 done
2058 done
2062 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2063 if test -n "$ac_ct_CC"; then
2064 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2065 echo "${ECHO_T}$ac_ct_CC" >&6
2066 else
2067 echo "$as_me:$LINENO: result: no" >&5
2068 echo "${ECHO_T}no" >&6
2071 test -n "$ac_ct_CC" && break
2072 done
2074 CC=$ac_ct_CC
2080 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2081 See \`config.log' for more details." >&5
2082 echo "$as_me: error: no acceptable C compiler found in \$PATH
2083 See \`config.log' for more details." >&2;}
2084 { (exit 1); exit 1; }; }
2086 # Provide some information about the compiler.
2087 echo "$as_me:$LINENO:" \
2088 "checking for C compiler version" >&5
2089 ac_compiler=`set X $ac_compile; echo $2`
2090 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2091 (eval $ac_compiler --version </dev/null >&5) 2>&5
2092 ac_status=$?
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }
2095 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2096 (eval $ac_compiler -v </dev/null >&5) 2>&5
2097 ac_status=$?
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }
2100 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2101 (eval $ac_compiler -V </dev/null >&5) 2>&5
2102 ac_status=$?
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }
2106 cat >conftest.$ac_ext <<_ACEOF
2107 /* confdefs.h. */
2108 _ACEOF
2109 cat confdefs.h >>conftest.$ac_ext
2110 cat >>conftest.$ac_ext <<_ACEOF
2111 /* end confdefs.h. */
2114 main ()
2118 return 0;
2120 _ACEOF
2121 ac_clean_files_save=$ac_clean_files
2122 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2123 # Try to create an executable without -o first, disregard a.out.
2124 # It will help us diagnose broken compilers, and finding out an intuition
2125 # of exeext.
2126 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2127 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2128 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2129 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2130 (eval $ac_link_default) 2>&5
2131 ac_status=$?
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); }; then
2134 # Find the output, starting from the most likely. This scheme is
2135 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2136 # resort.
2138 # Be careful to initialize this variable, since it used to be cached.
2139 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2140 ac_cv_exeext=
2141 # b.out is created by i960 compilers.
2142 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2144 test -f "$ac_file" || continue
2145 case $ac_file in
2146 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2148 conftest.$ac_ext )
2149 # This is the source file.
2151 [ab].out )
2152 # We found the default executable, but exeext='' is most
2153 # certainly right.
2154 break;;
2155 *.* )
2156 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2157 # FIXME: I believe we export ac_cv_exeext for Libtool,
2158 # but it would be cool to find out if it's true. Does anybody
2159 # maintain Libtool? --akim.
2160 export ac_cv_exeext
2161 break;;
2163 break;;
2164 esac
2165 done
2166 else
2167 echo "$as_me: failed program was:" >&5
2168 sed 's/^/| /' conftest.$ac_ext >&5
2170 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2171 See \`config.log' for more details." >&5
2172 echo "$as_me: error: C compiler cannot create executables
2173 See \`config.log' for more details." >&2;}
2174 { (exit 77); exit 77; }; }
2177 ac_exeext=$ac_cv_exeext
2178 echo "$as_me:$LINENO: result: $ac_file" >&5
2179 echo "${ECHO_T}$ac_file" >&6
2181 # Check the compiler produces executables we can run. If not, either
2182 # the compiler is broken, or we cross compile.
2183 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2184 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2185 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2186 # If not cross compiling, check that we can run a simple program.
2187 if test "$cross_compiling" != yes; then
2188 if { ac_try='./$ac_file'
2189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2190 (eval $ac_try) 2>&5
2191 ac_status=$?
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }; }; then
2194 cross_compiling=no
2195 else
2196 if test "$cross_compiling" = maybe; then
2197 cross_compiling=yes
2198 else
2199 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2200 If you meant to cross compile, use \`--host'.
2201 See \`config.log' for more details." >&5
2202 echo "$as_me: error: cannot run C compiled programs.
2203 If you meant to cross compile, use \`--host'.
2204 See \`config.log' for more details." >&2;}
2205 { (exit 1); exit 1; }; }
2209 echo "$as_me:$LINENO: result: yes" >&5
2210 echo "${ECHO_T}yes" >&6
2212 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2213 ac_clean_files=$ac_clean_files_save
2214 # Check the compiler produces executables we can run. If not, either
2215 # the compiler is broken, or we cross compile.
2216 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2217 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2218 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2219 echo "${ECHO_T}$cross_compiling" >&6
2221 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2222 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2224 (eval $ac_link) 2>&5
2225 ac_status=$?
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; then
2228 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2229 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2230 # work properly (i.e., refer to `conftest.exe'), while it won't with
2231 # `rm'.
2232 for ac_file in conftest.exe conftest conftest.*; do
2233 test -f "$ac_file" || continue
2234 case $ac_file in
2235 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2236 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2237 export ac_cv_exeext
2238 break;;
2239 * ) break;;
2240 esac
2241 done
2242 else
2243 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2244 See \`config.log' for more details." >&5
2245 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2246 See \`config.log' for more details." >&2;}
2247 { (exit 1); exit 1; }; }
2250 rm -f conftest$ac_cv_exeext
2251 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2252 echo "${ECHO_T}$ac_cv_exeext" >&6
2254 rm -f conftest.$ac_ext
2255 EXEEXT=$ac_cv_exeext
2256 ac_exeext=$EXEEXT
2257 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2258 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2259 if test "${ac_cv_objext+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
2261 else
2262 cat >conftest.$ac_ext <<_ACEOF
2263 /* confdefs.h. */
2264 _ACEOF
2265 cat confdefs.h >>conftest.$ac_ext
2266 cat >>conftest.$ac_ext <<_ACEOF
2267 /* end confdefs.h. */
2270 main ()
2274 return 0;
2276 _ACEOF
2277 rm -f conftest.o conftest.obj
2278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2279 (eval $ac_compile) 2>&5
2280 ac_status=$?
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; then
2283 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2284 case $ac_file in
2285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2286 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2287 break;;
2288 esac
2289 done
2290 else
2291 echo "$as_me: failed program was:" >&5
2292 sed 's/^/| /' conftest.$ac_ext >&5
2294 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2295 See \`config.log' for more details." >&5
2296 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2297 See \`config.log' for more details." >&2;}
2298 { (exit 1); exit 1; }; }
2301 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2303 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2304 echo "${ECHO_T}$ac_cv_objext" >&6
2305 OBJEXT=$ac_cv_objext
2306 ac_objext=$OBJEXT
2307 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2308 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2309 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2311 else
2312 cat >conftest.$ac_ext <<_ACEOF
2313 /* confdefs.h. */
2314 _ACEOF
2315 cat confdefs.h >>conftest.$ac_ext
2316 cat >>conftest.$ac_ext <<_ACEOF
2317 /* end confdefs.h. */
2320 main ()
2322 #ifndef __GNUC__
2323 choke me
2324 #endif
2327 return 0;
2329 _ACEOF
2330 rm -f conftest.$ac_objext
2331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2332 (eval $ac_compile) 2>conftest.er1
2333 ac_status=$?
2334 grep -v '^ *+' conftest.er1 >conftest.err
2335 rm -f conftest.er1
2336 cat conftest.err >&5
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); } &&
2339 { ac_try='test -z "$ac_c_werror_flag"
2340 || test ! -s conftest.err'
2341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342 (eval $ac_try) 2>&5
2343 ac_status=$?
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; } &&
2346 { ac_try='test -s conftest.$ac_objext'
2347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348 (eval $ac_try) 2>&5
2349 ac_status=$?
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }; }; then
2352 ac_compiler_gnu=yes
2353 else
2354 echo "$as_me: failed program was:" >&5
2355 sed 's/^/| /' conftest.$ac_ext >&5
2357 ac_compiler_gnu=no
2359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2360 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2363 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2364 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2365 GCC=`test $ac_compiler_gnu = yes && echo yes`
2366 ac_test_CFLAGS=${CFLAGS+set}
2367 ac_save_CFLAGS=$CFLAGS
2368 CFLAGS="-g"
2369 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2370 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2371 if test "${ac_cv_prog_cc_g+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2373 else
2374 cat >conftest.$ac_ext <<_ACEOF
2375 /* confdefs.h. */
2376 _ACEOF
2377 cat confdefs.h >>conftest.$ac_ext
2378 cat >>conftest.$ac_ext <<_ACEOF
2379 /* end confdefs.h. */
2382 main ()
2386 return 0;
2388 _ACEOF
2389 rm -f conftest.$ac_objext
2390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391 (eval $ac_compile) 2>conftest.er1
2392 ac_status=$?
2393 grep -v '^ *+' conftest.er1 >conftest.err
2394 rm -f conftest.er1
2395 cat conftest.err >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); } &&
2398 { ac_try='test -z "$ac_c_werror_flag"
2399 || test ! -s conftest.err'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 (eval $ac_try) 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; } &&
2405 { ac_try='test -s conftest.$ac_objext'
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 (eval $ac_try) 2>&5
2408 ac_status=$?
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; }; then
2411 ac_cv_prog_cc_g=yes
2412 else
2413 echo "$as_me: failed program was:" >&5
2414 sed 's/^/| /' conftest.$ac_ext >&5
2416 ac_cv_prog_cc_g=no
2418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2420 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2421 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2422 if test "$ac_test_CFLAGS" = set; then
2423 CFLAGS=$ac_save_CFLAGS
2424 elif test $ac_cv_prog_cc_g = yes; then
2425 if test "$GCC" = yes; then
2426 CFLAGS="-g -O2"
2427 else
2428 CFLAGS="-g"
2430 else
2431 if test "$GCC" = yes; then
2432 CFLAGS="-O2"
2433 else
2434 CFLAGS=
2437 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2438 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2439 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2441 else
2442 ac_cv_prog_cc_stdc=no
2443 ac_save_CC=$CC
2444 cat >conftest.$ac_ext <<_ACEOF
2445 /* confdefs.h. */
2446 _ACEOF
2447 cat confdefs.h >>conftest.$ac_ext
2448 cat >>conftest.$ac_ext <<_ACEOF
2449 /* end confdefs.h. */
2450 #include <stdarg.h>
2451 #include <stdio.h>
2452 #include <sys/types.h>
2453 #include <sys/stat.h>
2454 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2455 struct buf { int x; };
2456 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2457 static char *e (p, i)
2458 char **p;
2459 int i;
2461 return p[i];
2463 static char *f (char * (*g) (char **, int), char **p, ...)
2465 char *s;
2466 va_list v;
2467 va_start (v,p);
2468 s = g (p, va_arg (v,int));
2469 va_end (v);
2470 return s;
2473 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2474 function prototypes and stuff, but not '\xHH' hex character constants.
2475 These don't provoke an error unfortunately, instead are silently treated
2476 as 'x'. The following induces an error, until -std1 is added to get
2477 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2478 array size at least. It's necessary to write '\x00'==0 to get something
2479 that's true only with -std1. */
2480 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2482 int test (int i, double x);
2483 struct s1 {int (*f) (int a);};
2484 struct s2 {int (*f) (double a);};
2485 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2486 int argc;
2487 char **argv;
2489 main ()
2491 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2493 return 0;
2495 _ACEOF
2496 # Don't try gcc -ansi; that turns off useful extensions and
2497 # breaks some systems' header files.
2498 # AIX -qlanglvl=ansi
2499 # Ultrix and OSF/1 -std1
2500 # HP-UX 10.20 and later -Ae
2501 # HP-UX older versions -Aa -D_HPUX_SOURCE
2502 # SVR4 -Xc -D__EXTENSIONS__
2503 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2505 CC="$ac_save_CC $ac_arg"
2506 rm -f conftest.$ac_objext
2507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2508 (eval $ac_compile) 2>conftest.er1
2509 ac_status=$?
2510 grep -v '^ *+' conftest.er1 >conftest.err
2511 rm -f conftest.er1
2512 cat conftest.err >&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); } &&
2515 { ac_try='test -z "$ac_c_werror_flag"
2516 || test ! -s conftest.err'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518 (eval $ac_try) 2>&5
2519 ac_status=$?
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; } &&
2522 { ac_try='test -s conftest.$ac_objext'
2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524 (eval $ac_try) 2>&5
2525 ac_status=$?
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; }; then
2528 ac_cv_prog_cc_stdc=$ac_arg
2529 break
2530 else
2531 echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.$ac_ext >&5
2535 rm -f conftest.err conftest.$ac_objext
2536 done
2537 rm -f conftest.$ac_ext conftest.$ac_objext
2538 CC=$ac_save_CC
2542 case "x$ac_cv_prog_cc_stdc" in
2543 x|xno)
2544 echo "$as_me:$LINENO: result: none needed" >&5
2545 echo "${ECHO_T}none needed" >&6 ;;
2547 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2548 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2549 CC="$CC $ac_cv_prog_cc_stdc" ;;
2550 esac
2552 # Some people use a C++ compiler to compile C. Since we use `exit',
2553 # in C++ we need to declare it. In case someone uses the same compiler
2554 # for both compiling C and C++ we need to have the C++ compiler decide
2555 # the declaration of exit, since it's the most demanding environment.
2556 cat >conftest.$ac_ext <<_ACEOF
2557 #ifndef __cplusplus
2558 choke me
2559 #endif
2560 _ACEOF
2561 rm -f conftest.$ac_objext
2562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563 (eval $ac_compile) 2>conftest.er1
2564 ac_status=$?
2565 grep -v '^ *+' conftest.er1 >conftest.err
2566 rm -f conftest.er1
2567 cat conftest.err >&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); } &&
2570 { ac_try='test -z "$ac_c_werror_flag"
2571 || test ! -s conftest.err'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 (eval $ac_try) 2>&5
2574 ac_status=$?
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; } &&
2577 { ac_try='test -s conftest.$ac_objext'
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579 (eval $ac_try) 2>&5
2580 ac_status=$?
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
2583 for ac_declaration in \
2584 '' \
2585 'extern "C" void std::exit (int) throw (); using std::exit;' \
2586 'extern "C" void std::exit (int); using std::exit;' \
2587 'extern "C" void exit (int) throw ();' \
2588 'extern "C" void exit (int);' \
2589 'void exit (int);'
2591 cat >conftest.$ac_ext <<_ACEOF
2592 /* confdefs.h. */
2593 _ACEOF
2594 cat confdefs.h >>conftest.$ac_ext
2595 cat >>conftest.$ac_ext <<_ACEOF
2596 /* end confdefs.h. */
2597 $ac_declaration
2598 #include <stdlib.h>
2600 main ()
2602 exit (42);
2604 return 0;
2606 _ACEOF
2607 rm -f conftest.$ac_objext
2608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2609 (eval $ac_compile) 2>conftest.er1
2610 ac_status=$?
2611 grep -v '^ *+' conftest.er1 >conftest.err
2612 rm -f conftest.er1
2613 cat conftest.err >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } &&
2616 { ac_try='test -z "$ac_c_werror_flag"
2617 || test ! -s conftest.err'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 (eval $ac_try) 2>&5
2620 ac_status=$?
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; } &&
2623 { ac_try='test -s conftest.$ac_objext'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 (eval $ac_try) 2>&5
2626 ac_status=$?
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; }; then
2630 else
2631 echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2634 continue
2636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2637 cat >conftest.$ac_ext <<_ACEOF
2638 /* confdefs.h. */
2639 _ACEOF
2640 cat confdefs.h >>conftest.$ac_ext
2641 cat >>conftest.$ac_ext <<_ACEOF
2642 /* end confdefs.h. */
2643 $ac_declaration
2645 main ()
2647 exit (42);
2649 return 0;
2651 _ACEOF
2652 rm -f conftest.$ac_objext
2653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2654 (eval $ac_compile) 2>conftest.er1
2655 ac_status=$?
2656 grep -v '^ *+' conftest.er1 >conftest.err
2657 rm -f conftest.er1
2658 cat conftest.err >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); } &&
2661 { ac_try='test -z "$ac_c_werror_flag"
2662 || test ! -s conftest.err'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 (eval $ac_try) 2>&5
2665 ac_status=$?
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; } &&
2668 { ac_try='test -s conftest.$ac_objext'
2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 (eval $ac_try) 2>&5
2671 ac_status=$?
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; }; then
2674 break
2675 else
2676 echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.$ac_ext >&5
2680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2681 done
2682 rm -f conftest*
2683 if test -n "$ac_declaration"; then
2684 echo '#ifdef __cplusplus' >>confdefs.h
2685 echo $ac_declaration >>confdefs.h
2686 echo '#endif' >>confdefs.h
2689 else
2690 echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2695 ac_ext=c
2696 ac_cpp='$CPP $CPPFLAGS'
2697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2704 echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
2705 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6
2707 # Check whether --with-cxx_main or --without-cxx_main was given.
2708 if test "${with_cxx_main+set}" = set; then
2709 withval="$with_cxx_main"
2712 case $withval in
2713 no) with_cxx_main=no
2714 MAINCC='$(CC)';;
2715 yes) with_cxx_main=yes
2716 MAINCC='$(CXX)';;
2717 *) with_cxx_main=yes
2718 MAINCC=$withval
2719 if test -z "$CXX"
2720 then
2721 CXX=$withval
2722 fi;;
2723 esac
2724 else
2726 with_cxx_main=no
2727 MAINCC='$(CC)'
2730 echo "$as_me:$LINENO: result: $with_cxx_main" >&5
2731 echo "${ECHO_T}$with_cxx_main" >&6
2733 preset_cxx="$CXX"
2734 if test -z "$CXX"
2735 then
2736 case "$CC" in
2737 gcc) # Extract the first word of "g++", so it can be a program name with args.
2738 set dummy g++; ac_word=$2
2739 echo "$as_me:$LINENO: checking for $ac_word" >&5
2740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2741 if test "${ac_cv_path_CXX+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2743 else
2744 case $CXX in
2745 [\\/]* | ?:[\\/]*)
2746 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in notfound
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2756 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
2757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 break 2
2760 done
2761 done
2763 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
2765 esac
2767 CXX=$ac_cv_path_CXX
2769 if test -n "$CXX"; then
2770 echo "$as_me:$LINENO: result: $CXX" >&5
2771 echo "${ECHO_T}$CXX" >&6
2772 else
2773 echo "$as_me:$LINENO: result: no" >&5
2774 echo "${ECHO_T}no" >&6
2777 cc) # Extract the first word of "c++", so it can be a program name with args.
2778 set dummy c++; ac_word=$2
2779 echo "$as_me:$LINENO: checking for $ac_word" >&5
2780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2781 if test "${ac_cv_path_CXX+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2783 else
2784 case $CXX in
2785 [\\/]* | ?:[\\/]*)
2786 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in notfound
2792 IFS=$as_save_IFS
2793 test -z "$as_dir" && as_dir=.
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2796 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
2797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 break 2
2800 done
2801 done
2803 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
2805 esac
2807 CXX=$ac_cv_path_CXX
2809 if test -n "$CXX"; then
2810 echo "$as_me:$LINENO: result: $CXX" >&5
2811 echo "${ECHO_T}$CXX" >&6
2812 else
2813 echo "$as_me:$LINENO: result: no" >&5
2814 echo "${ECHO_T}no" >&6
2817 esac
2818 if test "$CXX" = "notfound"
2819 then
2820 CXX=""
2823 if test -z "$CXX"
2824 then
2825 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
2827 # Extract the first word of "$ac_prog", so it can be a program name with args.
2828 set dummy $ac_prog; ac_word=$2
2829 echo "$as_me:$LINENO: checking for $ac_word" >&5
2830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2831 if test "${ac_cv_prog_CXX+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2833 else
2834 if test -n "$CXX"; then
2835 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2836 else
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 for as_dir in $PATH
2840 IFS=$as_save_IFS
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844 ac_cv_prog_CXX="$ac_prog"
2845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 break 2
2848 done
2849 done
2853 CXX=$ac_cv_prog_CXX
2854 if test -n "$CXX"; then
2855 echo "$as_me:$LINENO: result: $CXX" >&5
2856 echo "${ECHO_T}$CXX" >&6
2857 else
2858 echo "$as_me:$LINENO: result: no" >&5
2859 echo "${ECHO_T}no" >&6
2862 test -n "$CXX" && break
2863 done
2864 test -n "$CXX" || CXX="notfound"
2866 if test "$CXX" = "notfound"
2867 then
2868 CXX=""
2871 if test "$preset_cxx" != "$CXX"
2872 then
2873 { echo "$as_me:$LINENO: WARNING:
2875 By default, distutils will build C++ extension modules with \"$CXX\".
2876 If this is not intended, then set CXX on the configure command line.
2877 " >&5
2878 echo "$as_me: WARNING:
2880 By default, distutils will build C++ extension modules with \"$CXX\".
2881 If this is not intended, then set CXX on the configure command line.
2882 " >&2;}
2886 # checks for UNIX variants that set C preprocessor variables
2888 ac_ext=c
2889 ac_cpp='$CPP $CPPFLAGS'
2890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2893 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2894 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2895 # On Suns, sometimes $CPP names a directory.
2896 if test -n "$CPP" && test -d "$CPP"; then
2897 CPP=
2899 if test -z "$CPP"; then
2900 if test "${ac_cv_prog_CPP+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2902 else
2903 # Double quotes because CPP needs to be expanded
2904 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2906 ac_preproc_ok=false
2907 for ac_c_preproc_warn_flag in '' yes
2909 # Use a header file that comes with gcc, so configuring glibc
2910 # with a fresh cross-compiler works.
2911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2912 # <limits.h> exists even on freestanding compilers.
2913 # On the NeXT, cc -E runs the code through the compiler's parser,
2914 # not just through cpp. "Syntax error" is here to catch this case.
2915 cat >conftest.$ac_ext <<_ACEOF
2916 /* confdefs.h. */
2917 _ACEOF
2918 cat confdefs.h >>conftest.$ac_ext
2919 cat >>conftest.$ac_ext <<_ACEOF
2920 /* end confdefs.h. */
2921 #ifdef __STDC__
2922 # include <limits.h>
2923 #else
2924 # include <assert.h>
2925 #endif
2926 Syntax error
2927 _ACEOF
2928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2930 ac_status=$?
2931 grep -v '^ *+' conftest.er1 >conftest.err
2932 rm -f conftest.er1
2933 cat conftest.err >&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); } >/dev/null; then
2936 if test -s conftest.err; then
2937 ac_cpp_err=$ac_c_preproc_warn_flag
2938 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2939 else
2940 ac_cpp_err=
2942 else
2943 ac_cpp_err=yes
2945 if test -z "$ac_cpp_err"; then
2947 else
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2951 # Broken: fails on valid input.
2952 continue
2954 rm -f conftest.err conftest.$ac_ext
2956 # OK, works on sane cases. Now check whether non-existent headers
2957 # can be detected and how.
2958 cat >conftest.$ac_ext <<_ACEOF
2959 /* confdefs.h. */
2960 _ACEOF
2961 cat confdefs.h >>conftest.$ac_ext
2962 cat >>conftest.$ac_ext <<_ACEOF
2963 /* end confdefs.h. */
2964 #include <ac_nonexistent.h>
2965 _ACEOF
2966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2968 ac_status=$?
2969 grep -v '^ *+' conftest.er1 >conftest.err
2970 rm -f conftest.er1
2971 cat conftest.err >&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } >/dev/null; then
2974 if test -s conftest.err; then
2975 ac_cpp_err=$ac_c_preproc_warn_flag
2976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2977 else
2978 ac_cpp_err=
2980 else
2981 ac_cpp_err=yes
2983 if test -z "$ac_cpp_err"; then
2984 # Broken: success on invalid input.
2985 continue
2986 else
2987 echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2990 # Passes both tests.
2991 ac_preproc_ok=:
2992 break
2994 rm -f conftest.err conftest.$ac_ext
2996 done
2997 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2998 rm -f conftest.err conftest.$ac_ext
2999 if $ac_preproc_ok; then
3000 break
3003 done
3004 ac_cv_prog_CPP=$CPP
3007 CPP=$ac_cv_prog_CPP
3008 else
3009 ac_cv_prog_CPP=$CPP
3011 echo "$as_me:$LINENO: result: $CPP" >&5
3012 echo "${ECHO_T}$CPP" >&6
3013 ac_preproc_ok=false
3014 for ac_c_preproc_warn_flag in '' yes
3016 # Use a header file that comes with gcc, so configuring glibc
3017 # with a fresh cross-compiler works.
3018 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3019 # <limits.h> exists even on freestanding compilers.
3020 # On the NeXT, cc -E runs the code through the compiler's parser,
3021 # not just through cpp. "Syntax error" is here to catch this case.
3022 cat >conftest.$ac_ext <<_ACEOF
3023 /* confdefs.h. */
3024 _ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3028 #ifdef __STDC__
3029 # include <limits.h>
3030 #else
3031 # include <assert.h>
3032 #endif
3033 Syntax error
3034 _ACEOF
3035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3036 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3037 ac_status=$?
3038 grep -v '^ *+' conftest.er1 >conftest.err
3039 rm -f conftest.er1
3040 cat conftest.err >&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); } >/dev/null; then
3043 if test -s conftest.err; then
3044 ac_cpp_err=$ac_c_preproc_warn_flag
3045 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3046 else
3047 ac_cpp_err=
3049 else
3050 ac_cpp_err=yes
3052 if test -z "$ac_cpp_err"; then
3054 else
3055 echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3058 # Broken: fails on valid input.
3059 continue
3061 rm -f conftest.err conftest.$ac_ext
3063 # OK, works on sane cases. Now check whether non-existent headers
3064 # can be detected and how.
3065 cat >conftest.$ac_ext <<_ACEOF
3066 /* confdefs.h. */
3067 _ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3071 #include <ac_nonexistent.h>
3072 _ACEOF
3073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3075 ac_status=$?
3076 grep -v '^ *+' conftest.er1 >conftest.err
3077 rm -f conftest.er1
3078 cat conftest.err >&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); } >/dev/null; then
3081 if test -s conftest.err; then
3082 ac_cpp_err=$ac_c_preproc_warn_flag
3083 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3084 else
3085 ac_cpp_err=
3087 else
3088 ac_cpp_err=yes
3090 if test -z "$ac_cpp_err"; then
3091 # Broken: success on invalid input.
3092 continue
3093 else
3094 echo "$as_me: failed program was:" >&5
3095 sed 's/^/| /' conftest.$ac_ext >&5
3097 # Passes both tests.
3098 ac_preproc_ok=:
3099 break
3101 rm -f conftest.err conftest.$ac_ext
3103 done
3104 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3105 rm -f conftest.err conftest.$ac_ext
3106 if $ac_preproc_ok; then
3108 else
3109 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3110 See \`config.log' for more details." >&5
3111 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3112 See \`config.log' for more details." >&2;}
3113 { (exit 1); exit 1; }; }
3116 ac_ext=c
3117 ac_cpp='$CPP $CPPFLAGS'
3118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3123 echo "$as_me:$LINENO: checking for egrep" >&5
3124 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3125 if test "${ac_cv_prog_egrep+set}" = set; then
3126 echo $ECHO_N "(cached) $ECHO_C" >&6
3127 else
3128 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3129 then ac_cv_prog_egrep='grep -E'
3130 else ac_cv_prog_egrep='egrep'
3133 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3134 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3135 EGREP=$ac_cv_prog_egrep
3139 echo "$as_me:$LINENO: checking for AIX" >&5
3140 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3141 cat >conftest.$ac_ext <<_ACEOF
3142 /* confdefs.h. */
3143 _ACEOF
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h. */
3147 #ifdef _AIX
3149 #endif
3151 _ACEOF
3152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3153 $EGREP "yes" >/dev/null 2>&1; then
3154 echo "$as_me:$LINENO: result: yes" >&5
3155 echo "${ECHO_T}yes" >&6
3156 cat >>confdefs.h <<\_ACEOF
3157 #define _ALL_SOURCE 1
3158 _ACEOF
3160 else
3161 echo "$as_me:$LINENO: result: no" >&5
3162 echo "${ECHO_T}no" >&6
3164 rm -f conftest*
3168 # Check for unsupported systems
3169 case $ac_sys_system/$ac_sys_release in
3170 Linux*/1*)
3171 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3172 echo See README for details.
3173 exit 1;;
3174 esac
3177 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3178 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3180 # Check whether --with-suffix or --without-suffix was given.
3181 if test "${with_suffix+set}" = set; then
3182 withval="$with_suffix"
3184 case $withval in
3185 no) EXEEXT=;;
3186 yes) EXEEXT=.exe;;
3187 *) EXEEXT=$withval;;
3188 esac
3190 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3191 echo "${ECHO_T}$EXEEXT" >&6
3193 # Test whether we're running on a non-case-sensitive system, in which
3194 # case we give a warning if no ext is given
3196 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3197 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3198 if test ! -d CaseSensitiveTestDir; then
3199 mkdir CaseSensitiveTestDir
3202 if test -d casesensitivetestdir
3203 then
3204 echo "$as_me:$LINENO: result: yes" >&5
3205 echo "${ECHO_T}yes" >&6
3206 BUILDEXEEXT=.exe
3207 else
3208 echo "$as_me:$LINENO: result: no" >&5
3209 echo "${ECHO_T}no" >&6
3210 BUILDEXEEXT=$EXEEXT
3212 rmdir CaseSensitiveTestDir
3214 case $MACHDEP in
3215 bsdos*)
3216 case $CC in
3217 gcc) CC="$CC -D_HAVE_BSDI";;
3218 esac;;
3219 esac
3221 case $ac_sys_system in
3222 hp*|HP*)
3223 case $CC in
3224 cc|*/cc) CC="$CC -Ae";;
3225 esac;;
3226 Monterey*)
3227 case $CC in
3228 cc) CC="$CC -Wl,-Bexport";;
3229 esac;;
3230 SunOS*)
3231 # Some functions have a prototype only with that define, e.g. confstr
3233 cat >>confdefs.h <<\_ACEOF
3234 #define __EXTENSIONS__ 1
3235 _ACEOF
3238 esac
3242 echo "$as_me:$LINENO: checking LIBRARY" >&5
3243 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3244 if test -z "$LIBRARY"
3245 then
3246 LIBRARY='libpython$(VERSION).a'
3248 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3249 echo "${ECHO_T}$LIBRARY" >&6
3251 # LDLIBRARY is the name of the library to link against (as opposed to the
3252 # name of the library into which to insert object files). BLDLIBRARY is also
3253 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3254 # is blank as the main program is not linked directly against LDLIBRARY.
3255 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3256 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3257 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3258 # DLLLIBRARY is the shared (i.e., DLL) library.
3260 # RUNSHARED is used to run shared python without installed libraries
3262 # INSTSONAME is the name of the shared library that will be use to install
3263 # on the system - some systems like version suffix, others don't
3270 LDLIBRARY="$LIBRARY"
3271 BLDLIBRARY='$(LDLIBRARY)'
3272 INSTSONAME='$(LDLIBRARY)'
3273 DLLLIBRARY=''
3274 LDLIBRARYDIR=''
3275 RUNSHARED=''
3277 # LINKCC is the command that links the python executable -- default is $(CC).
3278 # If CXX is set, and if it is needed to link a main function that was
3279 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3280 # python might then depend on the C++ runtime
3281 # This is altered for AIX in order to build the export list before
3282 # linking.
3284 echo "$as_me:$LINENO: checking LINKCC" >&5
3285 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3286 if test -z "$LINKCC"
3287 then
3288 LINKCC='$(PURIFY) $(MAINCC)'
3289 case $ac_sys_system in
3290 AIX*)
3291 exp_extra="\"\""
3292 if test $ac_sys_release -ge 5 -o \
3293 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3294 exp_extra="."
3296 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3297 Monterey64*)
3298 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3299 esac
3301 echo "$as_me:$LINENO: result: $LINKCC" >&5
3302 echo "${ECHO_T}$LINKCC" >&6
3304 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3305 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3306 # Check whether --enable-shared or --disable-shared was given.
3307 if test "${enable_shared+set}" = set; then
3308 enableval="$enable_shared"
3312 if test -z "$enable_shared"
3313 then
3314 case $ac_sys_system in
3315 CYGWIN* | atheos*)
3316 enable_shared="yes";;
3318 enable_shared="no";;
3319 esac
3321 echo "$as_me:$LINENO: result: $enable_shared" >&5
3322 echo "${ECHO_T}$enable_shared" >&6
3324 echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3325 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6
3326 # Check whether --enable-profiling or --disable-profiling was given.
3327 if test "${enable_profiling+set}" = set; then
3328 enableval="$enable_profiling"
3329 ac_save_cc="$CC"
3330 CC="$CC -pg"
3331 if test "$cross_compiling" = yes; then
3332 ac_enable_profiling="no"
3333 else
3334 cat >conftest.$ac_ext <<_ACEOF
3335 /* confdefs.h. */
3336 _ACEOF
3337 cat confdefs.h >>conftest.$ac_ext
3338 cat >>conftest.$ac_ext <<_ACEOF
3339 /* end confdefs.h. */
3340 int main() { return 0; }
3341 _ACEOF
3342 rm -f conftest$ac_exeext
3343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3344 (eval $ac_link) 2>&5
3345 ac_status=$?
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3349 (eval $ac_try) 2>&5
3350 ac_status=$?
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; }; then
3353 ac_enable_profiling="yes"
3354 else
3355 echo "$as_me: program exited with status $ac_status" >&5
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3359 ( exit $ac_status )
3360 ac_enable_profiling="no"
3362 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3364 CC="$ac_save_cc"
3366 echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3367 echo "${ECHO_T}$ac_enable_profiling" >&6
3369 case "$ac_enable_profiling" in
3370 "yes")
3371 BASECFLAGS="-pg $BASECFLAGS"
3372 LDFLAGS="-pg $LDFLAGS"
3374 esac
3376 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3377 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3379 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3380 # library that we build, but we do not want to link against it (we
3381 # will find it with a -framework option). For this reason there is an
3382 # extra variable BLDLIBRARY against which Python and the extension
3383 # modules are linked, BLDLIBRARY. This is normally the same as
3384 # LDLIBRARY, but empty for MacOSX framework builds.
3385 if test "$enable_framework"
3386 then
3387 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3388 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
3389 BLDLIBRARY=''
3390 else
3391 BLDLIBRARY='$(LDLIBRARY)'
3394 # Other platforms follow
3395 if test $enable_shared = "yes"; then
3397 cat >>confdefs.h <<\_ACEOF
3398 #define Py_ENABLE_SHARED 1
3399 _ACEOF
3401 case $ac_sys_system in
3402 BeOS*)
3403 LDLIBRARY='libpython$(VERSION).so'
3405 CYGWIN*)
3406 LDLIBRARY='libpython$(VERSION).dll.a'
3407 DLLLIBRARY='libpython$(VERSION).dll'
3409 SunOS*)
3410 LDLIBRARY='libpython$(VERSION).so'
3411 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
3412 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3413 INSTSONAME="$LDLIBRARY".$SOVERSION
3415 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
3416 LDLIBRARY='libpython$(VERSION).so'
3417 BLDLIBRARY='-L. -lpython$(VERSION)'
3418 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3419 case $ac_sys_system in
3420 FreeBSD*)
3421 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
3423 esac
3424 INSTSONAME="$LDLIBRARY".$SOVERSION
3426 hp*|HP*)
3427 case `uname -m` in
3428 ia64)
3429 LDLIBRARY='libpython$(VERSION).so'
3432 LDLIBRARY='libpython$(VERSION).sl'
3434 esac
3435 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3436 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
3438 OSF*)
3439 LDLIBRARY='libpython$(VERSION).so'
3440 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3441 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3443 atheos*)
3444 LDLIBRARY='libpython$(VERSION).so'
3445 BLDLIBRARY='-L. -lpython$(VERSION)'
3446 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3448 esac
3449 else # shared is disabled
3450 case $ac_sys_system in
3451 CYGWIN*)
3452 BLDLIBRARY='$(LIBRARY)'
3453 LDLIBRARY='libpython$(VERSION).dll.a'
3455 esac
3458 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3459 echo "${ECHO_T}$LDLIBRARY" >&6
3461 if test -n "$ac_tool_prefix"; then
3462 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3463 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3464 echo "$as_me:$LINENO: checking for $ac_word" >&5
3465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3466 if test "${ac_cv_prog_RANLIB+set}" = set; then
3467 echo $ECHO_N "(cached) $ECHO_C" >&6
3468 else
3469 if test -n "$RANLIB"; then
3470 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3471 else
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 for as_dir in $PATH
3475 IFS=$as_save_IFS
3476 test -z "$as_dir" && as_dir=.
3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3479 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3481 break 2
3483 done
3484 done
3488 RANLIB=$ac_cv_prog_RANLIB
3489 if test -n "$RANLIB"; then
3490 echo "$as_me:$LINENO: result: $RANLIB" >&5
3491 echo "${ECHO_T}$RANLIB" >&6
3492 else
3493 echo "$as_me:$LINENO: result: no" >&5
3494 echo "${ECHO_T}no" >&6
3498 if test -z "$ac_cv_prog_RANLIB"; then
3499 ac_ct_RANLIB=$RANLIB
3500 # Extract the first word of "ranlib", so it can be a program name with args.
3501 set dummy ranlib; ac_word=$2
3502 echo "$as_me:$LINENO: checking for $ac_word" >&5
3503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3504 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3506 else
3507 if test -n "$ac_ct_RANLIB"; then
3508 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3509 else
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 for as_dir in $PATH
3513 IFS=$as_save_IFS
3514 test -z "$as_dir" && as_dir=.
3515 for ac_exec_ext in '' $ac_executable_extensions; do
3516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517 ac_cv_prog_ac_ct_RANLIB="ranlib"
3518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3519 break 2
3521 done
3522 done
3524 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3527 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3528 if test -n "$ac_ct_RANLIB"; then
3529 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3530 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3531 else
3532 echo "$as_me:$LINENO: result: no" >&5
3533 echo "${ECHO_T}no" >&6
3536 RANLIB=$ac_ct_RANLIB
3537 else
3538 RANLIB="$ac_cv_prog_RANLIB"
3542 for ac_prog in ar aal
3544 # Extract the first word of "$ac_prog", so it can be a program name with args.
3545 set dummy $ac_prog; ac_word=$2
3546 echo "$as_me:$LINENO: checking for $ac_word" >&5
3547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3548 if test "${ac_cv_prog_AR+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551 if test -n "$AR"; then
3552 ac_cv_prog_AR="$AR" # Let the user override the test.
3553 else
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 for as_dir in $PATH
3557 IFS=$as_save_IFS
3558 test -z "$as_dir" && as_dir=.
3559 for ac_exec_ext in '' $ac_executable_extensions; do
3560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3561 ac_cv_prog_AR="$ac_prog"
3562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3563 break 2
3565 done
3566 done
3570 AR=$ac_cv_prog_AR
3571 if test -n "$AR"; then
3572 echo "$as_me:$LINENO: result: $AR" >&5
3573 echo "${ECHO_T}$AR" >&6
3574 else
3575 echo "$as_me:$LINENO: result: no" >&5
3576 echo "${ECHO_T}no" >&6
3579 test -n "$AR" && break
3580 done
3581 test -n "$AR" || AR="ar"
3585 # Extract the first word of "svnversion", so it can be a program name with args.
3586 set dummy svnversion; ac_word=$2
3587 echo "$as_me:$LINENO: checking for $ac_word" >&5
3588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3589 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
3591 else
3592 if test -n "$SVNVERSION"; then
3593 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
3594 else
3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 for as_dir in $PATH
3598 IFS=$as_save_IFS
3599 test -z "$as_dir" && as_dir=.
3600 for ac_exec_ext in '' $ac_executable_extensions; do
3601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3602 ac_cv_prog_SVNVERSION="found"
3603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3604 break 2
3606 done
3607 done
3609 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
3612 SVNVERSION=$ac_cv_prog_SVNVERSION
3613 if test -n "$SVNVERSION"; then
3614 echo "$as_me:$LINENO: result: $SVNVERSION" >&5
3615 echo "${ECHO_T}$SVNVERSION" >&6
3616 else
3617 echo "$as_me:$LINENO: result: no" >&5
3618 echo "${ECHO_T}no" >&6
3621 if test $SVNVERSION = found
3622 then
3623 SVNVERSION="svnversion \$(srcdir)"
3624 else
3625 SVNVERSION="echo exported"
3628 case $MACHDEP in
3629 bsdos*|hp*|HP*)
3630 # install -d does not work on BSDI or HP-UX
3631 if test -z "$INSTALL"
3632 then
3633 INSTALL="${srcdir}/install-sh -c"
3635 esac
3636 ac_aux_dir=
3637 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3638 if test -f $ac_dir/install-sh; then
3639 ac_aux_dir=$ac_dir
3640 ac_install_sh="$ac_aux_dir/install-sh -c"
3641 break
3642 elif test -f $ac_dir/install.sh; then
3643 ac_aux_dir=$ac_dir
3644 ac_install_sh="$ac_aux_dir/install.sh -c"
3645 break
3646 elif test -f $ac_dir/shtool; then
3647 ac_aux_dir=$ac_dir
3648 ac_install_sh="$ac_aux_dir/shtool install -c"
3649 break
3651 done
3652 if test -z "$ac_aux_dir"; then
3653 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3654 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3655 { (exit 1); exit 1; }; }
3657 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3658 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3659 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3661 # Find a good install program. We prefer a C program (faster),
3662 # so one script is as good as another. But avoid the broken or
3663 # incompatible versions:
3664 # SysV /etc/install, /usr/sbin/install
3665 # SunOS /usr/etc/install
3666 # IRIX /sbin/install
3667 # AIX /bin/install
3668 # AmigaOS /C/install, which installs bootblocks on floppy discs
3669 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3670 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3671 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3672 # OS/2's system install, which has a completely different semantic
3673 # ./install, which can be erroneously created by make from ./install.sh.
3674 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3675 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3676 if test -z "$INSTALL"; then
3677 if test "${ac_cv_path_install+set}" = set; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3679 else
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 for as_dir in $PATH
3683 IFS=$as_save_IFS
3684 test -z "$as_dir" && as_dir=.
3685 # Account for people who put trailing slashes in PATH elements.
3686 case $as_dir/ in
3687 ./ | .// | /cC/* | \
3688 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3689 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3690 /usr/ucb/* ) ;;
3692 # OSF1 and SCO ODT 3.0 have their own names for install.
3693 # Don't use installbsd from OSF since it installs stuff as root
3694 # by default.
3695 for ac_prog in ginstall scoinst install; do
3696 for ac_exec_ext in '' $ac_executable_extensions; do
3697 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3698 if test $ac_prog = install &&
3699 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3700 # AIX install. It has an incompatible calling convention.
3702 elif test $ac_prog = install &&
3703 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3704 # program-specific install script used by HP pwplus--don't use.
3706 else
3707 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3708 break 3
3711 done
3712 done
3714 esac
3715 done
3719 if test "${ac_cv_path_install+set}" = set; then
3720 INSTALL=$ac_cv_path_install
3721 else
3722 # As a last resort, use the slow shell script. We don't cache a
3723 # path for INSTALL within a source directory, because that will
3724 # break other packages using the cache if that directory is
3725 # removed, or if the path is relative.
3726 INSTALL=$ac_install_sh
3729 echo "$as_me:$LINENO: result: $INSTALL" >&5
3730 echo "${ECHO_T}$INSTALL" >&6
3732 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3733 # It thinks the first close brace ends the variable substitution.
3734 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3736 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3738 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3741 # Not every filesystem supports hard links
3743 if test -z "$LN" ; then
3744 case $ac_sys_system in
3745 BeOS*) LN="ln -s";;
3746 CYGWIN*) LN="ln -s";;
3747 atheos*) LN="ln -s";;
3748 *) LN=ln;;
3749 esac
3752 # Check for --with-pydebug
3753 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3754 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3756 # Check whether --with-pydebug or --without-pydebug was given.
3757 if test "${with_pydebug+set}" = set; then
3758 withval="$with_pydebug"
3760 if test "$withval" != no
3761 then
3763 cat >>confdefs.h <<\_ACEOF
3764 #define Py_DEBUG 1
3765 _ACEOF
3767 echo "$as_me:$LINENO: result: yes" >&5
3768 echo "${ECHO_T}yes" >&6;
3769 Py_DEBUG='true'
3770 else echo "$as_me:$LINENO: result: no" >&5
3771 echo "${ECHO_T}no" >&6; Py_DEBUG='false'
3773 else
3774 echo "$as_me:$LINENO: result: no" >&5
3775 echo "${ECHO_T}no" >&6
3778 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3779 # merged with this chunk of code?
3781 # Optimizer/debugger flags
3782 # ------------------------
3783 # (The following bit of code is complicated enough - please keep things
3784 # indented properly. Just pretend you're editing Python code. ;-)
3786 # There are two parallel sets of case statements below, one that checks to
3787 # see if OPT was set and one that does BASECFLAGS setting based upon
3788 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3789 # user set OPT.
3791 # tweak OPT based on compiler and platform, only if the user didn't set
3792 # it on the command line
3794 if test -z "$OPT"
3795 then
3796 case $GCC in
3797 yes)
3798 if test "$CC" != 'g++' ; then
3799 STRICT_PROTO="-Wstrict-prototypes"
3801 case $ac_cv_prog_cc_g in
3802 yes)
3803 if test "$Py_DEBUG" = 'true' ; then
3804 # Optimization messes up debuggers, so turn it off for
3805 # debug builds.
3806 OPT="-g -Wall $STRICT_PROTO"
3807 else
3808 OPT="-g -O3 -Wall $STRICT_PROTO"
3812 OPT="-O3 -Wall $STRICT_PROTO"
3814 esac
3815 case $ac_sys_system in
3816 SCO_SV*) OPT="$OPT -m486 -DSCO5"
3818 esac
3822 OPT="-O"
3824 esac
3826 # The current (beta) Monterey compiler dies with optimizations
3827 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3828 case $ac_sys_system in
3829 Monterey*)
3830 OPT=""
3832 esac
3837 # tweak BASECFLAGS based on compiler and platform
3838 case $GCC in
3839 yes)
3840 # Python violates C99 rules, by casting between incompatible
3841 # pointer types. GCC may generate bad code as a result of that,
3842 # so use -fno-strict-aliasing if supported.
3843 echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
3844 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6
3845 ac_save_cc="$CC"
3846 CC="$CC -fno-strict-aliasing"
3847 if test "$cross_compiling" = yes; then
3848 ac_cv_no_strict_aliasing_ok=no
3849 else
3850 cat >conftest.$ac_ext <<_ACEOF
3851 /* confdefs.h. */
3852 _ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3856 int main() { return 0; }
3857 _ACEOF
3858 rm -f conftest$ac_exeext
3859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3860 (eval $ac_link) 2>&5
3861 ac_status=$?
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865 (eval $ac_try) 2>&5
3866 ac_status=$?
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; }; then
3869 ac_cv_no_strict_aliasing_ok=yes
3870 else
3871 echo "$as_me: program exited with status $ac_status" >&5
3872 echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.$ac_ext >&5
3875 ( exit $ac_status )
3876 ac_cv_no_strict_aliasing_ok=no
3878 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3880 CC="$ac_save_cc"
3881 echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
3882 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
3883 if test $ac_cv_no_strict_aliasing_ok = yes
3884 then
3885 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
3887 case $ac_sys_system in
3888 SCO_SV*)
3889 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
3891 # is there any other compiler on Darwin besides gcc?
3892 Darwin*)
3893 BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
3894 if test "${enable_universalsdk}"; then
3895 BASECFLAGS="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
3899 OSF*)
3900 BASECFLAGS="$BASECFLAGS -mieee"
3902 esac
3906 case $ac_sys_system in
3907 OpenUNIX*|UnixWare*)
3908 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3910 OSF*)
3911 BASECFLAGS="$BASECFLAGS -ieee -std"
3913 SCO_SV*)
3914 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
3916 esac
3918 esac
3920 if test "$Py_DEBUG" = 'true'; then
3922 else
3923 OPT="-DNDEBUG $OPT"
3926 if test "$ac_arch_flags"
3927 then
3928 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
3931 # disable check for icc since it seems to pass, but generates a warning
3932 if test "$CC" = icc
3933 then
3934 ac_cv_opt_olimit_ok=no
3937 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3938 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3939 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3941 else
3942 ac_save_cc="$CC"
3943 CC="$CC -OPT:Olimit=0"
3944 if test "$cross_compiling" = yes; then
3945 ac_cv_opt_olimit_ok=no
3946 else
3947 cat >conftest.$ac_ext <<_ACEOF
3948 /* confdefs.h. */
3949 _ACEOF
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
3952 /* end confdefs.h. */
3953 int main() { return 0; }
3954 _ACEOF
3955 rm -f conftest$ac_exeext
3956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3957 (eval $ac_link) 2>&5
3958 ac_status=$?
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962 (eval $ac_try) 2>&5
3963 ac_status=$?
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); }; }; then
3966 ac_cv_opt_olimit_ok=yes
3967 else
3968 echo "$as_me: program exited with status $ac_status" >&5
3969 echo "$as_me: failed program was:" >&5
3970 sed 's/^/| /' conftest.$ac_ext >&5
3972 ( exit $ac_status )
3973 ac_cv_opt_olimit_ok=no
3975 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3977 CC="$ac_save_cc"
3980 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3981 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3982 if test $ac_cv_opt_olimit_ok = yes; then
3983 case $ac_sys_system in
3984 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3985 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3986 # environment?
3987 Darwin*)
3990 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
3992 esac
3993 else
3994 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3995 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3996 if test "${ac_cv_olimit_ok+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 else
3999 ac_save_cc="$CC"
4000 CC="$CC -Olimit 1500"
4001 if test "$cross_compiling" = yes; then
4002 ac_cv_olimit_ok=no
4003 else
4004 cat >conftest.$ac_ext <<_ACEOF
4005 /* confdefs.h. */
4006 _ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4010 int main() { return 0; }
4011 _ACEOF
4012 rm -f conftest$ac_exeext
4013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4014 (eval $ac_link) 2>&5
4015 ac_status=$?
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4019 (eval $ac_try) 2>&5
4020 ac_status=$?
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); }; }; then
4023 ac_cv_olimit_ok=yes
4024 else
4025 echo "$as_me: program exited with status $ac_status" >&5
4026 echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4029 ( exit $ac_status )
4030 ac_cv_olimit_ok=no
4032 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4034 CC="$ac_save_cc"
4037 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4038 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
4039 if test $ac_cv_olimit_ok = yes; then
4040 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4044 # Check whether GCC supports PyArg_ParseTuple format
4045 if test "$GCC" = "yes"
4046 then
4047 echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4048 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6
4049 save_CFLAGS=$CFLAGS
4050 CFLAGS="$CFLAGS -Werror"
4051 cat >conftest.$ac_ext <<_ACEOF
4052 /* confdefs.h. */
4053 _ACEOF
4054 cat confdefs.h >>conftest.$ac_ext
4055 cat >>conftest.$ac_ext <<_ACEOF
4056 /* end confdefs.h. */
4058 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4061 main ()
4065 return 0;
4067 _ACEOF
4068 rm -f conftest.$ac_objext
4069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4070 (eval $ac_compile) 2>conftest.er1
4071 ac_status=$?
4072 grep -v '^ *+' conftest.er1 >conftest.err
4073 rm -f conftest.er1
4074 cat conftest.err >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } &&
4077 { ac_try='test -z "$ac_c_werror_flag"
4078 || test ! -s conftest.err'
4079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4080 (eval $ac_try) 2>&5
4081 ac_status=$?
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); }; } &&
4084 { ac_try='test -s conftest.$ac_objext'
4085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4086 (eval $ac_try) 2>&5
4087 ac_status=$?
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); }; }; then
4091 cat >>confdefs.h <<\_ACEOF
4092 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4093 _ACEOF
4095 echo "$as_me:$LINENO: result: yes" >&5
4096 echo "${ECHO_T}yes" >&6
4097 else
4098 echo "$as_me: failed program was:" >&5
4099 sed 's/^/| /' conftest.$ac_ext >&5
4101 echo "$as_me:$LINENO: result: no" >&5
4102 echo "${ECHO_T}no" >&6
4105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4106 CFLAGS=$save_CFLAGS
4109 # On some compilers, pthreads are available without further options
4110 # (e.g. MacOS X). On some of these systems, the compiler will not
4111 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4112 # So we have to see first whether pthreads are available without
4113 # options before we can check whether -Kpthread improves anything.
4114 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4115 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
4116 if test "${ac_cv_pthread_is_default+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 else
4119 if test "$cross_compiling" = yes; then
4120 ac_cv_pthread_is_default=no
4121 else
4122 cat >conftest.$ac_ext <<_ACEOF
4123 /* confdefs.h. */
4124 _ACEOF
4125 cat confdefs.h >>conftest.$ac_ext
4126 cat >>conftest.$ac_ext <<_ACEOF
4127 /* end confdefs.h. */
4129 #include <pthread.h>
4131 void* routine(void* p){return NULL;}
4133 int main(){
4134 pthread_t p;
4135 if(pthread_create(&p,NULL,routine,NULL)!=0)
4136 return 1;
4137 (void)pthread_detach(p);
4138 return 0;
4141 _ACEOF
4142 rm -f conftest$ac_exeext
4143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4144 (eval $ac_link) 2>&5
4145 ac_status=$?
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149 (eval $ac_try) 2>&5
4150 ac_status=$?
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); }; }; then
4154 ac_cv_pthread_is_default=yes
4155 ac_cv_kthread=no
4156 ac_cv_pthread=no
4158 else
4159 echo "$as_me: program exited with status $ac_status" >&5
4160 echo "$as_me: failed program was:" >&5
4161 sed 's/^/| /' conftest.$ac_ext >&5
4163 ( exit $ac_status )
4164 ac_cv_pthread_is_default=no
4166 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4171 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4172 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
4175 if test $ac_cv_pthread_is_default = yes
4176 then
4177 ac_cv_kpthread=no
4178 else
4179 # -Kpthread, if available, provides the right #defines
4180 # and linker options to make pthread_create available
4181 # Some compilers won't report that they do not support -Kpthread,
4182 # so we need to run a program to see whether it really made the
4183 # function available.
4184 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4185 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
4186 if test "${ac_cv_kpthread+set}" = set; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
4188 else
4189 ac_save_cc="$CC"
4190 CC="$CC -Kpthread"
4191 if test "$cross_compiling" = yes; then
4192 ac_cv_kpthread=no
4193 else
4194 cat >conftest.$ac_ext <<_ACEOF
4195 /* confdefs.h. */
4196 _ACEOF
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h. */
4201 #include <pthread.h>
4203 void* routine(void* p){return NULL;}
4205 int main(){
4206 pthread_t p;
4207 if(pthread_create(&p,NULL,routine,NULL)!=0)
4208 return 1;
4209 (void)pthread_detach(p);
4210 return 0;
4213 _ACEOF
4214 rm -f conftest$ac_exeext
4215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4216 (eval $ac_link) 2>&5
4217 ac_status=$?
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4221 (eval $ac_try) 2>&5
4222 ac_status=$?
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); }; }; then
4225 ac_cv_kpthread=yes
4226 else
4227 echo "$as_me: program exited with status $ac_status" >&5
4228 echo "$as_me: failed program was:" >&5
4229 sed 's/^/| /' conftest.$ac_ext >&5
4231 ( exit $ac_status )
4232 ac_cv_kpthread=no
4234 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4236 CC="$ac_save_cc"
4239 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4240 echo "${ECHO_T}$ac_cv_kpthread" >&6
4243 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
4244 then
4245 # -Kthread, if available, provides the right #defines
4246 # and linker options to make pthread_create available
4247 # Some compilers won't report that they do not support -Kthread,
4248 # so we need to run a program to see whether it really made the
4249 # function available.
4250 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4251 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
4252 if test "${ac_cv_kthread+set}" = set; then
4253 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 else
4255 ac_save_cc="$CC"
4256 CC="$CC -Kthread"
4257 if test "$cross_compiling" = yes; then
4258 ac_cv_kthread=no
4259 else
4260 cat >conftest.$ac_ext <<_ACEOF
4261 /* confdefs.h. */
4262 _ACEOF
4263 cat confdefs.h >>conftest.$ac_ext
4264 cat >>conftest.$ac_ext <<_ACEOF
4265 /* end confdefs.h. */
4267 #include <pthread.h>
4269 void* routine(void* p){return NULL;}
4271 int main(){
4272 pthread_t p;
4273 if(pthread_create(&p,NULL,routine,NULL)!=0)
4274 return 1;
4275 (void)pthread_detach(p);
4276 return 0;
4279 _ACEOF
4280 rm -f conftest$ac_exeext
4281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4282 (eval $ac_link) 2>&5
4283 ac_status=$?
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4287 (eval $ac_try) 2>&5
4288 ac_status=$?
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); }; }; then
4291 ac_cv_kthread=yes
4292 else
4293 echo "$as_me: program exited with status $ac_status" >&5
4294 echo "$as_me: failed program was:" >&5
4295 sed 's/^/| /' conftest.$ac_ext >&5
4297 ( exit $ac_status )
4298 ac_cv_kthread=no
4300 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4302 CC="$ac_save_cc"
4305 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4306 echo "${ECHO_T}$ac_cv_kthread" >&6
4309 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
4310 then
4311 # -pthread, if available, provides the right #defines
4312 # and linker options to make pthread_create available
4313 # Some compilers won't report that they do not support -pthread,
4314 # so we need to run a program to see whether it really made the
4315 # function available.
4316 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4317 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
4318 if test "${ac_cv_thread+set}" = set; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4320 else
4321 ac_save_cc="$CC"
4322 CC="$CC -pthread"
4323 if test "$cross_compiling" = yes; then
4324 ac_cv_pthread=no
4325 else
4326 cat >conftest.$ac_ext <<_ACEOF
4327 /* confdefs.h. */
4328 _ACEOF
4329 cat confdefs.h >>conftest.$ac_ext
4330 cat >>conftest.$ac_ext <<_ACEOF
4331 /* end confdefs.h. */
4333 #include <pthread.h>
4335 void* routine(void* p){return NULL;}
4337 int main(){
4338 pthread_t p;
4339 if(pthread_create(&p,NULL,routine,NULL)!=0)
4340 return 1;
4341 (void)pthread_detach(p);
4342 return 0;
4345 _ACEOF
4346 rm -f conftest$ac_exeext
4347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4348 (eval $ac_link) 2>&5
4349 ac_status=$?
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353 (eval $ac_try) 2>&5
4354 ac_status=$?
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); }; }; then
4357 ac_cv_pthread=yes
4358 else
4359 echo "$as_me: program exited with status $ac_status" >&5
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4363 ( exit $ac_status )
4364 ac_cv_pthread=no
4366 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4368 CC="$ac_save_cc"
4371 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4372 echo "${ECHO_T}$ac_cv_pthread" >&6
4375 # If we have set a CC compiler flag for thread support then
4376 # check if it works for CXX, too.
4377 ac_cv_cxx_thread=no
4378 if test ! -z "$CXX"
4379 then
4380 echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
4381 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6
4382 ac_save_cxx="$CXX"
4384 if test "$ac_cv_kpthread" = "yes"
4385 then
4386 CXX="$CXX -Kpthread"
4387 ac_cv_cxx_thread=yes
4388 elif test "$ac_cv_kthread" = "yes"
4389 then
4390 CXX="$CXX -Kthread"
4391 ac_cv_cxx_thread=yes
4392 elif test "$ac_cv_pthread" = "yes"
4393 then
4394 CXX="$CXX -pthread"
4395 ac_cv_cxx_thread=yes
4398 if test $ac_cv_cxx_thread = yes
4399 then
4400 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
4401 $CXX -c conftest.$ac_ext 2>&5
4402 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
4403 && test -s conftest$ac_exeext && ./conftest$ac_exeext
4404 then
4405 ac_cv_cxx_thread=yes
4406 else
4407 ac_cv_cxx_thread=no
4409 rm -fr conftest*
4411 echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
4412 echo "${ECHO_T}$ac_cv_cxx_thread" >&6
4414 CXX="$ac_save_cxx"
4417 # checks for header files
4418 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4419 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4420 if test "${ac_cv_header_stdc+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4422 else
4423 cat >conftest.$ac_ext <<_ACEOF
4424 /* confdefs.h. */
4425 _ACEOF
4426 cat confdefs.h >>conftest.$ac_ext
4427 cat >>conftest.$ac_ext <<_ACEOF
4428 /* end confdefs.h. */
4429 #include <stdlib.h>
4430 #include <stdarg.h>
4431 #include <string.h>
4432 #include <float.h>
4435 main ()
4439 return 0;
4441 _ACEOF
4442 rm -f conftest.$ac_objext
4443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4444 (eval $ac_compile) 2>conftest.er1
4445 ac_status=$?
4446 grep -v '^ *+' conftest.er1 >conftest.err
4447 rm -f conftest.er1
4448 cat conftest.err >&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); } &&
4451 { ac_try='test -z "$ac_c_werror_flag"
4452 || test ! -s conftest.err'
4453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4454 (eval $ac_try) 2>&5
4455 ac_status=$?
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); }; } &&
4458 { ac_try='test -s conftest.$ac_objext'
4459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460 (eval $ac_try) 2>&5
4461 ac_status=$?
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); }; }; then
4464 ac_cv_header_stdc=yes
4465 else
4466 echo "$as_me: failed program was:" >&5
4467 sed 's/^/| /' conftest.$ac_ext >&5
4469 ac_cv_header_stdc=no
4471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4473 if test $ac_cv_header_stdc = yes; then
4474 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4475 cat >conftest.$ac_ext <<_ACEOF
4476 /* confdefs.h. */
4477 _ACEOF
4478 cat confdefs.h >>conftest.$ac_ext
4479 cat >>conftest.$ac_ext <<_ACEOF
4480 /* end confdefs.h. */
4481 #include <string.h>
4483 _ACEOF
4484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4485 $EGREP "memchr" >/dev/null 2>&1; then
4487 else
4488 ac_cv_header_stdc=no
4490 rm -f conftest*
4494 if test $ac_cv_header_stdc = yes; then
4495 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4496 cat >conftest.$ac_ext <<_ACEOF
4497 /* confdefs.h. */
4498 _ACEOF
4499 cat confdefs.h >>conftest.$ac_ext
4500 cat >>conftest.$ac_ext <<_ACEOF
4501 /* end confdefs.h. */
4502 #include <stdlib.h>
4504 _ACEOF
4505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4506 $EGREP "free" >/dev/null 2>&1; then
4508 else
4509 ac_cv_header_stdc=no
4511 rm -f conftest*
4515 if test $ac_cv_header_stdc = yes; then
4516 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4517 if test "$cross_compiling" = yes; then
4519 else
4520 cat >conftest.$ac_ext <<_ACEOF
4521 /* confdefs.h. */
4522 _ACEOF
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h. */
4526 #include <ctype.h>
4527 #if ((' ' & 0x0FF) == 0x020)
4528 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4529 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4530 #else
4531 # define ISLOWER(c) \
4532 (('a' <= (c) && (c) <= 'i') \
4533 || ('j' <= (c) && (c) <= 'r') \
4534 || ('s' <= (c) && (c) <= 'z'))
4535 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4536 #endif
4538 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4540 main ()
4542 int i;
4543 for (i = 0; i < 256; i++)
4544 if (XOR (islower (i), ISLOWER (i))
4545 || toupper (i) != TOUPPER (i))
4546 exit(2);
4547 exit (0);
4549 _ACEOF
4550 rm -f conftest$ac_exeext
4551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4552 (eval $ac_link) 2>&5
4553 ac_status=$?
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 (eval $ac_try) 2>&5
4558 ac_status=$?
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; }; then
4562 else
4563 echo "$as_me: program exited with status $ac_status" >&5
4564 echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.$ac_ext >&5
4567 ( exit $ac_status )
4568 ac_cv_header_stdc=no
4570 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4574 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4575 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4576 if test $ac_cv_header_stdc = yes; then
4578 cat >>confdefs.h <<\_ACEOF
4579 #define STDC_HEADERS 1
4580 _ACEOF
4584 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4594 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4595 inttypes.h stdint.h unistd.h
4597 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4598 echo "$as_me:$LINENO: checking for $ac_header" >&5
4599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4602 else
4603 cat >conftest.$ac_ext <<_ACEOF
4604 /* confdefs.h. */
4605 _ACEOF
4606 cat confdefs.h >>conftest.$ac_ext
4607 cat >>conftest.$ac_ext <<_ACEOF
4608 /* end confdefs.h. */
4609 $ac_includes_default
4611 #include <$ac_header>
4612 _ACEOF
4613 rm -f conftest.$ac_objext
4614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4615 (eval $ac_compile) 2>conftest.er1
4616 ac_status=$?
4617 grep -v '^ *+' conftest.er1 >conftest.err
4618 rm -f conftest.er1
4619 cat conftest.err >&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); } &&
4622 { ac_try='test -z "$ac_c_werror_flag"
4623 || test ! -s conftest.err'
4624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4625 (eval $ac_try) 2>&5
4626 ac_status=$?
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); }; } &&
4629 { ac_try='test -s conftest.$ac_objext'
4630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4631 (eval $ac_try) 2>&5
4632 ac_status=$?
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); }; }; then
4635 eval "$as_ac_Header=yes"
4636 else
4637 echo "$as_me: failed program was:" >&5
4638 sed 's/^/| /' conftest.$ac_ext >&5
4640 eval "$as_ac_Header=no"
4642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4647 cat >>confdefs.h <<_ACEOF
4648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4649 _ACEOF
4653 done
4705 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
4706 fcntl.h grp.h \
4707 io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
4708 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
4709 unistd.h utime.h \
4710 sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
4711 sys/modem.h \
4712 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
4713 sys/time.h \
4714 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
4715 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
4716 bluetooth/bluetooth.h
4718 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4720 echo "$as_me:$LINENO: checking for $ac_header" >&5
4721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4726 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4727 else
4728 # Is the header compilable?
4729 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4730 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4731 cat >conftest.$ac_ext <<_ACEOF
4732 /* confdefs.h. */
4733 _ACEOF
4734 cat confdefs.h >>conftest.$ac_ext
4735 cat >>conftest.$ac_ext <<_ACEOF
4736 /* end confdefs.h. */
4737 $ac_includes_default
4738 #include <$ac_header>
4739 _ACEOF
4740 rm -f conftest.$ac_objext
4741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4742 (eval $ac_compile) 2>conftest.er1
4743 ac_status=$?
4744 grep -v '^ *+' conftest.er1 >conftest.err
4745 rm -f conftest.er1
4746 cat conftest.err >&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); } &&
4749 { ac_try='test -z "$ac_c_werror_flag"
4750 || test ! -s conftest.err'
4751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752 (eval $ac_try) 2>&5
4753 ac_status=$?
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); }; } &&
4756 { ac_try='test -s conftest.$ac_objext'
4757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758 (eval $ac_try) 2>&5
4759 ac_status=$?
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); }; }; then
4762 ac_header_compiler=yes
4763 else
4764 echo "$as_me: failed program was:" >&5
4765 sed 's/^/| /' conftest.$ac_ext >&5
4767 ac_header_compiler=no
4769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4770 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4771 echo "${ECHO_T}$ac_header_compiler" >&6
4773 # Is the header present?
4774 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4776 cat >conftest.$ac_ext <<_ACEOF
4777 /* confdefs.h. */
4778 _ACEOF
4779 cat confdefs.h >>conftest.$ac_ext
4780 cat >>conftest.$ac_ext <<_ACEOF
4781 /* end confdefs.h. */
4782 #include <$ac_header>
4783 _ACEOF
4784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4785 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4786 ac_status=$?
4787 grep -v '^ *+' conftest.er1 >conftest.err
4788 rm -f conftest.er1
4789 cat conftest.err >&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); } >/dev/null; then
4792 if test -s conftest.err; then
4793 ac_cpp_err=$ac_c_preproc_warn_flag
4794 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4795 else
4796 ac_cpp_err=
4798 else
4799 ac_cpp_err=yes
4801 if test -z "$ac_cpp_err"; then
4802 ac_header_preproc=yes
4803 else
4804 echo "$as_me: failed program was:" >&5
4805 sed 's/^/| /' conftest.$ac_ext >&5
4807 ac_header_preproc=no
4809 rm -f conftest.err conftest.$ac_ext
4810 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4811 echo "${ECHO_T}$ac_header_preproc" >&6
4813 # So? What about this header?
4814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4815 yes:no: )
4816 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4819 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4820 ac_header_preproc=yes
4822 no:yes:* )
4823 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4824 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4825 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4826 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4827 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4828 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4829 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4830 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4833 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4834 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4836 cat <<\_ASBOX
4837 ## ------------------------------------------------ ##
4838 ## Report this to http://www.python.org/python-bugs ##
4839 ## ------------------------------------------------ ##
4840 _ASBOX
4842 sed "s/^/$as_me: WARNING: /" >&2
4844 esac
4845 echo "$as_me:$LINENO: checking for $ac_header" >&5
4846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4848 echo $ECHO_N "(cached) $ECHO_C" >&6
4849 else
4850 eval "$as_ac_Header=\$ac_header_preproc"
4852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4857 cat >>confdefs.h <<_ACEOF
4858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4859 _ACEOF
4863 done
4870 ac_header_dirent=no
4871 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4872 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4873 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4874 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4877 else
4878 cat >conftest.$ac_ext <<_ACEOF
4879 /* confdefs.h. */
4880 _ACEOF
4881 cat confdefs.h >>conftest.$ac_ext
4882 cat >>conftest.$ac_ext <<_ACEOF
4883 /* end confdefs.h. */
4884 #include <sys/types.h>
4885 #include <$ac_hdr>
4888 main ()
4890 if ((DIR *) 0)
4891 return 0;
4893 return 0;
4895 _ACEOF
4896 rm -f conftest.$ac_objext
4897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4898 (eval $ac_compile) 2>conftest.er1
4899 ac_status=$?
4900 grep -v '^ *+' conftest.er1 >conftest.err
4901 rm -f conftest.er1
4902 cat conftest.err >&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); } &&
4905 { ac_try='test -z "$ac_c_werror_flag"
4906 || test ! -s conftest.err'
4907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908 (eval $ac_try) 2>&5
4909 ac_status=$?
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; } &&
4912 { ac_try='test -s conftest.$ac_objext'
4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914 (eval $ac_try) 2>&5
4915 ac_status=$?
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; }; then
4918 eval "$as_ac_Header=yes"
4919 else
4920 echo "$as_me: failed program was:" >&5
4921 sed 's/^/| /' conftest.$ac_ext >&5
4923 eval "$as_ac_Header=no"
4925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4930 cat >>confdefs.h <<_ACEOF
4931 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4932 _ACEOF
4934 ac_header_dirent=$ac_hdr; break
4937 done
4938 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4939 if test $ac_header_dirent = dirent.h; then
4940 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4941 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4942 if test "${ac_cv_search_opendir+set}" = set; then
4943 echo $ECHO_N "(cached) $ECHO_C" >&6
4944 else
4945 ac_func_search_save_LIBS=$LIBS
4946 ac_cv_search_opendir=no
4947 cat >conftest.$ac_ext <<_ACEOF
4948 /* confdefs.h. */
4949 _ACEOF
4950 cat confdefs.h >>conftest.$ac_ext
4951 cat >>conftest.$ac_ext <<_ACEOF
4952 /* end confdefs.h. */
4954 /* Override any gcc2 internal prototype to avoid an error. */
4955 #ifdef __cplusplus
4956 extern "C"
4957 #endif
4958 /* We use char because int might match the return type of a gcc2
4959 builtin and then its argument prototype would still apply. */
4960 char opendir ();
4962 main ()
4964 opendir ();
4966 return 0;
4968 _ACEOF
4969 rm -f conftest.$ac_objext conftest$ac_exeext
4970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4971 (eval $ac_link) 2>conftest.er1
4972 ac_status=$?
4973 grep -v '^ *+' conftest.er1 >conftest.err
4974 rm -f conftest.er1
4975 cat conftest.err >&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); } &&
4978 { ac_try='test -z "$ac_c_werror_flag"
4979 || test ! -s conftest.err'
4980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981 (eval $ac_try) 2>&5
4982 ac_status=$?
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); }; } &&
4985 { ac_try='test -s conftest$ac_exeext'
4986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4987 (eval $ac_try) 2>&5
4988 ac_status=$?
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); }; }; then
4991 ac_cv_search_opendir="none required"
4992 else
4993 echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.$ac_ext >&5
4997 rm -f conftest.err conftest.$ac_objext \
4998 conftest$ac_exeext conftest.$ac_ext
4999 if test "$ac_cv_search_opendir" = no; then
5000 for ac_lib in dir; do
5001 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5002 cat >conftest.$ac_ext <<_ACEOF
5003 /* confdefs.h. */
5004 _ACEOF
5005 cat confdefs.h >>conftest.$ac_ext
5006 cat >>conftest.$ac_ext <<_ACEOF
5007 /* end confdefs.h. */
5009 /* Override any gcc2 internal prototype to avoid an error. */
5010 #ifdef __cplusplus
5011 extern "C"
5012 #endif
5013 /* We use char because int might match the return type of a gcc2
5014 builtin and then its argument prototype would still apply. */
5015 char opendir ();
5017 main ()
5019 opendir ();
5021 return 0;
5023 _ACEOF
5024 rm -f conftest.$ac_objext conftest$ac_exeext
5025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5026 (eval $ac_link) 2>conftest.er1
5027 ac_status=$?
5028 grep -v '^ *+' conftest.er1 >conftest.err
5029 rm -f conftest.er1
5030 cat conftest.err >&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); } &&
5033 { ac_try='test -z "$ac_c_werror_flag"
5034 || test ! -s conftest.err'
5035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5036 (eval $ac_try) 2>&5
5037 ac_status=$?
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); }; } &&
5040 { ac_try='test -s conftest$ac_exeext'
5041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5042 (eval $ac_try) 2>&5
5043 ac_status=$?
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }; }; then
5046 ac_cv_search_opendir="-l$ac_lib"
5047 break
5048 else
5049 echo "$as_me: failed program was:" >&5
5050 sed 's/^/| /' conftest.$ac_ext >&5
5053 rm -f conftest.err conftest.$ac_objext \
5054 conftest$ac_exeext conftest.$ac_ext
5055 done
5057 LIBS=$ac_func_search_save_LIBS
5059 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5060 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5061 if test "$ac_cv_search_opendir" != no; then
5062 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5066 else
5067 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5068 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5069 if test "${ac_cv_search_opendir+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 else
5072 ac_func_search_save_LIBS=$LIBS
5073 ac_cv_search_opendir=no
5074 cat >conftest.$ac_ext <<_ACEOF
5075 /* confdefs.h. */
5076 _ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h. */
5081 /* Override any gcc2 internal prototype to avoid an error. */
5082 #ifdef __cplusplus
5083 extern "C"
5084 #endif
5085 /* We use char because int might match the return type of a gcc2
5086 builtin and then its argument prototype would still apply. */
5087 char opendir ();
5089 main ()
5091 opendir ();
5093 return 0;
5095 _ACEOF
5096 rm -f conftest.$ac_objext conftest$ac_exeext
5097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5098 (eval $ac_link) 2>conftest.er1
5099 ac_status=$?
5100 grep -v '^ *+' conftest.er1 >conftest.err
5101 rm -f conftest.er1
5102 cat conftest.err >&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } &&
5105 { ac_try='test -z "$ac_c_werror_flag"
5106 || test ! -s conftest.err'
5107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5108 (eval $ac_try) 2>&5
5109 ac_status=$?
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); }; } &&
5112 { ac_try='test -s conftest$ac_exeext'
5113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114 (eval $ac_try) 2>&5
5115 ac_status=$?
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); }; }; then
5118 ac_cv_search_opendir="none required"
5119 else
5120 echo "$as_me: failed program was:" >&5
5121 sed 's/^/| /' conftest.$ac_ext >&5
5124 rm -f conftest.err conftest.$ac_objext \
5125 conftest$ac_exeext conftest.$ac_ext
5126 if test "$ac_cv_search_opendir" = no; then
5127 for ac_lib in x; do
5128 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5129 cat >conftest.$ac_ext <<_ACEOF
5130 /* confdefs.h. */
5131 _ACEOF
5132 cat confdefs.h >>conftest.$ac_ext
5133 cat >>conftest.$ac_ext <<_ACEOF
5134 /* end confdefs.h. */
5136 /* Override any gcc2 internal prototype to avoid an error. */
5137 #ifdef __cplusplus
5138 extern "C"
5139 #endif
5140 /* We use char because int might match the return type of a gcc2
5141 builtin and then its argument prototype would still apply. */
5142 char opendir ();
5144 main ()
5146 opendir ();
5148 return 0;
5150 _ACEOF
5151 rm -f conftest.$ac_objext conftest$ac_exeext
5152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5153 (eval $ac_link) 2>conftest.er1
5154 ac_status=$?
5155 grep -v '^ *+' conftest.er1 >conftest.err
5156 rm -f conftest.er1
5157 cat conftest.err >&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } &&
5160 { ac_try='test -z "$ac_c_werror_flag"
5161 || test ! -s conftest.err'
5162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5163 (eval $ac_try) 2>&5
5164 ac_status=$?
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); }; } &&
5167 { ac_try='test -s conftest$ac_exeext'
5168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169 (eval $ac_try) 2>&5
5170 ac_status=$?
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); }; }; then
5173 ac_cv_search_opendir="-l$ac_lib"
5174 break
5175 else
5176 echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5180 rm -f conftest.err conftest.$ac_objext \
5181 conftest$ac_exeext conftest.$ac_ext
5182 done
5184 LIBS=$ac_func_search_save_LIBS
5186 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5187 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5188 if test "$ac_cv_search_opendir" != no; then
5189 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5195 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5196 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5197 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200 cat >conftest.$ac_ext <<_ACEOF
5201 /* confdefs.h. */
5202 _ACEOF
5203 cat confdefs.h >>conftest.$ac_ext
5204 cat >>conftest.$ac_ext <<_ACEOF
5205 /* end confdefs.h. */
5206 #include <sys/types.h>
5208 main ()
5210 return makedev(0, 0);
5212 return 0;
5214 _ACEOF
5215 rm -f conftest.$ac_objext conftest$ac_exeext
5216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5217 (eval $ac_link) 2>conftest.er1
5218 ac_status=$?
5219 grep -v '^ *+' conftest.er1 >conftest.err
5220 rm -f conftest.er1
5221 cat conftest.err >&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); } &&
5224 { ac_try='test -z "$ac_c_werror_flag"
5225 || test ! -s conftest.err'
5226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5227 (eval $ac_try) 2>&5
5228 ac_status=$?
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); }; } &&
5231 { ac_try='test -s conftest$ac_exeext'
5232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5233 (eval $ac_try) 2>&5
5234 ac_status=$?
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); }; }; then
5237 ac_cv_header_sys_types_h_makedev=yes
5238 else
5239 echo "$as_me: failed program was:" >&5
5240 sed 's/^/| /' conftest.$ac_ext >&5
5242 ac_cv_header_sys_types_h_makedev=no
5244 rm -f conftest.err conftest.$ac_objext \
5245 conftest$ac_exeext conftest.$ac_ext
5248 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5249 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5251 if test $ac_cv_header_sys_types_h_makedev = no; then
5252 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5253 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5254 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5255 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5258 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5259 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5260 else
5261 # Is the header compilable?
5262 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5263 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
5264 cat >conftest.$ac_ext <<_ACEOF
5265 /* confdefs.h. */
5266 _ACEOF
5267 cat confdefs.h >>conftest.$ac_ext
5268 cat >>conftest.$ac_ext <<_ACEOF
5269 /* end confdefs.h. */
5270 $ac_includes_default
5271 #include <sys/mkdev.h>
5272 _ACEOF
5273 rm -f conftest.$ac_objext
5274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5275 (eval $ac_compile) 2>conftest.er1
5276 ac_status=$?
5277 grep -v '^ *+' conftest.er1 >conftest.err
5278 rm -f conftest.er1
5279 cat conftest.err >&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); } &&
5282 { ac_try='test -z "$ac_c_werror_flag"
5283 || test ! -s conftest.err'
5284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285 (eval $ac_try) 2>&5
5286 ac_status=$?
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); }; } &&
5289 { ac_try='test -s conftest.$ac_objext'
5290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291 (eval $ac_try) 2>&5
5292 ac_status=$?
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }; }; then
5295 ac_header_compiler=yes
5296 else
5297 echo "$as_me: failed program was:" >&5
5298 sed 's/^/| /' conftest.$ac_ext >&5
5300 ac_header_compiler=no
5302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5303 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5304 echo "${ECHO_T}$ac_header_compiler" >&6
5306 # Is the header present?
5307 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5308 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
5309 cat >conftest.$ac_ext <<_ACEOF
5310 /* confdefs.h. */
5311 _ACEOF
5312 cat confdefs.h >>conftest.$ac_ext
5313 cat >>conftest.$ac_ext <<_ACEOF
5314 /* end confdefs.h. */
5315 #include <sys/mkdev.h>
5316 _ACEOF
5317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5318 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5319 ac_status=$?
5320 grep -v '^ *+' conftest.er1 >conftest.err
5321 rm -f conftest.er1
5322 cat conftest.err >&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); } >/dev/null; then
5325 if test -s conftest.err; then
5326 ac_cpp_err=$ac_c_preproc_warn_flag
5327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5328 else
5329 ac_cpp_err=
5331 else
5332 ac_cpp_err=yes
5334 if test -z "$ac_cpp_err"; then
5335 ac_header_preproc=yes
5336 else
5337 echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5340 ac_header_preproc=no
5342 rm -f conftest.err conftest.$ac_ext
5343 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5344 echo "${ECHO_T}$ac_header_preproc" >&6
5346 # So? What about this header?
5347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5348 yes:no: )
5349 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5350 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5351 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5352 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5353 ac_header_preproc=yes
5355 no:yes:* )
5356 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5357 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5358 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5359 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5360 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5361 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5362 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5363 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5364 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5365 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5366 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5367 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5369 cat <<\_ASBOX
5370 ## ------------------------------------------------ ##
5371 ## Report this to http://www.python.org/python-bugs ##
5372 ## ------------------------------------------------ ##
5373 _ASBOX
5375 sed "s/^/$as_me: WARNING: /" >&2
5377 esac
5378 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5379 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5380 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5382 else
5383 ac_cv_header_sys_mkdev_h=$ac_header_preproc
5385 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5386 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5389 if test $ac_cv_header_sys_mkdev_h = yes; then
5391 cat >>confdefs.h <<\_ACEOF
5392 #define MAJOR_IN_MKDEV 1
5393 _ACEOF
5399 if test $ac_cv_header_sys_mkdev_h = no; then
5400 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5401 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5402 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5403 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5404 echo $ECHO_N "(cached) $ECHO_C" >&6
5406 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5407 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5408 else
5409 # Is the header compilable?
5410 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5411 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
5412 cat >conftest.$ac_ext <<_ACEOF
5413 /* confdefs.h. */
5414 _ACEOF
5415 cat confdefs.h >>conftest.$ac_ext
5416 cat >>conftest.$ac_ext <<_ACEOF
5417 /* end confdefs.h. */
5418 $ac_includes_default
5419 #include <sys/sysmacros.h>
5420 _ACEOF
5421 rm -f conftest.$ac_objext
5422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5423 (eval $ac_compile) 2>conftest.er1
5424 ac_status=$?
5425 grep -v '^ *+' conftest.er1 >conftest.err
5426 rm -f conftest.er1
5427 cat conftest.err >&5
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); } &&
5430 { ac_try='test -z "$ac_c_werror_flag"
5431 || test ! -s conftest.err'
5432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5433 (eval $ac_try) 2>&5
5434 ac_status=$?
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }; } &&
5437 { ac_try='test -s conftest.$ac_objext'
5438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5439 (eval $ac_try) 2>&5
5440 ac_status=$?
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); }; }; then
5443 ac_header_compiler=yes
5444 else
5445 echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.$ac_ext >&5
5448 ac_header_compiler=no
5450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5451 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5452 echo "${ECHO_T}$ac_header_compiler" >&6
5454 # Is the header present?
5455 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
5456 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
5457 cat >conftest.$ac_ext <<_ACEOF
5458 /* confdefs.h. */
5459 _ACEOF
5460 cat confdefs.h >>conftest.$ac_ext
5461 cat >>conftest.$ac_ext <<_ACEOF
5462 /* end confdefs.h. */
5463 #include <sys/sysmacros.h>
5464 _ACEOF
5465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5467 ac_status=$?
5468 grep -v '^ *+' conftest.er1 >conftest.err
5469 rm -f conftest.er1
5470 cat conftest.err >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); } >/dev/null; then
5473 if test -s conftest.err; then
5474 ac_cpp_err=$ac_c_preproc_warn_flag
5475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5476 else
5477 ac_cpp_err=
5479 else
5480 ac_cpp_err=yes
5482 if test -z "$ac_cpp_err"; then
5483 ac_header_preproc=yes
5484 else
5485 echo "$as_me: failed program was:" >&5
5486 sed 's/^/| /' conftest.$ac_ext >&5
5488 ac_header_preproc=no
5490 rm -f conftest.err conftest.$ac_ext
5491 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5492 echo "${ECHO_T}$ac_header_preproc" >&6
5494 # So? What about this header?
5495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5496 yes:no: )
5497 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
5498 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5499 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
5500 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
5501 ac_header_preproc=yes
5503 no:yes:* )
5504 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
5505 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
5506 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
5507 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
5508 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
5509 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
5510 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
5511 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
5512 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
5513 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
5514 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
5515 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
5517 cat <<\_ASBOX
5518 ## ------------------------------------------------ ##
5519 ## Report this to http://www.python.org/python-bugs ##
5520 ## ------------------------------------------------ ##
5521 _ASBOX
5523 sed "s/^/$as_me: WARNING: /" >&2
5525 esac
5526 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5527 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5528 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5529 echo $ECHO_N "(cached) $ECHO_C" >&6
5530 else
5531 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
5533 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5534 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5537 if test $ac_cv_header_sys_sysmacros_h = yes; then
5539 cat >>confdefs.h <<\_ACEOF
5540 #define MAJOR_IN_SYSMACROS 1
5541 _ACEOF
5550 # On Solaris, term.h requires curses.h
5552 for ac_header in term.h
5554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5555 echo "$as_me:$LINENO: checking for $ac_header" >&5
5556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5558 echo $ECHO_N "(cached) $ECHO_C" >&6
5559 else
5560 cat >conftest.$ac_ext <<_ACEOF
5561 /* confdefs.h. */
5562 _ACEOF
5563 cat confdefs.h >>conftest.$ac_ext
5564 cat >>conftest.$ac_ext <<_ACEOF
5565 /* end confdefs.h. */
5567 #ifdef HAVE_CURSES_H
5568 #include <curses.h>
5569 #endif
5572 #include <$ac_header>
5573 _ACEOF
5574 rm -f conftest.$ac_objext
5575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5576 (eval $ac_compile) 2>conftest.er1
5577 ac_status=$?
5578 grep -v '^ *+' conftest.er1 >conftest.err
5579 rm -f conftest.er1
5580 cat conftest.err >&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } &&
5583 { ac_try='test -z "$ac_c_werror_flag"
5584 || test ! -s conftest.err'
5585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5586 (eval $ac_try) 2>&5
5587 ac_status=$?
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }; } &&
5590 { ac_try='test -s conftest.$ac_objext'
5591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5592 (eval $ac_try) 2>&5
5593 ac_status=$?
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; }; then
5596 eval "$as_ac_Header=yes"
5597 else
5598 echo "$as_me: failed program was:" >&5
5599 sed 's/^/| /' conftest.$ac_ext >&5
5601 eval "$as_ac_Header=no"
5603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5608 cat >>confdefs.h <<_ACEOF
5609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5610 _ACEOF
5614 done
5617 # On Linux, netlink.h requires asm/types.h
5619 for ac_header in linux/netlink.h
5621 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5622 echo "$as_me:$LINENO: checking for $ac_header" >&5
5623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5625 echo $ECHO_N "(cached) $ECHO_C" >&6
5626 else
5627 cat >conftest.$ac_ext <<_ACEOF
5628 /* confdefs.h. */
5629 _ACEOF
5630 cat confdefs.h >>conftest.$ac_ext
5631 cat >>conftest.$ac_ext <<_ACEOF
5632 /* end confdefs.h. */
5634 #ifdef HAVE_ASM_TYPES_H
5635 #include <asm/types.h>
5636 #endif
5637 #ifdef HAVE_SYS_SOCKET_H
5638 #include <sys/socket.h>
5639 #endif
5642 #include <$ac_header>
5643 _ACEOF
5644 rm -f conftest.$ac_objext
5645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5646 (eval $ac_compile) 2>conftest.er1
5647 ac_status=$?
5648 grep -v '^ *+' conftest.er1 >conftest.err
5649 rm -f conftest.er1
5650 cat conftest.err >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); } &&
5653 { ac_try='test -z "$ac_c_werror_flag"
5654 || test ! -s conftest.err'
5655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656 (eval $ac_try) 2>&5
5657 ac_status=$?
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); }; } &&
5660 { ac_try='test -s conftest.$ac_objext'
5661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5662 (eval $ac_try) 2>&5
5663 ac_status=$?
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); }; }; then
5666 eval "$as_ac_Header=yes"
5667 else
5668 echo "$as_me: failed program was:" >&5
5669 sed 's/^/| /' conftest.$ac_ext >&5
5671 eval "$as_ac_Header=no"
5673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5678 cat >>confdefs.h <<_ACEOF
5679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5680 _ACEOF
5684 done
5687 # checks for typedefs
5688 was_it_defined=no
5689 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
5690 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
5691 cat >conftest.$ac_ext <<_ACEOF
5692 /* confdefs.h. */
5693 _ACEOF
5694 cat confdefs.h >>conftest.$ac_ext
5695 cat >>conftest.$ac_ext <<_ACEOF
5696 /* end confdefs.h. */
5697 #include <time.h>
5699 _ACEOF
5700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5701 $EGREP "clock_t" >/dev/null 2>&1; then
5702 was_it_defined=yes
5703 else
5706 cat >>confdefs.h <<\_ACEOF
5707 #define clock_t long
5708 _ACEOF
5712 rm -f conftest*
5714 echo "$as_me:$LINENO: result: $was_it_defined" >&5
5715 echo "${ECHO_T}$was_it_defined" >&6
5717 # Check whether using makedev requires defining _OSF_SOURCE
5718 echo "$as_me:$LINENO: checking for makedev" >&5
5719 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
5720 cat >conftest.$ac_ext <<_ACEOF
5721 /* confdefs.h. */
5722 _ACEOF
5723 cat confdefs.h >>conftest.$ac_ext
5724 cat >>conftest.$ac_ext <<_ACEOF
5725 /* end confdefs.h. */
5726 #include <sys/types.h>
5728 main ()
5730 makedev(0, 0)
5732 return 0;
5734 _ACEOF
5735 rm -f conftest.$ac_objext conftest$ac_exeext
5736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5737 (eval $ac_link) 2>conftest.er1
5738 ac_status=$?
5739 grep -v '^ *+' conftest.er1 >conftest.err
5740 rm -f conftest.er1
5741 cat conftest.err >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } &&
5744 { ac_try='test -z "$ac_c_werror_flag"
5745 || test ! -s conftest.err'
5746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747 (eval $ac_try) 2>&5
5748 ac_status=$?
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; } &&
5751 { ac_try='test -s conftest$ac_exeext'
5752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5753 (eval $ac_try) 2>&5
5754 ac_status=$?
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); }; }; then
5757 ac_cv_has_makedev=yes
5758 else
5759 echo "$as_me: failed program was:" >&5
5760 sed 's/^/| /' conftest.$ac_ext >&5
5762 ac_cv_has_makedev=no
5764 rm -f conftest.err conftest.$ac_objext \
5765 conftest$ac_exeext conftest.$ac_ext
5766 if test "$ac_cv_has_makedev" = "no"; then
5767 # we didn't link, try if _OSF_SOURCE will allow us to link
5768 cat >conftest.$ac_ext <<_ACEOF
5769 /* confdefs.h. */
5770 _ACEOF
5771 cat confdefs.h >>conftest.$ac_ext
5772 cat >>conftest.$ac_ext <<_ACEOF
5773 /* end confdefs.h. */
5775 #define _OSF_SOURCE 1
5776 #include <sys/types.h>
5779 main ()
5781 makedev(0, 0)
5783 return 0;
5785 _ACEOF
5786 rm -f conftest.$ac_objext conftest$ac_exeext
5787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5788 (eval $ac_link) 2>conftest.er1
5789 ac_status=$?
5790 grep -v '^ *+' conftest.er1 >conftest.err
5791 rm -f conftest.er1
5792 cat conftest.err >&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); } &&
5795 { ac_try='test -z "$ac_c_werror_flag"
5796 || test ! -s conftest.err'
5797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5798 (eval $ac_try) 2>&5
5799 ac_status=$?
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); }; } &&
5802 { ac_try='test -s conftest$ac_exeext'
5803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804 (eval $ac_try) 2>&5
5805 ac_status=$?
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); }; }; then
5808 ac_cv_has_makedev=yes
5809 else
5810 echo "$as_me: failed program was:" >&5
5811 sed 's/^/| /' conftest.$ac_ext >&5
5813 ac_cv_has_makedev=no
5815 rm -f conftest.err conftest.$ac_objext \
5816 conftest$ac_exeext conftest.$ac_ext
5817 if test "$ac_cv_has_makedev" = "yes"; then
5819 cat >>confdefs.h <<\_ACEOF
5820 #define _OSF_SOURCE 1
5821 _ACEOF
5825 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
5826 echo "${ECHO_T}$ac_cv_has_makedev" >&6
5827 if test "$ac_cv_has_makedev" = "yes"; then
5829 cat >>confdefs.h <<\_ACEOF
5830 #define HAVE_MAKEDEV 1
5831 _ACEOF
5835 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5836 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5837 # defined, but the compiler does not support pragma redefine_extname,
5838 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5839 # structures (such as rlimit64) without declaring them. As a
5840 # work-around, disable LFS on such configurations
5842 use_lfs=yes
5843 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5844 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5845 cat >conftest.$ac_ext <<_ACEOF
5846 /* confdefs.h. */
5847 _ACEOF
5848 cat confdefs.h >>conftest.$ac_ext
5849 cat >>conftest.$ac_ext <<_ACEOF
5850 /* end confdefs.h. */
5852 #define _LARGEFILE_SOURCE 1
5853 #define _FILE_OFFSET_BITS 64
5854 #include <sys/resource.h>
5857 main ()
5859 struct rlimit foo;
5861 return 0;
5863 _ACEOF
5864 rm -f conftest.$ac_objext
5865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5866 (eval $ac_compile) 2>conftest.er1
5867 ac_status=$?
5868 grep -v '^ *+' conftest.er1 >conftest.err
5869 rm -f conftest.er1
5870 cat conftest.err >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } &&
5873 { ac_try='test -z "$ac_c_werror_flag"
5874 || test ! -s conftest.err'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 (eval $ac_try) 2>&5
5877 ac_status=$?
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; } &&
5880 { ac_try='test -s conftest.$ac_objext'
5881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882 (eval $ac_try) 2>&5
5883 ac_status=$?
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; }; then
5886 sol_lfs_bug=no
5887 else
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5891 sol_lfs_bug=yes
5893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5894 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5895 echo "${ECHO_T}$sol_lfs_bug" >&6
5896 if test "$sol_lfs_bug" = "yes"; then
5897 use_lfs=no
5900 if test "$use_lfs" = "yes"; then
5901 # Two defines needed to enable largefile support on various platforms
5902 # These may affect some typedefs
5904 cat >>confdefs.h <<\_ACEOF
5905 #define _LARGEFILE_SOURCE 1
5906 _ACEOF
5909 cat >>confdefs.h <<\_ACEOF
5910 #define _FILE_OFFSET_BITS 64
5911 _ACEOF
5915 # Add some code to confdefs.h so that the test for off_t works on SCO
5916 cat >> confdefs.h <<\EOF
5917 #if defined(SCO_DS)
5918 #undef _OFF_T
5919 #endif
5922 # Type availability checks
5923 echo "$as_me:$LINENO: checking for mode_t" >&5
5924 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5925 if test "${ac_cv_type_mode_t+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5927 else
5928 cat >conftest.$ac_ext <<_ACEOF
5929 /* confdefs.h. */
5930 _ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5934 $ac_includes_default
5936 main ()
5938 if ((mode_t *) 0)
5939 return 0;
5940 if (sizeof (mode_t))
5941 return 0;
5943 return 0;
5945 _ACEOF
5946 rm -f conftest.$ac_objext
5947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5948 (eval $ac_compile) 2>conftest.er1
5949 ac_status=$?
5950 grep -v '^ *+' conftest.er1 >conftest.err
5951 rm -f conftest.er1
5952 cat conftest.err >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } &&
5955 { ac_try='test -z "$ac_c_werror_flag"
5956 || test ! -s conftest.err'
5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958 (eval $ac_try) 2>&5
5959 ac_status=$?
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; } &&
5962 { ac_try='test -s conftest.$ac_objext'
5963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5964 (eval $ac_try) 2>&5
5965 ac_status=$?
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; }; then
5968 ac_cv_type_mode_t=yes
5969 else
5970 echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.$ac_ext >&5
5973 ac_cv_type_mode_t=no
5975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5977 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5978 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5979 if test $ac_cv_type_mode_t = yes; then
5981 else
5983 cat >>confdefs.h <<_ACEOF
5984 #define mode_t int
5985 _ACEOF
5989 echo "$as_me:$LINENO: checking for off_t" >&5
5990 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5991 if test "${ac_cv_type_off_t+set}" = set; then
5992 echo $ECHO_N "(cached) $ECHO_C" >&6
5993 else
5994 cat >conftest.$ac_ext <<_ACEOF
5995 /* confdefs.h. */
5996 _ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h. */
6000 $ac_includes_default
6002 main ()
6004 if ((off_t *) 0)
6005 return 0;
6006 if (sizeof (off_t))
6007 return 0;
6009 return 0;
6011 _ACEOF
6012 rm -f conftest.$ac_objext
6013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6014 (eval $ac_compile) 2>conftest.er1
6015 ac_status=$?
6016 grep -v '^ *+' conftest.er1 >conftest.err
6017 rm -f conftest.er1
6018 cat conftest.err >&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } &&
6021 { ac_try='test -z "$ac_c_werror_flag"
6022 || test ! -s conftest.err'
6023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024 (eval $ac_try) 2>&5
6025 ac_status=$?
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); }; } &&
6028 { ac_try='test -s conftest.$ac_objext'
6029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6030 (eval $ac_try) 2>&5
6031 ac_status=$?
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); }; }; then
6034 ac_cv_type_off_t=yes
6035 else
6036 echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.$ac_ext >&5
6039 ac_cv_type_off_t=no
6041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6043 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6044 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6045 if test $ac_cv_type_off_t = yes; then
6047 else
6049 cat >>confdefs.h <<_ACEOF
6050 #define off_t long
6051 _ACEOF
6055 echo "$as_me:$LINENO: checking for pid_t" >&5
6056 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
6057 if test "${ac_cv_type_pid_t+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6059 else
6060 cat >conftest.$ac_ext <<_ACEOF
6061 /* confdefs.h. */
6062 _ACEOF
6063 cat confdefs.h >>conftest.$ac_ext
6064 cat >>conftest.$ac_ext <<_ACEOF
6065 /* end confdefs.h. */
6066 $ac_includes_default
6068 main ()
6070 if ((pid_t *) 0)
6071 return 0;
6072 if (sizeof (pid_t))
6073 return 0;
6075 return 0;
6077 _ACEOF
6078 rm -f conftest.$ac_objext
6079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6080 (eval $ac_compile) 2>conftest.er1
6081 ac_status=$?
6082 grep -v '^ *+' conftest.er1 >conftest.err
6083 rm -f conftest.er1
6084 cat conftest.err >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); } &&
6087 { ac_try='test -z "$ac_c_werror_flag"
6088 || test ! -s conftest.err'
6089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090 (eval $ac_try) 2>&5
6091 ac_status=$?
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; } &&
6094 { ac_try='test -s conftest.$ac_objext'
6095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096 (eval $ac_try) 2>&5
6097 ac_status=$?
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); }; }; then
6100 ac_cv_type_pid_t=yes
6101 else
6102 echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.$ac_ext >&5
6105 ac_cv_type_pid_t=no
6107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6109 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6110 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6111 if test $ac_cv_type_pid_t = yes; then
6113 else
6115 cat >>confdefs.h <<_ACEOF
6116 #define pid_t int
6117 _ACEOF
6121 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6122 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6123 if test "${ac_cv_type_signal+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6125 else
6126 cat >conftest.$ac_ext <<_ACEOF
6127 /* confdefs.h. */
6128 _ACEOF
6129 cat confdefs.h >>conftest.$ac_ext
6130 cat >>conftest.$ac_ext <<_ACEOF
6131 /* end confdefs.h. */
6132 #include <sys/types.h>
6133 #include <signal.h>
6134 #ifdef signal
6135 # undef signal
6136 #endif
6137 #ifdef __cplusplus
6138 extern "C" void (*signal (int, void (*)(int)))(int);
6139 #else
6140 void (*signal ()) ();
6141 #endif
6144 main ()
6146 int i;
6148 return 0;
6150 _ACEOF
6151 rm -f conftest.$ac_objext
6152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6153 (eval $ac_compile) 2>conftest.er1
6154 ac_status=$?
6155 grep -v '^ *+' conftest.er1 >conftest.err
6156 rm -f conftest.er1
6157 cat conftest.err >&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); } &&
6160 { ac_try='test -z "$ac_c_werror_flag"
6161 || test ! -s conftest.err'
6162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6163 (eval $ac_try) 2>&5
6164 ac_status=$?
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); }; } &&
6167 { ac_try='test -s conftest.$ac_objext'
6168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6169 (eval $ac_try) 2>&5
6170 ac_status=$?
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); }; }; then
6173 ac_cv_type_signal=void
6174 else
6175 echo "$as_me: failed program was:" >&5
6176 sed 's/^/| /' conftest.$ac_ext >&5
6178 ac_cv_type_signal=int
6180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6182 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6183 echo "${ECHO_T}$ac_cv_type_signal" >&6
6185 cat >>confdefs.h <<_ACEOF
6186 #define RETSIGTYPE $ac_cv_type_signal
6187 _ACEOF
6190 echo "$as_me:$LINENO: checking for size_t" >&5
6191 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6192 if test "${ac_cv_type_size_t+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
6194 else
6195 cat >conftest.$ac_ext <<_ACEOF
6196 /* confdefs.h. */
6197 _ACEOF
6198 cat confdefs.h >>conftest.$ac_ext
6199 cat >>conftest.$ac_ext <<_ACEOF
6200 /* end confdefs.h. */
6201 $ac_includes_default
6203 main ()
6205 if ((size_t *) 0)
6206 return 0;
6207 if (sizeof (size_t))
6208 return 0;
6210 return 0;
6212 _ACEOF
6213 rm -f conftest.$ac_objext
6214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6215 (eval $ac_compile) 2>conftest.er1
6216 ac_status=$?
6217 grep -v '^ *+' conftest.er1 >conftest.err
6218 rm -f conftest.er1
6219 cat conftest.err >&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); } &&
6222 { ac_try='test -z "$ac_c_werror_flag"
6223 || test ! -s conftest.err'
6224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6225 (eval $ac_try) 2>&5
6226 ac_status=$?
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); }; } &&
6229 { ac_try='test -s conftest.$ac_objext'
6230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6231 (eval $ac_try) 2>&5
6232 ac_status=$?
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); }; }; then
6235 ac_cv_type_size_t=yes
6236 else
6237 echo "$as_me: failed program was:" >&5
6238 sed 's/^/| /' conftest.$ac_ext >&5
6240 ac_cv_type_size_t=no
6242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6244 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6245 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6246 if test $ac_cv_type_size_t = yes; then
6248 else
6250 cat >>confdefs.h <<_ACEOF
6251 #define size_t unsigned
6252 _ACEOF
6256 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6257 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6258 if test "${ac_cv_type_uid_t+set}" = set; then
6259 echo $ECHO_N "(cached) $ECHO_C" >&6
6260 else
6261 cat >conftest.$ac_ext <<_ACEOF
6262 /* confdefs.h. */
6263 _ACEOF
6264 cat confdefs.h >>conftest.$ac_ext
6265 cat >>conftest.$ac_ext <<_ACEOF
6266 /* end confdefs.h. */
6267 #include <sys/types.h>
6269 _ACEOF
6270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6271 $EGREP "uid_t" >/dev/null 2>&1; then
6272 ac_cv_type_uid_t=yes
6273 else
6274 ac_cv_type_uid_t=no
6276 rm -f conftest*
6279 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6280 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6281 if test $ac_cv_type_uid_t = no; then
6283 cat >>confdefs.h <<\_ACEOF
6284 #define uid_t int
6285 _ACEOF
6288 cat >>confdefs.h <<\_ACEOF
6289 #define gid_t int
6290 _ACEOF
6294 echo "$as_me:$LINENO: checking for ssize_t" >&5
6295 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6296 if test "${ac_cv_type_ssize_t+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 else
6299 cat >conftest.$ac_ext <<_ACEOF
6300 /* confdefs.h. */
6301 _ACEOF
6302 cat confdefs.h >>conftest.$ac_ext
6303 cat >>conftest.$ac_ext <<_ACEOF
6304 /* end confdefs.h. */
6305 $ac_includes_default
6307 main ()
6309 if ((ssize_t *) 0)
6310 return 0;
6311 if (sizeof (ssize_t))
6312 return 0;
6314 return 0;
6316 _ACEOF
6317 rm -f conftest.$ac_objext
6318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6319 (eval $ac_compile) 2>conftest.er1
6320 ac_status=$?
6321 grep -v '^ *+' conftest.er1 >conftest.err
6322 rm -f conftest.er1
6323 cat conftest.err >&5
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); } &&
6326 { ac_try='test -z "$ac_c_werror_flag"
6327 || test ! -s conftest.err'
6328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6329 (eval $ac_try) 2>&5
6330 ac_status=$?
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); }; } &&
6333 { ac_try='test -s conftest.$ac_objext'
6334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6335 (eval $ac_try) 2>&5
6336 ac_status=$?
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; }; then
6339 ac_cv_type_ssize_t=yes
6340 else
6341 echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.$ac_ext >&5
6344 ac_cv_type_ssize_t=no
6346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6348 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6349 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6350 if test $ac_cv_type_ssize_t = yes; then
6352 cat >>confdefs.h <<\_ACEOF
6353 #define HAVE_SSIZE_T 1
6354 _ACEOF
6359 # Sizes of various common basic types
6360 # ANSI C requires sizeof(char) == 1, so no need to check it
6361 echo "$as_me:$LINENO: checking for int" >&5
6362 echo $ECHO_N "checking for int... $ECHO_C" >&6
6363 if test "${ac_cv_type_int+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
6365 else
6366 cat >conftest.$ac_ext <<_ACEOF
6367 /* confdefs.h. */
6368 _ACEOF
6369 cat confdefs.h >>conftest.$ac_ext
6370 cat >>conftest.$ac_ext <<_ACEOF
6371 /* end confdefs.h. */
6372 $ac_includes_default
6374 main ()
6376 if ((int *) 0)
6377 return 0;
6378 if (sizeof (int))
6379 return 0;
6381 return 0;
6383 _ACEOF
6384 rm -f conftest.$ac_objext
6385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6386 (eval $ac_compile) 2>conftest.er1
6387 ac_status=$?
6388 grep -v '^ *+' conftest.er1 >conftest.err
6389 rm -f conftest.er1
6390 cat conftest.err >&5
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); } &&
6393 { ac_try='test -z "$ac_c_werror_flag"
6394 || test ! -s conftest.err'
6395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6396 (eval $ac_try) 2>&5
6397 ac_status=$?
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); }; } &&
6400 { ac_try='test -s conftest.$ac_objext'
6401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6402 (eval $ac_try) 2>&5
6403 ac_status=$?
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); }; }; then
6406 ac_cv_type_int=yes
6407 else
6408 echo "$as_me: failed program was:" >&5
6409 sed 's/^/| /' conftest.$ac_ext >&5
6411 ac_cv_type_int=no
6413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6415 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6416 echo "${ECHO_T}$ac_cv_type_int" >&6
6418 echo "$as_me:$LINENO: checking size of int" >&5
6419 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6420 if test "${ac_cv_sizeof_int+set}" = set; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
6422 else
6423 if test "$ac_cv_type_int" = yes; then
6424 # The cast to unsigned long works around a bug in the HP C Compiler
6425 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6426 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6427 # This bug is HP SR number 8606223364.
6428 if test "$cross_compiling" = yes; then
6429 # Depending upon the size, compute the lo and hi bounds.
6430 cat >conftest.$ac_ext <<_ACEOF
6431 /* confdefs.h. */
6432 _ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6436 $ac_includes_default
6438 main ()
6440 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6441 test_array [0] = 0
6444 return 0;
6446 _ACEOF
6447 rm -f conftest.$ac_objext
6448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6449 (eval $ac_compile) 2>conftest.er1
6450 ac_status=$?
6451 grep -v '^ *+' conftest.er1 >conftest.err
6452 rm -f conftest.er1
6453 cat conftest.err >&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); } &&
6456 { ac_try='test -z "$ac_c_werror_flag"
6457 || test ! -s conftest.err'
6458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6459 (eval $ac_try) 2>&5
6460 ac_status=$?
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); }; } &&
6463 { ac_try='test -s conftest.$ac_objext'
6464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6465 (eval $ac_try) 2>&5
6466 ac_status=$?
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); }; }; then
6469 ac_lo=0 ac_mid=0
6470 while :; do
6471 cat >conftest.$ac_ext <<_ACEOF
6472 /* confdefs.h. */
6473 _ACEOF
6474 cat confdefs.h >>conftest.$ac_ext
6475 cat >>conftest.$ac_ext <<_ACEOF
6476 /* end confdefs.h. */
6477 $ac_includes_default
6479 main ()
6481 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6482 test_array [0] = 0
6485 return 0;
6487 _ACEOF
6488 rm -f conftest.$ac_objext
6489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6490 (eval $ac_compile) 2>conftest.er1
6491 ac_status=$?
6492 grep -v '^ *+' conftest.er1 >conftest.err
6493 rm -f conftest.er1
6494 cat conftest.err >&5
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); } &&
6497 { ac_try='test -z "$ac_c_werror_flag"
6498 || test ! -s conftest.err'
6499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6500 (eval $ac_try) 2>&5
6501 ac_status=$?
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); }; } &&
6504 { ac_try='test -s conftest.$ac_objext'
6505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6506 (eval $ac_try) 2>&5
6507 ac_status=$?
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); }; }; then
6510 ac_hi=$ac_mid; break
6511 else
6512 echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.$ac_ext >&5
6515 ac_lo=`expr $ac_mid + 1`
6516 if test $ac_lo -le $ac_mid; then
6517 ac_lo= ac_hi=
6518 break
6520 ac_mid=`expr 2 '*' $ac_mid + 1`
6522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6523 done
6524 else
6525 echo "$as_me: failed program was:" >&5
6526 sed 's/^/| /' conftest.$ac_ext >&5
6528 cat >conftest.$ac_ext <<_ACEOF
6529 /* confdefs.h. */
6530 _ACEOF
6531 cat confdefs.h >>conftest.$ac_ext
6532 cat >>conftest.$ac_ext <<_ACEOF
6533 /* end confdefs.h. */
6534 $ac_includes_default
6536 main ()
6538 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6539 test_array [0] = 0
6542 return 0;
6544 _ACEOF
6545 rm -f conftest.$ac_objext
6546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6547 (eval $ac_compile) 2>conftest.er1
6548 ac_status=$?
6549 grep -v '^ *+' conftest.er1 >conftest.err
6550 rm -f conftest.er1
6551 cat conftest.err >&5
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); } &&
6554 { ac_try='test -z "$ac_c_werror_flag"
6555 || test ! -s conftest.err'
6556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6557 (eval $ac_try) 2>&5
6558 ac_status=$?
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); }; } &&
6561 { ac_try='test -s conftest.$ac_objext'
6562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6563 (eval $ac_try) 2>&5
6564 ac_status=$?
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); }; }; then
6567 ac_hi=-1 ac_mid=-1
6568 while :; do
6569 cat >conftest.$ac_ext <<_ACEOF
6570 /* confdefs.h. */
6571 _ACEOF
6572 cat confdefs.h >>conftest.$ac_ext
6573 cat >>conftest.$ac_ext <<_ACEOF
6574 /* end confdefs.h. */
6575 $ac_includes_default
6577 main ()
6579 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6580 test_array [0] = 0
6583 return 0;
6585 _ACEOF
6586 rm -f conftest.$ac_objext
6587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6588 (eval $ac_compile) 2>conftest.er1
6589 ac_status=$?
6590 grep -v '^ *+' conftest.er1 >conftest.err
6591 rm -f conftest.er1
6592 cat conftest.err >&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); } &&
6595 { ac_try='test -z "$ac_c_werror_flag"
6596 || test ! -s conftest.err'
6597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598 (eval $ac_try) 2>&5
6599 ac_status=$?
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; } &&
6602 { ac_try='test -s conftest.$ac_objext'
6603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6604 (eval $ac_try) 2>&5
6605 ac_status=$?
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); }; }; then
6608 ac_lo=$ac_mid; break
6609 else
6610 echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.$ac_ext >&5
6613 ac_hi=`expr '(' $ac_mid ')' - 1`
6614 if test $ac_mid -le $ac_hi; then
6615 ac_lo= ac_hi=
6616 break
6618 ac_mid=`expr 2 '*' $ac_mid`
6620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6621 done
6622 else
6623 echo "$as_me: failed program was:" >&5
6624 sed 's/^/| /' conftest.$ac_ext >&5
6626 ac_lo= ac_hi=
6628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6631 # Binary search between lo and hi bounds.
6632 while test "x$ac_lo" != "x$ac_hi"; do
6633 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6634 cat >conftest.$ac_ext <<_ACEOF
6635 /* confdefs.h. */
6636 _ACEOF
6637 cat confdefs.h >>conftest.$ac_ext
6638 cat >>conftest.$ac_ext <<_ACEOF
6639 /* end confdefs.h. */
6640 $ac_includes_default
6642 main ()
6644 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6645 test_array [0] = 0
6648 return 0;
6650 _ACEOF
6651 rm -f conftest.$ac_objext
6652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6653 (eval $ac_compile) 2>conftest.er1
6654 ac_status=$?
6655 grep -v '^ *+' conftest.er1 >conftest.err
6656 rm -f conftest.er1
6657 cat conftest.err >&5
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); } &&
6660 { ac_try='test -z "$ac_c_werror_flag"
6661 || test ! -s conftest.err'
6662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6663 (eval $ac_try) 2>&5
6664 ac_status=$?
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; } &&
6667 { ac_try='test -s conftest.$ac_objext'
6668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6669 (eval $ac_try) 2>&5
6670 ac_status=$?
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); }; }; then
6673 ac_hi=$ac_mid
6674 else
6675 echo "$as_me: failed program was:" >&5
6676 sed 's/^/| /' conftest.$ac_ext >&5
6678 ac_lo=`expr '(' $ac_mid ')' + 1`
6680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6681 done
6682 case $ac_lo in
6683 ?*) ac_cv_sizeof_int=$ac_lo;;
6684 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6685 See \`config.log' for more details." >&5
6686 echo "$as_me: error: cannot compute sizeof (int), 77
6687 See \`config.log' for more details." >&2;}
6688 { (exit 1); exit 1; }; } ;;
6689 esac
6690 else
6691 if test "$cross_compiling" = yes; then
6692 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6693 See \`config.log' for more details." >&5
6694 echo "$as_me: error: cannot run test program while cross compiling
6695 See \`config.log' for more details." >&2;}
6696 { (exit 1); exit 1; }; }
6697 else
6698 cat >conftest.$ac_ext <<_ACEOF
6699 /* confdefs.h. */
6700 _ACEOF
6701 cat confdefs.h >>conftest.$ac_ext
6702 cat >>conftest.$ac_ext <<_ACEOF
6703 /* end confdefs.h. */
6704 $ac_includes_default
6705 long longval () { return (long) (sizeof (int)); }
6706 unsigned long ulongval () { return (long) (sizeof (int)); }
6707 #include <stdio.h>
6708 #include <stdlib.h>
6710 main ()
6713 FILE *f = fopen ("conftest.val", "w");
6714 if (! f)
6715 exit (1);
6716 if (((long) (sizeof (int))) < 0)
6718 long i = longval ();
6719 if (i != ((long) (sizeof (int))))
6720 exit (1);
6721 fprintf (f, "%ld\n", i);
6723 else
6725 unsigned long i = ulongval ();
6726 if (i != ((long) (sizeof (int))))
6727 exit (1);
6728 fprintf (f, "%lu\n", i);
6730 exit (ferror (f) || fclose (f) != 0);
6733 return 0;
6735 _ACEOF
6736 rm -f conftest$ac_exeext
6737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6738 (eval $ac_link) 2>&5
6739 ac_status=$?
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743 (eval $ac_try) 2>&5
6744 ac_status=$?
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); }; }; then
6747 ac_cv_sizeof_int=`cat conftest.val`
6748 else
6749 echo "$as_me: program exited with status $ac_status" >&5
6750 echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.$ac_ext >&5
6753 ( exit $ac_status )
6754 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6755 See \`config.log' for more details." >&5
6756 echo "$as_me: error: cannot compute sizeof (int), 77
6757 See \`config.log' for more details." >&2;}
6758 { (exit 1); exit 1; }; }
6760 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6763 rm -f conftest.val
6764 else
6765 ac_cv_sizeof_int=0
6768 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6769 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6770 cat >>confdefs.h <<_ACEOF
6771 #define SIZEOF_INT $ac_cv_sizeof_int
6772 _ACEOF
6775 echo "$as_me:$LINENO: checking for long" >&5
6776 echo $ECHO_N "checking for long... $ECHO_C" >&6
6777 if test "${ac_cv_type_long+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6779 else
6780 cat >conftest.$ac_ext <<_ACEOF
6781 /* confdefs.h. */
6782 _ACEOF
6783 cat confdefs.h >>conftest.$ac_ext
6784 cat >>conftest.$ac_ext <<_ACEOF
6785 /* end confdefs.h. */
6786 $ac_includes_default
6788 main ()
6790 if ((long *) 0)
6791 return 0;
6792 if (sizeof (long))
6793 return 0;
6795 return 0;
6797 _ACEOF
6798 rm -f conftest.$ac_objext
6799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6800 (eval $ac_compile) 2>conftest.er1
6801 ac_status=$?
6802 grep -v '^ *+' conftest.er1 >conftest.err
6803 rm -f conftest.er1
6804 cat conftest.err >&5
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); } &&
6807 { ac_try='test -z "$ac_c_werror_flag"
6808 || test ! -s conftest.err'
6809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6810 (eval $ac_try) 2>&5
6811 ac_status=$?
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); }; } &&
6814 { ac_try='test -s conftest.$ac_objext'
6815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6816 (eval $ac_try) 2>&5
6817 ac_status=$?
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); }; }; then
6820 ac_cv_type_long=yes
6821 else
6822 echo "$as_me: failed program was:" >&5
6823 sed 's/^/| /' conftest.$ac_ext >&5
6825 ac_cv_type_long=no
6827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6829 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6830 echo "${ECHO_T}$ac_cv_type_long" >&6
6832 echo "$as_me:$LINENO: checking size of long" >&5
6833 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6834 if test "${ac_cv_sizeof_long+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6836 else
6837 if test "$ac_cv_type_long" = yes; then
6838 # The cast to unsigned long works around a bug in the HP C Compiler
6839 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6840 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6841 # This bug is HP SR number 8606223364.
6842 if test "$cross_compiling" = yes; then
6843 # Depending upon the size, compute the lo and hi bounds.
6844 cat >conftest.$ac_ext <<_ACEOF
6845 /* confdefs.h. */
6846 _ACEOF
6847 cat confdefs.h >>conftest.$ac_ext
6848 cat >>conftest.$ac_ext <<_ACEOF
6849 /* end confdefs.h. */
6850 $ac_includes_default
6852 main ()
6854 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6855 test_array [0] = 0
6858 return 0;
6860 _ACEOF
6861 rm -f conftest.$ac_objext
6862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6863 (eval $ac_compile) 2>conftest.er1
6864 ac_status=$?
6865 grep -v '^ *+' conftest.er1 >conftest.err
6866 rm -f conftest.er1
6867 cat conftest.err >&5
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); } &&
6870 { ac_try='test -z "$ac_c_werror_flag"
6871 || test ! -s conftest.err'
6872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6873 (eval $ac_try) 2>&5
6874 ac_status=$?
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); }; } &&
6877 { ac_try='test -s conftest.$ac_objext'
6878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6879 (eval $ac_try) 2>&5
6880 ac_status=$?
6881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); }; }; then
6883 ac_lo=0 ac_mid=0
6884 while :; do
6885 cat >conftest.$ac_ext <<_ACEOF
6886 /* confdefs.h. */
6887 _ACEOF
6888 cat confdefs.h >>conftest.$ac_ext
6889 cat >>conftest.$ac_ext <<_ACEOF
6890 /* end confdefs.h. */
6891 $ac_includes_default
6893 main ()
6895 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6896 test_array [0] = 0
6899 return 0;
6901 _ACEOF
6902 rm -f conftest.$ac_objext
6903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6904 (eval $ac_compile) 2>conftest.er1
6905 ac_status=$?
6906 grep -v '^ *+' conftest.er1 >conftest.err
6907 rm -f conftest.er1
6908 cat conftest.err >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } &&
6911 { ac_try='test -z "$ac_c_werror_flag"
6912 || test ! -s conftest.err'
6913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6914 (eval $ac_try) 2>&5
6915 ac_status=$?
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); }; } &&
6918 { ac_try='test -s conftest.$ac_objext'
6919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6920 (eval $ac_try) 2>&5
6921 ac_status=$?
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); }; }; then
6924 ac_hi=$ac_mid; break
6925 else
6926 echo "$as_me: failed program was:" >&5
6927 sed 's/^/| /' conftest.$ac_ext >&5
6929 ac_lo=`expr $ac_mid + 1`
6930 if test $ac_lo -le $ac_mid; then
6931 ac_lo= ac_hi=
6932 break
6934 ac_mid=`expr 2 '*' $ac_mid + 1`
6936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6937 done
6938 else
6939 echo "$as_me: failed program was:" >&5
6940 sed 's/^/| /' conftest.$ac_ext >&5
6942 cat >conftest.$ac_ext <<_ACEOF
6943 /* confdefs.h. */
6944 _ACEOF
6945 cat confdefs.h >>conftest.$ac_ext
6946 cat >>conftest.$ac_ext <<_ACEOF
6947 /* end confdefs.h. */
6948 $ac_includes_default
6950 main ()
6952 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6953 test_array [0] = 0
6956 return 0;
6958 _ACEOF
6959 rm -f conftest.$ac_objext
6960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6961 (eval $ac_compile) 2>conftest.er1
6962 ac_status=$?
6963 grep -v '^ *+' conftest.er1 >conftest.err
6964 rm -f conftest.er1
6965 cat conftest.err >&5
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); } &&
6968 { ac_try='test -z "$ac_c_werror_flag"
6969 || test ! -s conftest.err'
6970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6971 (eval $ac_try) 2>&5
6972 ac_status=$?
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); }; } &&
6975 { ac_try='test -s conftest.$ac_objext'
6976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6977 (eval $ac_try) 2>&5
6978 ac_status=$?
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); }; }; then
6981 ac_hi=-1 ac_mid=-1
6982 while :; do
6983 cat >conftest.$ac_ext <<_ACEOF
6984 /* confdefs.h. */
6985 _ACEOF
6986 cat confdefs.h >>conftest.$ac_ext
6987 cat >>conftest.$ac_ext <<_ACEOF
6988 /* end confdefs.h. */
6989 $ac_includes_default
6991 main ()
6993 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6994 test_array [0] = 0
6997 return 0;
6999 _ACEOF
7000 rm -f conftest.$ac_objext
7001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7002 (eval $ac_compile) 2>conftest.er1
7003 ac_status=$?
7004 grep -v '^ *+' conftest.er1 >conftest.err
7005 rm -f conftest.er1
7006 cat conftest.err >&5
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); } &&
7009 { ac_try='test -z "$ac_c_werror_flag"
7010 || test ! -s conftest.err'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012 (eval $ac_try) 2>&5
7013 ac_status=$?
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; } &&
7016 { ac_try='test -s conftest.$ac_objext'
7017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018 (eval $ac_try) 2>&5
7019 ac_status=$?
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; }; then
7022 ac_lo=$ac_mid; break
7023 else
7024 echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.$ac_ext >&5
7027 ac_hi=`expr '(' $ac_mid ')' - 1`
7028 if test $ac_mid -le $ac_hi; then
7029 ac_lo= ac_hi=
7030 break
7032 ac_mid=`expr 2 '*' $ac_mid`
7034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7035 done
7036 else
7037 echo "$as_me: failed program was:" >&5
7038 sed 's/^/| /' conftest.$ac_ext >&5
7040 ac_lo= ac_hi=
7042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7045 # Binary search between lo and hi bounds.
7046 while test "x$ac_lo" != "x$ac_hi"; do
7047 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7048 cat >conftest.$ac_ext <<_ACEOF
7049 /* confdefs.h. */
7050 _ACEOF
7051 cat confdefs.h >>conftest.$ac_ext
7052 cat >>conftest.$ac_ext <<_ACEOF
7053 /* end confdefs.h. */
7054 $ac_includes_default
7056 main ()
7058 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7059 test_array [0] = 0
7062 return 0;
7064 _ACEOF
7065 rm -f conftest.$ac_objext
7066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7067 (eval $ac_compile) 2>conftest.er1
7068 ac_status=$?
7069 grep -v '^ *+' conftest.er1 >conftest.err
7070 rm -f conftest.er1
7071 cat conftest.err >&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } &&
7074 { ac_try='test -z "$ac_c_werror_flag"
7075 || test ! -s conftest.err'
7076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077 (eval $ac_try) 2>&5
7078 ac_status=$?
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); }; } &&
7081 { ac_try='test -s conftest.$ac_objext'
7082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083 (eval $ac_try) 2>&5
7084 ac_status=$?
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); }; }; then
7087 ac_hi=$ac_mid
7088 else
7089 echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.$ac_ext >&5
7092 ac_lo=`expr '(' $ac_mid ')' + 1`
7094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7095 done
7096 case $ac_lo in
7097 ?*) ac_cv_sizeof_long=$ac_lo;;
7098 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7099 See \`config.log' for more details." >&5
7100 echo "$as_me: error: cannot compute sizeof (long), 77
7101 See \`config.log' for more details." >&2;}
7102 { (exit 1); exit 1; }; } ;;
7103 esac
7104 else
7105 if test "$cross_compiling" = yes; then
7106 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7107 See \`config.log' for more details." >&5
7108 echo "$as_me: error: cannot run test program while cross compiling
7109 See \`config.log' for more details." >&2;}
7110 { (exit 1); exit 1; }; }
7111 else
7112 cat >conftest.$ac_ext <<_ACEOF
7113 /* confdefs.h. */
7114 _ACEOF
7115 cat confdefs.h >>conftest.$ac_ext
7116 cat >>conftest.$ac_ext <<_ACEOF
7117 /* end confdefs.h. */
7118 $ac_includes_default
7119 long longval () { return (long) (sizeof (long)); }
7120 unsigned long ulongval () { return (long) (sizeof (long)); }
7121 #include <stdio.h>
7122 #include <stdlib.h>
7124 main ()
7127 FILE *f = fopen ("conftest.val", "w");
7128 if (! f)
7129 exit (1);
7130 if (((long) (sizeof (long))) < 0)
7132 long i = longval ();
7133 if (i != ((long) (sizeof (long))))
7134 exit (1);
7135 fprintf (f, "%ld\n", i);
7137 else
7139 unsigned long i = ulongval ();
7140 if (i != ((long) (sizeof (long))))
7141 exit (1);
7142 fprintf (f, "%lu\n", i);
7144 exit (ferror (f) || fclose (f) != 0);
7147 return 0;
7149 _ACEOF
7150 rm -f conftest$ac_exeext
7151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7152 (eval $ac_link) 2>&5
7153 ac_status=$?
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157 (eval $ac_try) 2>&5
7158 ac_status=$?
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; }; then
7161 ac_cv_sizeof_long=`cat conftest.val`
7162 else
7163 echo "$as_me: program exited with status $ac_status" >&5
7164 echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.$ac_ext >&5
7167 ( exit $ac_status )
7168 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7169 See \`config.log' for more details." >&5
7170 echo "$as_me: error: cannot compute sizeof (long), 77
7171 See \`config.log' for more details." >&2;}
7172 { (exit 1); exit 1; }; }
7174 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7177 rm -f conftest.val
7178 else
7179 ac_cv_sizeof_long=0
7182 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7183 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7184 cat >>confdefs.h <<_ACEOF
7185 #define SIZEOF_LONG $ac_cv_sizeof_long
7186 _ACEOF
7189 echo "$as_me:$LINENO: checking for void *" >&5
7190 echo $ECHO_N "checking for void *... $ECHO_C" >&6
7191 if test "${ac_cv_type_void_p+set}" = set; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7193 else
7194 cat >conftest.$ac_ext <<_ACEOF
7195 /* confdefs.h. */
7196 _ACEOF
7197 cat confdefs.h >>conftest.$ac_ext
7198 cat >>conftest.$ac_ext <<_ACEOF
7199 /* end confdefs.h. */
7200 $ac_includes_default
7202 main ()
7204 if ((void * *) 0)
7205 return 0;
7206 if (sizeof (void *))
7207 return 0;
7209 return 0;
7211 _ACEOF
7212 rm -f conftest.$ac_objext
7213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7214 (eval $ac_compile) 2>conftest.er1
7215 ac_status=$?
7216 grep -v '^ *+' conftest.er1 >conftest.err
7217 rm -f conftest.er1
7218 cat conftest.err >&5
7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); } &&
7221 { ac_try='test -z "$ac_c_werror_flag"
7222 || test ! -s conftest.err'
7223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224 (eval $ac_try) 2>&5
7225 ac_status=$?
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); }; } &&
7228 { ac_try='test -s conftest.$ac_objext'
7229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7230 (eval $ac_try) 2>&5
7231 ac_status=$?
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); }; }; then
7234 ac_cv_type_void_p=yes
7235 else
7236 echo "$as_me: failed program was:" >&5
7237 sed 's/^/| /' conftest.$ac_ext >&5
7239 ac_cv_type_void_p=no
7241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7243 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7244 echo "${ECHO_T}$ac_cv_type_void_p" >&6
7246 echo "$as_me:$LINENO: checking size of void *" >&5
7247 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7248 if test "${ac_cv_sizeof_void_p+set}" = set; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
7250 else
7251 if test "$ac_cv_type_void_p" = yes; then
7252 # The cast to unsigned long works around a bug in the HP C Compiler
7253 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7254 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7255 # This bug is HP SR number 8606223364.
7256 if test "$cross_compiling" = yes; then
7257 # Depending upon the size, compute the lo and hi bounds.
7258 cat >conftest.$ac_ext <<_ACEOF
7259 /* confdefs.h. */
7260 _ACEOF
7261 cat confdefs.h >>conftest.$ac_ext
7262 cat >>conftest.$ac_ext <<_ACEOF
7263 /* end confdefs.h. */
7264 $ac_includes_default
7266 main ()
7268 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
7269 test_array [0] = 0
7272 return 0;
7274 _ACEOF
7275 rm -f conftest.$ac_objext
7276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7277 (eval $ac_compile) 2>conftest.er1
7278 ac_status=$?
7279 grep -v '^ *+' conftest.er1 >conftest.err
7280 rm -f conftest.er1
7281 cat conftest.err >&5
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); } &&
7284 { ac_try='test -z "$ac_c_werror_flag"
7285 || test ! -s conftest.err'
7286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7287 (eval $ac_try) 2>&5
7288 ac_status=$?
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); }; } &&
7291 { ac_try='test -s conftest.$ac_objext'
7292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293 (eval $ac_try) 2>&5
7294 ac_status=$?
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); }; }; then
7297 ac_lo=0 ac_mid=0
7298 while :; do
7299 cat >conftest.$ac_ext <<_ACEOF
7300 /* confdefs.h. */
7301 _ACEOF
7302 cat confdefs.h >>conftest.$ac_ext
7303 cat >>conftest.$ac_ext <<_ACEOF
7304 /* end confdefs.h. */
7305 $ac_includes_default
7307 main ()
7309 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7310 test_array [0] = 0
7313 return 0;
7315 _ACEOF
7316 rm -f conftest.$ac_objext
7317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7318 (eval $ac_compile) 2>conftest.er1
7319 ac_status=$?
7320 grep -v '^ *+' conftest.er1 >conftest.err
7321 rm -f conftest.er1
7322 cat conftest.err >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } &&
7325 { ac_try='test -z "$ac_c_werror_flag"
7326 || test ! -s conftest.err'
7327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7328 (eval $ac_try) 2>&5
7329 ac_status=$?
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); }; } &&
7332 { ac_try='test -s conftest.$ac_objext'
7333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7334 (eval $ac_try) 2>&5
7335 ac_status=$?
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); }; }; then
7338 ac_hi=$ac_mid; break
7339 else
7340 echo "$as_me: failed program was:" >&5
7341 sed 's/^/| /' conftest.$ac_ext >&5
7343 ac_lo=`expr $ac_mid + 1`
7344 if test $ac_lo -le $ac_mid; then
7345 ac_lo= ac_hi=
7346 break
7348 ac_mid=`expr 2 '*' $ac_mid + 1`
7350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7351 done
7352 else
7353 echo "$as_me: failed program was:" >&5
7354 sed 's/^/| /' conftest.$ac_ext >&5
7356 cat >conftest.$ac_ext <<_ACEOF
7357 /* confdefs.h. */
7358 _ACEOF
7359 cat confdefs.h >>conftest.$ac_ext
7360 cat >>conftest.$ac_ext <<_ACEOF
7361 /* end confdefs.h. */
7362 $ac_includes_default
7364 main ()
7366 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
7367 test_array [0] = 0
7370 return 0;
7372 _ACEOF
7373 rm -f conftest.$ac_objext
7374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7375 (eval $ac_compile) 2>conftest.er1
7376 ac_status=$?
7377 grep -v '^ *+' conftest.er1 >conftest.err
7378 rm -f conftest.er1
7379 cat conftest.err >&5
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); } &&
7382 { ac_try='test -z "$ac_c_werror_flag"
7383 || test ! -s conftest.err'
7384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7385 (eval $ac_try) 2>&5
7386 ac_status=$?
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); }; } &&
7389 { ac_try='test -s conftest.$ac_objext'
7390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7391 (eval $ac_try) 2>&5
7392 ac_status=$?
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); }; }; then
7395 ac_hi=-1 ac_mid=-1
7396 while :; do
7397 cat >conftest.$ac_ext <<_ACEOF
7398 /* confdefs.h. */
7399 _ACEOF
7400 cat confdefs.h >>conftest.$ac_ext
7401 cat >>conftest.$ac_ext <<_ACEOF
7402 /* end confdefs.h. */
7403 $ac_includes_default
7405 main ()
7407 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
7408 test_array [0] = 0
7411 return 0;
7413 _ACEOF
7414 rm -f conftest.$ac_objext
7415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7416 (eval $ac_compile) 2>conftest.er1
7417 ac_status=$?
7418 grep -v '^ *+' conftest.er1 >conftest.err
7419 rm -f conftest.er1
7420 cat conftest.err >&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } &&
7423 { ac_try='test -z "$ac_c_werror_flag"
7424 || test ! -s conftest.err'
7425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7426 (eval $ac_try) 2>&5
7427 ac_status=$?
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); }; } &&
7430 { ac_try='test -s conftest.$ac_objext'
7431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7432 (eval $ac_try) 2>&5
7433 ac_status=$?
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); }; }; then
7436 ac_lo=$ac_mid; break
7437 else
7438 echo "$as_me: failed program was:" >&5
7439 sed 's/^/| /' conftest.$ac_ext >&5
7441 ac_hi=`expr '(' $ac_mid ')' - 1`
7442 if test $ac_mid -le $ac_hi; then
7443 ac_lo= ac_hi=
7444 break
7446 ac_mid=`expr 2 '*' $ac_mid`
7448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7449 done
7450 else
7451 echo "$as_me: failed program was:" >&5
7452 sed 's/^/| /' conftest.$ac_ext >&5
7454 ac_lo= ac_hi=
7456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7459 # Binary search between lo and hi bounds.
7460 while test "x$ac_lo" != "x$ac_hi"; do
7461 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7462 cat >conftest.$ac_ext <<_ACEOF
7463 /* confdefs.h. */
7464 _ACEOF
7465 cat confdefs.h >>conftest.$ac_ext
7466 cat >>conftest.$ac_ext <<_ACEOF
7467 /* end confdefs.h. */
7468 $ac_includes_default
7470 main ()
7472 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7473 test_array [0] = 0
7476 return 0;
7478 _ACEOF
7479 rm -f conftest.$ac_objext
7480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7481 (eval $ac_compile) 2>conftest.er1
7482 ac_status=$?
7483 grep -v '^ *+' conftest.er1 >conftest.err
7484 rm -f conftest.er1
7485 cat conftest.err >&5
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); } &&
7488 { ac_try='test -z "$ac_c_werror_flag"
7489 || test ! -s conftest.err'
7490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7491 (eval $ac_try) 2>&5
7492 ac_status=$?
7493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494 (exit $ac_status); }; } &&
7495 { ac_try='test -s conftest.$ac_objext'
7496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7497 (eval $ac_try) 2>&5
7498 ac_status=$?
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); }; }; then
7501 ac_hi=$ac_mid
7502 else
7503 echo "$as_me: failed program was:" >&5
7504 sed 's/^/| /' conftest.$ac_ext >&5
7506 ac_lo=`expr '(' $ac_mid ')' + 1`
7508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7509 done
7510 case $ac_lo in
7511 ?*) ac_cv_sizeof_void_p=$ac_lo;;
7512 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7513 See \`config.log' for more details." >&5
7514 echo "$as_me: error: cannot compute sizeof (void *), 77
7515 See \`config.log' for more details." >&2;}
7516 { (exit 1); exit 1; }; } ;;
7517 esac
7518 else
7519 if test "$cross_compiling" = yes; then
7520 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7521 See \`config.log' for more details." >&5
7522 echo "$as_me: error: cannot run test program while cross compiling
7523 See \`config.log' for more details." >&2;}
7524 { (exit 1); exit 1; }; }
7525 else
7526 cat >conftest.$ac_ext <<_ACEOF
7527 /* confdefs.h. */
7528 _ACEOF
7529 cat confdefs.h >>conftest.$ac_ext
7530 cat >>conftest.$ac_ext <<_ACEOF
7531 /* end confdefs.h. */
7532 $ac_includes_default
7533 long longval () { return (long) (sizeof (void *)); }
7534 unsigned long ulongval () { return (long) (sizeof (void *)); }
7535 #include <stdio.h>
7536 #include <stdlib.h>
7538 main ()
7541 FILE *f = fopen ("conftest.val", "w");
7542 if (! f)
7543 exit (1);
7544 if (((long) (sizeof (void *))) < 0)
7546 long i = longval ();
7547 if (i != ((long) (sizeof (void *))))
7548 exit (1);
7549 fprintf (f, "%ld\n", i);
7551 else
7553 unsigned long i = ulongval ();
7554 if (i != ((long) (sizeof (void *))))
7555 exit (1);
7556 fprintf (f, "%lu\n", i);
7558 exit (ferror (f) || fclose (f) != 0);
7561 return 0;
7563 _ACEOF
7564 rm -f conftest$ac_exeext
7565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7566 (eval $ac_link) 2>&5
7567 ac_status=$?
7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7571 (eval $ac_try) 2>&5
7572 ac_status=$?
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); }; }; then
7575 ac_cv_sizeof_void_p=`cat conftest.val`
7576 else
7577 echo "$as_me: program exited with status $ac_status" >&5
7578 echo "$as_me: failed program was:" >&5
7579 sed 's/^/| /' conftest.$ac_ext >&5
7581 ( exit $ac_status )
7582 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7583 See \`config.log' for more details." >&5
7584 echo "$as_me: error: cannot compute sizeof (void *), 77
7585 See \`config.log' for more details." >&2;}
7586 { (exit 1); exit 1; }; }
7588 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7591 rm -f conftest.val
7592 else
7593 ac_cv_sizeof_void_p=0
7596 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7597 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7598 cat >>confdefs.h <<_ACEOF
7599 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7600 _ACEOF
7603 echo "$as_me:$LINENO: checking for short" >&5
7604 echo $ECHO_N "checking for short... $ECHO_C" >&6
7605 if test "${ac_cv_type_short+set}" = set; then
7606 echo $ECHO_N "(cached) $ECHO_C" >&6
7607 else
7608 cat >conftest.$ac_ext <<_ACEOF
7609 /* confdefs.h. */
7610 _ACEOF
7611 cat confdefs.h >>conftest.$ac_ext
7612 cat >>conftest.$ac_ext <<_ACEOF
7613 /* end confdefs.h. */
7614 $ac_includes_default
7616 main ()
7618 if ((short *) 0)
7619 return 0;
7620 if (sizeof (short))
7621 return 0;
7623 return 0;
7625 _ACEOF
7626 rm -f conftest.$ac_objext
7627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7628 (eval $ac_compile) 2>conftest.er1
7629 ac_status=$?
7630 grep -v '^ *+' conftest.er1 >conftest.err
7631 rm -f conftest.er1
7632 cat conftest.err >&5
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); } &&
7635 { ac_try='test -z "$ac_c_werror_flag"
7636 || test ! -s conftest.err'
7637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638 (eval $ac_try) 2>&5
7639 ac_status=$?
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); }; } &&
7642 { ac_try='test -s conftest.$ac_objext'
7643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7644 (eval $ac_try) 2>&5
7645 ac_status=$?
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); }; }; then
7648 ac_cv_type_short=yes
7649 else
7650 echo "$as_me: failed program was:" >&5
7651 sed 's/^/| /' conftest.$ac_ext >&5
7653 ac_cv_type_short=no
7655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7657 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7658 echo "${ECHO_T}$ac_cv_type_short" >&6
7660 echo "$as_me:$LINENO: checking size of short" >&5
7661 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7662 if test "${ac_cv_sizeof_short+set}" = set; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7664 else
7665 if test "$ac_cv_type_short" = yes; then
7666 # The cast to unsigned long works around a bug in the HP C Compiler
7667 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7668 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7669 # This bug is HP SR number 8606223364.
7670 if test "$cross_compiling" = yes; then
7671 # Depending upon the size, compute the lo and hi bounds.
7672 cat >conftest.$ac_ext <<_ACEOF
7673 /* confdefs.h. */
7674 _ACEOF
7675 cat confdefs.h >>conftest.$ac_ext
7676 cat >>conftest.$ac_ext <<_ACEOF
7677 /* end confdefs.h. */
7678 $ac_includes_default
7680 main ()
7682 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7683 test_array [0] = 0
7686 return 0;
7688 _ACEOF
7689 rm -f conftest.$ac_objext
7690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7691 (eval $ac_compile) 2>conftest.er1
7692 ac_status=$?
7693 grep -v '^ *+' conftest.er1 >conftest.err
7694 rm -f conftest.er1
7695 cat conftest.err >&5
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); } &&
7698 { ac_try='test -z "$ac_c_werror_flag"
7699 || test ! -s conftest.err'
7700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701 (eval $ac_try) 2>&5
7702 ac_status=$?
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); }; } &&
7705 { ac_try='test -s conftest.$ac_objext'
7706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7707 (eval $ac_try) 2>&5
7708 ac_status=$?
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); }; }; then
7711 ac_lo=0 ac_mid=0
7712 while :; do
7713 cat >conftest.$ac_ext <<_ACEOF
7714 /* confdefs.h. */
7715 _ACEOF
7716 cat confdefs.h >>conftest.$ac_ext
7717 cat >>conftest.$ac_ext <<_ACEOF
7718 /* end confdefs.h. */
7719 $ac_includes_default
7721 main ()
7723 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7724 test_array [0] = 0
7727 return 0;
7729 _ACEOF
7730 rm -f conftest.$ac_objext
7731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7732 (eval $ac_compile) 2>conftest.er1
7733 ac_status=$?
7734 grep -v '^ *+' conftest.er1 >conftest.err
7735 rm -f conftest.er1
7736 cat conftest.err >&5
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); } &&
7739 { ac_try='test -z "$ac_c_werror_flag"
7740 || test ! -s conftest.err'
7741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742 (eval $ac_try) 2>&5
7743 ac_status=$?
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); }; } &&
7746 { ac_try='test -s conftest.$ac_objext'
7747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7748 (eval $ac_try) 2>&5
7749 ac_status=$?
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); }; }; then
7752 ac_hi=$ac_mid; break
7753 else
7754 echo "$as_me: failed program was:" >&5
7755 sed 's/^/| /' conftest.$ac_ext >&5
7757 ac_lo=`expr $ac_mid + 1`
7758 if test $ac_lo -le $ac_mid; then
7759 ac_lo= ac_hi=
7760 break
7762 ac_mid=`expr 2 '*' $ac_mid + 1`
7764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7765 done
7766 else
7767 echo "$as_me: failed program was:" >&5
7768 sed 's/^/| /' conftest.$ac_ext >&5
7770 cat >conftest.$ac_ext <<_ACEOF
7771 /* confdefs.h. */
7772 _ACEOF
7773 cat confdefs.h >>conftest.$ac_ext
7774 cat >>conftest.$ac_ext <<_ACEOF
7775 /* end confdefs.h. */
7776 $ac_includes_default
7778 main ()
7780 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7781 test_array [0] = 0
7784 return 0;
7786 _ACEOF
7787 rm -f conftest.$ac_objext
7788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7789 (eval $ac_compile) 2>conftest.er1
7790 ac_status=$?
7791 grep -v '^ *+' conftest.er1 >conftest.err
7792 rm -f conftest.er1
7793 cat conftest.err >&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); } &&
7796 { ac_try='test -z "$ac_c_werror_flag"
7797 || test ! -s conftest.err'
7798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7799 (eval $ac_try) 2>&5
7800 ac_status=$?
7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 (exit $ac_status); }; } &&
7803 { ac_try='test -s conftest.$ac_objext'
7804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7805 (eval $ac_try) 2>&5
7806 ac_status=$?
7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808 (exit $ac_status); }; }; then
7809 ac_hi=-1 ac_mid=-1
7810 while :; do
7811 cat >conftest.$ac_ext <<_ACEOF
7812 /* confdefs.h. */
7813 _ACEOF
7814 cat confdefs.h >>conftest.$ac_ext
7815 cat >>conftest.$ac_ext <<_ACEOF
7816 /* end confdefs.h. */
7817 $ac_includes_default
7819 main ()
7821 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7822 test_array [0] = 0
7825 return 0;
7827 _ACEOF
7828 rm -f conftest.$ac_objext
7829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7830 (eval $ac_compile) 2>conftest.er1
7831 ac_status=$?
7832 grep -v '^ *+' conftest.er1 >conftest.err
7833 rm -f conftest.er1
7834 cat conftest.err >&5
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); } &&
7837 { ac_try='test -z "$ac_c_werror_flag"
7838 || test ! -s conftest.err'
7839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 (eval $ac_try) 2>&5
7841 ac_status=$?
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; } &&
7844 { ac_try='test -s conftest.$ac_objext'
7845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7846 (eval $ac_try) 2>&5
7847 ac_status=$?
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); }; }; then
7850 ac_lo=$ac_mid; break
7851 else
7852 echo "$as_me: failed program was:" >&5
7853 sed 's/^/| /' conftest.$ac_ext >&5
7855 ac_hi=`expr '(' $ac_mid ')' - 1`
7856 if test $ac_mid -le $ac_hi; then
7857 ac_lo= ac_hi=
7858 break
7860 ac_mid=`expr 2 '*' $ac_mid`
7862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7863 done
7864 else
7865 echo "$as_me: failed program was:" >&5
7866 sed 's/^/| /' conftest.$ac_ext >&5
7868 ac_lo= ac_hi=
7870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7873 # Binary search between lo and hi bounds.
7874 while test "x$ac_lo" != "x$ac_hi"; do
7875 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7876 cat >conftest.$ac_ext <<_ACEOF
7877 /* confdefs.h. */
7878 _ACEOF
7879 cat confdefs.h >>conftest.$ac_ext
7880 cat >>conftest.$ac_ext <<_ACEOF
7881 /* end confdefs.h. */
7882 $ac_includes_default
7884 main ()
7886 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7887 test_array [0] = 0
7890 return 0;
7892 _ACEOF
7893 rm -f conftest.$ac_objext
7894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7895 (eval $ac_compile) 2>conftest.er1
7896 ac_status=$?
7897 grep -v '^ *+' conftest.er1 >conftest.err
7898 rm -f conftest.er1
7899 cat conftest.err >&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); } &&
7902 { ac_try='test -z "$ac_c_werror_flag"
7903 || test ! -s conftest.err'
7904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7905 (eval $ac_try) 2>&5
7906 ac_status=$?
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); }; } &&
7909 { ac_try='test -s conftest.$ac_objext'
7910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7911 (eval $ac_try) 2>&5
7912 ac_status=$?
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); }; }; then
7915 ac_hi=$ac_mid
7916 else
7917 echo "$as_me: failed program was:" >&5
7918 sed 's/^/| /' conftest.$ac_ext >&5
7920 ac_lo=`expr '(' $ac_mid ')' + 1`
7922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7923 done
7924 case $ac_lo in
7925 ?*) ac_cv_sizeof_short=$ac_lo;;
7926 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7927 See \`config.log' for more details." >&5
7928 echo "$as_me: error: cannot compute sizeof (short), 77
7929 See \`config.log' for more details." >&2;}
7930 { (exit 1); exit 1; }; } ;;
7931 esac
7932 else
7933 if test "$cross_compiling" = yes; then
7934 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7935 See \`config.log' for more details." >&5
7936 echo "$as_me: error: cannot run test program while cross compiling
7937 See \`config.log' for more details." >&2;}
7938 { (exit 1); exit 1; }; }
7939 else
7940 cat >conftest.$ac_ext <<_ACEOF
7941 /* confdefs.h. */
7942 _ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7946 $ac_includes_default
7947 long longval () { return (long) (sizeof (short)); }
7948 unsigned long ulongval () { return (long) (sizeof (short)); }
7949 #include <stdio.h>
7950 #include <stdlib.h>
7952 main ()
7955 FILE *f = fopen ("conftest.val", "w");
7956 if (! f)
7957 exit (1);
7958 if (((long) (sizeof (short))) < 0)
7960 long i = longval ();
7961 if (i != ((long) (sizeof (short))))
7962 exit (1);
7963 fprintf (f, "%ld\n", i);
7965 else
7967 unsigned long i = ulongval ();
7968 if (i != ((long) (sizeof (short))))
7969 exit (1);
7970 fprintf (f, "%lu\n", i);
7972 exit (ferror (f) || fclose (f) != 0);
7975 return 0;
7977 _ACEOF
7978 rm -f conftest$ac_exeext
7979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7980 (eval $ac_link) 2>&5
7981 ac_status=$?
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7985 (eval $ac_try) 2>&5
7986 ac_status=$?
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); }; }; then
7989 ac_cv_sizeof_short=`cat conftest.val`
7990 else
7991 echo "$as_me: program exited with status $ac_status" >&5
7992 echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.$ac_ext >&5
7995 ( exit $ac_status )
7996 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7997 See \`config.log' for more details." >&5
7998 echo "$as_me: error: cannot compute sizeof (short), 77
7999 See \`config.log' for more details." >&2;}
8000 { (exit 1); exit 1; }; }
8002 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8005 rm -f conftest.val
8006 else
8007 ac_cv_sizeof_short=0
8010 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8011 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
8012 cat >>confdefs.h <<_ACEOF
8013 #define SIZEOF_SHORT $ac_cv_sizeof_short
8014 _ACEOF
8017 echo "$as_me:$LINENO: checking for float" >&5
8018 echo $ECHO_N "checking for float... $ECHO_C" >&6
8019 if test "${ac_cv_type_float+set}" = set; then
8020 echo $ECHO_N "(cached) $ECHO_C" >&6
8021 else
8022 cat >conftest.$ac_ext <<_ACEOF
8023 /* confdefs.h. */
8024 _ACEOF
8025 cat confdefs.h >>conftest.$ac_ext
8026 cat >>conftest.$ac_ext <<_ACEOF
8027 /* end confdefs.h. */
8028 $ac_includes_default
8030 main ()
8032 if ((float *) 0)
8033 return 0;
8034 if (sizeof (float))
8035 return 0;
8037 return 0;
8039 _ACEOF
8040 rm -f conftest.$ac_objext
8041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8042 (eval $ac_compile) 2>conftest.er1
8043 ac_status=$?
8044 grep -v '^ *+' conftest.er1 >conftest.err
8045 rm -f conftest.er1
8046 cat conftest.err >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } &&
8049 { ac_try='test -z "$ac_c_werror_flag"
8050 || test ! -s conftest.err'
8051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8052 (eval $ac_try) 2>&5
8053 ac_status=$?
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); }; } &&
8056 { ac_try='test -s conftest.$ac_objext'
8057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058 (eval $ac_try) 2>&5
8059 ac_status=$?
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); }; }; then
8062 ac_cv_type_float=yes
8063 else
8064 echo "$as_me: failed program was:" >&5
8065 sed 's/^/| /' conftest.$ac_ext >&5
8067 ac_cv_type_float=no
8069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8071 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8072 echo "${ECHO_T}$ac_cv_type_float" >&6
8074 echo "$as_me:$LINENO: checking size of float" >&5
8075 echo $ECHO_N "checking size of float... $ECHO_C" >&6
8076 if test "${ac_cv_sizeof_float+set}" = set; then
8077 echo $ECHO_N "(cached) $ECHO_C" >&6
8078 else
8079 if test "$ac_cv_type_float" = yes; then
8080 # The cast to unsigned long works around a bug in the HP C Compiler
8081 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8082 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8083 # This bug is HP SR number 8606223364.
8084 if test "$cross_compiling" = yes; then
8085 # Depending upon the size, compute the lo and hi bounds.
8086 cat >conftest.$ac_ext <<_ACEOF
8087 /* confdefs.h. */
8088 _ACEOF
8089 cat confdefs.h >>conftest.$ac_ext
8090 cat >>conftest.$ac_ext <<_ACEOF
8091 /* end confdefs.h. */
8092 $ac_includes_default
8094 main ()
8096 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
8097 test_array [0] = 0
8100 return 0;
8102 _ACEOF
8103 rm -f conftest.$ac_objext
8104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8105 (eval $ac_compile) 2>conftest.er1
8106 ac_status=$?
8107 grep -v '^ *+' conftest.er1 >conftest.err
8108 rm -f conftest.er1
8109 cat conftest.err >&5
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); } &&
8112 { ac_try='test -z "$ac_c_werror_flag"
8113 || test ! -s conftest.err'
8114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8115 (eval $ac_try) 2>&5
8116 ac_status=$?
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); }; } &&
8119 { ac_try='test -s conftest.$ac_objext'
8120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8121 (eval $ac_try) 2>&5
8122 ac_status=$?
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); }; }; then
8125 ac_lo=0 ac_mid=0
8126 while :; do
8127 cat >conftest.$ac_ext <<_ACEOF
8128 /* confdefs.h. */
8129 _ACEOF
8130 cat confdefs.h >>conftest.$ac_ext
8131 cat >>conftest.$ac_ext <<_ACEOF
8132 /* end confdefs.h. */
8133 $ac_includes_default
8135 main ()
8137 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8138 test_array [0] = 0
8141 return 0;
8143 _ACEOF
8144 rm -f conftest.$ac_objext
8145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8146 (eval $ac_compile) 2>conftest.er1
8147 ac_status=$?
8148 grep -v '^ *+' conftest.er1 >conftest.err
8149 rm -f conftest.er1
8150 cat conftest.err >&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); } &&
8153 { ac_try='test -z "$ac_c_werror_flag"
8154 || test ! -s conftest.err'
8155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8156 (eval $ac_try) 2>&5
8157 ac_status=$?
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); }; } &&
8160 { ac_try='test -s conftest.$ac_objext'
8161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8162 (eval $ac_try) 2>&5
8163 ac_status=$?
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); }; }; then
8166 ac_hi=$ac_mid; break
8167 else
8168 echo "$as_me: failed program was:" >&5
8169 sed 's/^/| /' conftest.$ac_ext >&5
8171 ac_lo=`expr $ac_mid + 1`
8172 if test $ac_lo -le $ac_mid; then
8173 ac_lo= ac_hi=
8174 break
8176 ac_mid=`expr 2 '*' $ac_mid + 1`
8178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8179 done
8180 else
8181 echo "$as_me: failed program was:" >&5
8182 sed 's/^/| /' conftest.$ac_ext >&5
8184 cat >conftest.$ac_ext <<_ACEOF
8185 /* confdefs.h. */
8186 _ACEOF
8187 cat confdefs.h >>conftest.$ac_ext
8188 cat >>conftest.$ac_ext <<_ACEOF
8189 /* end confdefs.h. */
8190 $ac_includes_default
8192 main ()
8194 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
8195 test_array [0] = 0
8198 return 0;
8200 _ACEOF
8201 rm -f conftest.$ac_objext
8202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8203 (eval $ac_compile) 2>conftest.er1
8204 ac_status=$?
8205 grep -v '^ *+' conftest.er1 >conftest.err
8206 rm -f conftest.er1
8207 cat conftest.err >&5
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); } &&
8210 { ac_try='test -z "$ac_c_werror_flag"
8211 || test ! -s conftest.err'
8212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213 (eval $ac_try) 2>&5
8214 ac_status=$?
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); }; } &&
8217 { ac_try='test -s conftest.$ac_objext'
8218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219 (eval $ac_try) 2>&5
8220 ac_status=$?
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); }; }; then
8223 ac_hi=-1 ac_mid=-1
8224 while :; do
8225 cat >conftest.$ac_ext <<_ACEOF
8226 /* confdefs.h. */
8227 _ACEOF
8228 cat confdefs.h >>conftest.$ac_ext
8229 cat >>conftest.$ac_ext <<_ACEOF
8230 /* end confdefs.h. */
8231 $ac_includes_default
8233 main ()
8235 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
8236 test_array [0] = 0
8239 return 0;
8241 _ACEOF
8242 rm -f conftest.$ac_objext
8243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8244 (eval $ac_compile) 2>conftest.er1
8245 ac_status=$?
8246 grep -v '^ *+' conftest.er1 >conftest.err
8247 rm -f conftest.er1
8248 cat conftest.err >&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } &&
8251 { ac_try='test -z "$ac_c_werror_flag"
8252 || test ! -s conftest.err'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254 (eval $ac_try) 2>&5
8255 ac_status=$?
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; } &&
8258 { ac_try='test -s conftest.$ac_objext'
8259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260 (eval $ac_try) 2>&5
8261 ac_status=$?
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); }; }; then
8264 ac_lo=$ac_mid; break
8265 else
8266 echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8269 ac_hi=`expr '(' $ac_mid ')' - 1`
8270 if test $ac_mid -le $ac_hi; then
8271 ac_lo= ac_hi=
8272 break
8274 ac_mid=`expr 2 '*' $ac_mid`
8276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8277 done
8278 else
8279 echo "$as_me: failed program was:" >&5
8280 sed 's/^/| /' conftest.$ac_ext >&5
8282 ac_lo= ac_hi=
8284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8287 # Binary search between lo and hi bounds.
8288 while test "x$ac_lo" != "x$ac_hi"; do
8289 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8290 cat >conftest.$ac_ext <<_ACEOF
8291 /* confdefs.h. */
8292 _ACEOF
8293 cat confdefs.h >>conftest.$ac_ext
8294 cat >>conftest.$ac_ext <<_ACEOF
8295 /* end confdefs.h. */
8296 $ac_includes_default
8298 main ()
8300 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8301 test_array [0] = 0
8304 return 0;
8306 _ACEOF
8307 rm -f conftest.$ac_objext
8308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8309 (eval $ac_compile) 2>conftest.er1
8310 ac_status=$?
8311 grep -v '^ *+' conftest.er1 >conftest.err
8312 rm -f conftest.er1
8313 cat conftest.err >&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); } &&
8316 { ac_try='test -z "$ac_c_werror_flag"
8317 || test ! -s conftest.err'
8318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8319 (eval $ac_try) 2>&5
8320 ac_status=$?
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); }; } &&
8323 { ac_try='test -s conftest.$ac_objext'
8324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8325 (eval $ac_try) 2>&5
8326 ac_status=$?
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); }; }; then
8329 ac_hi=$ac_mid
8330 else
8331 echo "$as_me: failed program was:" >&5
8332 sed 's/^/| /' conftest.$ac_ext >&5
8334 ac_lo=`expr '(' $ac_mid ')' + 1`
8336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8337 done
8338 case $ac_lo in
8339 ?*) ac_cv_sizeof_float=$ac_lo;;
8340 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8341 See \`config.log' for more details." >&5
8342 echo "$as_me: error: cannot compute sizeof (float), 77
8343 See \`config.log' for more details." >&2;}
8344 { (exit 1); exit 1; }; } ;;
8345 esac
8346 else
8347 if test "$cross_compiling" = yes; then
8348 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8349 See \`config.log' for more details." >&5
8350 echo "$as_me: error: cannot run test program while cross compiling
8351 See \`config.log' for more details." >&2;}
8352 { (exit 1); exit 1; }; }
8353 else
8354 cat >conftest.$ac_ext <<_ACEOF
8355 /* confdefs.h. */
8356 _ACEOF
8357 cat confdefs.h >>conftest.$ac_ext
8358 cat >>conftest.$ac_ext <<_ACEOF
8359 /* end confdefs.h. */
8360 $ac_includes_default
8361 long longval () { return (long) (sizeof (float)); }
8362 unsigned long ulongval () { return (long) (sizeof (float)); }
8363 #include <stdio.h>
8364 #include <stdlib.h>
8366 main ()
8369 FILE *f = fopen ("conftest.val", "w");
8370 if (! f)
8371 exit (1);
8372 if (((long) (sizeof (float))) < 0)
8374 long i = longval ();
8375 if (i != ((long) (sizeof (float))))
8376 exit (1);
8377 fprintf (f, "%ld\n", i);
8379 else
8381 unsigned long i = ulongval ();
8382 if (i != ((long) (sizeof (float))))
8383 exit (1);
8384 fprintf (f, "%lu\n", i);
8386 exit (ferror (f) || fclose (f) != 0);
8389 return 0;
8391 _ACEOF
8392 rm -f conftest$ac_exeext
8393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8394 (eval $ac_link) 2>&5
8395 ac_status=$?
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8399 (eval $ac_try) 2>&5
8400 ac_status=$?
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); }; }; then
8403 ac_cv_sizeof_float=`cat conftest.val`
8404 else
8405 echo "$as_me: program exited with status $ac_status" >&5
8406 echo "$as_me: failed program was:" >&5
8407 sed 's/^/| /' conftest.$ac_ext >&5
8409 ( exit $ac_status )
8410 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8411 See \`config.log' for more details." >&5
8412 echo "$as_me: error: cannot compute sizeof (float), 77
8413 See \`config.log' for more details." >&2;}
8414 { (exit 1); exit 1; }; }
8416 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8419 rm -f conftest.val
8420 else
8421 ac_cv_sizeof_float=0
8424 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8425 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
8426 cat >>confdefs.h <<_ACEOF
8427 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8428 _ACEOF
8431 echo "$as_me:$LINENO: checking for double" >&5
8432 echo $ECHO_N "checking for double... $ECHO_C" >&6
8433 if test "${ac_cv_type_double+set}" = set; then
8434 echo $ECHO_N "(cached) $ECHO_C" >&6
8435 else
8436 cat >conftest.$ac_ext <<_ACEOF
8437 /* confdefs.h. */
8438 _ACEOF
8439 cat confdefs.h >>conftest.$ac_ext
8440 cat >>conftest.$ac_ext <<_ACEOF
8441 /* end confdefs.h. */
8442 $ac_includes_default
8444 main ()
8446 if ((double *) 0)
8447 return 0;
8448 if (sizeof (double))
8449 return 0;
8451 return 0;
8453 _ACEOF
8454 rm -f conftest.$ac_objext
8455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8456 (eval $ac_compile) 2>conftest.er1
8457 ac_status=$?
8458 grep -v '^ *+' conftest.er1 >conftest.err
8459 rm -f conftest.er1
8460 cat conftest.err >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } &&
8463 { ac_try='test -z "$ac_c_werror_flag"
8464 || test ! -s conftest.err'
8465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466 (eval $ac_try) 2>&5
8467 ac_status=$?
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; } &&
8470 { ac_try='test -s conftest.$ac_objext'
8471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8472 (eval $ac_try) 2>&5
8473 ac_status=$?
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); }; }; then
8476 ac_cv_type_double=yes
8477 else
8478 echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.$ac_ext >&5
8481 ac_cv_type_double=no
8483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8485 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8486 echo "${ECHO_T}$ac_cv_type_double" >&6
8488 echo "$as_me:$LINENO: checking size of double" >&5
8489 echo $ECHO_N "checking size of double... $ECHO_C" >&6
8490 if test "${ac_cv_sizeof_double+set}" = set; then
8491 echo $ECHO_N "(cached) $ECHO_C" >&6
8492 else
8493 if test "$ac_cv_type_double" = yes; then
8494 # The cast to unsigned long works around a bug in the HP C Compiler
8495 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8496 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8497 # This bug is HP SR number 8606223364.
8498 if test "$cross_compiling" = yes; then
8499 # Depending upon the size, compute the lo and hi bounds.
8500 cat >conftest.$ac_ext <<_ACEOF
8501 /* confdefs.h. */
8502 _ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h. */
8506 $ac_includes_default
8508 main ()
8510 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
8511 test_array [0] = 0
8514 return 0;
8516 _ACEOF
8517 rm -f conftest.$ac_objext
8518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8519 (eval $ac_compile) 2>conftest.er1
8520 ac_status=$?
8521 grep -v '^ *+' conftest.er1 >conftest.err
8522 rm -f conftest.er1
8523 cat conftest.err >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); } &&
8526 { ac_try='test -z "$ac_c_werror_flag"
8527 || test ! -s conftest.err'
8528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8529 (eval $ac_try) 2>&5
8530 ac_status=$?
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); }; } &&
8533 { ac_try='test -s conftest.$ac_objext'
8534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535 (eval $ac_try) 2>&5
8536 ac_status=$?
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); }; }; then
8539 ac_lo=0 ac_mid=0
8540 while :; do
8541 cat >conftest.$ac_ext <<_ACEOF
8542 /* confdefs.h. */
8543 _ACEOF
8544 cat confdefs.h >>conftest.$ac_ext
8545 cat >>conftest.$ac_ext <<_ACEOF
8546 /* end confdefs.h. */
8547 $ac_includes_default
8549 main ()
8551 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8552 test_array [0] = 0
8555 return 0;
8557 _ACEOF
8558 rm -f conftest.$ac_objext
8559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8560 (eval $ac_compile) 2>conftest.er1
8561 ac_status=$?
8562 grep -v '^ *+' conftest.er1 >conftest.err
8563 rm -f conftest.er1
8564 cat conftest.err >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); } &&
8567 { ac_try='test -z "$ac_c_werror_flag"
8568 || test ! -s conftest.err'
8569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570 (eval $ac_try) 2>&5
8571 ac_status=$?
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); }; } &&
8574 { ac_try='test -s conftest.$ac_objext'
8575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8576 (eval $ac_try) 2>&5
8577 ac_status=$?
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); }; }; then
8580 ac_hi=$ac_mid; break
8581 else
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8585 ac_lo=`expr $ac_mid + 1`
8586 if test $ac_lo -le $ac_mid; then
8587 ac_lo= ac_hi=
8588 break
8590 ac_mid=`expr 2 '*' $ac_mid + 1`
8592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8593 done
8594 else
8595 echo "$as_me: failed program was:" >&5
8596 sed 's/^/| /' conftest.$ac_ext >&5
8598 cat >conftest.$ac_ext <<_ACEOF
8599 /* confdefs.h. */
8600 _ACEOF
8601 cat confdefs.h >>conftest.$ac_ext
8602 cat >>conftest.$ac_ext <<_ACEOF
8603 /* end confdefs.h. */
8604 $ac_includes_default
8606 main ()
8608 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
8609 test_array [0] = 0
8612 return 0;
8614 _ACEOF
8615 rm -f conftest.$ac_objext
8616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8617 (eval $ac_compile) 2>conftest.er1
8618 ac_status=$?
8619 grep -v '^ *+' conftest.er1 >conftest.err
8620 rm -f conftest.er1
8621 cat conftest.err >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); } &&
8624 { ac_try='test -z "$ac_c_werror_flag"
8625 || test ! -s conftest.err'
8626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8627 (eval $ac_try) 2>&5
8628 ac_status=$?
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); }; } &&
8631 { ac_try='test -s conftest.$ac_objext'
8632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8633 (eval $ac_try) 2>&5
8634 ac_status=$?
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; }; then
8637 ac_hi=-1 ac_mid=-1
8638 while :; do
8639 cat >conftest.$ac_ext <<_ACEOF
8640 /* confdefs.h. */
8641 _ACEOF
8642 cat confdefs.h >>conftest.$ac_ext
8643 cat >>conftest.$ac_ext <<_ACEOF
8644 /* end confdefs.h. */
8645 $ac_includes_default
8647 main ()
8649 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
8650 test_array [0] = 0
8653 return 0;
8655 _ACEOF
8656 rm -f conftest.$ac_objext
8657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8658 (eval $ac_compile) 2>conftest.er1
8659 ac_status=$?
8660 grep -v '^ *+' conftest.er1 >conftest.err
8661 rm -f conftest.er1
8662 cat conftest.err >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } &&
8665 { ac_try='test -z "$ac_c_werror_flag"
8666 || test ! -s conftest.err'
8667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8668 (eval $ac_try) 2>&5
8669 ac_status=$?
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); }; } &&
8672 { ac_try='test -s conftest.$ac_objext'
8673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8674 (eval $ac_try) 2>&5
8675 ac_status=$?
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); }; }; then
8678 ac_lo=$ac_mid; break
8679 else
8680 echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8683 ac_hi=`expr '(' $ac_mid ')' - 1`
8684 if test $ac_mid -le $ac_hi; then
8685 ac_lo= ac_hi=
8686 break
8688 ac_mid=`expr 2 '*' $ac_mid`
8690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8691 done
8692 else
8693 echo "$as_me: failed program was:" >&5
8694 sed 's/^/| /' conftest.$ac_ext >&5
8696 ac_lo= ac_hi=
8698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8701 # Binary search between lo and hi bounds.
8702 while test "x$ac_lo" != "x$ac_hi"; do
8703 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8704 cat >conftest.$ac_ext <<_ACEOF
8705 /* confdefs.h. */
8706 _ACEOF
8707 cat confdefs.h >>conftest.$ac_ext
8708 cat >>conftest.$ac_ext <<_ACEOF
8709 /* end confdefs.h. */
8710 $ac_includes_default
8712 main ()
8714 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8715 test_array [0] = 0
8718 return 0;
8720 _ACEOF
8721 rm -f conftest.$ac_objext
8722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8723 (eval $ac_compile) 2>conftest.er1
8724 ac_status=$?
8725 grep -v '^ *+' conftest.er1 >conftest.err
8726 rm -f conftest.er1
8727 cat conftest.err >&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); } &&
8730 { ac_try='test -z "$ac_c_werror_flag"
8731 || test ! -s conftest.err'
8732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8733 (eval $ac_try) 2>&5
8734 ac_status=$?
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); }; } &&
8737 { ac_try='test -s conftest.$ac_objext'
8738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8739 (eval $ac_try) 2>&5
8740 ac_status=$?
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); }; }; then
8743 ac_hi=$ac_mid
8744 else
8745 echo "$as_me: failed program was:" >&5
8746 sed 's/^/| /' conftest.$ac_ext >&5
8748 ac_lo=`expr '(' $ac_mid ')' + 1`
8750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8751 done
8752 case $ac_lo in
8753 ?*) ac_cv_sizeof_double=$ac_lo;;
8754 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8755 See \`config.log' for more details." >&5
8756 echo "$as_me: error: cannot compute sizeof (double), 77
8757 See \`config.log' for more details." >&2;}
8758 { (exit 1); exit 1; }; } ;;
8759 esac
8760 else
8761 if test "$cross_compiling" = yes; then
8762 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8763 See \`config.log' for more details." >&5
8764 echo "$as_me: error: cannot run test program while cross compiling
8765 See \`config.log' for more details." >&2;}
8766 { (exit 1); exit 1; }; }
8767 else
8768 cat >conftest.$ac_ext <<_ACEOF
8769 /* confdefs.h. */
8770 _ACEOF
8771 cat confdefs.h >>conftest.$ac_ext
8772 cat >>conftest.$ac_ext <<_ACEOF
8773 /* end confdefs.h. */
8774 $ac_includes_default
8775 long longval () { return (long) (sizeof (double)); }
8776 unsigned long ulongval () { return (long) (sizeof (double)); }
8777 #include <stdio.h>
8778 #include <stdlib.h>
8780 main ()
8783 FILE *f = fopen ("conftest.val", "w");
8784 if (! f)
8785 exit (1);
8786 if (((long) (sizeof (double))) < 0)
8788 long i = longval ();
8789 if (i != ((long) (sizeof (double))))
8790 exit (1);
8791 fprintf (f, "%ld\n", i);
8793 else
8795 unsigned long i = ulongval ();
8796 if (i != ((long) (sizeof (double))))
8797 exit (1);
8798 fprintf (f, "%lu\n", i);
8800 exit (ferror (f) || fclose (f) != 0);
8803 return 0;
8805 _ACEOF
8806 rm -f conftest$ac_exeext
8807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8808 (eval $ac_link) 2>&5
8809 ac_status=$?
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813 (eval $ac_try) 2>&5
8814 ac_status=$?
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); }; }; then
8817 ac_cv_sizeof_double=`cat conftest.val`
8818 else
8819 echo "$as_me: program exited with status $ac_status" >&5
8820 echo "$as_me: failed program was:" >&5
8821 sed 's/^/| /' conftest.$ac_ext >&5
8823 ( exit $ac_status )
8824 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8825 See \`config.log' for more details." >&5
8826 echo "$as_me: error: cannot compute sizeof (double), 77
8827 See \`config.log' for more details." >&2;}
8828 { (exit 1); exit 1; }; }
8830 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8833 rm -f conftest.val
8834 else
8835 ac_cv_sizeof_double=0
8838 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
8839 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
8840 cat >>confdefs.h <<_ACEOF
8841 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8842 _ACEOF
8845 echo "$as_me:$LINENO: checking for fpos_t" >&5
8846 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
8847 if test "${ac_cv_type_fpos_t+set}" = set; then
8848 echo $ECHO_N "(cached) $ECHO_C" >&6
8849 else
8850 cat >conftest.$ac_ext <<_ACEOF
8851 /* confdefs.h. */
8852 _ACEOF
8853 cat confdefs.h >>conftest.$ac_ext
8854 cat >>conftest.$ac_ext <<_ACEOF
8855 /* end confdefs.h. */
8856 $ac_includes_default
8858 main ()
8860 if ((fpos_t *) 0)
8861 return 0;
8862 if (sizeof (fpos_t))
8863 return 0;
8865 return 0;
8867 _ACEOF
8868 rm -f conftest.$ac_objext
8869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8870 (eval $ac_compile) 2>conftest.er1
8871 ac_status=$?
8872 grep -v '^ *+' conftest.er1 >conftest.err
8873 rm -f conftest.er1
8874 cat conftest.err >&5
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); } &&
8877 { ac_try='test -z "$ac_c_werror_flag"
8878 || test ! -s conftest.err'
8879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880 (eval $ac_try) 2>&5
8881 ac_status=$?
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); }; } &&
8884 { ac_try='test -s conftest.$ac_objext'
8885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8886 (eval $ac_try) 2>&5
8887 ac_status=$?
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); }; }; then
8890 ac_cv_type_fpos_t=yes
8891 else
8892 echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.$ac_ext >&5
8895 ac_cv_type_fpos_t=no
8897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8899 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
8900 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
8902 echo "$as_me:$LINENO: checking size of fpos_t" >&5
8903 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8904 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8905 echo $ECHO_N "(cached) $ECHO_C" >&6
8906 else
8907 if test "$ac_cv_type_fpos_t" = yes; then
8908 # The cast to unsigned long works around a bug in the HP C Compiler
8909 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8910 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8911 # This bug is HP SR number 8606223364.
8912 if test "$cross_compiling" = yes; then
8913 # Depending upon the size, compute the lo and hi bounds.
8914 cat >conftest.$ac_ext <<_ACEOF
8915 /* confdefs.h. */
8916 _ACEOF
8917 cat confdefs.h >>conftest.$ac_ext
8918 cat >>conftest.$ac_ext <<_ACEOF
8919 /* end confdefs.h. */
8920 $ac_includes_default
8922 main ()
8924 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8925 test_array [0] = 0
8928 return 0;
8930 _ACEOF
8931 rm -f conftest.$ac_objext
8932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8933 (eval $ac_compile) 2>conftest.er1
8934 ac_status=$?
8935 grep -v '^ *+' conftest.er1 >conftest.err
8936 rm -f conftest.er1
8937 cat conftest.err >&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } &&
8940 { ac_try='test -z "$ac_c_werror_flag"
8941 || test ! -s conftest.err'
8942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8943 (eval $ac_try) 2>&5
8944 ac_status=$?
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); }; } &&
8947 { ac_try='test -s conftest.$ac_objext'
8948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8949 (eval $ac_try) 2>&5
8950 ac_status=$?
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); }; }; then
8953 ac_lo=0 ac_mid=0
8954 while :; do
8955 cat >conftest.$ac_ext <<_ACEOF
8956 /* confdefs.h. */
8957 _ACEOF
8958 cat confdefs.h >>conftest.$ac_ext
8959 cat >>conftest.$ac_ext <<_ACEOF
8960 /* end confdefs.h. */
8961 $ac_includes_default
8963 main ()
8965 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8966 test_array [0] = 0
8969 return 0;
8971 _ACEOF
8972 rm -f conftest.$ac_objext
8973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8974 (eval $ac_compile) 2>conftest.er1
8975 ac_status=$?
8976 grep -v '^ *+' conftest.er1 >conftest.err
8977 rm -f conftest.er1
8978 cat conftest.err >&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); } &&
8981 { ac_try='test -z "$ac_c_werror_flag"
8982 || test ! -s conftest.err'
8983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984 (eval $ac_try) 2>&5
8985 ac_status=$?
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); }; } &&
8988 { ac_try='test -s conftest.$ac_objext'
8989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990 (eval $ac_try) 2>&5
8991 ac_status=$?
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }; }; then
8994 ac_hi=$ac_mid; break
8995 else
8996 echo "$as_me: failed program was:" >&5
8997 sed 's/^/| /' conftest.$ac_ext >&5
8999 ac_lo=`expr $ac_mid + 1`
9000 if test $ac_lo -le $ac_mid; then
9001 ac_lo= ac_hi=
9002 break
9004 ac_mid=`expr 2 '*' $ac_mid + 1`
9006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9007 done
9008 else
9009 echo "$as_me: failed program was:" >&5
9010 sed 's/^/| /' conftest.$ac_ext >&5
9012 cat >conftest.$ac_ext <<_ACEOF
9013 /* confdefs.h. */
9014 _ACEOF
9015 cat confdefs.h >>conftest.$ac_ext
9016 cat >>conftest.$ac_ext <<_ACEOF
9017 /* end confdefs.h. */
9018 $ac_includes_default
9020 main ()
9022 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
9023 test_array [0] = 0
9026 return 0;
9028 _ACEOF
9029 rm -f conftest.$ac_objext
9030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9031 (eval $ac_compile) 2>conftest.er1
9032 ac_status=$?
9033 grep -v '^ *+' conftest.er1 >conftest.err
9034 rm -f conftest.er1
9035 cat conftest.err >&5
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); } &&
9038 { ac_try='test -z "$ac_c_werror_flag"
9039 || test ! -s conftest.err'
9040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9041 (eval $ac_try) 2>&5
9042 ac_status=$?
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); }; } &&
9045 { ac_try='test -s conftest.$ac_objext'
9046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9047 (eval $ac_try) 2>&5
9048 ac_status=$?
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); }; }; then
9051 ac_hi=-1 ac_mid=-1
9052 while :; do
9053 cat >conftest.$ac_ext <<_ACEOF
9054 /* confdefs.h. */
9055 _ACEOF
9056 cat confdefs.h >>conftest.$ac_ext
9057 cat >>conftest.$ac_ext <<_ACEOF
9058 /* end confdefs.h. */
9059 $ac_includes_default
9061 main ()
9063 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
9064 test_array [0] = 0
9067 return 0;
9069 _ACEOF
9070 rm -f conftest.$ac_objext
9071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9072 (eval $ac_compile) 2>conftest.er1
9073 ac_status=$?
9074 grep -v '^ *+' conftest.er1 >conftest.err
9075 rm -f conftest.er1
9076 cat conftest.err >&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); } &&
9079 { ac_try='test -z "$ac_c_werror_flag"
9080 || test ! -s conftest.err'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082 (eval $ac_try) 2>&5
9083 ac_status=$?
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; } &&
9086 { ac_try='test -s conftest.$ac_objext'
9087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9088 (eval $ac_try) 2>&5
9089 ac_status=$?
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); }; }; then
9092 ac_lo=$ac_mid; break
9093 else
9094 echo "$as_me: failed program was:" >&5
9095 sed 's/^/| /' conftest.$ac_ext >&5
9097 ac_hi=`expr '(' $ac_mid ')' - 1`
9098 if test $ac_mid -le $ac_hi; then
9099 ac_lo= ac_hi=
9100 break
9102 ac_mid=`expr 2 '*' $ac_mid`
9104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9105 done
9106 else
9107 echo "$as_me: failed program was:" >&5
9108 sed 's/^/| /' conftest.$ac_ext >&5
9110 ac_lo= ac_hi=
9112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9115 # Binary search between lo and hi bounds.
9116 while test "x$ac_lo" != "x$ac_hi"; do
9117 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9118 cat >conftest.$ac_ext <<_ACEOF
9119 /* confdefs.h. */
9120 _ACEOF
9121 cat confdefs.h >>conftest.$ac_ext
9122 cat >>conftest.$ac_ext <<_ACEOF
9123 /* end confdefs.h. */
9124 $ac_includes_default
9126 main ()
9128 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
9129 test_array [0] = 0
9132 return 0;
9134 _ACEOF
9135 rm -f conftest.$ac_objext
9136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9137 (eval $ac_compile) 2>conftest.er1
9138 ac_status=$?
9139 grep -v '^ *+' conftest.er1 >conftest.err
9140 rm -f conftest.er1
9141 cat conftest.err >&5
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); } &&
9144 { ac_try='test -z "$ac_c_werror_flag"
9145 || test ! -s conftest.err'
9146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9147 (eval $ac_try) 2>&5
9148 ac_status=$?
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); }; } &&
9151 { ac_try='test -s conftest.$ac_objext'
9152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9153 (eval $ac_try) 2>&5
9154 ac_status=$?
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); }; }; then
9157 ac_hi=$ac_mid
9158 else
9159 echo "$as_me: failed program was:" >&5
9160 sed 's/^/| /' conftest.$ac_ext >&5
9162 ac_lo=`expr '(' $ac_mid ')' + 1`
9164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9165 done
9166 case $ac_lo in
9167 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9168 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9169 See \`config.log' for more details." >&5
9170 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9171 See \`config.log' for more details." >&2;}
9172 { (exit 1); exit 1; }; } ;;
9173 esac
9174 else
9175 if test "$cross_compiling" = yes; then
9176 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9177 See \`config.log' for more details." >&5
9178 echo "$as_me: error: cannot run test program while cross compiling
9179 See \`config.log' for more details." >&2;}
9180 { (exit 1); exit 1; }; }
9181 else
9182 cat >conftest.$ac_ext <<_ACEOF
9183 /* confdefs.h. */
9184 _ACEOF
9185 cat confdefs.h >>conftest.$ac_ext
9186 cat >>conftest.$ac_ext <<_ACEOF
9187 /* end confdefs.h. */
9188 $ac_includes_default
9189 long longval () { return (long) (sizeof (fpos_t)); }
9190 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
9191 #include <stdio.h>
9192 #include <stdlib.h>
9194 main ()
9197 FILE *f = fopen ("conftest.val", "w");
9198 if (! f)
9199 exit (1);
9200 if (((long) (sizeof (fpos_t))) < 0)
9202 long i = longval ();
9203 if (i != ((long) (sizeof (fpos_t))))
9204 exit (1);
9205 fprintf (f, "%ld\n", i);
9207 else
9209 unsigned long i = ulongval ();
9210 if (i != ((long) (sizeof (fpos_t))))
9211 exit (1);
9212 fprintf (f, "%lu\n", i);
9214 exit (ferror (f) || fclose (f) != 0);
9217 return 0;
9219 _ACEOF
9220 rm -f conftest$ac_exeext
9221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9222 (eval $ac_link) 2>&5
9223 ac_status=$?
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9227 (eval $ac_try) 2>&5
9228 ac_status=$?
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); }; }; then
9231 ac_cv_sizeof_fpos_t=`cat conftest.val`
9232 else
9233 echo "$as_me: program exited with status $ac_status" >&5
9234 echo "$as_me: failed program was:" >&5
9235 sed 's/^/| /' conftest.$ac_ext >&5
9237 ( exit $ac_status )
9238 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9239 See \`config.log' for more details." >&5
9240 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9241 See \`config.log' for more details." >&2;}
9242 { (exit 1); exit 1; }; }
9244 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9247 rm -f conftest.val
9248 else
9249 ac_cv_sizeof_fpos_t=0
9252 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9253 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
9254 cat >>confdefs.h <<_ACEOF
9255 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9256 _ACEOF
9259 echo "$as_me:$LINENO: checking for size_t" >&5
9260 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9261 if test "${ac_cv_type_size_t+set}" = set; then
9262 echo $ECHO_N "(cached) $ECHO_C" >&6
9263 else
9264 cat >conftest.$ac_ext <<_ACEOF
9265 /* confdefs.h. */
9266 _ACEOF
9267 cat confdefs.h >>conftest.$ac_ext
9268 cat >>conftest.$ac_ext <<_ACEOF
9269 /* end confdefs.h. */
9270 $ac_includes_default
9272 main ()
9274 if ((size_t *) 0)
9275 return 0;
9276 if (sizeof (size_t))
9277 return 0;
9279 return 0;
9281 _ACEOF
9282 rm -f conftest.$ac_objext
9283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9284 (eval $ac_compile) 2>conftest.er1
9285 ac_status=$?
9286 grep -v '^ *+' conftest.er1 >conftest.err
9287 rm -f conftest.er1
9288 cat conftest.err >&5
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); } &&
9291 { ac_try='test -z "$ac_c_werror_flag"
9292 || test ! -s conftest.err'
9293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9294 (eval $ac_try) 2>&5
9295 ac_status=$?
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); }; } &&
9298 { ac_try='test -s conftest.$ac_objext'
9299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300 (eval $ac_try) 2>&5
9301 ac_status=$?
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); }; }; then
9304 ac_cv_type_size_t=yes
9305 else
9306 echo "$as_me: failed program was:" >&5
9307 sed 's/^/| /' conftest.$ac_ext >&5
9309 ac_cv_type_size_t=no
9311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9313 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9314 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9316 echo "$as_me:$LINENO: checking size of size_t" >&5
9317 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
9318 if test "${ac_cv_sizeof_size_t+set}" = set; then
9319 echo $ECHO_N "(cached) $ECHO_C" >&6
9320 else
9321 if test "$ac_cv_type_size_t" = yes; then
9322 # The cast to unsigned long works around a bug in the HP C Compiler
9323 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9324 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9325 # This bug is HP SR number 8606223364.
9326 if test "$cross_compiling" = yes; then
9327 # Depending upon the size, compute the lo and hi bounds.
9328 cat >conftest.$ac_ext <<_ACEOF
9329 /* confdefs.h. */
9330 _ACEOF
9331 cat confdefs.h >>conftest.$ac_ext
9332 cat >>conftest.$ac_ext <<_ACEOF
9333 /* end confdefs.h. */
9334 $ac_includes_default
9336 main ()
9338 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
9339 test_array [0] = 0
9342 return 0;
9344 _ACEOF
9345 rm -f conftest.$ac_objext
9346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9347 (eval $ac_compile) 2>conftest.er1
9348 ac_status=$?
9349 grep -v '^ *+' conftest.er1 >conftest.err
9350 rm -f conftest.er1
9351 cat conftest.err >&5
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); } &&
9354 { ac_try='test -z "$ac_c_werror_flag"
9355 || test ! -s conftest.err'
9356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9357 (eval $ac_try) 2>&5
9358 ac_status=$?
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); }; } &&
9361 { ac_try='test -s conftest.$ac_objext'
9362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363 (eval $ac_try) 2>&5
9364 ac_status=$?
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); }; }; then
9367 ac_lo=0 ac_mid=0
9368 while :; do
9369 cat >conftest.$ac_ext <<_ACEOF
9370 /* confdefs.h. */
9371 _ACEOF
9372 cat confdefs.h >>conftest.$ac_ext
9373 cat >>conftest.$ac_ext <<_ACEOF
9374 /* end confdefs.h. */
9375 $ac_includes_default
9377 main ()
9379 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9380 test_array [0] = 0
9383 return 0;
9385 _ACEOF
9386 rm -f conftest.$ac_objext
9387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9388 (eval $ac_compile) 2>conftest.er1
9389 ac_status=$?
9390 grep -v '^ *+' conftest.er1 >conftest.err
9391 rm -f conftest.er1
9392 cat conftest.err >&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); } &&
9395 { ac_try='test -z "$ac_c_werror_flag"
9396 || test ! -s conftest.err'
9397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398 (eval $ac_try) 2>&5
9399 ac_status=$?
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); }; } &&
9402 { ac_try='test -s conftest.$ac_objext'
9403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9404 (eval $ac_try) 2>&5
9405 ac_status=$?
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); }; }; then
9408 ac_hi=$ac_mid; break
9409 else
9410 echo "$as_me: failed program was:" >&5
9411 sed 's/^/| /' conftest.$ac_ext >&5
9413 ac_lo=`expr $ac_mid + 1`
9414 if test $ac_lo -le $ac_mid; then
9415 ac_lo= ac_hi=
9416 break
9418 ac_mid=`expr 2 '*' $ac_mid + 1`
9420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9421 done
9422 else
9423 echo "$as_me: failed program was:" >&5
9424 sed 's/^/| /' conftest.$ac_ext >&5
9426 cat >conftest.$ac_ext <<_ACEOF
9427 /* confdefs.h. */
9428 _ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9432 $ac_includes_default
9434 main ()
9436 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
9437 test_array [0] = 0
9440 return 0;
9442 _ACEOF
9443 rm -f conftest.$ac_objext
9444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9445 (eval $ac_compile) 2>conftest.er1
9446 ac_status=$?
9447 grep -v '^ *+' conftest.er1 >conftest.err
9448 rm -f conftest.er1
9449 cat conftest.err >&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); } &&
9452 { ac_try='test -z "$ac_c_werror_flag"
9453 || test ! -s conftest.err'
9454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9455 (eval $ac_try) 2>&5
9456 ac_status=$?
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); }; } &&
9459 { ac_try='test -s conftest.$ac_objext'
9460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9461 (eval $ac_try) 2>&5
9462 ac_status=$?
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); }; }; then
9465 ac_hi=-1 ac_mid=-1
9466 while :; do
9467 cat >conftest.$ac_ext <<_ACEOF
9468 /* confdefs.h. */
9469 _ACEOF
9470 cat confdefs.h >>conftest.$ac_ext
9471 cat >>conftest.$ac_ext <<_ACEOF
9472 /* end confdefs.h. */
9473 $ac_includes_default
9475 main ()
9477 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
9478 test_array [0] = 0
9481 return 0;
9483 _ACEOF
9484 rm -f conftest.$ac_objext
9485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9486 (eval $ac_compile) 2>conftest.er1
9487 ac_status=$?
9488 grep -v '^ *+' conftest.er1 >conftest.err
9489 rm -f conftest.er1
9490 cat conftest.err >&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); } &&
9493 { ac_try='test -z "$ac_c_werror_flag"
9494 || test ! -s conftest.err'
9495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9496 (eval $ac_try) 2>&5
9497 ac_status=$?
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); }; } &&
9500 { ac_try='test -s conftest.$ac_objext'
9501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9502 (eval $ac_try) 2>&5
9503 ac_status=$?
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); }; }; then
9506 ac_lo=$ac_mid; break
9507 else
9508 echo "$as_me: failed program was:" >&5
9509 sed 's/^/| /' conftest.$ac_ext >&5
9511 ac_hi=`expr '(' $ac_mid ')' - 1`
9512 if test $ac_mid -le $ac_hi; then
9513 ac_lo= ac_hi=
9514 break
9516 ac_mid=`expr 2 '*' $ac_mid`
9518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9519 done
9520 else
9521 echo "$as_me: failed program was:" >&5
9522 sed 's/^/| /' conftest.$ac_ext >&5
9524 ac_lo= ac_hi=
9526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9529 # Binary search between lo and hi bounds.
9530 while test "x$ac_lo" != "x$ac_hi"; do
9531 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9532 cat >conftest.$ac_ext <<_ACEOF
9533 /* confdefs.h. */
9534 _ACEOF
9535 cat confdefs.h >>conftest.$ac_ext
9536 cat >>conftest.$ac_ext <<_ACEOF
9537 /* end confdefs.h. */
9538 $ac_includes_default
9540 main ()
9542 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9543 test_array [0] = 0
9546 return 0;
9548 _ACEOF
9549 rm -f conftest.$ac_objext
9550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9551 (eval $ac_compile) 2>conftest.er1
9552 ac_status=$?
9553 grep -v '^ *+' conftest.er1 >conftest.err
9554 rm -f conftest.er1
9555 cat conftest.err >&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); } &&
9558 { ac_try='test -z "$ac_c_werror_flag"
9559 || test ! -s conftest.err'
9560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9561 (eval $ac_try) 2>&5
9562 ac_status=$?
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); }; } &&
9565 { ac_try='test -s conftest.$ac_objext'
9566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567 (eval $ac_try) 2>&5
9568 ac_status=$?
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); }; }; then
9571 ac_hi=$ac_mid
9572 else
9573 echo "$as_me: failed program was:" >&5
9574 sed 's/^/| /' conftest.$ac_ext >&5
9576 ac_lo=`expr '(' $ac_mid ')' + 1`
9578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9579 done
9580 case $ac_lo in
9581 ?*) ac_cv_sizeof_size_t=$ac_lo;;
9582 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9583 See \`config.log' for more details." >&5
9584 echo "$as_me: error: cannot compute sizeof (size_t), 77
9585 See \`config.log' for more details." >&2;}
9586 { (exit 1); exit 1; }; } ;;
9587 esac
9588 else
9589 if test "$cross_compiling" = yes; then
9590 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9591 See \`config.log' for more details." >&5
9592 echo "$as_me: error: cannot run test program while cross compiling
9593 See \`config.log' for more details." >&2;}
9594 { (exit 1); exit 1; }; }
9595 else
9596 cat >conftest.$ac_ext <<_ACEOF
9597 /* confdefs.h. */
9598 _ACEOF
9599 cat confdefs.h >>conftest.$ac_ext
9600 cat >>conftest.$ac_ext <<_ACEOF
9601 /* end confdefs.h. */
9602 $ac_includes_default
9603 long longval () { return (long) (sizeof (size_t)); }
9604 unsigned long ulongval () { return (long) (sizeof (size_t)); }
9605 #include <stdio.h>
9606 #include <stdlib.h>
9608 main ()
9611 FILE *f = fopen ("conftest.val", "w");
9612 if (! f)
9613 exit (1);
9614 if (((long) (sizeof (size_t))) < 0)
9616 long i = longval ();
9617 if (i != ((long) (sizeof (size_t))))
9618 exit (1);
9619 fprintf (f, "%ld\n", i);
9621 else
9623 unsigned long i = ulongval ();
9624 if (i != ((long) (sizeof (size_t))))
9625 exit (1);
9626 fprintf (f, "%lu\n", i);
9628 exit (ferror (f) || fclose (f) != 0);
9631 return 0;
9633 _ACEOF
9634 rm -f conftest$ac_exeext
9635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9636 (eval $ac_link) 2>&5
9637 ac_status=$?
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9641 (eval $ac_try) 2>&5
9642 ac_status=$?
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); }; }; then
9645 ac_cv_sizeof_size_t=`cat conftest.val`
9646 else
9647 echo "$as_me: program exited with status $ac_status" >&5
9648 echo "$as_me: failed program was:" >&5
9649 sed 's/^/| /' conftest.$ac_ext >&5
9651 ( exit $ac_status )
9652 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9653 See \`config.log' for more details." >&5
9654 echo "$as_me: error: cannot compute sizeof (size_t), 77
9655 See \`config.log' for more details." >&2;}
9656 { (exit 1); exit 1; }; }
9658 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9661 rm -f conftest.val
9662 else
9663 ac_cv_sizeof_size_t=0
9666 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
9667 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
9668 cat >>confdefs.h <<_ACEOF
9669 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9670 _ACEOF
9674 echo "$as_me:$LINENO: checking for long long support" >&5
9675 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
9676 have_long_long=no
9677 cat >conftest.$ac_ext <<_ACEOF
9678 /* confdefs.h. */
9679 _ACEOF
9680 cat confdefs.h >>conftest.$ac_ext
9681 cat >>conftest.$ac_ext <<_ACEOF
9682 /* end confdefs.h. */
9685 main ()
9687 long long x; x = (long long)0;
9689 return 0;
9691 _ACEOF
9692 rm -f conftest.$ac_objext
9693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9694 (eval $ac_compile) 2>conftest.er1
9695 ac_status=$?
9696 grep -v '^ *+' conftest.er1 >conftest.err
9697 rm -f conftest.er1
9698 cat conftest.err >&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); } &&
9701 { ac_try='test -z "$ac_c_werror_flag"
9702 || test ! -s conftest.err'
9703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704 (eval $ac_try) 2>&5
9705 ac_status=$?
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); }; } &&
9708 { ac_try='test -s conftest.$ac_objext'
9709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710 (eval $ac_try) 2>&5
9711 ac_status=$?
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; }; then
9716 cat >>confdefs.h <<\_ACEOF
9717 #define HAVE_LONG_LONG 1
9718 _ACEOF
9720 have_long_long=yes
9722 else
9723 echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.$ac_ext >&5
9727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9728 echo "$as_me:$LINENO: result: $have_long_long" >&5
9729 echo "${ECHO_T}$have_long_long" >&6
9730 if test "$have_long_long" = yes ; then
9731 echo "$as_me:$LINENO: checking for long long" >&5
9732 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9733 if test "${ac_cv_type_long_long+set}" = set; then
9734 echo $ECHO_N "(cached) $ECHO_C" >&6
9735 else
9736 cat >conftest.$ac_ext <<_ACEOF
9737 /* confdefs.h. */
9738 _ACEOF
9739 cat confdefs.h >>conftest.$ac_ext
9740 cat >>conftest.$ac_ext <<_ACEOF
9741 /* end confdefs.h. */
9742 $ac_includes_default
9744 main ()
9746 if ((long long *) 0)
9747 return 0;
9748 if (sizeof (long long))
9749 return 0;
9751 return 0;
9753 _ACEOF
9754 rm -f conftest.$ac_objext
9755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9756 (eval $ac_compile) 2>conftest.er1
9757 ac_status=$?
9758 grep -v '^ *+' conftest.er1 >conftest.err
9759 rm -f conftest.er1
9760 cat conftest.err >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } &&
9763 { ac_try='test -z "$ac_c_werror_flag"
9764 || test ! -s conftest.err'
9765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766 (eval $ac_try) 2>&5
9767 ac_status=$?
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; } &&
9770 { ac_try='test -s conftest.$ac_objext'
9771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772 (eval $ac_try) 2>&5
9773 ac_status=$?
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; }; then
9776 ac_cv_type_long_long=yes
9777 else
9778 echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.$ac_ext >&5
9781 ac_cv_type_long_long=no
9783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9785 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9786 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9788 echo "$as_me:$LINENO: checking size of long long" >&5
9789 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9790 if test "${ac_cv_sizeof_long_long+set}" = set; then
9791 echo $ECHO_N "(cached) $ECHO_C" >&6
9792 else
9793 if test "$ac_cv_type_long_long" = yes; then
9794 # The cast to unsigned long works around a bug in the HP C Compiler
9795 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9796 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9797 # This bug is HP SR number 8606223364.
9798 if test "$cross_compiling" = yes; then
9799 # Depending upon the size, compute the lo and hi bounds.
9800 cat >conftest.$ac_ext <<_ACEOF
9801 /* confdefs.h. */
9802 _ACEOF
9803 cat confdefs.h >>conftest.$ac_ext
9804 cat >>conftest.$ac_ext <<_ACEOF
9805 /* end confdefs.h. */
9806 $ac_includes_default
9808 main ()
9810 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9811 test_array [0] = 0
9814 return 0;
9816 _ACEOF
9817 rm -f conftest.$ac_objext
9818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9819 (eval $ac_compile) 2>conftest.er1
9820 ac_status=$?
9821 grep -v '^ *+' conftest.er1 >conftest.err
9822 rm -f conftest.er1
9823 cat conftest.err >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); } &&
9826 { ac_try='test -z "$ac_c_werror_flag"
9827 || test ! -s conftest.err'
9828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9829 (eval $ac_try) 2>&5
9830 ac_status=$?
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; } &&
9833 { ac_try='test -s conftest.$ac_objext'
9834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9835 (eval $ac_try) 2>&5
9836 ac_status=$?
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }; }; then
9839 ac_lo=0 ac_mid=0
9840 while :; do
9841 cat >conftest.$ac_ext <<_ACEOF
9842 /* confdefs.h. */
9843 _ACEOF
9844 cat confdefs.h >>conftest.$ac_ext
9845 cat >>conftest.$ac_ext <<_ACEOF
9846 /* end confdefs.h. */
9847 $ac_includes_default
9849 main ()
9851 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9852 test_array [0] = 0
9855 return 0;
9857 _ACEOF
9858 rm -f conftest.$ac_objext
9859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9860 (eval $ac_compile) 2>conftest.er1
9861 ac_status=$?
9862 grep -v '^ *+' conftest.er1 >conftest.err
9863 rm -f conftest.er1
9864 cat conftest.err >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } &&
9867 { ac_try='test -z "$ac_c_werror_flag"
9868 || test ! -s conftest.err'
9869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9870 (eval $ac_try) 2>&5
9871 ac_status=$?
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); }; } &&
9874 { ac_try='test -s conftest.$ac_objext'
9875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9876 (eval $ac_try) 2>&5
9877 ac_status=$?
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); }; }; then
9880 ac_hi=$ac_mid; break
9881 else
9882 echo "$as_me: failed program was:" >&5
9883 sed 's/^/| /' conftest.$ac_ext >&5
9885 ac_lo=`expr $ac_mid + 1`
9886 if test $ac_lo -le $ac_mid; then
9887 ac_lo= ac_hi=
9888 break
9890 ac_mid=`expr 2 '*' $ac_mid + 1`
9892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9893 done
9894 else
9895 echo "$as_me: failed program was:" >&5
9896 sed 's/^/| /' conftest.$ac_ext >&5
9898 cat >conftest.$ac_ext <<_ACEOF
9899 /* confdefs.h. */
9900 _ACEOF
9901 cat confdefs.h >>conftest.$ac_ext
9902 cat >>conftest.$ac_ext <<_ACEOF
9903 /* end confdefs.h. */
9904 $ac_includes_default
9906 main ()
9908 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9909 test_array [0] = 0
9912 return 0;
9914 _ACEOF
9915 rm -f conftest.$ac_objext
9916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9917 (eval $ac_compile) 2>conftest.er1
9918 ac_status=$?
9919 grep -v '^ *+' conftest.er1 >conftest.err
9920 rm -f conftest.er1
9921 cat conftest.err >&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); } &&
9924 { ac_try='test -z "$ac_c_werror_flag"
9925 || test ! -s conftest.err'
9926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9927 (eval $ac_try) 2>&5
9928 ac_status=$?
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); }; } &&
9931 { ac_try='test -s conftest.$ac_objext'
9932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9933 (eval $ac_try) 2>&5
9934 ac_status=$?
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; }; then
9937 ac_hi=-1 ac_mid=-1
9938 while :; do
9939 cat >conftest.$ac_ext <<_ACEOF
9940 /* confdefs.h. */
9941 _ACEOF
9942 cat confdefs.h >>conftest.$ac_ext
9943 cat >>conftest.$ac_ext <<_ACEOF
9944 /* end confdefs.h. */
9945 $ac_includes_default
9947 main ()
9949 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9950 test_array [0] = 0
9953 return 0;
9955 _ACEOF
9956 rm -f conftest.$ac_objext
9957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9958 (eval $ac_compile) 2>conftest.er1
9959 ac_status=$?
9960 grep -v '^ *+' conftest.er1 >conftest.err
9961 rm -f conftest.er1
9962 cat conftest.err >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } &&
9965 { ac_try='test -z "$ac_c_werror_flag"
9966 || test ! -s conftest.err'
9967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968 (eval $ac_try) 2>&5
9969 ac_status=$?
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; } &&
9972 { ac_try='test -s conftest.$ac_objext'
9973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974 (eval $ac_try) 2>&5
9975 ac_status=$?
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; }; then
9978 ac_lo=$ac_mid; break
9979 else
9980 echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.$ac_ext >&5
9983 ac_hi=`expr '(' $ac_mid ')' - 1`
9984 if test $ac_mid -le $ac_hi; then
9985 ac_lo= ac_hi=
9986 break
9988 ac_mid=`expr 2 '*' $ac_mid`
9990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9991 done
9992 else
9993 echo "$as_me: failed program was:" >&5
9994 sed 's/^/| /' conftest.$ac_ext >&5
9996 ac_lo= ac_hi=
9998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10001 # Binary search between lo and hi bounds.
10002 while test "x$ac_lo" != "x$ac_hi"; do
10003 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10004 cat >conftest.$ac_ext <<_ACEOF
10005 /* confdefs.h. */
10006 _ACEOF
10007 cat confdefs.h >>conftest.$ac_ext
10008 cat >>conftest.$ac_ext <<_ACEOF
10009 /* end confdefs.h. */
10010 $ac_includes_default
10012 main ()
10014 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
10015 test_array [0] = 0
10018 return 0;
10020 _ACEOF
10021 rm -f conftest.$ac_objext
10022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10023 (eval $ac_compile) 2>conftest.er1
10024 ac_status=$?
10025 grep -v '^ *+' conftest.er1 >conftest.err
10026 rm -f conftest.er1
10027 cat conftest.err >&5
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); } &&
10030 { ac_try='test -z "$ac_c_werror_flag"
10031 || test ! -s conftest.err'
10032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033 (eval $ac_try) 2>&5
10034 ac_status=$?
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; } &&
10037 { ac_try='test -s conftest.$ac_objext'
10038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10039 (eval $ac_try) 2>&5
10040 ac_status=$?
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); }; }; then
10043 ac_hi=$ac_mid
10044 else
10045 echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.$ac_ext >&5
10048 ac_lo=`expr '(' $ac_mid ')' + 1`
10050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10051 done
10052 case $ac_lo in
10053 ?*) ac_cv_sizeof_long_long=$ac_lo;;
10054 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10055 See \`config.log' for more details." >&5
10056 echo "$as_me: error: cannot compute sizeof (long long), 77
10057 See \`config.log' for more details." >&2;}
10058 { (exit 1); exit 1; }; } ;;
10059 esac
10060 else
10061 if test "$cross_compiling" = yes; then
10062 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10063 See \`config.log' for more details." >&5
10064 echo "$as_me: error: cannot run test program while cross compiling
10065 See \`config.log' for more details." >&2;}
10066 { (exit 1); exit 1; }; }
10067 else
10068 cat >conftest.$ac_ext <<_ACEOF
10069 /* confdefs.h. */
10070 _ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h. */
10074 $ac_includes_default
10075 long longval () { return (long) (sizeof (long long)); }
10076 unsigned long ulongval () { return (long) (sizeof (long long)); }
10077 #include <stdio.h>
10078 #include <stdlib.h>
10080 main ()
10083 FILE *f = fopen ("conftest.val", "w");
10084 if (! f)
10085 exit (1);
10086 if (((long) (sizeof (long long))) < 0)
10088 long i = longval ();
10089 if (i != ((long) (sizeof (long long))))
10090 exit (1);
10091 fprintf (f, "%ld\n", i);
10093 else
10095 unsigned long i = ulongval ();
10096 if (i != ((long) (sizeof (long long))))
10097 exit (1);
10098 fprintf (f, "%lu\n", i);
10100 exit (ferror (f) || fclose (f) != 0);
10103 return 0;
10105 _ACEOF
10106 rm -f conftest$ac_exeext
10107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10108 (eval $ac_link) 2>&5
10109 ac_status=$?
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10113 (eval $ac_try) 2>&5
10114 ac_status=$?
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); }; }; then
10117 ac_cv_sizeof_long_long=`cat conftest.val`
10118 else
10119 echo "$as_me: program exited with status $ac_status" >&5
10120 echo "$as_me: failed program was:" >&5
10121 sed 's/^/| /' conftest.$ac_ext >&5
10123 ( exit $ac_status )
10124 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10125 See \`config.log' for more details." >&5
10126 echo "$as_me: error: cannot compute sizeof (long long), 77
10127 See \`config.log' for more details." >&2;}
10128 { (exit 1); exit 1; }; }
10130 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10133 rm -f conftest.val
10134 else
10135 ac_cv_sizeof_long_long=0
10138 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10139 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
10140 cat >>confdefs.h <<_ACEOF
10141 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10142 _ACEOF
10147 echo "$as_me:$LINENO: checking for _Bool support" >&5
10148 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6
10149 have_c99_bool=no
10150 cat >conftest.$ac_ext <<_ACEOF
10151 /* confdefs.h. */
10152 _ACEOF
10153 cat confdefs.h >>conftest.$ac_ext
10154 cat >>conftest.$ac_ext <<_ACEOF
10155 /* end confdefs.h. */
10158 main ()
10160 _Bool x; x = (_Bool)0;
10162 return 0;
10164 _ACEOF
10165 rm -f conftest.$ac_objext
10166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10167 (eval $ac_compile) 2>conftest.er1
10168 ac_status=$?
10169 grep -v '^ *+' conftest.er1 >conftest.err
10170 rm -f conftest.er1
10171 cat conftest.err >&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } &&
10174 { ac_try='test -z "$ac_c_werror_flag"
10175 || test ! -s conftest.err'
10176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10177 (eval $ac_try) 2>&5
10178 ac_status=$?
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); }; } &&
10181 { ac_try='test -s conftest.$ac_objext'
10182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10183 (eval $ac_try) 2>&5
10184 ac_status=$?
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); }; }; then
10189 cat >>confdefs.h <<\_ACEOF
10190 #define HAVE_C99_BOOL 1
10191 _ACEOF
10193 have_c99_bool=yes
10195 else
10196 echo "$as_me: failed program was:" >&5
10197 sed 's/^/| /' conftest.$ac_ext >&5
10200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10201 echo "$as_me:$LINENO: result: $have_c99_bool" >&5
10202 echo "${ECHO_T}$have_c99_bool" >&6
10203 if test "$have_c99_bool" = yes ; then
10204 echo "$as_me:$LINENO: checking for _Bool" >&5
10205 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
10206 if test "${ac_cv_type__Bool+set}" = set; then
10207 echo $ECHO_N "(cached) $ECHO_C" >&6
10208 else
10209 cat >conftest.$ac_ext <<_ACEOF
10210 /* confdefs.h. */
10211 _ACEOF
10212 cat confdefs.h >>conftest.$ac_ext
10213 cat >>conftest.$ac_ext <<_ACEOF
10214 /* end confdefs.h. */
10215 $ac_includes_default
10217 main ()
10219 if ((_Bool *) 0)
10220 return 0;
10221 if (sizeof (_Bool))
10222 return 0;
10224 return 0;
10226 _ACEOF
10227 rm -f conftest.$ac_objext
10228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10229 (eval $ac_compile) 2>conftest.er1
10230 ac_status=$?
10231 grep -v '^ *+' conftest.er1 >conftest.err
10232 rm -f conftest.er1
10233 cat conftest.err >&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } &&
10236 { ac_try='test -z "$ac_c_werror_flag"
10237 || test ! -s conftest.err'
10238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10239 (eval $ac_try) 2>&5
10240 ac_status=$?
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); }; } &&
10243 { ac_try='test -s conftest.$ac_objext'
10244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245 (eval $ac_try) 2>&5
10246 ac_status=$?
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); }; }; then
10249 ac_cv_type__Bool=yes
10250 else
10251 echo "$as_me: failed program was:" >&5
10252 sed 's/^/| /' conftest.$ac_ext >&5
10254 ac_cv_type__Bool=no
10256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10258 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10259 echo "${ECHO_T}$ac_cv_type__Bool" >&6
10261 echo "$as_me:$LINENO: checking size of _Bool" >&5
10262 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6
10263 if test "${ac_cv_sizeof__Bool+set}" = set; then
10264 echo $ECHO_N "(cached) $ECHO_C" >&6
10265 else
10266 if test "$ac_cv_type__Bool" = yes; then
10267 # The cast to unsigned long works around a bug in the HP C Compiler
10268 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10269 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10270 # This bug is HP SR number 8606223364.
10271 if test "$cross_compiling" = yes; then
10272 # Depending upon the size, compute the lo and hi bounds.
10273 cat >conftest.$ac_ext <<_ACEOF
10274 /* confdefs.h. */
10275 _ACEOF
10276 cat confdefs.h >>conftest.$ac_ext
10277 cat >>conftest.$ac_ext <<_ACEOF
10278 /* end confdefs.h. */
10279 $ac_includes_default
10281 main ()
10283 static int test_array [1 - 2 * !(((long) (sizeof (_Bool))) >= 0)];
10284 test_array [0] = 0
10287 return 0;
10289 _ACEOF
10290 rm -f conftest.$ac_objext
10291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10292 (eval $ac_compile) 2>conftest.er1
10293 ac_status=$?
10294 grep -v '^ *+' conftest.er1 >conftest.err
10295 rm -f conftest.er1
10296 cat conftest.err >&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); } &&
10299 { ac_try='test -z "$ac_c_werror_flag"
10300 || test ! -s conftest.err'
10301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10302 (eval $ac_try) 2>&5
10303 ac_status=$?
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); }; } &&
10306 { ac_try='test -s conftest.$ac_objext'
10307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10308 (eval $ac_try) 2>&5
10309 ac_status=$?
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); }; }; then
10312 ac_lo=0 ac_mid=0
10313 while :; do
10314 cat >conftest.$ac_ext <<_ACEOF
10315 /* confdefs.h. */
10316 _ACEOF
10317 cat confdefs.h >>conftest.$ac_ext
10318 cat >>conftest.$ac_ext <<_ACEOF
10319 /* end confdefs.h. */
10320 $ac_includes_default
10322 main ()
10324 static int test_array [1 - 2 * !(((long) (sizeof (_Bool))) <= $ac_mid)];
10325 test_array [0] = 0
10328 return 0;
10330 _ACEOF
10331 rm -f conftest.$ac_objext
10332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10333 (eval $ac_compile) 2>conftest.er1
10334 ac_status=$?
10335 grep -v '^ *+' conftest.er1 >conftest.err
10336 rm -f conftest.er1
10337 cat conftest.err >&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } &&
10340 { ac_try='test -z "$ac_c_werror_flag"
10341 || test ! -s conftest.err'
10342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343 (eval $ac_try) 2>&5
10344 ac_status=$?
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); }; } &&
10347 { ac_try='test -s conftest.$ac_objext'
10348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10349 (eval $ac_try) 2>&5
10350 ac_status=$?
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); }; }; then
10353 ac_hi=$ac_mid; break
10354 else
10355 echo "$as_me: failed program was:" >&5
10356 sed 's/^/| /' conftest.$ac_ext >&5
10358 ac_lo=`expr $ac_mid + 1`
10359 if test $ac_lo -le $ac_mid; then
10360 ac_lo= ac_hi=
10361 break
10363 ac_mid=`expr 2 '*' $ac_mid + 1`
10365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10366 done
10367 else
10368 echo "$as_me: failed program was:" >&5
10369 sed 's/^/| /' conftest.$ac_ext >&5
10371 cat >conftest.$ac_ext <<_ACEOF
10372 /* confdefs.h. */
10373 _ACEOF
10374 cat confdefs.h >>conftest.$ac_ext
10375 cat >>conftest.$ac_ext <<_ACEOF
10376 /* end confdefs.h. */
10377 $ac_includes_default
10379 main ()
10381 static int test_array [1 - 2 * !(((long) (sizeof (_Bool))) < 0)];
10382 test_array [0] = 0
10385 return 0;
10387 _ACEOF
10388 rm -f conftest.$ac_objext
10389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10390 (eval $ac_compile) 2>conftest.er1
10391 ac_status=$?
10392 grep -v '^ *+' conftest.er1 >conftest.err
10393 rm -f conftest.er1
10394 cat conftest.err >&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); } &&
10397 { ac_try='test -z "$ac_c_werror_flag"
10398 || test ! -s conftest.err'
10399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10400 (eval $ac_try) 2>&5
10401 ac_status=$?
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); }; } &&
10404 { ac_try='test -s conftest.$ac_objext'
10405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10406 (eval $ac_try) 2>&5
10407 ac_status=$?
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); }; }; then
10410 ac_hi=-1 ac_mid=-1
10411 while :; do
10412 cat >conftest.$ac_ext <<_ACEOF
10413 /* confdefs.h. */
10414 _ACEOF
10415 cat confdefs.h >>conftest.$ac_ext
10416 cat >>conftest.$ac_ext <<_ACEOF
10417 /* end confdefs.h. */
10418 $ac_includes_default
10420 main ()
10422 static int test_array [1 - 2 * !(((long) (sizeof (_Bool))) >= $ac_mid)];
10423 test_array [0] = 0
10426 return 0;
10428 _ACEOF
10429 rm -f conftest.$ac_objext
10430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10431 (eval $ac_compile) 2>conftest.er1
10432 ac_status=$?
10433 grep -v '^ *+' conftest.er1 >conftest.err
10434 rm -f conftest.er1
10435 cat conftest.err >&5
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); } &&
10438 { ac_try='test -z "$ac_c_werror_flag"
10439 || test ! -s conftest.err'
10440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10441 (eval $ac_try) 2>&5
10442 ac_status=$?
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); }; } &&
10445 { ac_try='test -s conftest.$ac_objext'
10446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10447 (eval $ac_try) 2>&5
10448 ac_status=$?
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); }; }; then
10451 ac_lo=$ac_mid; break
10452 else
10453 echo "$as_me: failed program was:" >&5
10454 sed 's/^/| /' conftest.$ac_ext >&5
10456 ac_hi=`expr '(' $ac_mid ')' - 1`
10457 if test $ac_mid -le $ac_hi; then
10458 ac_lo= ac_hi=
10459 break
10461 ac_mid=`expr 2 '*' $ac_mid`
10463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10464 done
10465 else
10466 echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10469 ac_lo= ac_hi=
10471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10474 # Binary search between lo and hi bounds.
10475 while test "x$ac_lo" != "x$ac_hi"; do
10476 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10477 cat >conftest.$ac_ext <<_ACEOF
10478 /* confdefs.h. */
10479 _ACEOF
10480 cat confdefs.h >>conftest.$ac_ext
10481 cat >>conftest.$ac_ext <<_ACEOF
10482 /* end confdefs.h. */
10483 $ac_includes_default
10485 main ()
10487 static int test_array [1 - 2 * !(((long) (sizeof (_Bool))) <= $ac_mid)];
10488 test_array [0] = 0
10491 return 0;
10493 _ACEOF
10494 rm -f conftest.$ac_objext
10495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10496 (eval $ac_compile) 2>conftest.er1
10497 ac_status=$?
10498 grep -v '^ *+' conftest.er1 >conftest.err
10499 rm -f conftest.er1
10500 cat conftest.err >&5
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); } &&
10503 { ac_try='test -z "$ac_c_werror_flag"
10504 || test ! -s conftest.err'
10505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10506 (eval $ac_try) 2>&5
10507 ac_status=$?
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); }; } &&
10510 { ac_try='test -s conftest.$ac_objext'
10511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512 (eval $ac_try) 2>&5
10513 ac_status=$?
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); }; }; then
10516 ac_hi=$ac_mid
10517 else
10518 echo "$as_me: failed program was:" >&5
10519 sed 's/^/| /' conftest.$ac_ext >&5
10521 ac_lo=`expr '(' $ac_mid ')' + 1`
10523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10524 done
10525 case $ac_lo in
10526 ?*) ac_cv_sizeof__Bool=$ac_lo;;
10527 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool), 77
10528 See \`config.log' for more details." >&5
10529 echo "$as_me: error: cannot compute sizeof (_Bool), 77
10530 See \`config.log' for more details." >&2;}
10531 { (exit 1); exit 1; }; } ;;
10532 esac
10533 else
10534 if test "$cross_compiling" = yes; then
10535 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10536 See \`config.log' for more details." >&5
10537 echo "$as_me: error: cannot run test program while cross compiling
10538 See \`config.log' for more details." >&2;}
10539 { (exit 1); exit 1; }; }
10540 else
10541 cat >conftest.$ac_ext <<_ACEOF
10542 /* confdefs.h. */
10543 _ACEOF
10544 cat confdefs.h >>conftest.$ac_ext
10545 cat >>conftest.$ac_ext <<_ACEOF
10546 /* end confdefs.h. */
10547 $ac_includes_default
10548 long longval () { return (long) (sizeof (_Bool)); }
10549 unsigned long ulongval () { return (long) (sizeof (_Bool)); }
10550 #include <stdio.h>
10551 #include <stdlib.h>
10553 main ()
10556 FILE *f = fopen ("conftest.val", "w");
10557 if (! f)
10558 exit (1);
10559 if (((long) (sizeof (_Bool))) < 0)
10561 long i = longval ();
10562 if (i != ((long) (sizeof (_Bool))))
10563 exit (1);
10564 fprintf (f, "%ld\n", i);
10566 else
10568 unsigned long i = ulongval ();
10569 if (i != ((long) (sizeof (_Bool))))
10570 exit (1);
10571 fprintf (f, "%lu\n", i);
10573 exit (ferror (f) || fclose (f) != 0);
10576 return 0;
10578 _ACEOF
10579 rm -f conftest$ac_exeext
10580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10581 (eval $ac_link) 2>&5
10582 ac_status=$?
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586 (eval $ac_try) 2>&5
10587 ac_status=$?
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; }; then
10590 ac_cv_sizeof__Bool=`cat conftest.val`
10591 else
10592 echo "$as_me: program exited with status $ac_status" >&5
10593 echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10596 ( exit $ac_status )
10597 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool), 77
10598 See \`config.log' for more details." >&5
10599 echo "$as_me: error: cannot compute sizeof (_Bool), 77
10600 See \`config.log' for more details." >&2;}
10601 { (exit 1); exit 1; }; }
10603 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10606 rm -f conftest.val
10607 else
10608 ac_cv_sizeof__Bool=0
10611 echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
10612 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6
10613 cat >>confdefs.h <<_ACEOF
10614 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
10615 _ACEOF
10620 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10621 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10622 if test "${ac_cv_type_uintptr_t+set}" = set; then
10623 echo $ECHO_N "(cached) $ECHO_C" >&6
10624 else
10625 cat >conftest.$ac_ext <<_ACEOF
10626 /* confdefs.h. */
10627 _ACEOF
10628 cat confdefs.h >>conftest.$ac_ext
10629 cat >>conftest.$ac_ext <<_ACEOF
10630 /* end confdefs.h. */
10631 #ifdef HAVE_STDINT_H
10632 #include <stdint.h>
10633 #endif
10636 main ()
10638 if ((uintptr_t *) 0)
10639 return 0;
10640 if (sizeof (uintptr_t))
10641 return 0;
10643 return 0;
10645 _ACEOF
10646 rm -f conftest.$ac_objext
10647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10648 (eval $ac_compile) 2>conftest.er1
10649 ac_status=$?
10650 grep -v '^ *+' conftest.er1 >conftest.err
10651 rm -f conftest.er1
10652 cat conftest.err >&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } &&
10655 { ac_try='test -z "$ac_c_werror_flag"
10656 || test ! -s conftest.err'
10657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10658 (eval $ac_try) 2>&5
10659 ac_status=$?
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; } &&
10662 { ac_try='test -s conftest.$ac_objext'
10663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10664 (eval $ac_try) 2>&5
10665 ac_status=$?
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); }; }; then
10668 ac_cv_type_uintptr_t=yes
10669 else
10670 echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.$ac_ext >&5
10673 ac_cv_type_uintptr_t=no
10675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10677 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10678 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10679 if test $ac_cv_type_uintptr_t = yes; then
10681 cat >>confdefs.h <<_ACEOF
10682 #define HAVE_UINTPTR_T 1
10683 _ACEOF
10685 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10686 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10687 if test "${ac_cv_type_uintptr_t+set}" = set; then
10688 echo $ECHO_N "(cached) $ECHO_C" >&6
10689 else
10690 cat >conftest.$ac_ext <<_ACEOF
10691 /* confdefs.h. */
10692 _ACEOF
10693 cat confdefs.h >>conftest.$ac_ext
10694 cat >>conftest.$ac_ext <<_ACEOF
10695 /* end confdefs.h. */
10696 $ac_includes_default
10698 main ()
10700 if ((uintptr_t *) 0)
10701 return 0;
10702 if (sizeof (uintptr_t))
10703 return 0;
10705 return 0;
10707 _ACEOF
10708 rm -f conftest.$ac_objext
10709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10710 (eval $ac_compile) 2>conftest.er1
10711 ac_status=$?
10712 grep -v '^ *+' conftest.er1 >conftest.err
10713 rm -f conftest.er1
10714 cat conftest.err >&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); } &&
10717 { ac_try='test -z "$ac_c_werror_flag"
10718 || test ! -s conftest.err'
10719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10720 (eval $ac_try) 2>&5
10721 ac_status=$?
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); }; } &&
10724 { ac_try='test -s conftest.$ac_objext'
10725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726 (eval $ac_try) 2>&5
10727 ac_status=$?
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); }; }; then
10730 ac_cv_type_uintptr_t=yes
10731 else
10732 echo "$as_me: failed program was:" >&5
10733 sed 's/^/| /' conftest.$ac_ext >&5
10735 ac_cv_type_uintptr_t=no
10737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10739 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10740 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10742 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
10743 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
10744 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
10745 echo $ECHO_N "(cached) $ECHO_C" >&6
10746 else
10747 if test "$ac_cv_type_uintptr_t" = yes; then
10748 # The cast to unsigned long works around a bug in the HP C Compiler
10749 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10750 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10751 # This bug is HP SR number 8606223364.
10752 if test "$cross_compiling" = yes; then
10753 # Depending upon the size, compute the lo and hi bounds.
10754 cat >conftest.$ac_ext <<_ACEOF
10755 /* confdefs.h. */
10756 _ACEOF
10757 cat confdefs.h >>conftest.$ac_ext
10758 cat >>conftest.$ac_ext <<_ACEOF
10759 /* end confdefs.h. */
10760 $ac_includes_default
10762 main ()
10764 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
10765 test_array [0] = 0
10768 return 0;
10770 _ACEOF
10771 rm -f conftest.$ac_objext
10772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10773 (eval $ac_compile) 2>conftest.er1
10774 ac_status=$?
10775 grep -v '^ *+' conftest.er1 >conftest.err
10776 rm -f conftest.er1
10777 cat conftest.err >&5
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); } &&
10780 { ac_try='test -z "$ac_c_werror_flag"
10781 || test ! -s conftest.err'
10782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10783 (eval $ac_try) 2>&5
10784 ac_status=$?
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); }; } &&
10787 { ac_try='test -s conftest.$ac_objext'
10788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10789 (eval $ac_try) 2>&5
10790 ac_status=$?
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); }; }; then
10793 ac_lo=0 ac_mid=0
10794 while :; do
10795 cat >conftest.$ac_ext <<_ACEOF
10796 /* confdefs.h. */
10797 _ACEOF
10798 cat confdefs.h >>conftest.$ac_ext
10799 cat >>conftest.$ac_ext <<_ACEOF
10800 /* end confdefs.h. */
10801 $ac_includes_default
10803 main ()
10805 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10806 test_array [0] = 0
10809 return 0;
10811 _ACEOF
10812 rm -f conftest.$ac_objext
10813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10814 (eval $ac_compile) 2>conftest.er1
10815 ac_status=$?
10816 grep -v '^ *+' conftest.er1 >conftest.err
10817 rm -f conftest.er1
10818 cat conftest.err >&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); } &&
10821 { ac_try='test -z "$ac_c_werror_flag"
10822 || test ! -s conftest.err'
10823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10824 (eval $ac_try) 2>&5
10825 ac_status=$?
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); }; } &&
10828 { ac_try='test -s conftest.$ac_objext'
10829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10830 (eval $ac_try) 2>&5
10831 ac_status=$?
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); }; }; then
10834 ac_hi=$ac_mid; break
10835 else
10836 echo "$as_me: failed program was:" >&5
10837 sed 's/^/| /' conftest.$ac_ext >&5
10839 ac_lo=`expr $ac_mid + 1`
10840 if test $ac_lo -le $ac_mid; then
10841 ac_lo= ac_hi=
10842 break
10844 ac_mid=`expr 2 '*' $ac_mid + 1`
10846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10847 done
10848 else
10849 echo "$as_me: failed program was:" >&5
10850 sed 's/^/| /' conftest.$ac_ext >&5
10852 cat >conftest.$ac_ext <<_ACEOF
10853 /* confdefs.h. */
10854 _ACEOF
10855 cat confdefs.h >>conftest.$ac_ext
10856 cat >>conftest.$ac_ext <<_ACEOF
10857 /* end confdefs.h. */
10858 $ac_includes_default
10860 main ()
10862 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
10863 test_array [0] = 0
10866 return 0;
10868 _ACEOF
10869 rm -f conftest.$ac_objext
10870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10871 (eval $ac_compile) 2>conftest.er1
10872 ac_status=$?
10873 grep -v '^ *+' conftest.er1 >conftest.err
10874 rm -f conftest.er1
10875 cat conftest.err >&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); } &&
10878 { ac_try='test -z "$ac_c_werror_flag"
10879 || test ! -s conftest.err'
10880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10881 (eval $ac_try) 2>&5
10882 ac_status=$?
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); }; } &&
10885 { ac_try='test -s conftest.$ac_objext'
10886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887 (eval $ac_try) 2>&5
10888 ac_status=$?
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); }; }; then
10891 ac_hi=-1 ac_mid=-1
10892 while :; do
10893 cat >conftest.$ac_ext <<_ACEOF
10894 /* confdefs.h. */
10895 _ACEOF
10896 cat confdefs.h >>conftest.$ac_ext
10897 cat >>conftest.$ac_ext <<_ACEOF
10898 /* end confdefs.h. */
10899 $ac_includes_default
10901 main ()
10903 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
10904 test_array [0] = 0
10907 return 0;
10909 _ACEOF
10910 rm -f conftest.$ac_objext
10911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10912 (eval $ac_compile) 2>conftest.er1
10913 ac_status=$?
10914 grep -v '^ *+' conftest.er1 >conftest.err
10915 rm -f conftest.er1
10916 cat conftest.err >&5
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); } &&
10919 { ac_try='test -z "$ac_c_werror_flag"
10920 || test ! -s conftest.err'
10921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10922 (eval $ac_try) 2>&5
10923 ac_status=$?
10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925 (exit $ac_status); }; } &&
10926 { ac_try='test -s conftest.$ac_objext'
10927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10928 (eval $ac_try) 2>&5
10929 ac_status=$?
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); }; }; then
10932 ac_lo=$ac_mid; break
10933 else
10934 echo "$as_me: failed program was:" >&5
10935 sed 's/^/| /' conftest.$ac_ext >&5
10937 ac_hi=`expr '(' $ac_mid ')' - 1`
10938 if test $ac_mid -le $ac_hi; then
10939 ac_lo= ac_hi=
10940 break
10942 ac_mid=`expr 2 '*' $ac_mid`
10944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10945 done
10946 else
10947 echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10950 ac_lo= ac_hi=
10952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10955 # Binary search between lo and hi bounds.
10956 while test "x$ac_lo" != "x$ac_hi"; do
10957 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10958 cat >conftest.$ac_ext <<_ACEOF
10959 /* confdefs.h. */
10960 _ACEOF
10961 cat confdefs.h >>conftest.$ac_ext
10962 cat >>conftest.$ac_ext <<_ACEOF
10963 /* end confdefs.h. */
10964 $ac_includes_default
10966 main ()
10968 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10969 test_array [0] = 0
10972 return 0;
10974 _ACEOF
10975 rm -f conftest.$ac_objext
10976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10977 (eval $ac_compile) 2>conftest.er1
10978 ac_status=$?
10979 grep -v '^ *+' conftest.er1 >conftest.err
10980 rm -f conftest.er1
10981 cat conftest.err >&5
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); } &&
10984 { ac_try='test -z "$ac_c_werror_flag"
10985 || test ! -s conftest.err'
10986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10987 (eval $ac_try) 2>&5
10988 ac_status=$?
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); }; } &&
10991 { ac_try='test -s conftest.$ac_objext'
10992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10993 (eval $ac_try) 2>&5
10994 ac_status=$?
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); }; }; then
10997 ac_hi=$ac_mid
10998 else
10999 echo "$as_me: failed program was:" >&5
11000 sed 's/^/| /' conftest.$ac_ext >&5
11002 ac_lo=`expr '(' $ac_mid ')' + 1`
11004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11005 done
11006 case $ac_lo in
11007 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
11008 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
11009 See \`config.log' for more details." >&5
11010 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
11011 See \`config.log' for more details." >&2;}
11012 { (exit 1); exit 1; }; } ;;
11013 esac
11014 else
11015 if test "$cross_compiling" = yes; then
11016 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11017 See \`config.log' for more details." >&5
11018 echo "$as_me: error: cannot run test program while cross compiling
11019 See \`config.log' for more details." >&2;}
11020 { (exit 1); exit 1; }; }
11021 else
11022 cat >conftest.$ac_ext <<_ACEOF
11023 /* confdefs.h. */
11024 _ACEOF
11025 cat confdefs.h >>conftest.$ac_ext
11026 cat >>conftest.$ac_ext <<_ACEOF
11027 /* end confdefs.h. */
11028 $ac_includes_default
11029 long longval () { return (long) (sizeof (uintptr_t)); }
11030 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
11031 #include <stdio.h>
11032 #include <stdlib.h>
11034 main ()
11037 FILE *f = fopen ("conftest.val", "w");
11038 if (! f)
11039 exit (1);
11040 if (((long) (sizeof (uintptr_t))) < 0)
11042 long i = longval ();
11043 if (i != ((long) (sizeof (uintptr_t))))
11044 exit (1);
11045 fprintf (f, "%ld\n", i);
11047 else
11049 unsigned long i = ulongval ();
11050 if (i != ((long) (sizeof (uintptr_t))))
11051 exit (1);
11052 fprintf (f, "%lu\n", i);
11054 exit (ferror (f) || fclose (f) != 0);
11057 return 0;
11059 _ACEOF
11060 rm -f conftest$ac_exeext
11061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11062 (eval $ac_link) 2>&5
11063 ac_status=$?
11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11067 (eval $ac_try) 2>&5
11068 ac_status=$?
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); }; }; then
11071 ac_cv_sizeof_uintptr_t=`cat conftest.val`
11072 else
11073 echo "$as_me: program exited with status $ac_status" >&5
11074 echo "$as_me: failed program was:" >&5
11075 sed 's/^/| /' conftest.$ac_ext >&5
11077 ( exit $ac_status )
11078 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
11079 See \`config.log' for more details." >&5
11080 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
11081 See \`config.log' for more details." >&2;}
11082 { (exit 1); exit 1; }; }
11084 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11087 rm -f conftest.val
11088 else
11089 ac_cv_sizeof_uintptr_t=0
11092 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
11093 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
11094 cat >>confdefs.h <<_ACEOF
11095 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
11096 _ACEOF
11103 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
11104 echo "$as_me:$LINENO: checking size of off_t" >&5
11105 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
11106 if test "${ac_cv_sizeof_off_t+set}" = set; then
11107 echo $ECHO_N "(cached) $ECHO_C" >&6
11108 else
11109 if test "$cross_compiling" = yes; then
11110 ac_cv_sizeof_off_t=4
11111 else
11112 cat >conftest.$ac_ext <<_ACEOF
11113 /* confdefs.h. */
11114 _ACEOF
11115 cat confdefs.h >>conftest.$ac_ext
11116 cat >>conftest.$ac_ext <<_ACEOF
11117 /* end confdefs.h. */
11118 #include <stdio.h>
11119 #include <sys/types.h>
11120 main()
11122 FILE *f=fopen("conftestval", "w");
11123 if (!f) exit(1);
11124 fprintf(f, "%d\n", sizeof(off_t));
11125 exit(0);
11127 _ACEOF
11128 rm -f conftest$ac_exeext
11129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11130 (eval $ac_link) 2>&5
11131 ac_status=$?
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11135 (eval $ac_try) 2>&5
11136 ac_status=$?
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); }; }; then
11139 ac_cv_sizeof_off_t=`cat conftestval`
11140 else
11141 echo "$as_me: program exited with status $ac_status" >&5
11142 echo "$as_me: failed program was:" >&5
11143 sed 's/^/| /' conftest.$ac_ext >&5
11145 ( exit $ac_status )
11146 ac_cv_sizeof_off_t=0
11148 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11153 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
11154 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
11156 cat >>confdefs.h <<_ACEOF
11157 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
11158 _ACEOF
11161 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
11162 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
11163 if test "$have_long_long" = yes -a \
11164 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
11165 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
11167 cat >>confdefs.h <<\_ACEOF
11168 #define HAVE_LARGEFILE_SUPPORT 1
11169 _ACEOF
11171 echo "$as_me:$LINENO: result: yes" >&5
11172 echo "${ECHO_T}yes" >&6
11173 else
11174 echo "$as_me:$LINENO: result: no" >&5
11175 echo "${ECHO_T}no" >&6
11178 # AC_CHECK_SIZEOF() doesn't include <time.h>.
11179 echo "$as_me:$LINENO: checking size of time_t" >&5
11180 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
11181 if test "${ac_cv_sizeof_time_t+set}" = set; then
11182 echo $ECHO_N "(cached) $ECHO_C" >&6
11183 else
11184 if test "$cross_compiling" = yes; then
11185 ac_cv_sizeof_time_t=4
11186 else
11187 cat >conftest.$ac_ext <<_ACEOF
11188 /* confdefs.h. */
11189 _ACEOF
11190 cat confdefs.h >>conftest.$ac_ext
11191 cat >>conftest.$ac_ext <<_ACEOF
11192 /* end confdefs.h. */
11193 #include <stdio.h>
11194 #include <time.h>
11195 main()
11197 FILE *f=fopen("conftestval", "w");
11198 if (!f) exit(1);
11199 fprintf(f, "%d\n", sizeof(time_t));
11200 exit(0);
11202 _ACEOF
11203 rm -f conftest$ac_exeext
11204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11205 (eval $ac_link) 2>&5
11206 ac_status=$?
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11210 (eval $ac_try) 2>&5
11211 ac_status=$?
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); }; }; then
11214 ac_cv_sizeof_time_t=`cat conftestval`
11215 else
11216 echo "$as_me: program exited with status $ac_status" >&5
11217 echo "$as_me: failed program was:" >&5
11218 sed 's/^/| /' conftest.$ac_ext >&5
11220 ( exit $ac_status )
11221 ac_cv_sizeof_time_t=0
11223 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11228 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
11229 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
11231 cat >>confdefs.h <<_ACEOF
11232 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
11233 _ACEOF
11237 # if have pthread_t then define SIZEOF_PTHREAD_T
11238 ac_save_cc="$CC"
11239 if test "$ac_cv_kpthread" = "yes"
11240 then CC="$CC -Kpthread"
11241 elif test "$ac_cv_kthread" = "yes"
11242 then CC="$CC -Kthread"
11243 elif test "$ac_cv_pthread" = "yes"
11244 then CC="$CC -pthread"
11246 echo "$as_me:$LINENO: checking for pthread_t" >&5
11247 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
11248 have_pthread_t=no
11249 cat >conftest.$ac_ext <<_ACEOF
11250 /* confdefs.h. */
11251 _ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h. */
11255 #include <pthread.h>
11257 main ()
11259 pthread_t x; x = *(pthread_t*)0;
11261 return 0;
11263 _ACEOF
11264 rm -f conftest.$ac_objext
11265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11266 (eval $ac_compile) 2>conftest.er1
11267 ac_status=$?
11268 grep -v '^ *+' conftest.er1 >conftest.err
11269 rm -f conftest.er1
11270 cat conftest.err >&5
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); } &&
11273 { ac_try='test -z "$ac_c_werror_flag"
11274 || test ! -s conftest.err'
11275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11276 (eval $ac_try) 2>&5
11277 ac_status=$?
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); }; } &&
11280 { ac_try='test -s conftest.$ac_objext'
11281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11282 (eval $ac_try) 2>&5
11283 ac_status=$?
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; }; then
11286 have_pthread_t=yes
11287 else
11288 echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11293 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
11294 echo "${ECHO_T}$have_pthread_t" >&6
11295 if test "$have_pthread_t" = yes ; then
11296 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
11297 echo "$as_me:$LINENO: checking size of pthread_t" >&5
11298 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
11299 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
11300 echo $ECHO_N "(cached) $ECHO_C" >&6
11301 else
11302 if test "$cross_compiling" = yes; then
11303 ac_cv_sizeof_pthread_t=4
11304 else
11305 cat >conftest.$ac_ext <<_ACEOF
11306 /* confdefs.h. */
11307 _ACEOF
11308 cat confdefs.h >>conftest.$ac_ext
11309 cat >>conftest.$ac_ext <<_ACEOF
11310 /* end confdefs.h. */
11311 #include <stdio.h>
11312 #include <pthread.h>
11313 main()
11315 FILE *f=fopen("conftestval", "w");
11316 if (!f) exit(1);
11317 fprintf(f, "%d\n", sizeof(pthread_t));
11318 exit(0);
11320 _ACEOF
11321 rm -f conftest$ac_exeext
11322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11323 (eval $ac_link) 2>&5
11324 ac_status=$?
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11328 (eval $ac_try) 2>&5
11329 ac_status=$?
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); }; }; then
11332 ac_cv_sizeof_pthread_t=`cat conftestval`
11333 else
11334 echo "$as_me: program exited with status $ac_status" >&5
11335 echo "$as_me: failed program was:" >&5
11336 sed 's/^/| /' conftest.$ac_ext >&5
11338 ( exit $ac_status )
11339 ac_cv_sizeof_pthread_t=0
11341 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11346 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
11347 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
11349 cat >>confdefs.h <<_ACEOF
11350 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
11351 _ACEOF
11354 CC="$ac_save_cc"
11356 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
11357 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
11358 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
11359 if test "${enable_toolbox_glue+set}" = set; then
11360 enableval="$enable_toolbox_glue"
11364 if test -z "$enable_toolbox_glue"
11365 then
11366 case $ac_sys_system/$ac_sys_release in
11367 Darwin/*)
11368 enable_toolbox_glue="yes";;
11370 enable_toolbox_glue="no";;
11371 esac
11373 case "$enable_toolbox_glue" in
11374 yes)
11375 extra_machdep_objs="Python/mactoolboxglue.o"
11376 extra_undefs="-u _PyMac_Error"
11378 cat >>confdefs.h <<\_ACEOF
11379 #define USE_TOOLBOX_OBJECT_GLUE 1
11380 _ACEOF
11384 extra_machdep_objs=""
11385 extra_undefs=""
11387 esac
11388 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
11389 echo "${ECHO_T}$enable_toolbox_glue" >&6
11392 case $ac_sys_system/$ac_sys_release in
11393 Darwin/[01567]\..*)
11394 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
11396 Darwin/*)
11397 OTHER_LIBTOOL_OPT=""
11399 esac
11402 case $ac_sys_system/$ac_sys_release in
11403 Darwin/[01567]\..*)
11404 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
11405 if test "${enable_universalsdk}"; then
11407 else
11408 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
11410 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11411 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
11412 Darwin/*)
11413 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
11414 if test ${gcc_version} '<' 4.0
11415 then
11416 LIBTOOL_CRUFT="-lcc_dynamic"
11417 else
11418 LIBTOOL_CRUFT=""
11420 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
11421 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11422 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
11423 esac
11425 echo "$as_me:$LINENO: checking for --enable-framework" >&5
11426 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
11427 if test "$enable_framework"
11428 then
11429 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
11430 # -F. is needed to allow linking to the framework while
11431 # in the build location.
11433 cat >>confdefs.h <<\_ACEOF
11434 #define WITH_NEXT_FRAMEWORK 1
11435 _ACEOF
11437 echo "$as_me:$LINENO: result: yes" >&5
11438 echo "${ECHO_T}yes" >&6
11439 else
11440 echo "$as_me:$LINENO: result: no" >&5
11441 echo "${ECHO_T}no" >&6
11444 echo "$as_me:$LINENO: checking for dyld" >&5
11445 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
11446 case $ac_sys_system/$ac_sys_release in
11447 Darwin/*)
11449 cat >>confdefs.h <<\_ACEOF
11450 #define WITH_DYLD 1
11451 _ACEOF
11453 echo "$as_me:$LINENO: result: always on for Darwin" >&5
11454 echo "${ECHO_T}always on for Darwin" >&6
11457 echo "$as_me:$LINENO: result: no" >&5
11458 echo "${ECHO_T}no" >&6
11460 esac
11462 # Set info about shared libraries.
11468 # SO is the extension of shared libraries `(including the dot!)
11469 # -- usually .so, .sl on HP-UX, .dll on Cygwin
11470 echo "$as_me:$LINENO: checking SO" >&5
11471 echo $ECHO_N "checking SO... $ECHO_C" >&6
11472 if test -z "$SO"
11473 then
11474 case $ac_sys_system in
11475 hp*|HP*)
11476 case `uname -m` in
11477 ia64) SO=.so;;
11478 *) SO=.sl;;
11479 esac
11481 CYGWIN*) SO=.dll;;
11482 *) SO=.so;;
11483 esac
11484 else
11485 # this might also be a termcap variable, see #610332
11486 echo
11487 echo '====================================================================='
11488 echo '+ +'
11489 echo '+ WARNING: You have set SO in your environment. +'
11490 echo '+ Do you really mean to change the extension for shared libraries? +'
11491 echo '+ Continuing in 10 seconds to let you to ponder. +'
11492 echo '+ +'
11493 echo '====================================================================='
11494 sleep 10
11496 echo "$as_me:$LINENO: result: $SO" >&5
11497 echo "${ECHO_T}$SO" >&6
11499 cat >>confdefs.h <<_ACEOF
11500 #define SHLIB_EXT "$SO"
11501 _ACEOF
11503 # LDSHARED is the ld *command* used to create shared library
11504 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
11505 # (Shared libraries in this instance are shared modules to be loaded into
11506 # Python, as opposed to building Python itself as a shared library.)
11507 echo "$as_me:$LINENO: checking LDSHARED" >&5
11508 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
11509 if test -z "$LDSHARED"
11510 then
11511 case $ac_sys_system/$ac_sys_release in
11512 AIX*)
11513 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
11514 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
11516 BeOS*)
11517 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
11518 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
11520 IRIX/5*) LDSHARED="ld -shared";;
11521 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
11522 SunOS/5*)
11523 if test "$GCC" = "yes"
11524 then LDSHARED='$(CC) -shared'
11525 else LDSHARED='$(CC) -G';
11526 fi ;;
11527 hp*|HP*) LDSHARED="ld -b";;
11528 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
11529 Darwin/1.3*)
11530 LDSHARED='$(CC) $(LDFLAGS) -bundle'
11531 if test "$enable_framework" ; then
11532 # Link against the framework. All externals should be defined.
11533 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11534 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11535 else
11536 # No framework. Ignore undefined symbols, assuming they come from Python
11537 LDSHARED="$LDSHARED -undefined suppress"
11538 fi ;;
11539 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
11540 LDSHARED='$(CC) $(LDFLAGS) -bundle'
11541 if test "$enable_framework" ; then
11542 # Link against the framework. All externals should be defined.
11543 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11544 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11545 else
11546 # No framework, use the Python app as bundle-loader
11547 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
11548 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
11549 fi ;;
11550 Darwin/*)
11551 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
11552 # This allows an extension to be used in any Python
11553 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
11554 if test ${cur_target} '>' 10.2; then
11555 cur_target=10.3
11557 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
11558 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
11559 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
11560 then
11561 if test "${enable_universalsdk}"; then
11562 LDFLAGS="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
11564 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
11565 BLDSHARED="$LDSHARED"
11566 else
11567 LDSHARED='$(CC) $(LDFLAGS) -bundle'
11568 if test "$enable_framework" ; then
11569 # Link against the framework. All externals should be defined.
11570 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11571 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11572 else
11573 # No framework, use the Python app as bundle-loader
11574 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
11575 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
11579 Linux*|GNU*) LDSHARED='$(CC) -shared';;
11580 BSD/OS*/4*) LDSHARED="gcc -shared";;
11581 FreeBSD*)
11582 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11583 then
11584 LDSHARED="$CC -shared ${LDFLAGS}"
11585 else
11586 LDSHARED="ld -Bshareable ${LDFLAGS}"
11587 fi;;
11588 OpenBSD*)
11589 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11590 then
11591 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11592 else
11593 case `uname -r` in
11594 [01].* | 2.[0-7] | 2.[0-7].*)
11595 LDSHARED="ld -Bshareable ${LDFLAGS}"
11598 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11600 esac
11601 fi;;
11602 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
11603 OpenUNIX*|UnixWare*)
11604 if test "$GCC" = "yes"
11605 then LDSHARED='$(CC) -shared'
11606 else LDSHARED='$(CC) -G'
11607 fi;;
11608 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
11609 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
11610 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
11611 atheos*) LDSHARED="gcc -shared";;
11612 *) LDSHARED="ld";;
11613 esac
11615 echo "$as_me:$LINENO: result: $LDSHARED" >&5
11616 echo "${ECHO_T}$LDSHARED" >&6
11617 BLDSHARED=${BLDSHARED-$LDSHARED}
11618 # CCSHARED are the C *flags* used to create objects to go into a shared
11619 # library (module) -- this is only needed for a few systems
11620 echo "$as_me:$LINENO: checking CCSHARED" >&5
11621 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
11622 if test -z "$CCSHARED"
11623 then
11624 case $ac_sys_system/$ac_sys_release in
11625 SunOS*) if test "$GCC" = yes;
11626 then CCSHARED="-fPIC";
11627 else CCSHARED="-xcode=pic32";
11628 fi;;
11629 hp*|HP*) if test "$GCC" = yes;
11630 then CCSHARED="-fPIC";
11631 else CCSHARED="+z";
11632 fi;;
11633 Linux*|GNU*) CCSHARED="-fPIC";;
11634 BSD/OS*/4*) CCSHARED="-fpic";;
11635 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
11636 OpenUNIX*|UnixWare*)
11637 if test "$GCC" = "yes"
11638 then CCSHARED="-fPIC"
11639 else CCSHARED="-KPIC"
11640 fi;;
11641 SCO_SV*)
11642 if test "$GCC" = "yes"
11643 then CCSHARED="-fPIC"
11644 else CCSHARED="-Kpic -belf"
11645 fi;;
11646 Monterey*) CCSHARED="-G";;
11647 IRIX*/6*) case $CC in
11648 *gcc*) CCSHARED="-shared";;
11649 *) CCSHARED="";;
11650 esac;;
11651 atheos*) CCSHARED="-fPIC";;
11652 esac
11654 echo "$as_me:$LINENO: result: $CCSHARED" >&5
11655 echo "${ECHO_T}$CCSHARED" >&6
11656 # LINKFORSHARED are the flags passed to the $(CC) command that links
11657 # the python executable -- this is only needed for a few systems
11658 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
11659 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
11660 if test -z "$LINKFORSHARED"
11661 then
11662 case $ac_sys_system/$ac_sys_release in
11663 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
11664 hp*|HP*)
11665 LINKFORSHARED="-Wl,-E -Wl,+s";;
11666 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
11667 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
11668 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
11669 # -u libsys_s pulls in all symbols in libsys
11670 Darwin/*)
11671 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
11672 # which is
11673 # not used by the core itself but which needs to be in the core so
11674 # that dynamically loaded extension modules have access to it.
11675 # -prebind is no longer used, because it actually seems to give a
11676 # slowdown in stead of a speedup, maybe due to the large number of
11677 # dynamic loads Python does.
11679 LINKFORSHARED="$extra_undefs"
11680 if test "$enable_framework"
11681 then
11682 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11684 LINKFORSHARED="$LINKFORSHARED";;
11685 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
11686 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
11687 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
11688 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
11689 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11690 then
11691 LINKFORSHARED="-Wl,--export-dynamic"
11692 fi;;
11693 SunOS/5*) case $CC in
11694 *gcc*)
11695 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
11696 then
11697 LINKFORSHARED="-Xlinker --export-dynamic"
11698 fi;;
11699 esac;;
11700 CYGWIN*)
11701 if test $enable_shared = "no"
11702 then
11703 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
11704 fi;;
11705 esac
11707 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
11708 echo "${ECHO_T}$LINKFORSHARED" >&6
11711 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
11712 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
11713 if test ! "$LIBRARY" = "$LDLIBRARY"
11714 then
11715 case $ac_sys_system in
11716 CYGWIN*)
11717 # Cygwin needs CCSHARED when building extension DLLs
11718 # but not when building the interpreter DLL.
11719 CFLAGSFORSHARED='';;
11721 CFLAGSFORSHARED='$(CCSHARED)'
11722 esac
11724 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
11725 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
11727 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
11728 # library (with --enable-shared).
11729 # For platforms on which shared libraries are not allowed to have unresolved
11730 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
11731 # if it is not required, since it creates a dependency of the shared library
11732 # to LIBS. This, in turn, means that applications linking the shared libpython
11733 # don't need to link LIBS explicitly. The default should be only changed
11734 # on systems where this approach causes problems.
11736 echo "$as_me:$LINENO: checking SHLIBS" >&5
11737 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
11738 case "$ac_sys_system" in
11740 SHLIBS='$(LIBS)';;
11741 esac
11742 echo "$as_me:$LINENO: result: $SHLIBS" >&5
11743 echo "${ECHO_T}$SHLIBS" >&6
11746 # checks for libraries
11748 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11749 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11750 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11751 echo $ECHO_N "(cached) $ECHO_C" >&6
11752 else
11753 ac_check_lib_save_LIBS=$LIBS
11754 LIBS="-ldl $LIBS"
11755 cat >conftest.$ac_ext <<_ACEOF
11756 /* confdefs.h. */
11757 _ACEOF
11758 cat confdefs.h >>conftest.$ac_ext
11759 cat >>conftest.$ac_ext <<_ACEOF
11760 /* end confdefs.h. */
11762 /* Override any gcc2 internal prototype to avoid an error. */
11763 #ifdef __cplusplus
11764 extern "C"
11765 #endif
11766 /* We use char because int might match the return type of a gcc2
11767 builtin and then its argument prototype would still apply. */
11768 char dlopen ();
11770 main ()
11772 dlopen ();
11774 return 0;
11776 _ACEOF
11777 rm -f conftest.$ac_objext conftest$ac_exeext
11778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11779 (eval $ac_link) 2>conftest.er1
11780 ac_status=$?
11781 grep -v '^ *+' conftest.er1 >conftest.err
11782 rm -f conftest.er1
11783 cat conftest.err >&5
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); } &&
11786 { ac_try='test -z "$ac_c_werror_flag"
11787 || test ! -s conftest.err'
11788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11789 (eval $ac_try) 2>&5
11790 ac_status=$?
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); }; } &&
11793 { ac_try='test -s conftest$ac_exeext'
11794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795 (eval $ac_try) 2>&5
11796 ac_status=$?
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; }; then
11799 ac_cv_lib_dl_dlopen=yes
11800 else
11801 echo "$as_me: failed program was:" >&5
11802 sed 's/^/| /' conftest.$ac_ext >&5
11804 ac_cv_lib_dl_dlopen=no
11806 rm -f conftest.err conftest.$ac_objext \
11807 conftest$ac_exeext conftest.$ac_ext
11808 LIBS=$ac_check_lib_save_LIBS
11810 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11811 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11812 if test $ac_cv_lib_dl_dlopen = yes; then
11813 cat >>confdefs.h <<_ACEOF
11814 #define HAVE_LIBDL 1
11815 _ACEOF
11817 LIBS="-ldl $LIBS"
11820 # Dynamic linking for SunOS/Solaris and SYSV
11822 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11823 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11824 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11825 echo $ECHO_N "(cached) $ECHO_C" >&6
11826 else
11827 ac_check_lib_save_LIBS=$LIBS
11828 LIBS="-ldld $LIBS"
11829 cat >conftest.$ac_ext <<_ACEOF
11830 /* confdefs.h. */
11831 _ACEOF
11832 cat confdefs.h >>conftest.$ac_ext
11833 cat >>conftest.$ac_ext <<_ACEOF
11834 /* end confdefs.h. */
11836 /* Override any gcc2 internal prototype to avoid an error. */
11837 #ifdef __cplusplus
11838 extern "C"
11839 #endif
11840 /* We use char because int might match the return type of a gcc2
11841 builtin and then its argument prototype would still apply. */
11842 char shl_load ();
11844 main ()
11846 shl_load ();
11848 return 0;
11850 _ACEOF
11851 rm -f conftest.$ac_objext conftest$ac_exeext
11852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11853 (eval $ac_link) 2>conftest.er1
11854 ac_status=$?
11855 grep -v '^ *+' conftest.er1 >conftest.err
11856 rm -f conftest.er1
11857 cat conftest.err >&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } &&
11860 { ac_try='test -z "$ac_c_werror_flag"
11861 || test ! -s conftest.err'
11862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11863 (eval $ac_try) 2>&5
11864 ac_status=$?
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); }; } &&
11867 { ac_try='test -s conftest$ac_exeext'
11868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11869 (eval $ac_try) 2>&5
11870 ac_status=$?
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); }; }; then
11873 ac_cv_lib_dld_shl_load=yes
11874 else
11875 echo "$as_me: failed program was:" >&5
11876 sed 's/^/| /' conftest.$ac_ext >&5
11878 ac_cv_lib_dld_shl_load=no
11880 rm -f conftest.err conftest.$ac_objext \
11881 conftest$ac_exeext conftest.$ac_ext
11882 LIBS=$ac_check_lib_save_LIBS
11884 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11885 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11886 if test $ac_cv_lib_dld_shl_load = yes; then
11887 cat >>confdefs.h <<_ACEOF
11888 #define HAVE_LIBDLD 1
11889 _ACEOF
11891 LIBS="-ldld $LIBS"
11894 # Dynamic linking for HP-UX
11896 # only check for sem_ini if thread support is requested
11897 if test "$with_threads" = "yes" -o -z "$with_threads"; then
11898 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
11899 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
11900 if test "${ac_cv_search_sem_init+set}" = set; then
11901 echo $ECHO_N "(cached) $ECHO_C" >&6
11902 else
11903 ac_func_search_save_LIBS=$LIBS
11904 ac_cv_search_sem_init=no
11905 cat >conftest.$ac_ext <<_ACEOF
11906 /* confdefs.h. */
11907 _ACEOF
11908 cat confdefs.h >>conftest.$ac_ext
11909 cat >>conftest.$ac_ext <<_ACEOF
11910 /* end confdefs.h. */
11912 /* Override any gcc2 internal prototype to avoid an error. */
11913 #ifdef __cplusplus
11914 extern "C"
11915 #endif
11916 /* We use char because int might match the return type of a gcc2
11917 builtin and then its argument prototype would still apply. */
11918 char sem_init ();
11920 main ()
11922 sem_init ();
11924 return 0;
11926 _ACEOF
11927 rm -f conftest.$ac_objext conftest$ac_exeext
11928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11929 (eval $ac_link) 2>conftest.er1
11930 ac_status=$?
11931 grep -v '^ *+' conftest.er1 >conftest.err
11932 rm -f conftest.er1
11933 cat conftest.err >&5
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); } &&
11936 { ac_try='test -z "$ac_c_werror_flag"
11937 || test ! -s conftest.err'
11938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11939 (eval $ac_try) 2>&5
11940 ac_status=$?
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); }; } &&
11943 { ac_try='test -s conftest$ac_exeext'
11944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11945 (eval $ac_try) 2>&5
11946 ac_status=$?
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); }; }; then
11949 ac_cv_search_sem_init="none required"
11950 else
11951 echo "$as_me: failed program was:" >&5
11952 sed 's/^/| /' conftest.$ac_ext >&5
11955 rm -f conftest.err conftest.$ac_objext \
11956 conftest$ac_exeext conftest.$ac_ext
11957 if test "$ac_cv_search_sem_init" = no; then
11958 for ac_lib in pthread rt posix4; do
11959 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11960 cat >conftest.$ac_ext <<_ACEOF
11961 /* confdefs.h. */
11962 _ACEOF
11963 cat confdefs.h >>conftest.$ac_ext
11964 cat >>conftest.$ac_ext <<_ACEOF
11965 /* end confdefs.h. */
11967 /* Override any gcc2 internal prototype to avoid an error. */
11968 #ifdef __cplusplus
11969 extern "C"
11970 #endif
11971 /* We use char because int might match the return type of a gcc2
11972 builtin and then its argument prototype would still apply. */
11973 char sem_init ();
11975 main ()
11977 sem_init ();
11979 return 0;
11981 _ACEOF
11982 rm -f conftest.$ac_objext conftest$ac_exeext
11983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11984 (eval $ac_link) 2>conftest.er1
11985 ac_status=$?
11986 grep -v '^ *+' conftest.er1 >conftest.err
11987 rm -f conftest.er1
11988 cat conftest.err >&5
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); } &&
11991 { ac_try='test -z "$ac_c_werror_flag"
11992 || test ! -s conftest.err'
11993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11994 (eval $ac_try) 2>&5
11995 ac_status=$?
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); }; } &&
11998 { ac_try='test -s conftest$ac_exeext'
11999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12000 (eval $ac_try) 2>&5
12001 ac_status=$?
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); }; }; then
12004 ac_cv_search_sem_init="-l$ac_lib"
12005 break
12006 else
12007 echo "$as_me: failed program was:" >&5
12008 sed 's/^/| /' conftest.$ac_ext >&5
12011 rm -f conftest.err conftest.$ac_objext \
12012 conftest$ac_exeext conftest.$ac_ext
12013 done
12015 LIBS=$ac_func_search_save_LIBS
12017 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
12018 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
12019 if test "$ac_cv_search_sem_init" != no; then
12020 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
12023 # 'Real Time' functions on Solaris
12024 # posix4 on Solaris 2.6
12025 # pthread (first!) on Linux
12028 # check if we need libintl for locale functions
12029 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
12030 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
12031 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
12032 echo $ECHO_N "(cached) $ECHO_C" >&6
12033 else
12034 ac_check_lib_save_LIBS=$LIBS
12035 LIBS="-lintl $LIBS"
12036 cat >conftest.$ac_ext <<_ACEOF
12037 /* confdefs.h. */
12038 _ACEOF
12039 cat confdefs.h >>conftest.$ac_ext
12040 cat >>conftest.$ac_ext <<_ACEOF
12041 /* end confdefs.h. */
12043 /* Override any gcc2 internal prototype to avoid an error. */
12044 #ifdef __cplusplus
12045 extern "C"
12046 #endif
12047 /* We use char because int might match the return type of a gcc2
12048 builtin and then its argument prototype would still apply. */
12049 char textdomain ();
12051 main ()
12053 textdomain ();
12055 return 0;
12057 _ACEOF
12058 rm -f conftest.$ac_objext conftest$ac_exeext
12059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12060 (eval $ac_link) 2>conftest.er1
12061 ac_status=$?
12062 grep -v '^ *+' conftest.er1 >conftest.err
12063 rm -f conftest.er1
12064 cat conftest.err >&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); } &&
12067 { ac_try='test -z "$ac_c_werror_flag"
12068 || test ! -s conftest.err'
12069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12070 (eval $ac_try) 2>&5
12071 ac_status=$?
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); }; } &&
12074 { ac_try='test -s conftest$ac_exeext'
12075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12076 (eval $ac_try) 2>&5
12077 ac_status=$?
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); }; }; then
12080 ac_cv_lib_intl_textdomain=yes
12081 else
12082 echo "$as_me: failed program was:" >&5
12083 sed 's/^/| /' conftest.$ac_ext >&5
12085 ac_cv_lib_intl_textdomain=no
12087 rm -f conftest.err conftest.$ac_objext \
12088 conftest$ac_exeext conftest.$ac_ext
12089 LIBS=$ac_check_lib_save_LIBS
12091 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
12092 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
12093 if test $ac_cv_lib_intl_textdomain = yes; then
12095 cat >>confdefs.h <<\_ACEOF
12096 #define WITH_LIBINTL 1
12097 _ACEOF
12102 # checks for system dependent C++ extensions support
12103 case "$ac_sys_system" in
12104 AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
12105 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
12106 cat >conftest.$ac_ext <<_ACEOF
12107 /* confdefs.h. */
12108 _ACEOF
12109 cat confdefs.h >>conftest.$ac_ext
12110 cat >>conftest.$ac_ext <<_ACEOF
12111 /* end confdefs.h. */
12112 #include "/usr/lpp/xlC/include/load.h"
12114 main ()
12116 loadAndInit("", 0, "")
12118 return 0;
12120 _ACEOF
12121 rm -f conftest.$ac_objext conftest$ac_exeext
12122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12123 (eval $ac_link) 2>conftest.er1
12124 ac_status=$?
12125 grep -v '^ *+' conftest.er1 >conftest.err
12126 rm -f conftest.er1
12127 cat conftest.err >&5
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); } &&
12130 { ac_try='test -z "$ac_c_werror_flag"
12131 || test ! -s conftest.err'
12132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12133 (eval $ac_try) 2>&5
12134 ac_status=$?
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); }; } &&
12137 { ac_try='test -s conftest$ac_exeext'
12138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12139 (eval $ac_try) 2>&5
12140 ac_status=$?
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); }; }; then
12144 cat >>confdefs.h <<\_ACEOF
12145 #define AIX_GENUINE_CPLUSPLUS 1
12146 _ACEOF
12148 echo "$as_me:$LINENO: result: yes" >&5
12149 echo "${ECHO_T}yes" >&6
12150 else
12151 echo "$as_me: failed program was:" >&5
12152 sed 's/^/| /' conftest.$ac_ext >&5
12154 echo "$as_me:$LINENO: result: no" >&5
12155 echo "${ECHO_T}no" >&6
12157 rm -f conftest.err conftest.$ac_objext \
12158 conftest$ac_exeext conftest.$ac_ext;;
12159 *) ;;
12160 esac
12162 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
12163 # BeOS' sockets are stashed in libnet.
12164 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
12165 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
12166 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
12167 echo $ECHO_N "(cached) $ECHO_C" >&6
12168 else
12169 ac_check_lib_save_LIBS=$LIBS
12170 LIBS="-lnsl $LIBS"
12171 cat >conftest.$ac_ext <<_ACEOF
12172 /* confdefs.h. */
12173 _ACEOF
12174 cat confdefs.h >>conftest.$ac_ext
12175 cat >>conftest.$ac_ext <<_ACEOF
12176 /* end confdefs.h. */
12178 /* Override any gcc2 internal prototype to avoid an error. */
12179 #ifdef __cplusplus
12180 extern "C"
12181 #endif
12182 /* We use char because int might match the return type of a gcc2
12183 builtin and then its argument prototype would still apply. */
12184 char t_open ();
12186 main ()
12188 t_open ();
12190 return 0;
12192 _ACEOF
12193 rm -f conftest.$ac_objext conftest$ac_exeext
12194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12195 (eval $ac_link) 2>conftest.er1
12196 ac_status=$?
12197 grep -v '^ *+' conftest.er1 >conftest.err
12198 rm -f conftest.er1
12199 cat conftest.err >&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); } &&
12202 { ac_try='test -z "$ac_c_werror_flag"
12203 || test ! -s conftest.err'
12204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12205 (eval $ac_try) 2>&5
12206 ac_status=$?
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); }; } &&
12209 { ac_try='test -s conftest$ac_exeext'
12210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211 (eval $ac_try) 2>&5
12212 ac_status=$?
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); }; }; then
12215 ac_cv_lib_nsl_t_open=yes
12216 else
12217 echo "$as_me: failed program was:" >&5
12218 sed 's/^/| /' conftest.$ac_ext >&5
12220 ac_cv_lib_nsl_t_open=no
12222 rm -f conftest.err conftest.$ac_objext \
12223 conftest$ac_exeext conftest.$ac_ext
12224 LIBS=$ac_check_lib_save_LIBS
12226 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
12227 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
12228 if test $ac_cv_lib_nsl_t_open = yes; then
12229 LIBS="-lnsl $LIBS"
12231 # SVR4
12232 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
12233 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
12234 if test "${ac_cv_lib_socket_socket+set}" = set; then
12235 echo $ECHO_N "(cached) $ECHO_C" >&6
12236 else
12237 ac_check_lib_save_LIBS=$LIBS
12238 LIBS="-lsocket $LIBS $LIBS"
12239 cat >conftest.$ac_ext <<_ACEOF
12240 /* confdefs.h. */
12241 _ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h. */
12246 /* Override any gcc2 internal prototype to avoid an error. */
12247 #ifdef __cplusplus
12248 extern "C"
12249 #endif
12250 /* We use char because int might match the return type of a gcc2
12251 builtin and then its argument prototype would still apply. */
12252 char socket ();
12254 main ()
12256 socket ();
12258 return 0;
12260 _ACEOF
12261 rm -f conftest.$ac_objext conftest$ac_exeext
12262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12263 (eval $ac_link) 2>conftest.er1
12264 ac_status=$?
12265 grep -v '^ *+' conftest.er1 >conftest.err
12266 rm -f conftest.er1
12267 cat conftest.err >&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); } &&
12270 { ac_try='test -z "$ac_c_werror_flag"
12271 || test ! -s conftest.err'
12272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12273 (eval $ac_try) 2>&5
12274 ac_status=$?
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); }; } &&
12277 { ac_try='test -s conftest$ac_exeext'
12278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12279 (eval $ac_try) 2>&5
12280 ac_status=$?
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); }; }; then
12283 ac_cv_lib_socket_socket=yes
12284 else
12285 echo "$as_me: failed program was:" >&5
12286 sed 's/^/| /' conftest.$ac_ext >&5
12288 ac_cv_lib_socket_socket=no
12290 rm -f conftest.err conftest.$ac_objext \
12291 conftest$ac_exeext conftest.$ac_ext
12292 LIBS=$ac_check_lib_save_LIBS
12294 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
12295 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
12296 if test $ac_cv_lib_socket_socket = yes; then
12297 LIBS="-lsocket $LIBS"
12299 # SVR4 sockets
12301 case "$ac_sys_system" in
12302 BeOS*)
12303 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
12304 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
12305 if test "${ac_cv_lib_net_socket+set}" = set; then
12306 echo $ECHO_N "(cached) $ECHO_C" >&6
12307 else
12308 ac_check_lib_save_LIBS=$LIBS
12309 LIBS="-lnet $LIBS $LIBS"
12310 cat >conftest.$ac_ext <<_ACEOF
12311 /* confdefs.h. */
12312 _ACEOF
12313 cat confdefs.h >>conftest.$ac_ext
12314 cat >>conftest.$ac_ext <<_ACEOF
12315 /* end confdefs.h. */
12317 /* Override any gcc2 internal prototype to avoid an error. */
12318 #ifdef __cplusplus
12319 extern "C"
12320 #endif
12321 /* We use char because int might match the return type of a gcc2
12322 builtin and then its argument prototype would still apply. */
12323 char socket ();
12325 main ()
12327 socket ();
12329 return 0;
12331 _ACEOF
12332 rm -f conftest.$ac_objext conftest$ac_exeext
12333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12334 (eval $ac_link) 2>conftest.er1
12335 ac_status=$?
12336 grep -v '^ *+' conftest.er1 >conftest.err
12337 rm -f conftest.er1
12338 cat conftest.err >&5
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); } &&
12341 { ac_try='test -z "$ac_c_werror_flag"
12342 || test ! -s conftest.err'
12343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12344 (eval $ac_try) 2>&5
12345 ac_status=$?
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); }; } &&
12348 { ac_try='test -s conftest$ac_exeext'
12349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12350 (eval $ac_try) 2>&5
12351 ac_status=$?
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); }; }; then
12354 ac_cv_lib_net_socket=yes
12355 else
12356 echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.$ac_ext >&5
12359 ac_cv_lib_net_socket=no
12361 rm -f conftest.err conftest.$ac_objext \
12362 conftest$ac_exeext conftest.$ac_ext
12363 LIBS=$ac_check_lib_save_LIBS
12365 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
12366 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
12367 if test $ac_cv_lib_net_socket = yes; then
12368 LIBS="-lnet $LIBS"
12370 # BeOS
12372 esac
12374 echo "$as_me:$LINENO: checking for --with-libs" >&5
12375 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
12377 # Check whether --with-libs or --without-libs was given.
12378 if test "${with_libs+set}" = set; then
12379 withval="$with_libs"
12381 echo "$as_me:$LINENO: result: $withval" >&5
12382 echo "${ECHO_T}$withval" >&6
12383 LIBS="$withval $LIBS"
12385 else
12386 echo "$as_me:$LINENO: result: no" >&5
12387 echo "${ECHO_T}no" >&6
12390 # Check for use of the system libffi library
12391 echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
12392 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6
12394 # Check whether --with-system_ffi or --without-system_ffi was given.
12395 if test "${with_system_ffi+set}" = set; then
12396 withval="$with_system_ffi"
12400 if test -z "$with_system_ffi"
12401 then with_system_ffi="no"
12403 echo "$as_me:$LINENO: result: $with_system_ffi" >&5
12404 echo "${ECHO_T}$with_system_ffi" >&6
12406 # Determine if signalmodule should be used.
12409 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
12410 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
12412 # Check whether --with-signal-module or --without-signal-module was given.
12413 if test "${with_signal_module+set}" = set; then
12414 withval="$with_signal_module"
12418 if test -z "$with_signal_module"
12419 then with_signal_module="yes"
12421 echo "$as_me:$LINENO: result: $with_signal_module" >&5
12422 echo "${ECHO_T}$with_signal_module" >&6
12424 if test "${with_signal_module}" = "yes"; then
12425 USE_SIGNAL_MODULE=""
12426 SIGNAL_OBJS=""
12427 else
12428 USE_SIGNAL_MODULE="#"
12429 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
12432 # This is used to generate Setup.config
12434 USE_THREAD_MODULE=""
12436 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
12437 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
12440 # Check whether --with-dec-threads or --without-dec-threads was given.
12441 if test "${with_dec_threads+set}" = set; then
12442 withval="$with_dec_threads"
12444 echo "$as_me:$LINENO: result: $withval" >&5
12445 echo "${ECHO_T}$withval" >&6
12446 LDLAST=-threads
12447 if test "${with_thread+set}" != set; then
12448 with_thread="$withval";
12450 else
12451 echo "$as_me:$LINENO: result: no" >&5
12452 echo "${ECHO_T}no" >&6
12455 # Templates for things AC_DEFINEd more than once.
12456 # For a single AC_DEFINE, no template is needed.
12464 echo "$as_me:$LINENO: checking for --with-threads" >&5
12465 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
12467 # Check whether --with-threads or --without-threads was given.
12468 if test "${with_threads+set}" = set; then
12469 withval="$with_threads"
12473 # --with-thread is deprecated, but check for it anyway
12475 # Check whether --with-thread or --without-thread was given.
12476 if test "${with_thread+set}" = set; then
12477 withval="$with_thread"
12478 with_threads=$with_thread
12481 if test -z "$with_threads"
12482 then with_threads="yes"
12484 echo "$as_me:$LINENO: result: $with_threads" >&5
12485 echo "${ECHO_T}$with_threads" >&6
12488 if test "$with_threads" = "no"
12489 then
12490 USE_THREAD_MODULE="#"
12491 elif test "$ac_cv_pthread_is_default" = yes
12492 then
12493 cat >>confdefs.h <<\_ACEOF
12494 #define WITH_THREAD 1
12495 _ACEOF
12497 # Defining _REENTRANT on system with POSIX threads should not hurt.
12498 cat >>confdefs.h <<\_ACEOF
12499 #define _REENTRANT 1
12500 _ACEOF
12502 posix_threads=yes
12503 THREADOBJ="Python/thread.o"
12504 elif test "$ac_cv_kpthread" = "yes"
12505 then
12506 CC="$CC -Kpthread"
12507 if test "$ac_cv_cxx_thread" = "yes"; then
12508 CXX="$CXX -Kpthread"
12510 cat >>confdefs.h <<\_ACEOF
12511 #define WITH_THREAD 1
12512 _ACEOF
12514 posix_threads=yes
12515 THREADOBJ="Python/thread.o"
12516 elif test "$ac_cv_kthread" = "yes"
12517 then
12518 CC="$CC -Kthread"
12519 if test "$ac_cv_cxx_thread" = "yes"; then
12520 CXX="$CXX -Kthread"
12522 cat >>confdefs.h <<\_ACEOF
12523 #define WITH_THREAD 1
12524 _ACEOF
12526 posix_threads=yes
12527 THREADOBJ="Python/thread.o"
12528 elif test "$ac_cv_pthread" = "yes"
12529 then
12530 CC="$CC -pthread"
12531 if test "$ac_cv_cxx_thread" = "yes"; then
12532 CXX="$CXX -pthread"
12534 cat >>confdefs.h <<\_ACEOF
12535 #define WITH_THREAD 1
12536 _ACEOF
12538 posix_threads=yes
12539 THREADOBJ="Python/thread.o"
12540 else
12541 if test ! -z "$with_threads" -a -d "$with_threads"
12542 then LDFLAGS="$LDFLAGS -L$with_threads"
12544 if test ! -z "$withval" -a -d "$withval"
12545 then LDFLAGS="$LDFLAGS -L$withval"
12548 # According to the POSIX spec, a pthreads implementation must
12549 # define _POSIX_THREADS in unistd.h. Some apparently don't
12550 # (e.g. gnu pth with pthread emulation)
12551 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
12552 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
12553 cat >conftest.$ac_ext <<_ACEOF
12554 /* confdefs.h. */
12555 _ACEOF
12556 cat confdefs.h >>conftest.$ac_ext
12557 cat >>conftest.$ac_ext <<_ACEOF
12558 /* end confdefs.h. */
12560 #include <unistd.h>
12561 #ifdef _POSIX_THREADS
12563 #endif
12565 _ACEOF
12566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12567 $EGREP "yes" >/dev/null 2>&1; then
12568 unistd_defines_pthreads=yes
12569 else
12570 unistd_defines_pthreads=no
12572 rm -f conftest*
12574 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
12575 echo "${ECHO_T}$unistd_defines_pthreads" >&6
12577 cat >>confdefs.h <<\_ACEOF
12578 #define _REENTRANT 1
12579 _ACEOF
12581 if test "${ac_cv_header_cthreads_h+set}" = set; then
12582 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12583 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12584 if test "${ac_cv_header_cthreads_h+set}" = set; then
12585 echo $ECHO_N "(cached) $ECHO_C" >&6
12587 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12588 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12589 else
12590 # Is the header compilable?
12591 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
12592 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
12593 cat >conftest.$ac_ext <<_ACEOF
12594 /* confdefs.h. */
12595 _ACEOF
12596 cat confdefs.h >>conftest.$ac_ext
12597 cat >>conftest.$ac_ext <<_ACEOF
12598 /* end confdefs.h. */
12599 $ac_includes_default
12600 #include <cthreads.h>
12601 _ACEOF
12602 rm -f conftest.$ac_objext
12603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12604 (eval $ac_compile) 2>conftest.er1
12605 ac_status=$?
12606 grep -v '^ *+' conftest.er1 >conftest.err
12607 rm -f conftest.er1
12608 cat conftest.err >&5
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); } &&
12611 { ac_try='test -z "$ac_c_werror_flag"
12612 || test ! -s conftest.err'
12613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12614 (eval $ac_try) 2>&5
12615 ac_status=$?
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); }; } &&
12618 { ac_try='test -s conftest.$ac_objext'
12619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12620 (eval $ac_try) 2>&5
12621 ac_status=$?
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); }; }; then
12624 ac_header_compiler=yes
12625 else
12626 echo "$as_me: failed program was:" >&5
12627 sed 's/^/| /' conftest.$ac_ext >&5
12629 ac_header_compiler=no
12631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12632 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12633 echo "${ECHO_T}$ac_header_compiler" >&6
12635 # Is the header present?
12636 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
12637 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
12638 cat >conftest.$ac_ext <<_ACEOF
12639 /* confdefs.h. */
12640 _ACEOF
12641 cat confdefs.h >>conftest.$ac_ext
12642 cat >>conftest.$ac_ext <<_ACEOF
12643 /* end confdefs.h. */
12644 #include <cthreads.h>
12645 _ACEOF
12646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12648 ac_status=$?
12649 grep -v '^ *+' conftest.er1 >conftest.err
12650 rm -f conftest.er1
12651 cat conftest.err >&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); } >/dev/null; then
12654 if test -s conftest.err; then
12655 ac_cpp_err=$ac_c_preproc_warn_flag
12656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12657 else
12658 ac_cpp_err=
12660 else
12661 ac_cpp_err=yes
12663 if test -z "$ac_cpp_err"; then
12664 ac_header_preproc=yes
12665 else
12666 echo "$as_me: failed program was:" >&5
12667 sed 's/^/| /' conftest.$ac_ext >&5
12669 ac_header_preproc=no
12671 rm -f conftest.err conftest.$ac_ext
12672 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12673 echo "${ECHO_T}$ac_header_preproc" >&6
12675 # So? What about this header?
12676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12677 yes:no: )
12678 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12679 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12680 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
12681 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
12682 ac_header_preproc=yes
12684 no:yes:* )
12685 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
12686 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
12687 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
12688 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
12689 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
12690 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
12691 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12692 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12693 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
12694 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
12695 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
12696 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
12698 cat <<\_ASBOX
12699 ## ------------------------------------------------ ##
12700 ## Report this to http://www.python.org/python-bugs ##
12701 ## ------------------------------------------------ ##
12702 _ASBOX
12704 sed "s/^/$as_me: WARNING: /" >&2
12706 esac
12707 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12708 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12709 if test "${ac_cv_header_cthreads_h+set}" = set; then
12710 echo $ECHO_N "(cached) $ECHO_C" >&6
12711 else
12712 ac_cv_header_cthreads_h=$ac_header_preproc
12714 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12715 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12718 if test $ac_cv_header_cthreads_h = yes; then
12719 cat >>confdefs.h <<\_ACEOF
12720 #define WITH_THREAD 1
12721 _ACEOF
12723 cat >>confdefs.h <<\_ACEOF
12724 #define C_THREADS 1
12725 _ACEOF
12728 cat >>confdefs.h <<\_ACEOF
12729 #define HURD_C_THREADS 1
12730 _ACEOF
12732 LIBS="$LIBS -lthreads"
12733 THREADOBJ="Python/thread.o"
12734 else
12736 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12737 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12738 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12739 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12740 echo $ECHO_N "(cached) $ECHO_C" >&6
12742 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12743 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12744 else
12745 # Is the header compilable?
12746 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
12747 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
12748 cat >conftest.$ac_ext <<_ACEOF
12749 /* confdefs.h. */
12750 _ACEOF
12751 cat confdefs.h >>conftest.$ac_ext
12752 cat >>conftest.$ac_ext <<_ACEOF
12753 /* end confdefs.h. */
12754 $ac_includes_default
12755 #include <mach/cthreads.h>
12756 _ACEOF
12757 rm -f conftest.$ac_objext
12758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12759 (eval $ac_compile) 2>conftest.er1
12760 ac_status=$?
12761 grep -v '^ *+' conftest.er1 >conftest.err
12762 rm -f conftest.er1
12763 cat conftest.err >&5
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); } &&
12766 { ac_try='test -z "$ac_c_werror_flag"
12767 || test ! -s conftest.err'
12768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12769 (eval $ac_try) 2>&5
12770 ac_status=$?
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); }; } &&
12773 { ac_try='test -s conftest.$ac_objext'
12774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12775 (eval $ac_try) 2>&5
12776 ac_status=$?
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); }; }; then
12779 ac_header_compiler=yes
12780 else
12781 echo "$as_me: failed program was:" >&5
12782 sed 's/^/| /' conftest.$ac_ext >&5
12784 ac_header_compiler=no
12786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12787 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12788 echo "${ECHO_T}$ac_header_compiler" >&6
12790 # Is the header present?
12791 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
12792 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
12793 cat >conftest.$ac_ext <<_ACEOF
12794 /* confdefs.h. */
12795 _ACEOF
12796 cat confdefs.h >>conftest.$ac_ext
12797 cat >>conftest.$ac_ext <<_ACEOF
12798 /* end confdefs.h. */
12799 #include <mach/cthreads.h>
12800 _ACEOF
12801 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12803 ac_status=$?
12804 grep -v '^ *+' conftest.er1 >conftest.err
12805 rm -f conftest.er1
12806 cat conftest.err >&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); } >/dev/null; then
12809 if test -s conftest.err; then
12810 ac_cpp_err=$ac_c_preproc_warn_flag
12811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12812 else
12813 ac_cpp_err=
12815 else
12816 ac_cpp_err=yes
12818 if test -z "$ac_cpp_err"; then
12819 ac_header_preproc=yes
12820 else
12821 echo "$as_me: failed program was:" >&5
12822 sed 's/^/| /' conftest.$ac_ext >&5
12824 ac_header_preproc=no
12826 rm -f conftest.err conftest.$ac_ext
12827 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12828 echo "${ECHO_T}$ac_header_preproc" >&6
12830 # So? What about this header?
12831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12832 yes:no: )
12833 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12834 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12835 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
12836 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
12837 ac_header_preproc=yes
12839 no:yes:* )
12840 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
12841 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
12842 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
12843 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
12844 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
12845 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
12846 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12847 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12848 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
12849 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
12850 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
12851 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
12853 cat <<\_ASBOX
12854 ## ------------------------------------------------ ##
12855 ## Report this to http://www.python.org/python-bugs ##
12856 ## ------------------------------------------------ ##
12857 _ASBOX
12859 sed "s/^/$as_me: WARNING: /" >&2
12861 esac
12862 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12863 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12864 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12865 echo $ECHO_N "(cached) $ECHO_C" >&6
12866 else
12867 ac_cv_header_mach_cthreads_h=$ac_header_preproc
12869 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12870 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12873 if test $ac_cv_header_mach_cthreads_h = yes; then
12874 cat >>confdefs.h <<\_ACEOF
12875 #define WITH_THREAD 1
12876 _ACEOF
12878 cat >>confdefs.h <<\_ACEOF
12879 #define C_THREADS 1
12880 _ACEOF
12883 cat >>confdefs.h <<\_ACEOF
12884 #define MACH_C_THREADS 1
12885 _ACEOF
12887 THREADOBJ="Python/thread.o"
12888 else
12890 echo "$as_me:$LINENO: checking for --with-pth" >&5
12891 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
12893 # Check whether --with-pth or --without-pth was given.
12894 if test "${with_pth+set}" = set; then
12895 withval="$with_pth"
12896 echo "$as_me:$LINENO: result: $withval" >&5
12897 echo "${ECHO_T}$withval" >&6
12898 cat >>confdefs.h <<\_ACEOF
12899 #define WITH_THREAD 1
12900 _ACEOF
12903 cat >>confdefs.h <<\_ACEOF
12904 #define HAVE_PTH 1
12905 _ACEOF
12907 LIBS="-lpth $LIBS"
12908 THREADOBJ="Python/thread.o"
12909 else
12910 echo "$as_me:$LINENO: result: no" >&5
12911 echo "${ECHO_T}no" >&6
12913 # Just looking for pthread_create in libpthread is not enough:
12914 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
12915 # So we really have to include pthread.h, and then link.
12916 _libs=$LIBS
12917 LIBS="$LIBS -lpthread"
12918 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
12919 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
12920 cat >conftest.$ac_ext <<_ACEOF
12921 /* confdefs.h. */
12922 _ACEOF
12923 cat confdefs.h >>conftest.$ac_ext
12924 cat >>conftest.$ac_ext <<_ACEOF
12925 /* end confdefs.h. */
12926 #include <pthread.h>
12928 void * start_routine (void *arg) { exit (0); }
12930 main ()
12933 pthread_create (NULL, NULL, start_routine, NULL)
12935 return 0;
12937 _ACEOF
12938 rm -f conftest.$ac_objext conftest$ac_exeext
12939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12940 (eval $ac_link) 2>conftest.er1
12941 ac_status=$?
12942 grep -v '^ *+' conftest.er1 >conftest.err
12943 rm -f conftest.er1
12944 cat conftest.err >&5
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); } &&
12947 { ac_try='test -z "$ac_c_werror_flag"
12948 || test ! -s conftest.err'
12949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12950 (eval $ac_try) 2>&5
12951 ac_status=$?
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); }; } &&
12954 { ac_try='test -s conftest$ac_exeext'
12955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12956 (eval $ac_try) 2>&5
12957 ac_status=$?
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); }; }; then
12961 echo "$as_me:$LINENO: result: yes" >&5
12962 echo "${ECHO_T}yes" >&6
12963 cat >>confdefs.h <<\_ACEOF
12964 #define WITH_THREAD 1
12965 _ACEOF
12967 posix_threads=yes
12968 THREADOBJ="Python/thread.o"
12969 else
12970 echo "$as_me: failed program was:" >&5
12971 sed 's/^/| /' conftest.$ac_ext >&5
12974 LIBS=$_libs
12975 echo "$as_me:$LINENO: checking for pthread_detach" >&5
12976 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
12977 if test "${ac_cv_func_pthread_detach+set}" = set; then
12978 echo $ECHO_N "(cached) $ECHO_C" >&6
12979 else
12980 cat >conftest.$ac_ext <<_ACEOF
12981 /* confdefs.h. */
12982 _ACEOF
12983 cat confdefs.h >>conftest.$ac_ext
12984 cat >>conftest.$ac_ext <<_ACEOF
12985 /* end confdefs.h. */
12986 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
12987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12988 #define pthread_detach innocuous_pthread_detach
12990 /* System header to define __stub macros and hopefully few prototypes,
12991 which can conflict with char pthread_detach (); below.
12992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12993 <limits.h> exists even on freestanding compilers. */
12995 #ifdef __STDC__
12996 # include <limits.h>
12997 #else
12998 # include <assert.h>
12999 #endif
13001 #undef pthread_detach
13003 /* Override any gcc2 internal prototype to avoid an error. */
13004 #ifdef __cplusplus
13005 extern "C"
13007 #endif
13008 /* We use char because int might match the return type of a gcc2
13009 builtin and then its argument prototype would still apply. */
13010 char pthread_detach ();
13011 /* The GNU C library defines this for functions which it implements
13012 to always fail with ENOSYS. Some functions are actually named
13013 something starting with __ and the normal name is an alias. */
13014 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
13015 choke me
13016 #else
13017 char (*f) () = pthread_detach;
13018 #endif
13019 #ifdef __cplusplus
13021 #endif
13024 main ()
13026 return f != pthread_detach;
13028 return 0;
13030 _ACEOF
13031 rm -f conftest.$ac_objext conftest$ac_exeext
13032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13033 (eval $ac_link) 2>conftest.er1
13034 ac_status=$?
13035 grep -v '^ *+' conftest.er1 >conftest.err
13036 rm -f conftest.er1
13037 cat conftest.err >&5
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); } &&
13040 { ac_try='test -z "$ac_c_werror_flag"
13041 || test ! -s conftest.err'
13042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13043 (eval $ac_try) 2>&5
13044 ac_status=$?
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); }; } &&
13047 { ac_try='test -s conftest$ac_exeext'
13048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13049 (eval $ac_try) 2>&5
13050 ac_status=$?
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); }; }; then
13053 ac_cv_func_pthread_detach=yes
13054 else
13055 echo "$as_me: failed program was:" >&5
13056 sed 's/^/| /' conftest.$ac_ext >&5
13058 ac_cv_func_pthread_detach=no
13060 rm -f conftest.err conftest.$ac_objext \
13061 conftest$ac_exeext conftest.$ac_ext
13063 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
13064 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
13065 if test $ac_cv_func_pthread_detach = yes; then
13066 cat >>confdefs.h <<\_ACEOF
13067 #define WITH_THREAD 1
13068 _ACEOF
13070 posix_threads=yes
13071 THREADOBJ="Python/thread.o"
13072 else
13074 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13075 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
13076 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
13077 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13078 echo $ECHO_N "(cached) $ECHO_C" >&6
13080 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
13081 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
13082 else
13083 # Is the header compilable?
13084 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
13085 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
13086 cat >conftest.$ac_ext <<_ACEOF
13087 /* confdefs.h. */
13088 _ACEOF
13089 cat confdefs.h >>conftest.$ac_ext
13090 cat >>conftest.$ac_ext <<_ACEOF
13091 /* end confdefs.h. */
13092 $ac_includes_default
13093 #include <atheos/threads.h>
13094 _ACEOF
13095 rm -f conftest.$ac_objext
13096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13097 (eval $ac_compile) 2>conftest.er1
13098 ac_status=$?
13099 grep -v '^ *+' conftest.er1 >conftest.err
13100 rm -f conftest.er1
13101 cat conftest.err >&5
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); } &&
13104 { ac_try='test -z "$ac_c_werror_flag"
13105 || test ! -s conftest.err'
13106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107 (eval $ac_try) 2>&5
13108 ac_status=$?
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); }; } &&
13111 { ac_try='test -s conftest.$ac_objext'
13112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13113 (eval $ac_try) 2>&5
13114 ac_status=$?
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); }; }; then
13117 ac_header_compiler=yes
13118 else
13119 echo "$as_me: failed program was:" >&5
13120 sed 's/^/| /' conftest.$ac_ext >&5
13122 ac_header_compiler=no
13124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13125 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13126 echo "${ECHO_T}$ac_header_compiler" >&6
13128 # Is the header present?
13129 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
13130 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
13131 cat >conftest.$ac_ext <<_ACEOF
13132 /* confdefs.h. */
13133 _ACEOF
13134 cat confdefs.h >>conftest.$ac_ext
13135 cat >>conftest.$ac_ext <<_ACEOF
13136 /* end confdefs.h. */
13137 #include <atheos/threads.h>
13138 _ACEOF
13139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13141 ac_status=$?
13142 grep -v '^ *+' conftest.er1 >conftest.err
13143 rm -f conftest.er1
13144 cat conftest.err >&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); } >/dev/null; then
13147 if test -s conftest.err; then
13148 ac_cpp_err=$ac_c_preproc_warn_flag
13149 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13150 else
13151 ac_cpp_err=
13153 else
13154 ac_cpp_err=yes
13156 if test -z "$ac_cpp_err"; then
13157 ac_header_preproc=yes
13158 else
13159 echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13162 ac_header_preproc=no
13164 rm -f conftest.err conftest.$ac_ext
13165 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13166 echo "${ECHO_T}$ac_header_preproc" >&6
13168 # So? What about this header?
13169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13170 yes:no: )
13171 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13172 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13173 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
13174 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
13175 ac_header_preproc=yes
13177 no:yes:* )
13178 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
13179 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
13180 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
13181 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
13182 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
13183 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
13184 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
13185 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13186 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
13187 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
13188 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
13189 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
13191 cat <<\_ASBOX
13192 ## ------------------------------------------------ ##
13193 ## Report this to http://www.python.org/python-bugs ##
13194 ## ------------------------------------------------ ##
13195 _ASBOX
13197 sed "s/^/$as_me: WARNING: /" >&2
13199 esac
13200 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
13201 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
13202 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13203 echo $ECHO_N "(cached) $ECHO_C" >&6
13204 else
13205 ac_cv_header_atheos_threads_h=$ac_header_preproc
13207 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
13208 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
13211 if test $ac_cv_header_atheos_threads_h = yes; then
13212 cat >>confdefs.h <<\_ACEOF
13213 #define WITH_THREAD 1
13214 _ACEOF
13217 cat >>confdefs.h <<\_ACEOF
13218 #define ATHEOS_THREADS 1
13219 _ACEOF
13221 THREADOBJ="Python/thread.o"
13222 else
13224 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
13225 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
13226 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
13227 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
13228 echo $ECHO_N "(cached) $ECHO_C" >&6
13230 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
13231 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
13232 else
13233 # Is the header compilable?
13234 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
13235 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
13236 cat >conftest.$ac_ext <<_ACEOF
13237 /* confdefs.h. */
13238 _ACEOF
13239 cat confdefs.h >>conftest.$ac_ext
13240 cat >>conftest.$ac_ext <<_ACEOF
13241 /* end confdefs.h. */
13242 $ac_includes_default
13243 #include <kernel/OS.h>
13244 _ACEOF
13245 rm -f conftest.$ac_objext
13246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13247 (eval $ac_compile) 2>conftest.er1
13248 ac_status=$?
13249 grep -v '^ *+' conftest.er1 >conftest.err
13250 rm -f conftest.er1
13251 cat conftest.err >&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); } &&
13254 { ac_try='test -z "$ac_c_werror_flag"
13255 || test ! -s conftest.err'
13256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257 (eval $ac_try) 2>&5
13258 ac_status=$?
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); }; } &&
13261 { ac_try='test -s conftest.$ac_objext'
13262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13263 (eval $ac_try) 2>&5
13264 ac_status=$?
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); }; }; then
13267 ac_header_compiler=yes
13268 else
13269 echo "$as_me: failed program was:" >&5
13270 sed 's/^/| /' conftest.$ac_ext >&5
13272 ac_header_compiler=no
13274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13275 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13276 echo "${ECHO_T}$ac_header_compiler" >&6
13278 # Is the header present?
13279 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
13280 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
13281 cat >conftest.$ac_ext <<_ACEOF
13282 /* confdefs.h. */
13283 _ACEOF
13284 cat confdefs.h >>conftest.$ac_ext
13285 cat >>conftest.$ac_ext <<_ACEOF
13286 /* end confdefs.h. */
13287 #include <kernel/OS.h>
13288 _ACEOF
13289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13291 ac_status=$?
13292 grep -v '^ *+' conftest.er1 >conftest.err
13293 rm -f conftest.er1
13294 cat conftest.err >&5
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); } >/dev/null; then
13297 if test -s conftest.err; then
13298 ac_cpp_err=$ac_c_preproc_warn_flag
13299 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13300 else
13301 ac_cpp_err=
13303 else
13304 ac_cpp_err=yes
13306 if test -z "$ac_cpp_err"; then
13307 ac_header_preproc=yes
13308 else
13309 echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.$ac_ext >&5
13312 ac_header_preproc=no
13314 rm -f conftest.err conftest.$ac_ext
13315 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13316 echo "${ECHO_T}$ac_header_preproc" >&6
13318 # So? What about this header?
13319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13320 yes:no: )
13321 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
13322 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13323 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
13324 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
13325 ac_header_preproc=yes
13327 no:yes:* )
13328 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
13329 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
13330 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
13331 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
13332 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
13333 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
13334 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
13335 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
13336 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
13337 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
13338 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
13339 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
13341 cat <<\_ASBOX
13342 ## ------------------------------------------------ ##
13343 ## Report this to http://www.python.org/python-bugs ##
13344 ## ------------------------------------------------ ##
13345 _ASBOX
13347 sed "s/^/$as_me: WARNING: /" >&2
13349 esac
13350 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
13351 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
13352 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
13353 echo $ECHO_N "(cached) $ECHO_C" >&6
13354 else
13355 ac_cv_header_kernel_OS_h=$ac_header_preproc
13357 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
13358 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
13361 if test $ac_cv_header_kernel_OS_h = yes; then
13362 cat >>confdefs.h <<\_ACEOF
13363 #define WITH_THREAD 1
13364 _ACEOF
13367 cat >>confdefs.h <<\_ACEOF
13368 #define BEOS_THREADS 1
13369 _ACEOF
13371 THREADOBJ="Python/thread.o"
13372 else
13374 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
13375 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
13376 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
13377 echo $ECHO_N "(cached) $ECHO_C" >&6
13378 else
13379 ac_check_lib_save_LIBS=$LIBS
13380 LIBS="-lpthreads $LIBS"
13381 cat >conftest.$ac_ext <<_ACEOF
13382 /* confdefs.h. */
13383 _ACEOF
13384 cat confdefs.h >>conftest.$ac_ext
13385 cat >>conftest.$ac_ext <<_ACEOF
13386 /* end confdefs.h. */
13388 /* Override any gcc2 internal prototype to avoid an error. */
13389 #ifdef __cplusplus
13390 extern "C"
13391 #endif
13392 /* We use char because int might match the return type of a gcc2
13393 builtin and then its argument prototype would still apply. */
13394 char pthread_create ();
13396 main ()
13398 pthread_create ();
13400 return 0;
13402 _ACEOF
13403 rm -f conftest.$ac_objext conftest$ac_exeext
13404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13405 (eval $ac_link) 2>conftest.er1
13406 ac_status=$?
13407 grep -v '^ *+' conftest.er1 >conftest.err
13408 rm -f conftest.er1
13409 cat conftest.err >&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); } &&
13412 { ac_try='test -z "$ac_c_werror_flag"
13413 || test ! -s conftest.err'
13414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13415 (eval $ac_try) 2>&5
13416 ac_status=$?
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }; } &&
13419 { ac_try='test -s conftest$ac_exeext'
13420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13421 (eval $ac_try) 2>&5
13422 ac_status=$?
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); }; }; then
13425 ac_cv_lib_pthreads_pthread_create=yes
13426 else
13427 echo "$as_me: failed program was:" >&5
13428 sed 's/^/| /' conftest.$ac_ext >&5
13430 ac_cv_lib_pthreads_pthread_create=no
13432 rm -f conftest.err conftest.$ac_objext \
13433 conftest$ac_exeext conftest.$ac_ext
13434 LIBS=$ac_check_lib_save_LIBS
13436 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
13437 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
13438 if test $ac_cv_lib_pthreads_pthread_create = yes; then
13439 cat >>confdefs.h <<\_ACEOF
13440 #define WITH_THREAD 1
13441 _ACEOF
13443 posix_threads=yes
13444 LIBS="$LIBS -lpthreads"
13445 THREADOBJ="Python/thread.o"
13446 else
13448 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
13449 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
13450 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
13451 echo $ECHO_N "(cached) $ECHO_C" >&6
13452 else
13453 ac_check_lib_save_LIBS=$LIBS
13454 LIBS="-lc_r $LIBS"
13455 cat >conftest.$ac_ext <<_ACEOF
13456 /* confdefs.h. */
13457 _ACEOF
13458 cat confdefs.h >>conftest.$ac_ext
13459 cat >>conftest.$ac_ext <<_ACEOF
13460 /* end confdefs.h. */
13462 /* Override any gcc2 internal prototype to avoid an error. */
13463 #ifdef __cplusplus
13464 extern "C"
13465 #endif
13466 /* We use char because int might match the return type of a gcc2
13467 builtin and then its argument prototype would still apply. */
13468 char pthread_create ();
13470 main ()
13472 pthread_create ();
13474 return 0;
13476 _ACEOF
13477 rm -f conftest.$ac_objext conftest$ac_exeext
13478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13479 (eval $ac_link) 2>conftest.er1
13480 ac_status=$?
13481 grep -v '^ *+' conftest.er1 >conftest.err
13482 rm -f conftest.er1
13483 cat conftest.err >&5
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); } &&
13486 { ac_try='test -z "$ac_c_werror_flag"
13487 || test ! -s conftest.err'
13488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13489 (eval $ac_try) 2>&5
13490 ac_status=$?
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); }; } &&
13493 { ac_try='test -s conftest$ac_exeext'
13494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495 (eval $ac_try) 2>&5
13496 ac_status=$?
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; }; then
13499 ac_cv_lib_c_r_pthread_create=yes
13500 else
13501 echo "$as_me: failed program was:" >&5
13502 sed 's/^/| /' conftest.$ac_ext >&5
13504 ac_cv_lib_c_r_pthread_create=no
13506 rm -f conftest.err conftest.$ac_objext \
13507 conftest$ac_exeext conftest.$ac_ext
13508 LIBS=$ac_check_lib_save_LIBS
13510 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
13511 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
13512 if test $ac_cv_lib_c_r_pthread_create = yes; then
13513 cat >>confdefs.h <<\_ACEOF
13514 #define WITH_THREAD 1
13515 _ACEOF
13517 posix_threads=yes
13518 LIBS="$LIBS -lc_r"
13519 THREADOBJ="Python/thread.o"
13520 else
13522 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
13523 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
13524 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
13525 echo $ECHO_N "(cached) $ECHO_C" >&6
13526 else
13527 ac_check_lib_save_LIBS=$LIBS
13528 LIBS="-lpthread $LIBS"
13529 cat >conftest.$ac_ext <<_ACEOF
13530 /* confdefs.h. */
13531 _ACEOF
13532 cat confdefs.h >>conftest.$ac_ext
13533 cat >>conftest.$ac_ext <<_ACEOF
13534 /* end confdefs.h. */
13536 /* Override any gcc2 internal prototype to avoid an error. */
13537 #ifdef __cplusplus
13538 extern "C"
13539 #endif
13540 /* We use char because int might match the return type of a gcc2
13541 builtin and then its argument prototype would still apply. */
13542 char __pthread_create_system ();
13544 main ()
13546 __pthread_create_system ();
13548 return 0;
13550 _ACEOF
13551 rm -f conftest.$ac_objext conftest$ac_exeext
13552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13553 (eval $ac_link) 2>conftest.er1
13554 ac_status=$?
13555 grep -v '^ *+' conftest.er1 >conftest.err
13556 rm -f conftest.er1
13557 cat conftest.err >&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); } &&
13560 { ac_try='test -z "$ac_c_werror_flag"
13561 || test ! -s conftest.err'
13562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563 (eval $ac_try) 2>&5
13564 ac_status=$?
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); }; } &&
13567 { ac_try='test -s conftest$ac_exeext'
13568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13569 (eval $ac_try) 2>&5
13570 ac_status=$?
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); }; }; then
13573 ac_cv_lib_pthread___pthread_create_system=yes
13574 else
13575 echo "$as_me: failed program was:" >&5
13576 sed 's/^/| /' conftest.$ac_ext >&5
13578 ac_cv_lib_pthread___pthread_create_system=no
13580 rm -f conftest.err conftest.$ac_objext \
13581 conftest$ac_exeext conftest.$ac_ext
13582 LIBS=$ac_check_lib_save_LIBS
13584 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
13585 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
13586 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
13587 cat >>confdefs.h <<\_ACEOF
13588 #define WITH_THREAD 1
13589 _ACEOF
13591 posix_threads=yes
13592 LIBS="$LIBS -lpthread"
13593 THREADOBJ="Python/thread.o"
13594 else
13596 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
13597 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
13598 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
13599 echo $ECHO_N "(cached) $ECHO_C" >&6
13600 else
13601 ac_check_lib_save_LIBS=$LIBS
13602 LIBS="-lcma $LIBS"
13603 cat >conftest.$ac_ext <<_ACEOF
13604 /* confdefs.h. */
13605 _ACEOF
13606 cat confdefs.h >>conftest.$ac_ext
13607 cat >>conftest.$ac_ext <<_ACEOF
13608 /* end confdefs.h. */
13610 /* Override any gcc2 internal prototype to avoid an error. */
13611 #ifdef __cplusplus
13612 extern "C"
13613 #endif
13614 /* We use char because int might match the return type of a gcc2
13615 builtin and then its argument prototype would still apply. */
13616 char pthread_create ();
13618 main ()
13620 pthread_create ();
13622 return 0;
13624 _ACEOF
13625 rm -f conftest.$ac_objext conftest$ac_exeext
13626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13627 (eval $ac_link) 2>conftest.er1
13628 ac_status=$?
13629 grep -v '^ *+' conftest.er1 >conftest.err
13630 rm -f conftest.er1
13631 cat conftest.err >&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); } &&
13634 { ac_try='test -z "$ac_c_werror_flag"
13635 || test ! -s conftest.err'
13636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13637 (eval $ac_try) 2>&5
13638 ac_status=$?
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); }; } &&
13641 { ac_try='test -s conftest$ac_exeext'
13642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13643 (eval $ac_try) 2>&5
13644 ac_status=$?
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); }; }; then
13647 ac_cv_lib_cma_pthread_create=yes
13648 else
13649 echo "$as_me: failed program was:" >&5
13650 sed 's/^/| /' conftest.$ac_ext >&5
13652 ac_cv_lib_cma_pthread_create=no
13654 rm -f conftest.err conftest.$ac_objext \
13655 conftest$ac_exeext conftest.$ac_ext
13656 LIBS=$ac_check_lib_save_LIBS
13658 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
13659 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
13660 if test $ac_cv_lib_cma_pthread_create = yes; then
13661 cat >>confdefs.h <<\_ACEOF
13662 #define WITH_THREAD 1
13663 _ACEOF
13665 posix_threads=yes
13666 LIBS="$LIBS -lcma"
13667 THREADOBJ="Python/thread.o"
13668 else
13670 USE_THREAD_MODULE="#"
13689 rm -f conftest.err conftest.$ac_objext \
13690 conftest$ac_exeext conftest.$ac_ext
13699 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
13700 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
13701 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
13702 echo $ECHO_N "(cached) $ECHO_C" >&6
13703 else
13704 ac_check_lib_save_LIBS=$LIBS
13705 LIBS="-lmpc $LIBS"
13706 cat >conftest.$ac_ext <<_ACEOF
13707 /* confdefs.h. */
13708 _ACEOF
13709 cat confdefs.h >>conftest.$ac_ext
13710 cat >>conftest.$ac_ext <<_ACEOF
13711 /* end confdefs.h. */
13713 /* Override any gcc2 internal prototype to avoid an error. */
13714 #ifdef __cplusplus
13715 extern "C"
13716 #endif
13717 /* We use char because int might match the return type of a gcc2
13718 builtin and then its argument prototype would still apply. */
13719 char usconfig ();
13721 main ()
13723 usconfig ();
13725 return 0;
13727 _ACEOF
13728 rm -f conftest.$ac_objext conftest$ac_exeext
13729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13730 (eval $ac_link) 2>conftest.er1
13731 ac_status=$?
13732 grep -v '^ *+' conftest.er1 >conftest.err
13733 rm -f conftest.er1
13734 cat conftest.err >&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); } &&
13737 { ac_try='test -z "$ac_c_werror_flag"
13738 || test ! -s conftest.err'
13739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13740 (eval $ac_try) 2>&5
13741 ac_status=$?
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }; } &&
13744 { ac_try='test -s conftest$ac_exeext'
13745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13746 (eval $ac_try) 2>&5
13747 ac_status=$?
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); }; }; then
13750 ac_cv_lib_mpc_usconfig=yes
13751 else
13752 echo "$as_me: failed program was:" >&5
13753 sed 's/^/| /' conftest.$ac_ext >&5
13755 ac_cv_lib_mpc_usconfig=no
13757 rm -f conftest.err conftest.$ac_objext \
13758 conftest$ac_exeext conftest.$ac_ext
13759 LIBS=$ac_check_lib_save_LIBS
13761 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
13762 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
13763 if test $ac_cv_lib_mpc_usconfig = yes; then
13764 cat >>confdefs.h <<\_ACEOF
13765 #define WITH_THREAD 1
13766 _ACEOF
13768 LIBS="$LIBS -lmpc"
13769 THREADOBJ="Python/thread.o"
13770 USE_THREAD_MODULE=""
13774 if test "$posix_threads" != "yes"; then
13775 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
13776 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
13777 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
13778 echo $ECHO_N "(cached) $ECHO_C" >&6
13779 else
13780 ac_check_lib_save_LIBS=$LIBS
13781 LIBS="-lthread $LIBS"
13782 cat >conftest.$ac_ext <<_ACEOF
13783 /* confdefs.h. */
13784 _ACEOF
13785 cat confdefs.h >>conftest.$ac_ext
13786 cat >>conftest.$ac_ext <<_ACEOF
13787 /* end confdefs.h. */
13789 /* Override any gcc2 internal prototype to avoid an error. */
13790 #ifdef __cplusplus
13791 extern "C"
13792 #endif
13793 /* We use char because int might match the return type of a gcc2
13794 builtin and then its argument prototype would still apply. */
13795 char thr_create ();
13797 main ()
13799 thr_create ();
13801 return 0;
13803 _ACEOF
13804 rm -f conftest.$ac_objext conftest$ac_exeext
13805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13806 (eval $ac_link) 2>conftest.er1
13807 ac_status=$?
13808 grep -v '^ *+' conftest.er1 >conftest.err
13809 rm -f conftest.er1
13810 cat conftest.err >&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); } &&
13813 { ac_try='test -z "$ac_c_werror_flag"
13814 || test ! -s conftest.err'
13815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13816 (eval $ac_try) 2>&5
13817 ac_status=$?
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); }; } &&
13820 { ac_try='test -s conftest$ac_exeext'
13821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13822 (eval $ac_try) 2>&5
13823 ac_status=$?
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); }; }; then
13826 ac_cv_lib_thread_thr_create=yes
13827 else
13828 echo "$as_me: failed program was:" >&5
13829 sed 's/^/| /' conftest.$ac_ext >&5
13831 ac_cv_lib_thread_thr_create=no
13833 rm -f conftest.err conftest.$ac_objext \
13834 conftest$ac_exeext conftest.$ac_ext
13835 LIBS=$ac_check_lib_save_LIBS
13837 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
13838 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
13839 if test $ac_cv_lib_thread_thr_create = yes; then
13840 cat >>confdefs.h <<\_ACEOF
13841 #define WITH_THREAD 1
13842 _ACEOF
13844 LIBS="$LIBS -lthread"
13845 THREADOBJ="Python/thread.o"
13846 USE_THREAD_MODULE=""
13851 if test "$USE_THREAD_MODULE" != "#"
13852 then
13853 # If the above checks didn't disable threads, (at least) OSF1
13854 # needs this '-threads' argument during linking.
13855 case $ac_sys_system in
13856 OSF1) LDLAST=-threads;;
13857 esac
13861 if test "$posix_threads" = "yes"; then
13862 if test "$unistd_defines_pthreads" = "no"; then
13864 cat >>confdefs.h <<\_ACEOF
13865 #define _POSIX_THREADS 1
13866 _ACEOF
13870 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
13871 case $ac_sys_system/$ac_sys_release in
13872 SunOS/5.6)
13873 cat >>confdefs.h <<\_ACEOF
13874 #define HAVE_PTHREAD_DESTRUCTOR 1
13875 _ACEOF
13878 SunOS/5.8)
13879 cat >>confdefs.h <<\_ACEOF
13880 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
13881 _ACEOF
13884 esac
13886 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
13887 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
13888 if test "${ac_cv_pthread_system_supported+set}" = set; then
13889 echo $ECHO_N "(cached) $ECHO_C" >&6
13890 else
13891 if test "$cross_compiling" = yes; then
13892 ac_cv_pthread_system_supported=no
13893 else
13894 cat >conftest.$ac_ext <<_ACEOF
13895 /* confdefs.h. */
13896 _ACEOF
13897 cat confdefs.h >>conftest.$ac_ext
13898 cat >>conftest.$ac_ext <<_ACEOF
13899 /* end confdefs.h. */
13900 #include <pthread.h>
13901 void *foo(void *parm) {
13902 return NULL;
13904 main() {
13905 pthread_attr_t attr;
13906 pthread_t id;
13907 if (pthread_attr_init(&attr)) exit(-1);
13908 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
13909 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
13910 exit(0);
13912 _ACEOF
13913 rm -f conftest$ac_exeext
13914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13915 (eval $ac_link) 2>&5
13916 ac_status=$?
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920 (eval $ac_try) 2>&5
13921 ac_status=$?
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); }; }; then
13924 ac_cv_pthread_system_supported=yes
13925 else
13926 echo "$as_me: program exited with status $ac_status" >&5
13927 echo "$as_me: failed program was:" >&5
13928 sed 's/^/| /' conftest.$ac_ext >&5
13930 ( exit $ac_status )
13931 ac_cv_pthread_system_supported=no
13933 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13938 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
13939 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
13940 if test "$ac_cv_pthread_system_supported" = "yes"; then
13942 cat >>confdefs.h <<\_ACEOF
13943 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
13944 _ACEOF
13948 for ac_func in pthread_sigmask
13950 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13951 echo "$as_me:$LINENO: checking for $ac_func" >&5
13952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13953 if eval "test \"\${$as_ac_var+set}\" = set"; then
13954 echo $ECHO_N "(cached) $ECHO_C" >&6
13955 else
13956 cat >conftest.$ac_ext <<_ACEOF
13957 /* confdefs.h. */
13958 _ACEOF
13959 cat confdefs.h >>conftest.$ac_ext
13960 cat >>conftest.$ac_ext <<_ACEOF
13961 /* end confdefs.h. */
13962 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13964 #define $ac_func innocuous_$ac_func
13966 /* System header to define __stub macros and hopefully few prototypes,
13967 which can conflict with char $ac_func (); below.
13968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13969 <limits.h> exists even on freestanding compilers. */
13971 #ifdef __STDC__
13972 # include <limits.h>
13973 #else
13974 # include <assert.h>
13975 #endif
13977 #undef $ac_func
13979 /* Override any gcc2 internal prototype to avoid an error. */
13980 #ifdef __cplusplus
13981 extern "C"
13983 #endif
13984 /* We use char because int might match the return type of a gcc2
13985 builtin and then its argument prototype would still apply. */
13986 char $ac_func ();
13987 /* The GNU C library defines this for functions which it implements
13988 to always fail with ENOSYS. Some functions are actually named
13989 something starting with __ and the normal name is an alias. */
13990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13991 choke me
13992 #else
13993 char (*f) () = $ac_func;
13994 #endif
13995 #ifdef __cplusplus
13997 #endif
14000 main ()
14002 return f != $ac_func;
14004 return 0;
14006 _ACEOF
14007 rm -f conftest.$ac_objext conftest$ac_exeext
14008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14009 (eval $ac_link) 2>conftest.er1
14010 ac_status=$?
14011 grep -v '^ *+' conftest.er1 >conftest.err
14012 rm -f conftest.er1
14013 cat conftest.err >&5
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); } &&
14016 { ac_try='test -z "$ac_c_werror_flag"
14017 || test ! -s conftest.err'
14018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14019 (eval $ac_try) 2>&5
14020 ac_status=$?
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); }; } &&
14023 { ac_try='test -s conftest$ac_exeext'
14024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14025 (eval $ac_try) 2>&5
14026 ac_status=$?
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); }; }; then
14029 eval "$as_ac_var=yes"
14030 else
14031 echo "$as_me: failed program was:" >&5
14032 sed 's/^/| /' conftest.$ac_ext >&5
14034 eval "$as_ac_var=no"
14036 rm -f conftest.err conftest.$ac_objext \
14037 conftest$ac_exeext conftest.$ac_ext
14039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14040 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14041 if test `eval echo '${'$as_ac_var'}'` = yes; then
14042 cat >>confdefs.h <<_ACEOF
14043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14044 _ACEOF
14045 case $ac_sys_system in
14046 CYGWIN*)
14048 cat >>confdefs.h <<\_ACEOF
14049 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
14050 _ACEOF
14053 esac
14055 done
14060 # Check for enable-ipv6
14063 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
14064 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
14065 # Check whether --enable-ipv6 or --disable-ipv6 was given.
14066 if test "${enable_ipv6+set}" = set; then
14067 enableval="$enable_ipv6"
14068 case "$enableval" in
14070 echo "$as_me:$LINENO: result: no" >&5
14071 echo "${ECHO_T}no" >&6
14072 ipv6=no
14074 *) echo "$as_me:$LINENO: result: yes" >&5
14075 echo "${ECHO_T}yes" >&6
14076 cat >>confdefs.h <<\_ACEOF
14077 #define ENABLE_IPV6 1
14078 _ACEOF
14080 ipv6=yes
14082 esac
14083 else
14085 if test "$cross_compiling" = yes; then
14086 echo "$as_me:$LINENO: result: no" >&5
14087 echo "${ECHO_T}no" >&6
14088 ipv6=no
14090 else
14091 cat >conftest.$ac_ext <<_ACEOF
14092 /* confdefs.h. */
14093 _ACEOF
14094 cat confdefs.h >>conftest.$ac_ext
14095 cat >>conftest.$ac_ext <<_ACEOF
14096 /* end confdefs.h. */
14097 /* AF_INET6 available check */
14098 #include <sys/types.h>
14099 #include <sys/socket.h>
14100 main()
14102 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
14103 exit(1);
14104 else
14105 exit(0);
14108 _ACEOF
14109 rm -f conftest$ac_exeext
14110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14111 (eval $ac_link) 2>&5
14112 ac_status=$?
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14116 (eval $ac_try) 2>&5
14117 ac_status=$?
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); }; }; then
14120 echo "$as_me:$LINENO: result: yes" >&5
14121 echo "${ECHO_T}yes" >&6
14122 ipv6=yes
14123 else
14124 echo "$as_me: program exited with status $ac_status" >&5
14125 echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.$ac_ext >&5
14128 ( exit $ac_status )
14129 echo "$as_me:$LINENO: result: no" >&5
14130 echo "${ECHO_T}no" >&6
14131 ipv6=no
14133 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14136 if test "$ipv6" = "yes"; then
14137 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
14138 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
14139 cat >conftest.$ac_ext <<_ACEOF
14140 /* confdefs.h. */
14141 _ACEOF
14142 cat confdefs.h >>conftest.$ac_ext
14143 cat >>conftest.$ac_ext <<_ACEOF
14144 /* end confdefs.h. */
14145 #include <sys/types.h>
14146 #include <netinet/in.h>
14148 main ()
14150 struct sockaddr_in6 x;
14151 x.sin6_scope_id;
14153 return 0;
14155 _ACEOF
14156 rm -f conftest.$ac_objext
14157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14158 (eval $ac_compile) 2>conftest.er1
14159 ac_status=$?
14160 grep -v '^ *+' conftest.er1 >conftest.err
14161 rm -f conftest.er1
14162 cat conftest.err >&5
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); } &&
14165 { ac_try='test -z "$ac_c_werror_flag"
14166 || test ! -s conftest.err'
14167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14168 (eval $ac_try) 2>&5
14169 ac_status=$?
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); }; } &&
14172 { ac_try='test -s conftest.$ac_objext'
14173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14174 (eval $ac_try) 2>&5
14175 ac_status=$?
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); }; }; then
14178 echo "$as_me:$LINENO: result: yes" >&5
14179 echo "${ECHO_T}yes" >&6
14180 ipv6=yes
14181 else
14182 echo "$as_me: failed program was:" >&5
14183 sed 's/^/| /' conftest.$ac_ext >&5
14185 echo "$as_me:$LINENO: result: no" >&5
14186 echo "${ECHO_T}no" >&6
14187 ipv6=no
14189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14192 if test "$ipv6" = "yes"; then
14193 cat >>confdefs.h <<\_ACEOF
14194 #define ENABLE_IPV6 1
14195 _ACEOF
14201 ipv6type=unknown
14202 ipv6lib=none
14203 ipv6trylibc=no
14205 if test "$ipv6" = "yes"; then
14206 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
14207 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
14208 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
14210 case $i in
14211 inria)
14212 cat >conftest.$ac_ext <<_ACEOF
14213 /* confdefs.h. */
14214 _ACEOF
14215 cat confdefs.h >>conftest.$ac_ext
14216 cat >>conftest.$ac_ext <<_ACEOF
14217 /* end confdefs.h. */
14219 #include <netinet/in.h>
14220 #ifdef IPV6_INRIA_VERSION
14222 #endif
14223 _ACEOF
14224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14225 $EGREP "yes" >/dev/null 2>&1; then
14226 ipv6type=$i
14228 rm -f conftest*
14231 kame)
14232 cat >conftest.$ac_ext <<_ACEOF
14233 /* confdefs.h. */
14234 _ACEOF
14235 cat confdefs.h >>conftest.$ac_ext
14236 cat >>conftest.$ac_ext <<_ACEOF
14237 /* end confdefs.h. */
14239 #include <netinet/in.h>
14240 #ifdef __KAME__
14242 #endif
14243 _ACEOF
14244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14245 $EGREP "yes" >/dev/null 2>&1; then
14246 ipv6type=$i;
14247 ipv6lib=inet6
14248 ipv6libdir=/usr/local/v6/lib
14249 ipv6trylibc=yes
14251 rm -f conftest*
14254 linux-glibc)
14255 cat >conftest.$ac_ext <<_ACEOF
14256 /* confdefs.h. */
14257 _ACEOF
14258 cat confdefs.h >>conftest.$ac_ext
14259 cat >>conftest.$ac_ext <<_ACEOF
14260 /* end confdefs.h. */
14262 #include <features.h>
14263 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
14265 #endif
14266 _ACEOF
14267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14268 $EGREP "yes" >/dev/null 2>&1; then
14269 ipv6type=$i;
14270 ipv6trylibc=yes
14272 rm -f conftest*
14275 linux-inet6)
14276 if test -d /usr/inet6; then
14277 ipv6type=$i
14278 ipv6lib=inet6
14279 ipv6libdir=/usr/inet6/lib
14280 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
14283 solaris)
14284 if test -f /etc/netconfig; then
14285 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
14286 ipv6type=$i
14287 ipv6trylibc=yes
14291 toshiba)
14292 cat >conftest.$ac_ext <<_ACEOF
14293 /* confdefs.h. */
14294 _ACEOF
14295 cat confdefs.h >>conftest.$ac_ext
14296 cat >>conftest.$ac_ext <<_ACEOF
14297 /* end confdefs.h. */
14299 #include <sys/param.h>
14300 #ifdef _TOSHIBA_INET6
14302 #endif
14303 _ACEOF
14304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14305 $EGREP "yes" >/dev/null 2>&1; then
14306 ipv6type=$i;
14307 ipv6lib=inet6;
14308 ipv6libdir=/usr/local/v6/lib
14310 rm -f conftest*
14313 v6d)
14314 cat >conftest.$ac_ext <<_ACEOF
14315 /* confdefs.h. */
14316 _ACEOF
14317 cat confdefs.h >>conftest.$ac_ext
14318 cat >>conftest.$ac_ext <<_ACEOF
14319 /* end confdefs.h. */
14321 #include </usr/local/v6/include/sys/v6config.h>
14322 #ifdef __V6D__
14324 #endif
14325 _ACEOF
14326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14327 $EGREP "yes" >/dev/null 2>&1; then
14328 ipv6type=$i;
14329 ipv6lib=v6;
14330 ipv6libdir=/usr/local/v6/lib;
14331 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
14333 rm -f conftest*
14336 zeta)
14337 cat >conftest.$ac_ext <<_ACEOF
14338 /* confdefs.h. */
14339 _ACEOF
14340 cat confdefs.h >>conftest.$ac_ext
14341 cat >>conftest.$ac_ext <<_ACEOF
14342 /* end confdefs.h. */
14344 #include <sys/param.h>
14345 #ifdef _ZETA_MINAMI_INET6
14347 #endif
14348 _ACEOF
14349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14350 $EGREP "yes" >/dev/null 2>&1; then
14351 ipv6type=$i;
14352 ipv6lib=inet6;
14353 ipv6libdir=/usr/local/v6/lib
14355 rm -f conftest*
14358 esac
14359 if test "$ipv6type" != "unknown"; then
14360 break
14362 done
14363 echo "$as_me:$LINENO: result: $ipv6type" >&5
14364 echo "${ECHO_T}$ipv6type" >&6
14367 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
14368 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
14369 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
14370 echo "using lib$ipv6lib"
14371 else
14372 if test $ipv6trylibc = "yes"; then
14373 echo "using libc"
14374 else
14375 echo 'Fatal: no $ipv6lib library found. cannot continue.'
14376 echo "You need to fetch lib$ipv6lib.a from appropriate"
14377 echo 'ipv6 kit and compile beforehand.'
14378 exit 1
14383 # Check for --with-doc-strings
14384 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
14385 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
14387 # Check whether --with-doc-strings or --without-doc-strings was given.
14388 if test "${with_doc_strings+set}" = set; then
14389 withval="$with_doc_strings"
14393 if test -z "$with_doc_strings"
14394 then with_doc_strings="yes"
14396 if test "$with_doc_strings" != "no"
14397 then
14399 cat >>confdefs.h <<\_ACEOF
14400 #define WITH_DOC_STRINGS 1
14401 _ACEOF
14404 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
14405 echo "${ECHO_T}$with_doc_strings" >&6
14407 # Check for Python-specific malloc support
14408 echo "$as_me:$LINENO: checking for --with-tsc" >&5
14409 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6
14411 # Check whether --with-tsc or --without-tsc was given.
14412 if test "${with_tsc+set}" = set; then
14413 withval="$with_tsc"
14415 if test "$withval" != no
14416 then
14418 cat >>confdefs.h <<\_ACEOF
14419 #define WITH_TSC 1
14420 _ACEOF
14422 echo "$as_me:$LINENO: result: yes" >&5
14423 echo "${ECHO_T}yes" >&6
14424 else echo "$as_me:$LINENO: result: no" >&5
14425 echo "${ECHO_T}no" >&6
14427 else
14428 echo "$as_me:$LINENO: result: no" >&5
14429 echo "${ECHO_T}no" >&6
14432 # Check for Python-specific malloc support
14433 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
14434 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
14436 # Check whether --with-pymalloc or --without-pymalloc was given.
14437 if test "${with_pymalloc+set}" = set; then
14438 withval="$with_pymalloc"
14442 if test -z "$with_pymalloc"
14443 then with_pymalloc="yes"
14445 if test "$with_pymalloc" != "no"
14446 then
14448 cat >>confdefs.h <<\_ACEOF
14449 #define WITH_PYMALLOC 1
14450 _ACEOF
14453 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
14454 echo "${ECHO_T}$with_pymalloc" >&6
14456 # Check for --with-wctype-functions
14457 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
14458 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
14460 # Check whether --with-wctype-functions or --without-wctype-functions was given.
14461 if test "${with_wctype_functions+set}" = set; then
14462 withval="$with_wctype_functions"
14464 if test "$withval" != no
14465 then
14467 cat >>confdefs.h <<\_ACEOF
14468 #define WANT_WCTYPE_FUNCTIONS 1
14469 _ACEOF
14471 echo "$as_me:$LINENO: result: yes" >&5
14472 echo "${ECHO_T}yes" >&6
14473 else echo "$as_me:$LINENO: result: no" >&5
14474 echo "${ECHO_T}no" >&6
14476 else
14477 echo "$as_me:$LINENO: result: no" >&5
14478 echo "${ECHO_T}no" >&6
14481 # -I${DLINCLDIR} is added to the compile rule for importdl.o
14483 DLINCLDIR=.
14485 # the dlopen() function means we might want to use dynload_shlib.o. some
14486 # platforms, such as AIX, have dlopen(), but don't want to use it.
14488 for ac_func in dlopen
14490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14491 echo "$as_me:$LINENO: checking for $ac_func" >&5
14492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14493 if eval "test \"\${$as_ac_var+set}\" = set"; then
14494 echo $ECHO_N "(cached) $ECHO_C" >&6
14495 else
14496 cat >conftest.$ac_ext <<_ACEOF
14497 /* confdefs.h. */
14498 _ACEOF
14499 cat confdefs.h >>conftest.$ac_ext
14500 cat >>conftest.$ac_ext <<_ACEOF
14501 /* end confdefs.h. */
14502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14504 #define $ac_func innocuous_$ac_func
14506 /* System header to define __stub macros and hopefully few prototypes,
14507 which can conflict with char $ac_func (); below.
14508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14509 <limits.h> exists even on freestanding compilers. */
14511 #ifdef __STDC__
14512 # include <limits.h>
14513 #else
14514 # include <assert.h>
14515 #endif
14517 #undef $ac_func
14519 /* Override any gcc2 internal prototype to avoid an error. */
14520 #ifdef __cplusplus
14521 extern "C"
14523 #endif
14524 /* We use char because int might match the return type of a gcc2
14525 builtin and then its argument prototype would still apply. */
14526 char $ac_func ();
14527 /* The GNU C library defines this for functions which it implements
14528 to always fail with ENOSYS. Some functions are actually named
14529 something starting with __ and the normal name is an alias. */
14530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14531 choke me
14532 #else
14533 char (*f) () = $ac_func;
14534 #endif
14535 #ifdef __cplusplus
14537 #endif
14540 main ()
14542 return f != $ac_func;
14544 return 0;
14546 _ACEOF
14547 rm -f conftest.$ac_objext conftest$ac_exeext
14548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14549 (eval $ac_link) 2>conftest.er1
14550 ac_status=$?
14551 grep -v '^ *+' conftest.er1 >conftest.err
14552 rm -f conftest.er1
14553 cat conftest.err >&5
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); } &&
14556 { ac_try='test -z "$ac_c_werror_flag"
14557 || test ! -s conftest.err'
14558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14559 (eval $ac_try) 2>&5
14560 ac_status=$?
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); }; } &&
14563 { ac_try='test -s conftest$ac_exeext'
14564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14565 (eval $ac_try) 2>&5
14566 ac_status=$?
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); }; }; then
14569 eval "$as_ac_var=yes"
14570 else
14571 echo "$as_me: failed program was:" >&5
14572 sed 's/^/| /' conftest.$ac_ext >&5
14574 eval "$as_ac_var=no"
14576 rm -f conftest.err conftest.$ac_objext \
14577 conftest$ac_exeext conftest.$ac_ext
14579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14580 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14581 if test `eval echo '${'$as_ac_var'}'` = yes; then
14582 cat >>confdefs.h <<_ACEOF
14583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14584 _ACEOF
14587 done
14590 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
14591 # loading of modules.
14593 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
14594 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
14595 if test -z "$DYNLOADFILE"
14596 then
14597 case $ac_sys_system/$ac_sys_release in
14598 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
14599 if test "$ac_cv_func_dlopen" = yes
14600 then DYNLOADFILE="dynload_shlib.o"
14601 else DYNLOADFILE="dynload_aix.o"
14604 BeOS*) DYNLOADFILE="dynload_beos.o";;
14605 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
14606 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
14607 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
14608 atheos*) DYNLOADFILE="dynload_atheos.o";;
14610 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
14611 # out any dynamic loading
14612 if test "$ac_cv_func_dlopen" = yes
14613 then DYNLOADFILE="dynload_shlib.o"
14614 else DYNLOADFILE="dynload_stub.o"
14617 esac
14619 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
14620 echo "${ECHO_T}$DYNLOADFILE" >&6
14621 if test "$DYNLOADFILE" != "dynload_stub.o"
14622 then
14624 cat >>confdefs.h <<\_ACEOF
14625 #define HAVE_DYNAMIC_LOADING 1
14626 _ACEOF
14630 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
14633 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
14634 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
14635 if test -z "$MACHDEP_OBJS"
14636 then
14637 MACHDEP_OBJS=$extra_machdep_objs
14638 else
14639 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
14641 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
14642 echo "${ECHO_T}MACHDEP_OBJS" >&6
14644 # checks for library functions
14723 for ac_func in alarm bind_textdomain_codeset chflags chown clock confstr \
14724 ctermid execv fork fpathconf ftime ftruncate \
14725 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
14726 getpriority getpwent getspnam getspent getsid getwd \
14727 kill killpg lchflags lchown lstat mkfifo mknod mktime \
14728 mremap nice pathconf pause plock poll pthread_init \
14729 putenv readlink realpath \
14730 select setegid seteuid setgid \
14731 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
14732 sigaction siginterrupt sigrelse strftime \
14733 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
14734 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
14736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14737 echo "$as_me:$LINENO: checking for $ac_func" >&5
14738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14739 if eval "test \"\${$as_ac_var+set}\" = set"; then
14740 echo $ECHO_N "(cached) $ECHO_C" >&6
14741 else
14742 cat >conftest.$ac_ext <<_ACEOF
14743 /* confdefs.h. */
14744 _ACEOF
14745 cat confdefs.h >>conftest.$ac_ext
14746 cat >>conftest.$ac_ext <<_ACEOF
14747 /* end confdefs.h. */
14748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14750 #define $ac_func innocuous_$ac_func
14752 /* System header to define __stub macros and hopefully few prototypes,
14753 which can conflict with char $ac_func (); below.
14754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14755 <limits.h> exists even on freestanding compilers. */
14757 #ifdef __STDC__
14758 # include <limits.h>
14759 #else
14760 # include <assert.h>
14761 #endif
14763 #undef $ac_func
14765 /* Override any gcc2 internal prototype to avoid an error. */
14766 #ifdef __cplusplus
14767 extern "C"
14769 #endif
14770 /* We use char because int might match the return type of a gcc2
14771 builtin and then its argument prototype would still apply. */
14772 char $ac_func ();
14773 /* The GNU C library defines this for functions which it implements
14774 to always fail with ENOSYS. Some functions are actually named
14775 something starting with __ and the normal name is an alias. */
14776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14777 choke me
14778 #else
14779 char (*f) () = $ac_func;
14780 #endif
14781 #ifdef __cplusplus
14783 #endif
14786 main ()
14788 return f != $ac_func;
14790 return 0;
14792 _ACEOF
14793 rm -f conftest.$ac_objext conftest$ac_exeext
14794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14795 (eval $ac_link) 2>conftest.er1
14796 ac_status=$?
14797 grep -v '^ *+' conftest.er1 >conftest.err
14798 rm -f conftest.er1
14799 cat conftest.err >&5
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); } &&
14802 { ac_try='test -z "$ac_c_werror_flag"
14803 || test ! -s conftest.err'
14804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14805 (eval $ac_try) 2>&5
14806 ac_status=$?
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); }; } &&
14809 { ac_try='test -s conftest$ac_exeext'
14810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14811 (eval $ac_try) 2>&5
14812 ac_status=$?
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); }; }; then
14815 eval "$as_ac_var=yes"
14816 else
14817 echo "$as_me: failed program was:" >&5
14818 sed 's/^/| /' conftest.$ac_ext >&5
14820 eval "$as_ac_var=no"
14822 rm -f conftest.err conftest.$ac_objext \
14823 conftest$ac_exeext conftest.$ac_ext
14825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14826 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14827 if test `eval echo '${'$as_ac_var'}'` = yes; then
14828 cat >>confdefs.h <<_ACEOF
14829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14830 _ACEOF
14833 done
14836 # For some functions, having a definition is not sufficient, since
14837 # we want to take their address.
14838 echo "$as_me:$LINENO: checking for chroot" >&5
14839 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
14840 cat >conftest.$ac_ext <<_ACEOF
14841 /* confdefs.h. */
14842 _ACEOF
14843 cat confdefs.h >>conftest.$ac_ext
14844 cat >>conftest.$ac_ext <<_ACEOF
14845 /* end confdefs.h. */
14846 #include <unistd.h>
14848 main ()
14850 void *x=chroot
14852 return 0;
14854 _ACEOF
14855 rm -f conftest.$ac_objext
14856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14857 (eval $ac_compile) 2>conftest.er1
14858 ac_status=$?
14859 grep -v '^ *+' conftest.er1 >conftest.err
14860 rm -f conftest.er1
14861 cat conftest.err >&5
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); } &&
14864 { ac_try='test -z "$ac_c_werror_flag"
14865 || test ! -s conftest.err'
14866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14867 (eval $ac_try) 2>&5
14868 ac_status=$?
14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870 (exit $ac_status); }; } &&
14871 { ac_try='test -s conftest.$ac_objext'
14872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14873 (eval $ac_try) 2>&5
14874 ac_status=$?
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); }; }; then
14878 cat >>confdefs.h <<\_ACEOF
14879 #define HAVE_CHROOT 1
14880 _ACEOF
14882 echo "$as_me:$LINENO: result: yes" >&5
14883 echo "${ECHO_T}yes" >&6
14884 else
14885 echo "$as_me: failed program was:" >&5
14886 sed 's/^/| /' conftest.$ac_ext >&5
14888 echo "$as_me:$LINENO: result: no" >&5
14889 echo "${ECHO_T}no" >&6
14892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14893 echo "$as_me:$LINENO: checking for link" >&5
14894 echo $ECHO_N "checking for link... $ECHO_C" >&6
14895 cat >conftest.$ac_ext <<_ACEOF
14896 /* confdefs.h. */
14897 _ACEOF
14898 cat confdefs.h >>conftest.$ac_ext
14899 cat >>conftest.$ac_ext <<_ACEOF
14900 /* end confdefs.h. */
14901 #include <unistd.h>
14903 main ()
14905 void *x=link
14907 return 0;
14909 _ACEOF
14910 rm -f conftest.$ac_objext
14911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14912 (eval $ac_compile) 2>conftest.er1
14913 ac_status=$?
14914 grep -v '^ *+' conftest.er1 >conftest.err
14915 rm -f conftest.er1
14916 cat conftest.err >&5
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); } &&
14919 { ac_try='test -z "$ac_c_werror_flag"
14920 || test ! -s conftest.err'
14921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14922 (eval $ac_try) 2>&5
14923 ac_status=$?
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); }; } &&
14926 { ac_try='test -s conftest.$ac_objext'
14927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14928 (eval $ac_try) 2>&5
14929 ac_status=$?
14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931 (exit $ac_status); }; }; then
14933 cat >>confdefs.h <<\_ACEOF
14934 #define HAVE_LINK 1
14935 _ACEOF
14937 echo "$as_me:$LINENO: result: yes" >&5
14938 echo "${ECHO_T}yes" >&6
14939 else
14940 echo "$as_me: failed program was:" >&5
14941 sed 's/^/| /' conftest.$ac_ext >&5
14943 echo "$as_me:$LINENO: result: no" >&5
14944 echo "${ECHO_T}no" >&6
14947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14948 echo "$as_me:$LINENO: checking for symlink" >&5
14949 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
14950 cat >conftest.$ac_ext <<_ACEOF
14951 /* confdefs.h. */
14952 _ACEOF
14953 cat confdefs.h >>conftest.$ac_ext
14954 cat >>conftest.$ac_ext <<_ACEOF
14955 /* end confdefs.h. */
14956 #include <unistd.h>
14958 main ()
14960 void *x=symlink
14962 return 0;
14964 _ACEOF
14965 rm -f conftest.$ac_objext
14966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14967 (eval $ac_compile) 2>conftest.er1
14968 ac_status=$?
14969 grep -v '^ *+' conftest.er1 >conftest.err
14970 rm -f conftest.er1
14971 cat conftest.err >&5
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); } &&
14974 { ac_try='test -z "$ac_c_werror_flag"
14975 || test ! -s conftest.err'
14976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14977 (eval $ac_try) 2>&5
14978 ac_status=$?
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); }; } &&
14981 { ac_try='test -s conftest.$ac_objext'
14982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14983 (eval $ac_try) 2>&5
14984 ac_status=$?
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); }; }; then
14988 cat >>confdefs.h <<\_ACEOF
14989 #define HAVE_SYMLINK 1
14990 _ACEOF
14992 echo "$as_me:$LINENO: result: yes" >&5
14993 echo "${ECHO_T}yes" >&6
14994 else
14995 echo "$as_me: failed program was:" >&5
14996 sed 's/^/| /' conftest.$ac_ext >&5
14998 echo "$as_me:$LINENO: result: no" >&5
14999 echo "${ECHO_T}no" >&6
15002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15003 echo "$as_me:$LINENO: checking for fchdir" >&5
15004 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
15005 cat >conftest.$ac_ext <<_ACEOF
15006 /* confdefs.h. */
15007 _ACEOF
15008 cat confdefs.h >>conftest.$ac_ext
15009 cat >>conftest.$ac_ext <<_ACEOF
15010 /* end confdefs.h. */
15011 #include <unistd.h>
15013 main ()
15015 void *x=fchdir
15017 return 0;
15019 _ACEOF
15020 rm -f conftest.$ac_objext
15021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15022 (eval $ac_compile) 2>conftest.er1
15023 ac_status=$?
15024 grep -v '^ *+' conftest.er1 >conftest.err
15025 rm -f conftest.er1
15026 cat conftest.err >&5
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); } &&
15029 { ac_try='test -z "$ac_c_werror_flag"
15030 || test ! -s conftest.err'
15031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15032 (eval $ac_try) 2>&5
15033 ac_status=$?
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); }; } &&
15036 { ac_try='test -s conftest.$ac_objext'
15037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15038 (eval $ac_try) 2>&5
15039 ac_status=$?
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); }; }; then
15043 cat >>confdefs.h <<\_ACEOF
15044 #define HAVE_FCHDIR 1
15045 _ACEOF
15047 echo "$as_me:$LINENO: result: yes" >&5
15048 echo "${ECHO_T}yes" >&6
15049 else
15050 echo "$as_me: failed program was:" >&5
15051 sed 's/^/| /' conftest.$ac_ext >&5
15053 echo "$as_me:$LINENO: result: no" >&5
15054 echo "${ECHO_T}no" >&6
15057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15058 echo "$as_me:$LINENO: checking for fsync" >&5
15059 echo $ECHO_N "checking for fsync... $ECHO_C" >&6
15060 cat >conftest.$ac_ext <<_ACEOF
15061 /* confdefs.h. */
15062 _ACEOF
15063 cat confdefs.h >>conftest.$ac_ext
15064 cat >>conftest.$ac_ext <<_ACEOF
15065 /* end confdefs.h. */
15066 #include <unistd.h>
15068 main ()
15070 void *x=fsync
15072 return 0;
15074 _ACEOF
15075 rm -f conftest.$ac_objext
15076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15077 (eval $ac_compile) 2>conftest.er1
15078 ac_status=$?
15079 grep -v '^ *+' conftest.er1 >conftest.err
15080 rm -f conftest.er1
15081 cat conftest.err >&5
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); } &&
15084 { ac_try='test -z "$ac_c_werror_flag"
15085 || test ! -s conftest.err'
15086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15087 (eval $ac_try) 2>&5
15088 ac_status=$?
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); }; } &&
15091 { ac_try='test -s conftest.$ac_objext'
15092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15093 (eval $ac_try) 2>&5
15094 ac_status=$?
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); }; }; then
15098 cat >>confdefs.h <<\_ACEOF
15099 #define HAVE_FSYNC 1
15100 _ACEOF
15102 echo "$as_me:$LINENO: result: yes" >&5
15103 echo "${ECHO_T}yes" >&6
15104 else
15105 echo "$as_me: failed program was:" >&5
15106 sed 's/^/| /' conftest.$ac_ext >&5
15108 echo "$as_me:$LINENO: result: no" >&5
15109 echo "${ECHO_T}no" >&6
15112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15113 echo "$as_me:$LINENO: checking for fdatasync" >&5
15114 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
15115 cat >conftest.$ac_ext <<_ACEOF
15116 /* confdefs.h. */
15117 _ACEOF
15118 cat confdefs.h >>conftest.$ac_ext
15119 cat >>conftest.$ac_ext <<_ACEOF
15120 /* end confdefs.h. */
15121 #include <unistd.h>
15123 main ()
15125 void *x=fdatasync
15127 return 0;
15129 _ACEOF
15130 rm -f conftest.$ac_objext
15131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15132 (eval $ac_compile) 2>conftest.er1
15133 ac_status=$?
15134 grep -v '^ *+' conftest.er1 >conftest.err
15135 rm -f conftest.er1
15136 cat conftest.err >&5
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); } &&
15139 { ac_try='test -z "$ac_c_werror_flag"
15140 || test ! -s conftest.err'
15141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15142 (eval $ac_try) 2>&5
15143 ac_status=$?
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); }; } &&
15146 { ac_try='test -s conftest.$ac_objext'
15147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15148 (eval $ac_try) 2>&5
15149 ac_status=$?
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); }; }; then
15153 cat >>confdefs.h <<\_ACEOF
15154 #define HAVE_FDATASYNC 1
15155 _ACEOF
15157 echo "$as_me:$LINENO: result: yes" >&5
15158 echo "${ECHO_T}yes" >&6
15159 else
15160 echo "$as_me: failed program was:" >&5
15161 sed 's/^/| /' conftest.$ac_ext >&5
15163 echo "$as_me:$LINENO: result: no" >&5
15164 echo "${ECHO_T}no" >&6
15167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15169 # On some systems (eg. FreeBSD 5), we would find a definition of the
15170 # functions ctermid_r, setgroups in the library, but no prototype
15171 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
15172 # address to avoid compiler warnings and potential miscompilations
15173 # because of the missing prototypes.
15175 echo "$as_me:$LINENO: checking for ctermid_r" >&5
15176 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
15177 cat >conftest.$ac_ext <<_ACEOF
15178 /* confdefs.h. */
15179 _ACEOF
15180 cat confdefs.h >>conftest.$ac_ext
15181 cat >>conftest.$ac_ext <<_ACEOF
15182 /* end confdefs.h. */
15184 #include "confdefs.h"
15185 #include <stdio.h>
15188 main ()
15190 void* p = ctermid_r
15192 return 0;
15194 _ACEOF
15195 rm -f conftest.$ac_objext
15196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15197 (eval $ac_compile) 2>conftest.er1
15198 ac_status=$?
15199 grep -v '^ *+' conftest.er1 >conftest.err
15200 rm -f conftest.er1
15201 cat conftest.err >&5
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); } &&
15204 { ac_try='test -z "$ac_c_werror_flag"
15205 || test ! -s conftest.err'
15206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15207 (eval $ac_try) 2>&5
15208 ac_status=$?
15209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 (exit $ac_status); }; } &&
15211 { ac_try='test -s conftest.$ac_objext'
15212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15213 (eval $ac_try) 2>&5
15214 ac_status=$?
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); }; }; then
15218 cat >>confdefs.h <<\_ACEOF
15219 #define HAVE_CTERMID_R 1
15220 _ACEOF
15222 echo "$as_me:$LINENO: result: yes" >&5
15223 echo "${ECHO_T}yes" >&6
15224 else
15225 echo "$as_me: failed program was:" >&5
15226 sed 's/^/| /' conftest.$ac_ext >&5
15228 echo "$as_me:$LINENO: result: no" >&5
15229 echo "${ECHO_T}no" >&6
15232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15234 echo "$as_me:$LINENO: checking for flock" >&5
15235 echo $ECHO_N "checking for flock... $ECHO_C" >&6
15236 cat >conftest.$ac_ext <<_ACEOF
15237 /* confdefs.h. */
15238 _ACEOF
15239 cat confdefs.h >>conftest.$ac_ext
15240 cat >>conftest.$ac_ext <<_ACEOF
15241 /* end confdefs.h. */
15243 #include "confdefs.h"
15244 #include <sys/file.h>
15247 main ()
15249 void* p = flock
15251 return 0;
15253 _ACEOF
15254 rm -f conftest.$ac_objext
15255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15256 (eval $ac_compile) 2>conftest.er1
15257 ac_status=$?
15258 grep -v '^ *+' conftest.er1 >conftest.err
15259 rm -f conftest.er1
15260 cat conftest.err >&5
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); } &&
15263 { ac_try='test -z "$ac_c_werror_flag"
15264 || test ! -s conftest.err'
15265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15266 (eval $ac_try) 2>&5
15267 ac_status=$?
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); }; } &&
15270 { ac_try='test -s conftest.$ac_objext'
15271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15272 (eval $ac_try) 2>&5
15273 ac_status=$?
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); }; }; then
15277 cat >>confdefs.h <<\_ACEOF
15278 #define HAVE_FLOCK 1
15279 _ACEOF
15281 echo "$as_me:$LINENO: result: yes" >&5
15282 echo "${ECHO_T}yes" >&6
15283 else
15284 echo "$as_me: failed program was:" >&5
15285 sed 's/^/| /' conftest.$ac_ext >&5
15287 echo "$as_me:$LINENO: result: no" >&5
15288 echo "${ECHO_T}no" >&6
15291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15293 echo "$as_me:$LINENO: checking for getpagesize" >&5
15294 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
15295 cat >conftest.$ac_ext <<_ACEOF
15296 /* confdefs.h. */
15297 _ACEOF
15298 cat confdefs.h >>conftest.$ac_ext
15299 cat >>conftest.$ac_ext <<_ACEOF
15300 /* end confdefs.h. */
15302 #include "confdefs.h"
15303 #include <unistd.h>
15306 main ()
15308 void* p = getpagesize
15310 return 0;
15312 _ACEOF
15313 rm -f conftest.$ac_objext
15314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15315 (eval $ac_compile) 2>conftest.er1
15316 ac_status=$?
15317 grep -v '^ *+' conftest.er1 >conftest.err
15318 rm -f conftest.er1
15319 cat conftest.err >&5
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); } &&
15322 { ac_try='test -z "$ac_c_werror_flag"
15323 || test ! -s conftest.err'
15324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15325 (eval $ac_try) 2>&5
15326 ac_status=$?
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); }; } &&
15329 { ac_try='test -s conftest.$ac_objext'
15330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15331 (eval $ac_try) 2>&5
15332 ac_status=$?
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); }; }; then
15336 cat >>confdefs.h <<\_ACEOF
15337 #define HAVE_GETPAGESIZE 1
15338 _ACEOF
15340 echo "$as_me:$LINENO: result: yes" >&5
15341 echo "${ECHO_T}yes" >&6
15342 else
15343 echo "$as_me: failed program was:" >&5
15344 sed 's/^/| /' conftest.$ac_ext >&5
15346 echo "$as_me:$LINENO: result: no" >&5
15347 echo "${ECHO_T}no" >&6
15350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15352 for ac_prog in true
15354 # Extract the first word of "$ac_prog", so it can be a program name with args.
15355 set dummy $ac_prog; ac_word=$2
15356 echo "$as_me:$LINENO: checking for $ac_word" >&5
15357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15358 if test "${ac_cv_prog_TRUE+set}" = set; then
15359 echo $ECHO_N "(cached) $ECHO_C" >&6
15360 else
15361 if test -n "$TRUE"; then
15362 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
15363 else
15364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15365 for as_dir in $PATH
15367 IFS=$as_save_IFS
15368 test -z "$as_dir" && as_dir=.
15369 for ac_exec_ext in '' $ac_executable_extensions; do
15370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15371 ac_cv_prog_TRUE="$ac_prog"
15372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15373 break 2
15375 done
15376 done
15380 TRUE=$ac_cv_prog_TRUE
15381 if test -n "$TRUE"; then
15382 echo "$as_me:$LINENO: result: $TRUE" >&5
15383 echo "${ECHO_T}$TRUE" >&6
15384 else
15385 echo "$as_me:$LINENO: result: no" >&5
15386 echo "${ECHO_T}no" >&6
15389 test -n "$TRUE" && break
15390 done
15391 test -n "$TRUE" || TRUE="/bin/true"
15394 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
15395 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
15396 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
15397 echo $ECHO_N "(cached) $ECHO_C" >&6
15398 else
15399 ac_check_lib_save_LIBS=$LIBS
15400 LIBS="-lc $LIBS"
15401 cat >conftest.$ac_ext <<_ACEOF
15402 /* confdefs.h. */
15403 _ACEOF
15404 cat confdefs.h >>conftest.$ac_ext
15405 cat >>conftest.$ac_ext <<_ACEOF
15406 /* end confdefs.h. */
15408 /* Override any gcc2 internal prototype to avoid an error. */
15409 #ifdef __cplusplus
15410 extern "C"
15411 #endif
15412 /* We use char because int might match the return type of a gcc2
15413 builtin and then its argument prototype would still apply. */
15414 char inet_aton ();
15416 main ()
15418 inet_aton ();
15420 return 0;
15422 _ACEOF
15423 rm -f conftest.$ac_objext conftest$ac_exeext
15424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15425 (eval $ac_link) 2>conftest.er1
15426 ac_status=$?
15427 grep -v '^ *+' conftest.er1 >conftest.err
15428 rm -f conftest.er1
15429 cat conftest.err >&5
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); } &&
15432 { ac_try='test -z "$ac_c_werror_flag"
15433 || test ! -s conftest.err'
15434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435 (eval $ac_try) 2>&5
15436 ac_status=$?
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; } &&
15439 { ac_try='test -s conftest$ac_exeext'
15440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15441 (eval $ac_try) 2>&5
15442 ac_status=$?
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); }; }; then
15445 ac_cv_lib_c_inet_aton=yes
15446 else
15447 echo "$as_me: failed program was:" >&5
15448 sed 's/^/| /' conftest.$ac_ext >&5
15450 ac_cv_lib_c_inet_aton=no
15452 rm -f conftest.err conftest.$ac_objext \
15453 conftest$ac_exeext conftest.$ac_ext
15454 LIBS=$ac_check_lib_save_LIBS
15456 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
15457 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
15458 if test $ac_cv_lib_c_inet_aton = yes; then
15459 $ac_cv_prog_TRUE
15460 else
15462 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
15463 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
15464 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
15465 echo $ECHO_N "(cached) $ECHO_C" >&6
15466 else
15467 ac_check_lib_save_LIBS=$LIBS
15468 LIBS="-lresolv $LIBS"
15469 cat >conftest.$ac_ext <<_ACEOF
15470 /* confdefs.h. */
15471 _ACEOF
15472 cat confdefs.h >>conftest.$ac_ext
15473 cat >>conftest.$ac_ext <<_ACEOF
15474 /* end confdefs.h. */
15476 /* Override any gcc2 internal prototype to avoid an error. */
15477 #ifdef __cplusplus
15478 extern "C"
15479 #endif
15480 /* We use char because int might match the return type of a gcc2
15481 builtin and then its argument prototype would still apply. */
15482 char inet_aton ();
15484 main ()
15486 inet_aton ();
15488 return 0;
15490 _ACEOF
15491 rm -f conftest.$ac_objext conftest$ac_exeext
15492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15493 (eval $ac_link) 2>conftest.er1
15494 ac_status=$?
15495 grep -v '^ *+' conftest.er1 >conftest.err
15496 rm -f conftest.er1
15497 cat conftest.err >&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); } &&
15500 { ac_try='test -z "$ac_c_werror_flag"
15501 || test ! -s conftest.err'
15502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15503 (eval $ac_try) 2>&5
15504 ac_status=$?
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); }; } &&
15507 { ac_try='test -s conftest$ac_exeext'
15508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15509 (eval $ac_try) 2>&5
15510 ac_status=$?
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); }; }; then
15513 ac_cv_lib_resolv_inet_aton=yes
15514 else
15515 echo "$as_me: failed program was:" >&5
15516 sed 's/^/| /' conftest.$ac_ext >&5
15518 ac_cv_lib_resolv_inet_aton=no
15520 rm -f conftest.err conftest.$ac_objext \
15521 conftest$ac_exeext conftest.$ac_ext
15522 LIBS=$ac_check_lib_save_LIBS
15524 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
15525 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
15526 if test $ac_cv_lib_resolv_inet_aton = yes; then
15527 cat >>confdefs.h <<_ACEOF
15528 #define HAVE_LIBRESOLV 1
15529 _ACEOF
15531 LIBS="-lresolv $LIBS"
15539 case $ac_sys_system/$ac_sys_release in
15540 Darwin/*)
15541 _CUR_CFLAGS="${CFLAGS}"
15542 _CUR_LDFLAGS="${LDFLAGS}"
15543 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
15544 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
15546 esac
15548 echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
15549 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6
15550 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
15551 echo $ECHO_N "(cached) $ECHO_C" >&6
15552 else
15553 ac_check_lib_save_LIBS=$LIBS
15554 LIBS="-lz $LIBS"
15555 cat >conftest.$ac_ext <<_ACEOF
15556 /* confdefs.h. */
15557 _ACEOF
15558 cat confdefs.h >>conftest.$ac_ext
15559 cat >>conftest.$ac_ext <<_ACEOF
15560 /* end confdefs.h. */
15562 /* Override any gcc2 internal prototype to avoid an error. */
15563 #ifdef __cplusplus
15564 extern "C"
15565 #endif
15566 /* We use char because int might match the return type of a gcc2
15567 builtin and then its argument prototype would still apply. */
15568 char inflateCopy ();
15570 main ()
15572 inflateCopy ();
15574 return 0;
15576 _ACEOF
15577 rm -f conftest.$ac_objext conftest$ac_exeext
15578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15579 (eval $ac_link) 2>conftest.er1
15580 ac_status=$?
15581 grep -v '^ *+' conftest.er1 >conftest.err
15582 rm -f conftest.er1
15583 cat conftest.err >&5
15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); } &&
15586 { ac_try='test -z "$ac_c_werror_flag"
15587 || test ! -s conftest.err'
15588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15589 (eval $ac_try) 2>&5
15590 ac_status=$?
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); }; } &&
15593 { ac_try='test -s conftest$ac_exeext'
15594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15595 (eval $ac_try) 2>&5
15596 ac_status=$?
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); }; }; then
15599 ac_cv_lib_z_inflateCopy=yes
15600 else
15601 echo "$as_me: failed program was:" >&5
15602 sed 's/^/| /' conftest.$ac_ext >&5
15604 ac_cv_lib_z_inflateCopy=no
15606 rm -f conftest.err conftest.$ac_objext \
15607 conftest$ac_exeext conftest.$ac_ext
15608 LIBS=$ac_check_lib_save_LIBS
15610 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
15611 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6
15612 if test $ac_cv_lib_z_inflateCopy = yes; then
15614 cat >>confdefs.h <<\_ACEOF
15615 #define HAVE_ZLIB_COPY 1
15616 _ACEOF
15621 case $ac_sys_system/$ac_sys_release in
15622 Darwin/*)
15623 CFLAGS="${_CUR_CFLAGS}"
15624 LDFLAGS="${_CUR_LDFLAGS}"
15626 esac
15628 echo "$as_me:$LINENO: checking for hstrerror" >&5
15629 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
15630 cat >conftest.$ac_ext <<_ACEOF
15631 /* confdefs.h. */
15632 _ACEOF
15633 cat confdefs.h >>conftest.$ac_ext
15634 cat >>conftest.$ac_ext <<_ACEOF
15635 /* end confdefs.h. */
15637 #include "confdefs.h"
15638 #include <netdb.h>
15641 main ()
15643 void* p = hstrerror; hstrerror(0)
15645 return 0;
15647 _ACEOF
15648 rm -f conftest.$ac_objext conftest$ac_exeext
15649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15650 (eval $ac_link) 2>conftest.er1
15651 ac_status=$?
15652 grep -v '^ *+' conftest.er1 >conftest.err
15653 rm -f conftest.er1
15654 cat conftest.err >&5
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); } &&
15657 { ac_try='test -z "$ac_c_werror_flag"
15658 || test ! -s conftest.err'
15659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15660 (eval $ac_try) 2>&5
15661 ac_status=$?
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); }; } &&
15664 { ac_try='test -s conftest$ac_exeext'
15665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15666 (eval $ac_try) 2>&5
15667 ac_status=$?
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); }; }; then
15671 cat >>confdefs.h <<\_ACEOF
15672 #define HAVE_HSTRERROR 1
15673 _ACEOF
15675 echo "$as_me:$LINENO: result: yes" >&5
15676 echo "${ECHO_T}yes" >&6
15677 else
15678 echo "$as_me: failed program was:" >&5
15679 sed 's/^/| /' conftest.$ac_ext >&5
15681 echo "$as_me:$LINENO: result: no" >&5
15682 echo "${ECHO_T}no" >&6
15685 rm -f conftest.err conftest.$ac_objext \
15686 conftest$ac_exeext conftest.$ac_ext
15688 echo "$as_me:$LINENO: checking for inet_aton" >&5
15689 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
15690 cat >conftest.$ac_ext <<_ACEOF
15691 /* confdefs.h. */
15692 _ACEOF
15693 cat confdefs.h >>conftest.$ac_ext
15694 cat >>conftest.$ac_ext <<_ACEOF
15695 /* end confdefs.h. */
15697 #include "confdefs.h"
15698 #include <sys/types.h>
15699 #include <sys/socket.h>
15700 #include <netinet/in.h>
15701 #include <arpa/inet.h>
15704 main ()
15706 void* p = inet_aton;inet_aton(0,0)
15708 return 0;
15710 _ACEOF
15711 rm -f conftest.$ac_objext conftest$ac_exeext
15712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15713 (eval $ac_link) 2>conftest.er1
15714 ac_status=$?
15715 grep -v '^ *+' conftest.er1 >conftest.err
15716 rm -f conftest.er1
15717 cat conftest.err >&5
15718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719 (exit $ac_status); } &&
15720 { ac_try='test -z "$ac_c_werror_flag"
15721 || test ! -s conftest.err'
15722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15723 (eval $ac_try) 2>&5
15724 ac_status=$?
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); }; } &&
15727 { ac_try='test -s conftest$ac_exeext'
15728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15729 (eval $ac_try) 2>&5
15730 ac_status=$?
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); }; }; then
15734 cat >>confdefs.h <<\_ACEOF
15735 #define HAVE_INET_ATON 1
15736 _ACEOF
15738 echo "$as_me:$LINENO: result: yes" >&5
15739 echo "${ECHO_T}yes" >&6
15740 else
15741 echo "$as_me: failed program was:" >&5
15742 sed 's/^/| /' conftest.$ac_ext >&5
15744 echo "$as_me:$LINENO: result: no" >&5
15745 echo "${ECHO_T}no" >&6
15748 rm -f conftest.err conftest.$ac_objext \
15749 conftest$ac_exeext conftest.$ac_ext
15751 echo "$as_me:$LINENO: checking for inet_pton" >&5
15752 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
15753 cat >conftest.$ac_ext <<_ACEOF
15754 /* confdefs.h. */
15755 _ACEOF
15756 cat confdefs.h >>conftest.$ac_ext
15757 cat >>conftest.$ac_ext <<_ACEOF
15758 /* end confdefs.h. */
15760 #include "confdefs.h"
15761 #include <sys/types.h>
15762 #include <sys/socket.h>
15763 #include <netinet/in.h>
15764 #include <arpa/inet.h>
15767 main ()
15769 void* p = inet_pton
15771 return 0;
15773 _ACEOF
15774 rm -f conftest.$ac_objext
15775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15776 (eval $ac_compile) 2>conftest.er1
15777 ac_status=$?
15778 grep -v '^ *+' conftest.er1 >conftest.err
15779 rm -f conftest.er1
15780 cat conftest.err >&5
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); } &&
15783 { ac_try='test -z "$ac_c_werror_flag"
15784 || test ! -s conftest.err'
15785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15786 (eval $ac_try) 2>&5
15787 ac_status=$?
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); }; } &&
15790 { ac_try='test -s conftest.$ac_objext'
15791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15792 (eval $ac_try) 2>&5
15793 ac_status=$?
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); }; }; then
15797 cat >>confdefs.h <<\_ACEOF
15798 #define HAVE_INET_PTON 1
15799 _ACEOF
15801 echo "$as_me:$LINENO: result: yes" >&5
15802 echo "${ECHO_T}yes" >&6
15803 else
15804 echo "$as_me: failed program was:" >&5
15805 sed 's/^/| /' conftest.$ac_ext >&5
15807 echo "$as_me:$LINENO: result: no" >&5
15808 echo "${ECHO_T}no" >&6
15811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15813 # On some systems, setgroups is in unistd.h, on others, in grp.h
15814 echo "$as_me:$LINENO: checking for setgroups" >&5
15815 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
15816 cat >conftest.$ac_ext <<_ACEOF
15817 /* confdefs.h. */
15818 _ACEOF
15819 cat confdefs.h >>conftest.$ac_ext
15820 cat >>conftest.$ac_ext <<_ACEOF
15821 /* end confdefs.h. */
15823 #include "confdefs.h"
15824 #include <unistd.h>
15825 #ifdef HAVE_GRP_H
15826 #include <grp.h>
15827 #endif
15830 main ()
15832 void* p = setgroups
15834 return 0;
15836 _ACEOF
15837 rm -f conftest.$ac_objext
15838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15839 (eval $ac_compile) 2>conftest.er1
15840 ac_status=$?
15841 grep -v '^ *+' conftest.er1 >conftest.err
15842 rm -f conftest.er1
15843 cat conftest.err >&5
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); } &&
15846 { ac_try='test -z "$ac_c_werror_flag"
15847 || test ! -s conftest.err'
15848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15849 (eval $ac_try) 2>&5
15850 ac_status=$?
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); }; } &&
15853 { ac_try='test -s conftest.$ac_objext'
15854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15855 (eval $ac_try) 2>&5
15856 ac_status=$?
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); }; }; then
15860 cat >>confdefs.h <<\_ACEOF
15861 #define HAVE_SETGROUPS 1
15862 _ACEOF
15864 echo "$as_me:$LINENO: result: yes" >&5
15865 echo "${ECHO_T}yes" >&6
15866 else
15867 echo "$as_me: failed program was:" >&5
15868 sed 's/^/| /' conftest.$ac_ext >&5
15870 echo "$as_me:$LINENO: result: no" >&5
15871 echo "${ECHO_T}no" >&6
15874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15876 # check for openpty and forkpty
15879 for ac_func in openpty
15881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15882 echo "$as_me:$LINENO: checking for $ac_func" >&5
15883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15884 if eval "test \"\${$as_ac_var+set}\" = set"; then
15885 echo $ECHO_N "(cached) $ECHO_C" >&6
15886 else
15887 cat >conftest.$ac_ext <<_ACEOF
15888 /* confdefs.h. */
15889 _ACEOF
15890 cat confdefs.h >>conftest.$ac_ext
15891 cat >>conftest.$ac_ext <<_ACEOF
15892 /* end confdefs.h. */
15893 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15895 #define $ac_func innocuous_$ac_func
15897 /* System header to define __stub macros and hopefully few prototypes,
15898 which can conflict with char $ac_func (); below.
15899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15900 <limits.h> exists even on freestanding compilers. */
15902 #ifdef __STDC__
15903 # include <limits.h>
15904 #else
15905 # include <assert.h>
15906 #endif
15908 #undef $ac_func
15910 /* Override any gcc2 internal prototype to avoid an error. */
15911 #ifdef __cplusplus
15912 extern "C"
15914 #endif
15915 /* We use char because int might match the return type of a gcc2
15916 builtin and then its argument prototype would still apply. */
15917 char $ac_func ();
15918 /* The GNU C library defines this for functions which it implements
15919 to always fail with ENOSYS. Some functions are actually named
15920 something starting with __ and the normal name is an alias. */
15921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15922 choke me
15923 #else
15924 char (*f) () = $ac_func;
15925 #endif
15926 #ifdef __cplusplus
15928 #endif
15931 main ()
15933 return f != $ac_func;
15935 return 0;
15937 _ACEOF
15938 rm -f conftest.$ac_objext conftest$ac_exeext
15939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15940 (eval $ac_link) 2>conftest.er1
15941 ac_status=$?
15942 grep -v '^ *+' conftest.er1 >conftest.err
15943 rm -f conftest.er1
15944 cat conftest.err >&5
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); } &&
15947 { ac_try='test -z "$ac_c_werror_flag"
15948 || test ! -s conftest.err'
15949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950 (eval $ac_try) 2>&5
15951 ac_status=$?
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; } &&
15954 { ac_try='test -s conftest$ac_exeext'
15955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15956 (eval $ac_try) 2>&5
15957 ac_status=$?
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }; }; then
15960 eval "$as_ac_var=yes"
15961 else
15962 echo "$as_me: failed program was:" >&5
15963 sed 's/^/| /' conftest.$ac_ext >&5
15965 eval "$as_ac_var=no"
15967 rm -f conftest.err conftest.$ac_objext \
15968 conftest$ac_exeext conftest.$ac_ext
15970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15971 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15972 if test `eval echo '${'$as_ac_var'}'` = yes; then
15973 cat >>confdefs.h <<_ACEOF
15974 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15975 _ACEOF
15977 else
15978 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15979 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15980 if test "${ac_cv_lib_util_openpty+set}" = set; then
15981 echo $ECHO_N "(cached) $ECHO_C" >&6
15982 else
15983 ac_check_lib_save_LIBS=$LIBS
15984 LIBS="-lutil $LIBS"
15985 cat >conftest.$ac_ext <<_ACEOF
15986 /* confdefs.h. */
15987 _ACEOF
15988 cat confdefs.h >>conftest.$ac_ext
15989 cat >>conftest.$ac_ext <<_ACEOF
15990 /* end confdefs.h. */
15992 /* Override any gcc2 internal prototype to avoid an error. */
15993 #ifdef __cplusplus
15994 extern "C"
15995 #endif
15996 /* We use char because int might match the return type of a gcc2
15997 builtin and then its argument prototype would still apply. */
15998 char openpty ();
16000 main ()
16002 openpty ();
16004 return 0;
16006 _ACEOF
16007 rm -f conftest.$ac_objext conftest$ac_exeext
16008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16009 (eval $ac_link) 2>conftest.er1
16010 ac_status=$?
16011 grep -v '^ *+' conftest.er1 >conftest.err
16012 rm -f conftest.er1
16013 cat conftest.err >&5
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); } &&
16016 { ac_try='test -z "$ac_c_werror_flag"
16017 || test ! -s conftest.err'
16018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16019 (eval $ac_try) 2>&5
16020 ac_status=$?
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); }; } &&
16023 { ac_try='test -s conftest$ac_exeext'
16024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16025 (eval $ac_try) 2>&5
16026 ac_status=$?
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); }; }; then
16029 ac_cv_lib_util_openpty=yes
16030 else
16031 echo "$as_me: failed program was:" >&5
16032 sed 's/^/| /' conftest.$ac_ext >&5
16034 ac_cv_lib_util_openpty=no
16036 rm -f conftest.err conftest.$ac_objext \
16037 conftest$ac_exeext conftest.$ac_ext
16038 LIBS=$ac_check_lib_save_LIBS
16040 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
16041 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
16042 if test $ac_cv_lib_util_openpty = yes; then
16043 cat >>confdefs.h <<\_ACEOF
16044 #define HAVE_OPENPTY 1
16045 _ACEOF
16046 LIBS="$LIBS -lutil"
16047 else
16048 echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
16049 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6
16050 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
16051 echo $ECHO_N "(cached) $ECHO_C" >&6
16052 else
16053 ac_check_lib_save_LIBS=$LIBS
16054 LIBS="-lbsd $LIBS"
16055 cat >conftest.$ac_ext <<_ACEOF
16056 /* confdefs.h. */
16057 _ACEOF
16058 cat confdefs.h >>conftest.$ac_ext
16059 cat >>conftest.$ac_ext <<_ACEOF
16060 /* end confdefs.h. */
16062 /* Override any gcc2 internal prototype to avoid an error. */
16063 #ifdef __cplusplus
16064 extern "C"
16065 #endif
16066 /* We use char because int might match the return type of a gcc2
16067 builtin and then its argument prototype would still apply. */
16068 char openpty ();
16070 main ()
16072 openpty ();
16074 return 0;
16076 _ACEOF
16077 rm -f conftest.$ac_objext conftest$ac_exeext
16078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16079 (eval $ac_link) 2>conftest.er1
16080 ac_status=$?
16081 grep -v '^ *+' conftest.er1 >conftest.err
16082 rm -f conftest.er1
16083 cat conftest.err >&5
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); } &&
16086 { ac_try='test -z "$ac_c_werror_flag"
16087 || test ! -s conftest.err'
16088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16089 (eval $ac_try) 2>&5
16090 ac_status=$?
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); }; } &&
16093 { ac_try='test -s conftest$ac_exeext'
16094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16095 (eval $ac_try) 2>&5
16096 ac_status=$?
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); }; }; then
16099 ac_cv_lib_bsd_openpty=yes
16100 else
16101 echo "$as_me: failed program was:" >&5
16102 sed 's/^/| /' conftest.$ac_ext >&5
16104 ac_cv_lib_bsd_openpty=no
16106 rm -f conftest.err conftest.$ac_objext \
16107 conftest$ac_exeext conftest.$ac_ext
16108 LIBS=$ac_check_lib_save_LIBS
16110 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
16111 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6
16112 if test $ac_cv_lib_bsd_openpty = yes; then
16113 cat >>confdefs.h <<\_ACEOF
16114 #define HAVE_OPENPTY 1
16115 _ACEOF
16116 LIBS="$LIBS -lbsd"
16124 done
16127 for ac_func in forkpty
16129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16130 echo "$as_me:$LINENO: checking for $ac_func" >&5
16131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16132 if eval "test \"\${$as_ac_var+set}\" = set"; then
16133 echo $ECHO_N "(cached) $ECHO_C" >&6
16134 else
16135 cat >conftest.$ac_ext <<_ACEOF
16136 /* confdefs.h. */
16137 _ACEOF
16138 cat confdefs.h >>conftest.$ac_ext
16139 cat >>conftest.$ac_ext <<_ACEOF
16140 /* end confdefs.h. */
16141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16143 #define $ac_func innocuous_$ac_func
16145 /* System header to define __stub macros and hopefully few prototypes,
16146 which can conflict with char $ac_func (); below.
16147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16148 <limits.h> exists even on freestanding compilers. */
16150 #ifdef __STDC__
16151 # include <limits.h>
16152 #else
16153 # include <assert.h>
16154 #endif
16156 #undef $ac_func
16158 /* Override any gcc2 internal prototype to avoid an error. */
16159 #ifdef __cplusplus
16160 extern "C"
16162 #endif
16163 /* We use char because int might match the return type of a gcc2
16164 builtin and then its argument prototype would still apply. */
16165 char $ac_func ();
16166 /* The GNU C library defines this for functions which it implements
16167 to always fail with ENOSYS. Some functions are actually named
16168 something starting with __ and the normal name is an alias. */
16169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16170 choke me
16171 #else
16172 char (*f) () = $ac_func;
16173 #endif
16174 #ifdef __cplusplus
16176 #endif
16179 main ()
16181 return f != $ac_func;
16183 return 0;
16185 _ACEOF
16186 rm -f conftest.$ac_objext conftest$ac_exeext
16187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16188 (eval $ac_link) 2>conftest.er1
16189 ac_status=$?
16190 grep -v '^ *+' conftest.er1 >conftest.err
16191 rm -f conftest.er1
16192 cat conftest.err >&5
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); } &&
16195 { ac_try='test -z "$ac_c_werror_flag"
16196 || test ! -s conftest.err'
16197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16198 (eval $ac_try) 2>&5
16199 ac_status=$?
16200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201 (exit $ac_status); }; } &&
16202 { ac_try='test -s conftest$ac_exeext'
16203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16204 (eval $ac_try) 2>&5
16205 ac_status=$?
16206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); }; }; then
16208 eval "$as_ac_var=yes"
16209 else
16210 echo "$as_me: failed program was:" >&5
16211 sed 's/^/| /' conftest.$ac_ext >&5
16213 eval "$as_ac_var=no"
16215 rm -f conftest.err conftest.$ac_objext \
16216 conftest$ac_exeext conftest.$ac_ext
16218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16219 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16220 if test `eval echo '${'$as_ac_var'}'` = yes; then
16221 cat >>confdefs.h <<_ACEOF
16222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16223 _ACEOF
16225 else
16226 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
16227 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
16228 if test "${ac_cv_lib_util_forkpty+set}" = set; then
16229 echo $ECHO_N "(cached) $ECHO_C" >&6
16230 else
16231 ac_check_lib_save_LIBS=$LIBS
16232 LIBS="-lutil $LIBS"
16233 cat >conftest.$ac_ext <<_ACEOF
16234 /* confdefs.h. */
16235 _ACEOF
16236 cat confdefs.h >>conftest.$ac_ext
16237 cat >>conftest.$ac_ext <<_ACEOF
16238 /* end confdefs.h. */
16240 /* Override any gcc2 internal prototype to avoid an error. */
16241 #ifdef __cplusplus
16242 extern "C"
16243 #endif
16244 /* We use char because int might match the return type of a gcc2
16245 builtin and then its argument prototype would still apply. */
16246 char forkpty ();
16248 main ()
16250 forkpty ();
16252 return 0;
16254 _ACEOF
16255 rm -f conftest.$ac_objext conftest$ac_exeext
16256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16257 (eval $ac_link) 2>conftest.er1
16258 ac_status=$?
16259 grep -v '^ *+' conftest.er1 >conftest.err
16260 rm -f conftest.er1
16261 cat conftest.err >&5
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); } &&
16264 { ac_try='test -z "$ac_c_werror_flag"
16265 || test ! -s conftest.err'
16266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16267 (eval $ac_try) 2>&5
16268 ac_status=$?
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); }; } &&
16271 { ac_try='test -s conftest$ac_exeext'
16272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273 (eval $ac_try) 2>&5
16274 ac_status=$?
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; }; then
16277 ac_cv_lib_util_forkpty=yes
16278 else
16279 echo "$as_me: failed program was:" >&5
16280 sed 's/^/| /' conftest.$ac_ext >&5
16282 ac_cv_lib_util_forkpty=no
16284 rm -f conftest.err conftest.$ac_objext \
16285 conftest$ac_exeext conftest.$ac_ext
16286 LIBS=$ac_check_lib_save_LIBS
16288 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
16289 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
16290 if test $ac_cv_lib_util_forkpty = yes; then
16291 cat >>confdefs.h <<\_ACEOF
16292 #define HAVE_FORKPTY 1
16293 _ACEOF
16294 LIBS="$LIBS -lutil"
16295 else
16296 echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
16297 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6
16298 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
16299 echo $ECHO_N "(cached) $ECHO_C" >&6
16300 else
16301 ac_check_lib_save_LIBS=$LIBS
16302 LIBS="-lbsd $LIBS"
16303 cat >conftest.$ac_ext <<_ACEOF
16304 /* confdefs.h. */
16305 _ACEOF
16306 cat confdefs.h >>conftest.$ac_ext
16307 cat >>conftest.$ac_ext <<_ACEOF
16308 /* end confdefs.h. */
16310 /* Override any gcc2 internal prototype to avoid an error. */
16311 #ifdef __cplusplus
16312 extern "C"
16313 #endif
16314 /* We use char because int might match the return type of a gcc2
16315 builtin and then its argument prototype would still apply. */
16316 char forkpty ();
16318 main ()
16320 forkpty ();
16322 return 0;
16324 _ACEOF
16325 rm -f conftest.$ac_objext conftest$ac_exeext
16326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16327 (eval $ac_link) 2>conftest.er1
16328 ac_status=$?
16329 grep -v '^ *+' conftest.er1 >conftest.err
16330 rm -f conftest.er1
16331 cat conftest.err >&5
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); } &&
16334 { ac_try='test -z "$ac_c_werror_flag"
16335 || test ! -s conftest.err'
16336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16337 (eval $ac_try) 2>&5
16338 ac_status=$?
16339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340 (exit $ac_status); }; } &&
16341 { ac_try='test -s conftest$ac_exeext'
16342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16343 (eval $ac_try) 2>&5
16344 ac_status=$?
16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); }; }; then
16347 ac_cv_lib_bsd_forkpty=yes
16348 else
16349 echo "$as_me: failed program was:" >&5
16350 sed 's/^/| /' conftest.$ac_ext >&5
16352 ac_cv_lib_bsd_forkpty=no
16354 rm -f conftest.err conftest.$ac_objext \
16355 conftest$ac_exeext conftest.$ac_ext
16356 LIBS=$ac_check_lib_save_LIBS
16358 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
16359 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6
16360 if test $ac_cv_lib_bsd_forkpty = yes; then
16361 cat >>confdefs.h <<\_ACEOF
16362 #define HAVE_FORKPTY 1
16363 _ACEOF
16364 LIBS="$LIBS -lbsd"
16372 done
16375 # check for long file support functions
16382 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
16384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16385 echo "$as_me:$LINENO: checking for $ac_func" >&5
16386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16387 if eval "test \"\${$as_ac_var+set}\" = set"; then
16388 echo $ECHO_N "(cached) $ECHO_C" >&6
16389 else
16390 cat >conftest.$ac_ext <<_ACEOF
16391 /* confdefs.h. */
16392 _ACEOF
16393 cat confdefs.h >>conftest.$ac_ext
16394 cat >>conftest.$ac_ext <<_ACEOF
16395 /* end confdefs.h. */
16396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16398 #define $ac_func innocuous_$ac_func
16400 /* System header to define __stub macros and hopefully few prototypes,
16401 which can conflict with char $ac_func (); below.
16402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16403 <limits.h> exists even on freestanding compilers. */
16405 #ifdef __STDC__
16406 # include <limits.h>
16407 #else
16408 # include <assert.h>
16409 #endif
16411 #undef $ac_func
16413 /* Override any gcc2 internal prototype to avoid an error. */
16414 #ifdef __cplusplus
16415 extern "C"
16417 #endif
16418 /* We use char because int might match the return type of a gcc2
16419 builtin and then its argument prototype would still apply. */
16420 char $ac_func ();
16421 /* The GNU C library defines this for functions which it implements
16422 to always fail with ENOSYS. Some functions are actually named
16423 something starting with __ and the normal name is an alias. */
16424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16425 choke me
16426 #else
16427 char (*f) () = $ac_func;
16428 #endif
16429 #ifdef __cplusplus
16431 #endif
16434 main ()
16436 return f != $ac_func;
16438 return 0;
16440 _ACEOF
16441 rm -f conftest.$ac_objext conftest$ac_exeext
16442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16443 (eval $ac_link) 2>conftest.er1
16444 ac_status=$?
16445 grep -v '^ *+' conftest.er1 >conftest.err
16446 rm -f conftest.er1
16447 cat conftest.err >&5
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); } &&
16450 { ac_try='test -z "$ac_c_werror_flag"
16451 || test ! -s conftest.err'
16452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16453 (eval $ac_try) 2>&5
16454 ac_status=$?
16455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456 (exit $ac_status); }; } &&
16457 { ac_try='test -s conftest$ac_exeext'
16458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16459 (eval $ac_try) 2>&5
16460 ac_status=$?
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); }; }; then
16463 eval "$as_ac_var=yes"
16464 else
16465 echo "$as_me: failed program was:" >&5
16466 sed 's/^/| /' conftest.$ac_ext >&5
16468 eval "$as_ac_var=no"
16470 rm -f conftest.err conftest.$ac_objext \
16471 conftest$ac_exeext conftest.$ac_ext
16473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16474 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16475 if test `eval echo '${'$as_ac_var'}'` = yes; then
16476 cat >>confdefs.h <<_ACEOF
16477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16478 _ACEOF
16481 done
16489 for ac_func in dup2 getcwd strdup strerror memmove
16491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16492 echo "$as_me:$LINENO: checking for $ac_func" >&5
16493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16494 if eval "test \"\${$as_ac_var+set}\" = set"; then
16495 echo $ECHO_N "(cached) $ECHO_C" >&6
16496 else
16497 cat >conftest.$ac_ext <<_ACEOF
16498 /* confdefs.h. */
16499 _ACEOF
16500 cat confdefs.h >>conftest.$ac_ext
16501 cat >>conftest.$ac_ext <<_ACEOF
16502 /* end confdefs.h. */
16503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16505 #define $ac_func innocuous_$ac_func
16507 /* System header to define __stub macros and hopefully few prototypes,
16508 which can conflict with char $ac_func (); below.
16509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16510 <limits.h> exists even on freestanding compilers. */
16512 #ifdef __STDC__
16513 # include <limits.h>
16514 #else
16515 # include <assert.h>
16516 #endif
16518 #undef $ac_func
16520 /* Override any gcc2 internal prototype to avoid an error. */
16521 #ifdef __cplusplus
16522 extern "C"
16524 #endif
16525 /* We use char because int might match the return type of a gcc2
16526 builtin and then its argument prototype would still apply. */
16527 char $ac_func ();
16528 /* The GNU C library defines this for functions which it implements
16529 to always fail with ENOSYS. Some functions are actually named
16530 something starting with __ and the normal name is an alias. */
16531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16532 choke me
16533 #else
16534 char (*f) () = $ac_func;
16535 #endif
16536 #ifdef __cplusplus
16538 #endif
16541 main ()
16543 return f != $ac_func;
16545 return 0;
16547 _ACEOF
16548 rm -f conftest.$ac_objext conftest$ac_exeext
16549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16550 (eval $ac_link) 2>conftest.er1
16551 ac_status=$?
16552 grep -v '^ *+' conftest.er1 >conftest.err
16553 rm -f conftest.er1
16554 cat conftest.err >&5
16555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16556 (exit $ac_status); } &&
16557 { ac_try='test -z "$ac_c_werror_flag"
16558 || test ! -s conftest.err'
16559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16560 (eval $ac_try) 2>&5
16561 ac_status=$?
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); }; } &&
16564 { ac_try='test -s conftest$ac_exeext'
16565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16566 (eval $ac_try) 2>&5
16567 ac_status=$?
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); }; }; then
16570 eval "$as_ac_var=yes"
16571 else
16572 echo "$as_me: failed program was:" >&5
16573 sed 's/^/| /' conftest.$ac_ext >&5
16575 eval "$as_ac_var=no"
16577 rm -f conftest.err conftest.$ac_objext \
16578 conftest$ac_exeext conftest.$ac_ext
16580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16581 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16582 if test `eval echo '${'$as_ac_var'}'` = yes; then
16583 cat >>confdefs.h <<_ACEOF
16584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16585 _ACEOF
16587 else
16588 case $LIBOBJS in
16589 "$ac_func.$ac_objext" | \
16590 *" $ac_func.$ac_objext" | \
16591 "$ac_func.$ac_objext "* | \
16592 *" $ac_func.$ac_objext "* ) ;;
16593 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
16594 esac
16597 done
16601 for ac_func in getpgrp
16603 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16604 echo "$as_me:$LINENO: checking for $ac_func" >&5
16605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16606 if eval "test \"\${$as_ac_var+set}\" = set"; then
16607 echo $ECHO_N "(cached) $ECHO_C" >&6
16608 else
16609 cat >conftest.$ac_ext <<_ACEOF
16610 /* confdefs.h. */
16611 _ACEOF
16612 cat confdefs.h >>conftest.$ac_ext
16613 cat >>conftest.$ac_ext <<_ACEOF
16614 /* end confdefs.h. */
16615 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16617 #define $ac_func innocuous_$ac_func
16619 /* System header to define __stub macros and hopefully few prototypes,
16620 which can conflict with char $ac_func (); below.
16621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16622 <limits.h> exists even on freestanding compilers. */
16624 #ifdef __STDC__
16625 # include <limits.h>
16626 #else
16627 # include <assert.h>
16628 #endif
16630 #undef $ac_func
16632 /* Override any gcc2 internal prototype to avoid an error. */
16633 #ifdef __cplusplus
16634 extern "C"
16636 #endif
16637 /* We use char because int might match the return type of a gcc2
16638 builtin and then its argument prototype would still apply. */
16639 char $ac_func ();
16640 /* The GNU C library defines this for functions which it implements
16641 to always fail with ENOSYS. Some functions are actually named
16642 something starting with __ and the normal name is an alias. */
16643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16644 choke me
16645 #else
16646 char (*f) () = $ac_func;
16647 #endif
16648 #ifdef __cplusplus
16650 #endif
16653 main ()
16655 return f != $ac_func;
16657 return 0;
16659 _ACEOF
16660 rm -f conftest.$ac_objext conftest$ac_exeext
16661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16662 (eval $ac_link) 2>conftest.er1
16663 ac_status=$?
16664 grep -v '^ *+' conftest.er1 >conftest.err
16665 rm -f conftest.er1
16666 cat conftest.err >&5
16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); } &&
16669 { ac_try='test -z "$ac_c_werror_flag"
16670 || test ! -s conftest.err'
16671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672 (eval $ac_try) 2>&5
16673 ac_status=$?
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; } &&
16676 { ac_try='test -s conftest$ac_exeext'
16677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16678 (eval $ac_try) 2>&5
16679 ac_status=$?
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); }; }; then
16682 eval "$as_ac_var=yes"
16683 else
16684 echo "$as_me: failed program was:" >&5
16685 sed 's/^/| /' conftest.$ac_ext >&5
16687 eval "$as_ac_var=no"
16689 rm -f conftest.err conftest.$ac_objext \
16690 conftest$ac_exeext conftest.$ac_ext
16692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16693 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16694 if test `eval echo '${'$as_ac_var'}'` = yes; then
16695 cat >>confdefs.h <<_ACEOF
16696 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16697 _ACEOF
16698 cat >conftest.$ac_ext <<_ACEOF
16699 /* confdefs.h. */
16700 _ACEOF
16701 cat confdefs.h >>conftest.$ac_ext
16702 cat >>conftest.$ac_ext <<_ACEOF
16703 /* end confdefs.h. */
16704 #include <unistd.h>
16706 main ()
16708 getpgrp(0);
16710 return 0;
16712 _ACEOF
16713 rm -f conftest.$ac_objext
16714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16715 (eval $ac_compile) 2>conftest.er1
16716 ac_status=$?
16717 grep -v '^ *+' conftest.er1 >conftest.err
16718 rm -f conftest.er1
16719 cat conftest.err >&5
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); } &&
16722 { ac_try='test -z "$ac_c_werror_flag"
16723 || test ! -s conftest.err'
16724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16725 (eval $ac_try) 2>&5
16726 ac_status=$?
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); }; } &&
16729 { ac_try='test -s conftest.$ac_objext'
16730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16731 (eval $ac_try) 2>&5
16732 ac_status=$?
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); }; }; then
16736 cat >>confdefs.h <<\_ACEOF
16737 #define GETPGRP_HAVE_ARG 1
16738 _ACEOF
16741 else
16742 echo "$as_me: failed program was:" >&5
16743 sed 's/^/| /' conftest.$ac_ext >&5
16746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16749 done
16752 for ac_func in setpgrp
16754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16755 echo "$as_me:$LINENO: checking for $ac_func" >&5
16756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16757 if eval "test \"\${$as_ac_var+set}\" = set"; then
16758 echo $ECHO_N "(cached) $ECHO_C" >&6
16759 else
16760 cat >conftest.$ac_ext <<_ACEOF
16761 /* confdefs.h. */
16762 _ACEOF
16763 cat confdefs.h >>conftest.$ac_ext
16764 cat >>conftest.$ac_ext <<_ACEOF
16765 /* end confdefs.h. */
16766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16768 #define $ac_func innocuous_$ac_func
16770 /* System header to define __stub macros and hopefully few prototypes,
16771 which can conflict with char $ac_func (); below.
16772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16773 <limits.h> exists even on freestanding compilers. */
16775 #ifdef __STDC__
16776 # include <limits.h>
16777 #else
16778 # include <assert.h>
16779 #endif
16781 #undef $ac_func
16783 /* Override any gcc2 internal prototype to avoid an error. */
16784 #ifdef __cplusplus
16785 extern "C"
16787 #endif
16788 /* We use char because int might match the return type of a gcc2
16789 builtin and then its argument prototype would still apply. */
16790 char $ac_func ();
16791 /* The GNU C library defines this for functions which it implements
16792 to always fail with ENOSYS. Some functions are actually named
16793 something starting with __ and the normal name is an alias. */
16794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16795 choke me
16796 #else
16797 char (*f) () = $ac_func;
16798 #endif
16799 #ifdef __cplusplus
16801 #endif
16804 main ()
16806 return f != $ac_func;
16808 return 0;
16810 _ACEOF
16811 rm -f conftest.$ac_objext conftest$ac_exeext
16812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16813 (eval $ac_link) 2>conftest.er1
16814 ac_status=$?
16815 grep -v '^ *+' conftest.er1 >conftest.err
16816 rm -f conftest.er1
16817 cat conftest.err >&5
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); } &&
16820 { ac_try='test -z "$ac_c_werror_flag"
16821 || test ! -s conftest.err'
16822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16823 (eval $ac_try) 2>&5
16824 ac_status=$?
16825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826 (exit $ac_status); }; } &&
16827 { ac_try='test -s conftest$ac_exeext'
16828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16829 (eval $ac_try) 2>&5
16830 ac_status=$?
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); }; }; then
16833 eval "$as_ac_var=yes"
16834 else
16835 echo "$as_me: failed program was:" >&5
16836 sed 's/^/| /' conftest.$ac_ext >&5
16838 eval "$as_ac_var=no"
16840 rm -f conftest.err conftest.$ac_objext \
16841 conftest$ac_exeext conftest.$ac_ext
16843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16844 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16845 if test `eval echo '${'$as_ac_var'}'` = yes; then
16846 cat >>confdefs.h <<_ACEOF
16847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16848 _ACEOF
16849 cat >conftest.$ac_ext <<_ACEOF
16850 /* confdefs.h. */
16851 _ACEOF
16852 cat confdefs.h >>conftest.$ac_ext
16853 cat >>conftest.$ac_ext <<_ACEOF
16854 /* end confdefs.h. */
16855 #include <unistd.h>
16857 main ()
16859 setpgrp(0,0);
16861 return 0;
16863 _ACEOF
16864 rm -f conftest.$ac_objext
16865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16866 (eval $ac_compile) 2>conftest.er1
16867 ac_status=$?
16868 grep -v '^ *+' conftest.er1 >conftest.err
16869 rm -f conftest.er1
16870 cat conftest.err >&5
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); } &&
16873 { ac_try='test -z "$ac_c_werror_flag"
16874 || test ! -s conftest.err'
16875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16876 (eval $ac_try) 2>&5
16877 ac_status=$?
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); }; } &&
16880 { ac_try='test -s conftest.$ac_objext'
16881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16882 (eval $ac_try) 2>&5
16883 ac_status=$?
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); }; }; then
16887 cat >>confdefs.h <<\_ACEOF
16888 #define SETPGRP_HAVE_ARG 1
16889 _ACEOF
16892 else
16893 echo "$as_me: failed program was:" >&5
16894 sed 's/^/| /' conftest.$ac_ext >&5
16897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16900 done
16903 for ac_func in gettimeofday
16905 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16906 echo "$as_me:$LINENO: checking for $ac_func" >&5
16907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16908 if eval "test \"\${$as_ac_var+set}\" = set"; then
16909 echo $ECHO_N "(cached) $ECHO_C" >&6
16910 else
16911 cat >conftest.$ac_ext <<_ACEOF
16912 /* confdefs.h. */
16913 _ACEOF
16914 cat confdefs.h >>conftest.$ac_ext
16915 cat >>conftest.$ac_ext <<_ACEOF
16916 /* end confdefs.h. */
16917 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16919 #define $ac_func innocuous_$ac_func
16921 /* System header to define __stub macros and hopefully few prototypes,
16922 which can conflict with char $ac_func (); below.
16923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16924 <limits.h> exists even on freestanding compilers. */
16926 #ifdef __STDC__
16927 # include <limits.h>
16928 #else
16929 # include <assert.h>
16930 #endif
16932 #undef $ac_func
16934 /* Override any gcc2 internal prototype to avoid an error. */
16935 #ifdef __cplusplus
16936 extern "C"
16938 #endif
16939 /* We use char because int might match the return type of a gcc2
16940 builtin and then its argument prototype would still apply. */
16941 char $ac_func ();
16942 /* The GNU C library defines this for functions which it implements
16943 to always fail with ENOSYS. Some functions are actually named
16944 something starting with __ and the normal name is an alias. */
16945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16946 choke me
16947 #else
16948 char (*f) () = $ac_func;
16949 #endif
16950 #ifdef __cplusplus
16952 #endif
16955 main ()
16957 return f != $ac_func;
16959 return 0;
16961 _ACEOF
16962 rm -f conftest.$ac_objext conftest$ac_exeext
16963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16964 (eval $ac_link) 2>conftest.er1
16965 ac_status=$?
16966 grep -v '^ *+' conftest.er1 >conftest.err
16967 rm -f conftest.er1
16968 cat conftest.err >&5
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); } &&
16971 { ac_try='test -z "$ac_c_werror_flag"
16972 || test ! -s conftest.err'
16973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16974 (eval $ac_try) 2>&5
16975 ac_status=$?
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); }; } &&
16978 { ac_try='test -s conftest$ac_exeext'
16979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16980 (eval $ac_try) 2>&5
16981 ac_status=$?
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); }; }; then
16984 eval "$as_ac_var=yes"
16985 else
16986 echo "$as_me: failed program was:" >&5
16987 sed 's/^/| /' conftest.$ac_ext >&5
16989 eval "$as_ac_var=no"
16991 rm -f conftest.err conftest.$ac_objext \
16992 conftest$ac_exeext conftest.$ac_ext
16994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16995 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16996 if test `eval echo '${'$as_ac_var'}'` = yes; then
16997 cat >>confdefs.h <<_ACEOF
16998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16999 _ACEOF
17000 cat >conftest.$ac_ext <<_ACEOF
17001 /* confdefs.h. */
17002 _ACEOF
17003 cat confdefs.h >>conftest.$ac_ext
17004 cat >>conftest.$ac_ext <<_ACEOF
17005 /* end confdefs.h. */
17006 #include <sys/time.h>
17008 main ()
17010 gettimeofday((struct timeval*)0,(struct timezone*)0);
17012 return 0;
17014 _ACEOF
17015 rm -f conftest.$ac_objext
17016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17017 (eval $ac_compile) 2>conftest.er1
17018 ac_status=$?
17019 grep -v '^ *+' conftest.er1 >conftest.err
17020 rm -f conftest.er1
17021 cat conftest.err >&5
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); } &&
17024 { ac_try='test -z "$ac_c_werror_flag"
17025 || test ! -s conftest.err'
17026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17027 (eval $ac_try) 2>&5
17028 ac_status=$?
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); }; } &&
17031 { ac_try='test -s conftest.$ac_objext'
17032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17033 (eval $ac_try) 2>&5
17034 ac_status=$?
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); }; }; then
17038 else
17039 echo "$as_me: failed program was:" >&5
17040 sed 's/^/| /' conftest.$ac_ext >&5
17043 cat >>confdefs.h <<\_ACEOF
17044 #define GETTIMEOFDAY_NO_TZ 1
17045 _ACEOF
17049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17052 done
17055 echo "$as_me:$LINENO: checking for major" >&5
17056 echo $ECHO_N "checking for major... $ECHO_C" >&6
17057 cat >conftest.$ac_ext <<_ACEOF
17058 /* confdefs.h. */
17059 _ACEOF
17060 cat confdefs.h >>conftest.$ac_ext
17061 cat >>conftest.$ac_ext <<_ACEOF
17062 /* end confdefs.h. */
17064 #if defined(MAJOR_IN_MKDEV)
17065 #include <sys/mkdev.h>
17066 #elif defined(MAJOR_IN_SYSMACROS)
17067 #include <sys/sysmacros.h>
17068 #else
17069 #include <sys/types.h>
17070 #endif
17073 main ()
17076 makedev(major(0),minor(0));
17079 return 0;
17081 _ACEOF
17082 rm -f conftest.$ac_objext conftest$ac_exeext
17083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17084 (eval $ac_link) 2>conftest.er1
17085 ac_status=$?
17086 grep -v '^ *+' conftest.er1 >conftest.err
17087 rm -f conftest.er1
17088 cat conftest.err >&5
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); } &&
17091 { ac_try='test -z "$ac_c_werror_flag"
17092 || test ! -s conftest.err'
17093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17094 (eval $ac_try) 2>&5
17095 ac_status=$?
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); }; } &&
17098 { ac_try='test -s conftest$ac_exeext'
17099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17100 (eval $ac_try) 2>&5
17101 ac_status=$?
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); }; }; then
17106 cat >>confdefs.h <<\_ACEOF
17107 #define HAVE_DEVICE_MACROS 1
17108 _ACEOF
17110 echo "$as_me:$LINENO: result: yes" >&5
17111 echo "${ECHO_T}yes" >&6
17113 else
17114 echo "$as_me: failed program was:" >&5
17115 sed 's/^/| /' conftest.$ac_ext >&5
17118 echo "$as_me:$LINENO: result: no" >&5
17119 echo "${ECHO_T}no" >&6
17122 rm -f conftest.err conftest.$ac_objext \
17123 conftest$ac_exeext conftest.$ac_ext
17125 # On OSF/1 V5.1, getaddrinfo is available, but a define
17126 # for [no]getaddrinfo in netdb.h.
17127 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
17128 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
17129 cat >conftest.$ac_ext <<_ACEOF
17130 /* confdefs.h. */
17131 _ACEOF
17132 cat confdefs.h >>conftest.$ac_ext
17133 cat >>conftest.$ac_ext <<_ACEOF
17134 /* end confdefs.h. */
17136 #include <sys/types.h>
17137 #include <sys/socket.h>
17138 #include <netdb.h>
17139 #include <stdio.h>
17142 main ()
17145 getaddrinfo(NULL, NULL, NULL, NULL);
17148 return 0;
17150 _ACEOF
17151 rm -f conftest.$ac_objext conftest$ac_exeext
17152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17153 (eval $ac_link) 2>conftest.er1
17154 ac_status=$?
17155 grep -v '^ *+' conftest.er1 >conftest.err
17156 rm -f conftest.er1
17157 cat conftest.err >&5
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); } &&
17160 { ac_try='test -z "$ac_c_werror_flag"
17161 || test ! -s conftest.err'
17162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17163 (eval $ac_try) 2>&5
17164 ac_status=$?
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); }; } &&
17167 { ac_try='test -s conftest$ac_exeext'
17168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17169 (eval $ac_try) 2>&5
17170 ac_status=$?
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); }; }; then
17174 echo "$as_me:$LINENO: result: yes" >&5
17175 echo "${ECHO_T}yes" >&6
17176 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
17177 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
17178 if test "$cross_compiling" = yes; then
17179 echo "$as_me:$LINENO: result: buggy" >&5
17180 echo "${ECHO_T}buggy" >&6
17181 buggygetaddrinfo=yes
17182 else
17183 cat >conftest.$ac_ext <<_ACEOF
17184 /* confdefs.h. */
17185 _ACEOF
17186 cat confdefs.h >>conftest.$ac_ext
17187 cat >>conftest.$ac_ext <<_ACEOF
17188 /* end confdefs.h. */
17190 #include <sys/types.h>
17191 #include <netdb.h>
17192 #include <string.h>
17193 #include <sys/socket.h>
17194 #include <netinet/in.h>
17196 main()
17198 int passive, gaierr, inet4 = 0, inet6 = 0;
17199 struct addrinfo hints, *ai, *aitop;
17200 char straddr[INET6_ADDRSTRLEN], strport[16];
17202 for (passive = 0; passive <= 1; passive++) {
17203 memset(&hints, 0, sizeof(hints));
17204 hints.ai_family = AF_UNSPEC;
17205 hints.ai_flags = passive ? AI_PASSIVE : 0;
17206 hints.ai_socktype = SOCK_STREAM;
17207 hints.ai_protocol = IPPROTO_TCP;
17208 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
17209 (void)gai_strerror(gaierr);
17210 goto bad;
17212 for (ai = aitop; ai; ai = ai->ai_next) {
17213 if (ai->ai_addr == NULL ||
17214 ai->ai_addrlen == 0 ||
17215 getnameinfo(ai->ai_addr, ai->ai_addrlen,
17216 straddr, sizeof(straddr), strport, sizeof(strport),
17217 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
17218 goto bad;
17220 switch (ai->ai_family) {
17221 case AF_INET:
17222 if (strcmp(strport, "54321") != 0) {
17223 goto bad;
17225 if (passive) {
17226 if (strcmp(straddr, "0.0.0.0") != 0) {
17227 goto bad;
17229 } else {
17230 if (strcmp(straddr, "127.0.0.1") != 0) {
17231 goto bad;
17234 inet4++;
17235 break;
17236 case AF_INET6:
17237 if (strcmp(strport, "54321") != 0) {
17238 goto bad;
17240 if (passive) {
17241 if (strcmp(straddr, "::") != 0) {
17242 goto bad;
17244 } else {
17245 if (strcmp(straddr, "::1") != 0) {
17246 goto bad;
17249 inet6++;
17250 break;
17251 case AF_UNSPEC:
17252 goto bad;
17253 break;
17254 default:
17255 /* another family support? */
17256 break;
17261 if (!(inet4 == 0 || inet4 == 2))
17262 goto bad;
17263 if (!(inet6 == 0 || inet6 == 2))
17264 goto bad;
17266 if (aitop)
17267 freeaddrinfo(aitop);
17268 exit(0);
17270 bad:
17271 if (aitop)
17272 freeaddrinfo(aitop);
17273 exit(1);
17276 _ACEOF
17277 rm -f conftest$ac_exeext
17278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17279 (eval $ac_link) 2>&5
17280 ac_status=$?
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17284 (eval $ac_try) 2>&5
17285 ac_status=$?
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); }; }; then
17288 echo "$as_me:$LINENO: result: good" >&5
17289 echo "${ECHO_T}good" >&6
17290 buggygetaddrinfo=no
17291 else
17292 echo "$as_me: program exited with status $ac_status" >&5
17293 echo "$as_me: failed program was:" >&5
17294 sed 's/^/| /' conftest.$ac_ext >&5
17296 ( exit $ac_status )
17297 echo "$as_me:$LINENO: result: buggy" >&5
17298 echo "${ECHO_T}buggy" >&6
17299 buggygetaddrinfo=yes
17301 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17303 else
17304 echo "$as_me: failed program was:" >&5
17305 sed 's/^/| /' conftest.$ac_ext >&5
17308 echo "$as_me:$LINENO: result: no" >&5
17309 echo "${ECHO_T}no" >&6
17310 buggygetaddrinfo=yes
17313 rm -f conftest.err conftest.$ac_objext \
17314 conftest$ac_exeext conftest.$ac_ext
17316 if test "$buggygetaddrinfo" = "yes"; then
17317 if test "$ipv6" = "yes"; then
17318 echo 'Fatal: You must get working getaddrinfo() function.'
17319 echo ' or you can specify "--disable-ipv6"'.
17320 exit 1
17322 else
17324 cat >>confdefs.h <<\_ACEOF
17325 #define HAVE_GETADDRINFO 1
17326 _ACEOF
17330 for ac_func in getnameinfo
17332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17333 echo "$as_me:$LINENO: checking for $ac_func" >&5
17334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17335 if eval "test \"\${$as_ac_var+set}\" = set"; then
17336 echo $ECHO_N "(cached) $ECHO_C" >&6
17337 else
17338 cat >conftest.$ac_ext <<_ACEOF
17339 /* confdefs.h. */
17340 _ACEOF
17341 cat confdefs.h >>conftest.$ac_ext
17342 cat >>conftest.$ac_ext <<_ACEOF
17343 /* end confdefs.h. */
17344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17346 #define $ac_func innocuous_$ac_func
17348 /* System header to define __stub macros and hopefully few prototypes,
17349 which can conflict with char $ac_func (); below.
17350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17351 <limits.h> exists even on freestanding compilers. */
17353 #ifdef __STDC__
17354 # include <limits.h>
17355 #else
17356 # include <assert.h>
17357 #endif
17359 #undef $ac_func
17361 /* Override any gcc2 internal prototype to avoid an error. */
17362 #ifdef __cplusplus
17363 extern "C"
17365 #endif
17366 /* We use char because int might match the return type of a gcc2
17367 builtin and then its argument prototype would still apply. */
17368 char $ac_func ();
17369 /* The GNU C library defines this for functions which it implements
17370 to always fail with ENOSYS. Some functions are actually named
17371 something starting with __ and the normal name is an alias. */
17372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17373 choke me
17374 #else
17375 char (*f) () = $ac_func;
17376 #endif
17377 #ifdef __cplusplus
17379 #endif
17382 main ()
17384 return f != $ac_func;
17386 return 0;
17388 _ACEOF
17389 rm -f conftest.$ac_objext conftest$ac_exeext
17390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17391 (eval $ac_link) 2>conftest.er1
17392 ac_status=$?
17393 grep -v '^ *+' conftest.er1 >conftest.err
17394 rm -f conftest.er1
17395 cat conftest.err >&5
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); } &&
17398 { ac_try='test -z "$ac_c_werror_flag"
17399 || test ! -s conftest.err'
17400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17401 (eval $ac_try) 2>&5
17402 ac_status=$?
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); }; } &&
17405 { ac_try='test -s conftest$ac_exeext'
17406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17407 (eval $ac_try) 2>&5
17408 ac_status=$?
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); }; }; then
17411 eval "$as_ac_var=yes"
17412 else
17413 echo "$as_me: failed program was:" >&5
17414 sed 's/^/| /' conftest.$ac_ext >&5
17416 eval "$as_ac_var=no"
17418 rm -f conftest.err conftest.$ac_objext \
17419 conftest$ac_exeext conftest.$ac_ext
17421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17422 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17423 if test `eval echo '${'$as_ac_var'}'` = yes; then
17424 cat >>confdefs.h <<_ACEOF
17425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17426 _ACEOF
17429 done
17432 # checks for structures
17433 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
17434 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
17435 if test "${ac_cv_header_time+set}" = set; then
17436 echo $ECHO_N "(cached) $ECHO_C" >&6
17437 else
17438 cat >conftest.$ac_ext <<_ACEOF
17439 /* confdefs.h. */
17440 _ACEOF
17441 cat confdefs.h >>conftest.$ac_ext
17442 cat >>conftest.$ac_ext <<_ACEOF
17443 /* end confdefs.h. */
17444 #include <sys/types.h>
17445 #include <sys/time.h>
17446 #include <time.h>
17449 main ()
17451 if ((struct tm *) 0)
17452 return 0;
17454 return 0;
17456 _ACEOF
17457 rm -f conftest.$ac_objext
17458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17459 (eval $ac_compile) 2>conftest.er1
17460 ac_status=$?
17461 grep -v '^ *+' conftest.er1 >conftest.err
17462 rm -f conftest.er1
17463 cat conftest.err >&5
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); } &&
17466 { ac_try='test -z "$ac_c_werror_flag"
17467 || test ! -s conftest.err'
17468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17469 (eval $ac_try) 2>&5
17470 ac_status=$?
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); }; } &&
17473 { ac_try='test -s conftest.$ac_objext'
17474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17475 (eval $ac_try) 2>&5
17476 ac_status=$?
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); }; }; then
17479 ac_cv_header_time=yes
17480 else
17481 echo "$as_me: failed program was:" >&5
17482 sed 's/^/| /' conftest.$ac_ext >&5
17484 ac_cv_header_time=no
17486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17488 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
17489 echo "${ECHO_T}$ac_cv_header_time" >&6
17490 if test $ac_cv_header_time = yes; then
17492 cat >>confdefs.h <<\_ACEOF
17493 #define TIME_WITH_SYS_TIME 1
17494 _ACEOF
17498 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17499 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
17500 if test "${ac_cv_struct_tm+set}" = set; then
17501 echo $ECHO_N "(cached) $ECHO_C" >&6
17502 else
17503 cat >conftest.$ac_ext <<_ACEOF
17504 /* confdefs.h. */
17505 _ACEOF
17506 cat confdefs.h >>conftest.$ac_ext
17507 cat >>conftest.$ac_ext <<_ACEOF
17508 /* end confdefs.h. */
17509 #include <sys/types.h>
17510 #include <time.h>
17513 main ()
17515 struct tm *tp; tp->tm_sec;
17517 return 0;
17519 _ACEOF
17520 rm -f conftest.$ac_objext
17521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17522 (eval $ac_compile) 2>conftest.er1
17523 ac_status=$?
17524 grep -v '^ *+' conftest.er1 >conftest.err
17525 rm -f conftest.er1
17526 cat conftest.err >&5
17527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528 (exit $ac_status); } &&
17529 { ac_try='test -z "$ac_c_werror_flag"
17530 || test ! -s conftest.err'
17531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17532 (eval $ac_try) 2>&5
17533 ac_status=$?
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); }; } &&
17536 { ac_try='test -s conftest.$ac_objext'
17537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17538 (eval $ac_try) 2>&5
17539 ac_status=$?
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; }; then
17542 ac_cv_struct_tm=time.h
17543 else
17544 echo "$as_me: failed program was:" >&5
17545 sed 's/^/| /' conftest.$ac_ext >&5
17547 ac_cv_struct_tm=sys/time.h
17549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17551 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17552 echo "${ECHO_T}$ac_cv_struct_tm" >&6
17553 if test $ac_cv_struct_tm = sys/time.h; then
17555 cat >>confdefs.h <<\_ACEOF
17556 #define TM_IN_SYS_TIME 1
17557 _ACEOF
17561 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
17562 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
17563 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
17564 echo $ECHO_N "(cached) $ECHO_C" >&6
17565 else
17566 cat >conftest.$ac_ext <<_ACEOF
17567 /* confdefs.h. */
17568 _ACEOF
17569 cat confdefs.h >>conftest.$ac_ext
17570 cat >>conftest.$ac_ext <<_ACEOF
17571 /* end confdefs.h. */
17572 #include <sys/types.h>
17573 #include <$ac_cv_struct_tm>
17577 main ()
17579 static struct tm ac_aggr;
17580 if (ac_aggr.tm_zone)
17581 return 0;
17583 return 0;
17585 _ACEOF
17586 rm -f conftest.$ac_objext
17587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17588 (eval $ac_compile) 2>conftest.er1
17589 ac_status=$?
17590 grep -v '^ *+' conftest.er1 >conftest.err
17591 rm -f conftest.er1
17592 cat conftest.err >&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); } &&
17595 { ac_try='test -z "$ac_c_werror_flag"
17596 || test ! -s conftest.err'
17597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17598 (eval $ac_try) 2>&5
17599 ac_status=$?
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); }; } &&
17602 { ac_try='test -s conftest.$ac_objext'
17603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604 (eval $ac_try) 2>&5
17605 ac_status=$?
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; }; then
17608 ac_cv_member_struct_tm_tm_zone=yes
17609 else
17610 echo "$as_me: failed program was:" >&5
17611 sed 's/^/| /' conftest.$ac_ext >&5
17613 cat >conftest.$ac_ext <<_ACEOF
17614 /* confdefs.h. */
17615 _ACEOF
17616 cat confdefs.h >>conftest.$ac_ext
17617 cat >>conftest.$ac_ext <<_ACEOF
17618 /* end confdefs.h. */
17619 #include <sys/types.h>
17620 #include <$ac_cv_struct_tm>
17624 main ()
17626 static struct tm ac_aggr;
17627 if (sizeof ac_aggr.tm_zone)
17628 return 0;
17630 return 0;
17632 _ACEOF
17633 rm -f conftest.$ac_objext
17634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17635 (eval $ac_compile) 2>conftest.er1
17636 ac_status=$?
17637 grep -v '^ *+' conftest.er1 >conftest.err
17638 rm -f conftest.er1
17639 cat conftest.err >&5
17640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641 (exit $ac_status); } &&
17642 { ac_try='test -z "$ac_c_werror_flag"
17643 || test ! -s conftest.err'
17644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17645 (eval $ac_try) 2>&5
17646 ac_status=$?
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); }; } &&
17649 { ac_try='test -s conftest.$ac_objext'
17650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17651 (eval $ac_try) 2>&5
17652 ac_status=$?
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); }; }; then
17655 ac_cv_member_struct_tm_tm_zone=yes
17656 else
17657 echo "$as_me: failed program was:" >&5
17658 sed 's/^/| /' conftest.$ac_ext >&5
17660 ac_cv_member_struct_tm_tm_zone=no
17662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17666 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
17667 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
17668 if test $ac_cv_member_struct_tm_tm_zone = yes; then
17670 cat >>confdefs.h <<_ACEOF
17671 #define HAVE_STRUCT_TM_TM_ZONE 1
17672 _ACEOF
17677 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17679 cat >>confdefs.h <<\_ACEOF
17680 #define HAVE_TM_ZONE 1
17681 _ACEOF
17683 else
17684 echo "$as_me:$LINENO: checking for tzname" >&5
17685 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
17686 if test "${ac_cv_var_tzname+set}" = set; then
17687 echo $ECHO_N "(cached) $ECHO_C" >&6
17688 else
17689 cat >conftest.$ac_ext <<_ACEOF
17690 /* confdefs.h. */
17691 _ACEOF
17692 cat confdefs.h >>conftest.$ac_ext
17693 cat >>conftest.$ac_ext <<_ACEOF
17694 /* end confdefs.h. */
17695 #include <time.h>
17696 #ifndef tzname /* For SGI. */
17697 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
17698 #endif
17701 main ()
17703 atoi(*tzname);
17705 return 0;
17707 _ACEOF
17708 rm -f conftest.$ac_objext conftest$ac_exeext
17709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17710 (eval $ac_link) 2>conftest.er1
17711 ac_status=$?
17712 grep -v '^ *+' conftest.er1 >conftest.err
17713 rm -f conftest.er1
17714 cat conftest.err >&5
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); } &&
17717 { ac_try='test -z "$ac_c_werror_flag"
17718 || test ! -s conftest.err'
17719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17720 (eval $ac_try) 2>&5
17721 ac_status=$?
17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); }; } &&
17724 { ac_try='test -s conftest$ac_exeext'
17725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17726 (eval $ac_try) 2>&5
17727 ac_status=$?
17728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729 (exit $ac_status); }; }; then
17730 ac_cv_var_tzname=yes
17731 else
17732 echo "$as_me: failed program was:" >&5
17733 sed 's/^/| /' conftest.$ac_ext >&5
17735 ac_cv_var_tzname=no
17737 rm -f conftest.err conftest.$ac_objext \
17738 conftest$ac_exeext conftest.$ac_ext
17740 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17741 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17742 if test $ac_cv_var_tzname = yes; then
17744 cat >>confdefs.h <<\_ACEOF
17745 #define HAVE_TZNAME 1
17746 _ACEOF
17751 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
17752 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
17753 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
17754 echo $ECHO_N "(cached) $ECHO_C" >&6
17755 else
17756 cat >conftest.$ac_ext <<_ACEOF
17757 /* confdefs.h. */
17758 _ACEOF
17759 cat confdefs.h >>conftest.$ac_ext
17760 cat >>conftest.$ac_ext <<_ACEOF
17761 /* end confdefs.h. */
17762 $ac_includes_default
17764 main ()
17766 static struct stat ac_aggr;
17767 if (ac_aggr.st_rdev)
17768 return 0;
17770 return 0;
17772 _ACEOF
17773 rm -f conftest.$ac_objext
17774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17775 (eval $ac_compile) 2>conftest.er1
17776 ac_status=$?
17777 grep -v '^ *+' conftest.er1 >conftest.err
17778 rm -f conftest.er1
17779 cat conftest.err >&5
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); } &&
17782 { ac_try='test -z "$ac_c_werror_flag"
17783 || test ! -s conftest.err'
17784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785 (eval $ac_try) 2>&5
17786 ac_status=$?
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; } &&
17789 { ac_try='test -s conftest.$ac_objext'
17790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17791 (eval $ac_try) 2>&5
17792 ac_status=$?
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); }; }; then
17795 ac_cv_member_struct_stat_st_rdev=yes
17796 else
17797 echo "$as_me: failed program was:" >&5
17798 sed 's/^/| /' conftest.$ac_ext >&5
17800 cat >conftest.$ac_ext <<_ACEOF
17801 /* confdefs.h. */
17802 _ACEOF
17803 cat confdefs.h >>conftest.$ac_ext
17804 cat >>conftest.$ac_ext <<_ACEOF
17805 /* end confdefs.h. */
17806 $ac_includes_default
17808 main ()
17810 static struct stat ac_aggr;
17811 if (sizeof ac_aggr.st_rdev)
17812 return 0;
17814 return 0;
17816 _ACEOF
17817 rm -f conftest.$ac_objext
17818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17819 (eval $ac_compile) 2>conftest.er1
17820 ac_status=$?
17821 grep -v '^ *+' conftest.er1 >conftest.err
17822 rm -f conftest.er1
17823 cat conftest.err >&5
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); } &&
17826 { ac_try='test -z "$ac_c_werror_flag"
17827 || test ! -s conftest.err'
17828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17829 (eval $ac_try) 2>&5
17830 ac_status=$?
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); }; } &&
17833 { ac_try='test -s conftest.$ac_objext'
17834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17835 (eval $ac_try) 2>&5
17836 ac_status=$?
17837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); }; }; then
17839 ac_cv_member_struct_stat_st_rdev=yes
17840 else
17841 echo "$as_me: failed program was:" >&5
17842 sed 's/^/| /' conftest.$ac_ext >&5
17844 ac_cv_member_struct_stat_st_rdev=no
17846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17850 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
17851 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
17852 if test $ac_cv_member_struct_stat_st_rdev = yes; then
17854 cat >>confdefs.h <<_ACEOF
17855 #define HAVE_STRUCT_STAT_ST_RDEV 1
17856 _ACEOF
17861 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17862 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
17863 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17864 echo $ECHO_N "(cached) $ECHO_C" >&6
17865 else
17866 cat >conftest.$ac_ext <<_ACEOF
17867 /* confdefs.h. */
17868 _ACEOF
17869 cat confdefs.h >>conftest.$ac_ext
17870 cat >>conftest.$ac_ext <<_ACEOF
17871 /* end confdefs.h. */
17872 $ac_includes_default
17874 main ()
17876 static struct stat ac_aggr;
17877 if (ac_aggr.st_blksize)
17878 return 0;
17880 return 0;
17882 _ACEOF
17883 rm -f conftest.$ac_objext
17884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17885 (eval $ac_compile) 2>conftest.er1
17886 ac_status=$?
17887 grep -v '^ *+' conftest.er1 >conftest.err
17888 rm -f conftest.er1
17889 cat conftest.err >&5
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); } &&
17892 { ac_try='test -z "$ac_c_werror_flag"
17893 || test ! -s conftest.err'
17894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17895 (eval $ac_try) 2>&5
17896 ac_status=$?
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); }; } &&
17899 { ac_try='test -s conftest.$ac_objext'
17900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17901 (eval $ac_try) 2>&5
17902 ac_status=$?
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); }; }; then
17905 ac_cv_member_struct_stat_st_blksize=yes
17906 else
17907 echo "$as_me: failed program was:" >&5
17908 sed 's/^/| /' conftest.$ac_ext >&5
17910 cat >conftest.$ac_ext <<_ACEOF
17911 /* confdefs.h. */
17912 _ACEOF
17913 cat confdefs.h >>conftest.$ac_ext
17914 cat >>conftest.$ac_ext <<_ACEOF
17915 /* end confdefs.h. */
17916 $ac_includes_default
17918 main ()
17920 static struct stat ac_aggr;
17921 if (sizeof ac_aggr.st_blksize)
17922 return 0;
17924 return 0;
17926 _ACEOF
17927 rm -f conftest.$ac_objext
17928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17929 (eval $ac_compile) 2>conftest.er1
17930 ac_status=$?
17931 grep -v '^ *+' conftest.er1 >conftest.err
17932 rm -f conftest.er1
17933 cat conftest.err >&5
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); } &&
17936 { ac_try='test -z "$ac_c_werror_flag"
17937 || test ! -s conftest.err'
17938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17939 (eval $ac_try) 2>&5
17940 ac_status=$?
17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); }; } &&
17943 { ac_try='test -s conftest.$ac_objext'
17944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17945 (eval $ac_try) 2>&5
17946 ac_status=$?
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); }; }; then
17949 ac_cv_member_struct_stat_st_blksize=yes
17950 else
17951 echo "$as_me: failed program was:" >&5
17952 sed 's/^/| /' conftest.$ac_ext >&5
17954 ac_cv_member_struct_stat_st_blksize=no
17956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17960 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17961 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
17962 if test $ac_cv_member_struct_stat_st_blksize = yes; then
17964 cat >>confdefs.h <<_ACEOF
17965 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17966 _ACEOF
17971 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
17972 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
17973 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
17974 echo $ECHO_N "(cached) $ECHO_C" >&6
17975 else
17976 cat >conftest.$ac_ext <<_ACEOF
17977 /* confdefs.h. */
17978 _ACEOF
17979 cat confdefs.h >>conftest.$ac_ext
17980 cat >>conftest.$ac_ext <<_ACEOF
17981 /* end confdefs.h. */
17982 $ac_includes_default
17984 main ()
17986 static struct stat ac_aggr;
17987 if (ac_aggr.st_flags)
17988 return 0;
17990 return 0;
17992 _ACEOF
17993 rm -f conftest.$ac_objext
17994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17995 (eval $ac_compile) 2>conftest.er1
17996 ac_status=$?
17997 grep -v '^ *+' conftest.er1 >conftest.err
17998 rm -f conftest.er1
17999 cat conftest.err >&5
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); } &&
18002 { ac_try='test -z "$ac_c_werror_flag"
18003 || test ! -s conftest.err'
18004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18005 (eval $ac_try) 2>&5
18006 ac_status=$?
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); }; } &&
18009 { ac_try='test -s conftest.$ac_objext'
18010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18011 (eval $ac_try) 2>&5
18012 ac_status=$?
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); }; }; then
18015 ac_cv_member_struct_stat_st_flags=yes
18016 else
18017 echo "$as_me: failed program was:" >&5
18018 sed 's/^/| /' conftest.$ac_ext >&5
18020 cat >conftest.$ac_ext <<_ACEOF
18021 /* confdefs.h. */
18022 _ACEOF
18023 cat confdefs.h >>conftest.$ac_ext
18024 cat >>conftest.$ac_ext <<_ACEOF
18025 /* end confdefs.h. */
18026 $ac_includes_default
18028 main ()
18030 static struct stat ac_aggr;
18031 if (sizeof ac_aggr.st_flags)
18032 return 0;
18034 return 0;
18036 _ACEOF
18037 rm -f conftest.$ac_objext
18038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18039 (eval $ac_compile) 2>conftest.er1
18040 ac_status=$?
18041 grep -v '^ *+' conftest.er1 >conftest.err
18042 rm -f conftest.er1
18043 cat conftest.err >&5
18044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045 (exit $ac_status); } &&
18046 { ac_try='test -z "$ac_c_werror_flag"
18047 || test ! -s conftest.err'
18048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18049 (eval $ac_try) 2>&5
18050 ac_status=$?
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); }; } &&
18053 { ac_try='test -s conftest.$ac_objext'
18054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18055 (eval $ac_try) 2>&5
18056 ac_status=$?
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); }; }; then
18059 ac_cv_member_struct_stat_st_flags=yes
18060 else
18061 echo "$as_me: failed program was:" >&5
18062 sed 's/^/| /' conftest.$ac_ext >&5
18064 ac_cv_member_struct_stat_st_flags=no
18066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18070 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
18071 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
18072 if test $ac_cv_member_struct_stat_st_flags = yes; then
18074 cat >>confdefs.h <<_ACEOF
18075 #define HAVE_STRUCT_STAT_ST_FLAGS 1
18076 _ACEOF
18081 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
18082 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
18083 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
18084 echo $ECHO_N "(cached) $ECHO_C" >&6
18085 else
18086 cat >conftest.$ac_ext <<_ACEOF
18087 /* confdefs.h. */
18088 _ACEOF
18089 cat confdefs.h >>conftest.$ac_ext
18090 cat >>conftest.$ac_ext <<_ACEOF
18091 /* end confdefs.h. */
18092 $ac_includes_default
18094 main ()
18096 static struct stat ac_aggr;
18097 if (ac_aggr.st_gen)
18098 return 0;
18100 return 0;
18102 _ACEOF
18103 rm -f conftest.$ac_objext
18104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18105 (eval $ac_compile) 2>conftest.er1
18106 ac_status=$?
18107 grep -v '^ *+' conftest.er1 >conftest.err
18108 rm -f conftest.er1
18109 cat conftest.err >&5
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); } &&
18112 { ac_try='test -z "$ac_c_werror_flag"
18113 || test ! -s conftest.err'
18114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18115 (eval $ac_try) 2>&5
18116 ac_status=$?
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); }; } &&
18119 { ac_try='test -s conftest.$ac_objext'
18120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18121 (eval $ac_try) 2>&5
18122 ac_status=$?
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); }; }; then
18125 ac_cv_member_struct_stat_st_gen=yes
18126 else
18127 echo "$as_me: failed program was:" >&5
18128 sed 's/^/| /' conftest.$ac_ext >&5
18130 cat >conftest.$ac_ext <<_ACEOF
18131 /* confdefs.h. */
18132 _ACEOF
18133 cat confdefs.h >>conftest.$ac_ext
18134 cat >>conftest.$ac_ext <<_ACEOF
18135 /* end confdefs.h. */
18136 $ac_includes_default
18138 main ()
18140 static struct stat ac_aggr;
18141 if (sizeof ac_aggr.st_gen)
18142 return 0;
18144 return 0;
18146 _ACEOF
18147 rm -f conftest.$ac_objext
18148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18149 (eval $ac_compile) 2>conftest.er1
18150 ac_status=$?
18151 grep -v '^ *+' conftest.er1 >conftest.err
18152 rm -f conftest.er1
18153 cat conftest.err >&5
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); } &&
18156 { ac_try='test -z "$ac_c_werror_flag"
18157 || test ! -s conftest.err'
18158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18159 (eval $ac_try) 2>&5
18160 ac_status=$?
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); }; } &&
18163 { ac_try='test -s conftest.$ac_objext'
18164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18165 (eval $ac_try) 2>&5
18166 ac_status=$?
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); }; }; then
18169 ac_cv_member_struct_stat_st_gen=yes
18170 else
18171 echo "$as_me: failed program was:" >&5
18172 sed 's/^/| /' conftest.$ac_ext >&5
18174 ac_cv_member_struct_stat_st_gen=no
18176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18180 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
18181 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
18182 if test $ac_cv_member_struct_stat_st_gen = yes; then
18184 cat >>confdefs.h <<_ACEOF
18185 #define HAVE_STRUCT_STAT_ST_GEN 1
18186 _ACEOF
18191 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
18192 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
18193 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
18194 echo $ECHO_N "(cached) $ECHO_C" >&6
18195 else
18196 cat >conftest.$ac_ext <<_ACEOF
18197 /* confdefs.h. */
18198 _ACEOF
18199 cat confdefs.h >>conftest.$ac_ext
18200 cat >>conftest.$ac_ext <<_ACEOF
18201 /* end confdefs.h. */
18202 $ac_includes_default
18204 main ()
18206 static struct stat ac_aggr;
18207 if (ac_aggr.st_birthtime)
18208 return 0;
18210 return 0;
18212 _ACEOF
18213 rm -f conftest.$ac_objext
18214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18215 (eval $ac_compile) 2>conftest.er1
18216 ac_status=$?
18217 grep -v '^ *+' conftest.er1 >conftest.err
18218 rm -f conftest.er1
18219 cat conftest.err >&5
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); } &&
18222 { ac_try='test -z "$ac_c_werror_flag"
18223 || test ! -s conftest.err'
18224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18225 (eval $ac_try) 2>&5
18226 ac_status=$?
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); }; } &&
18229 { ac_try='test -s conftest.$ac_objext'
18230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18231 (eval $ac_try) 2>&5
18232 ac_status=$?
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); }; }; then
18235 ac_cv_member_struct_stat_st_birthtime=yes
18236 else
18237 echo "$as_me: failed program was:" >&5
18238 sed 's/^/| /' conftest.$ac_ext >&5
18240 cat >conftest.$ac_ext <<_ACEOF
18241 /* confdefs.h. */
18242 _ACEOF
18243 cat confdefs.h >>conftest.$ac_ext
18244 cat >>conftest.$ac_ext <<_ACEOF
18245 /* end confdefs.h. */
18246 $ac_includes_default
18248 main ()
18250 static struct stat ac_aggr;
18251 if (sizeof ac_aggr.st_birthtime)
18252 return 0;
18254 return 0;
18256 _ACEOF
18257 rm -f conftest.$ac_objext
18258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18259 (eval $ac_compile) 2>conftest.er1
18260 ac_status=$?
18261 grep -v '^ *+' conftest.er1 >conftest.err
18262 rm -f conftest.er1
18263 cat conftest.err >&5
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); } &&
18266 { ac_try='test -z "$ac_c_werror_flag"
18267 || test ! -s conftest.err'
18268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18269 (eval $ac_try) 2>&5
18270 ac_status=$?
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); }; } &&
18273 { ac_try='test -s conftest.$ac_objext'
18274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18275 (eval $ac_try) 2>&5
18276 ac_status=$?
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); }; }; then
18279 ac_cv_member_struct_stat_st_birthtime=yes
18280 else
18281 echo "$as_me: failed program was:" >&5
18282 sed 's/^/| /' conftest.$ac_ext >&5
18284 ac_cv_member_struct_stat_st_birthtime=no
18286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18290 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
18291 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
18292 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
18294 cat >>confdefs.h <<_ACEOF
18295 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
18296 _ACEOF
18301 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
18302 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
18303 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
18304 echo $ECHO_N "(cached) $ECHO_C" >&6
18305 else
18306 cat >conftest.$ac_ext <<_ACEOF
18307 /* confdefs.h. */
18308 _ACEOF
18309 cat confdefs.h >>conftest.$ac_ext
18310 cat >>conftest.$ac_ext <<_ACEOF
18311 /* end confdefs.h. */
18312 $ac_includes_default
18314 main ()
18316 static struct stat ac_aggr;
18317 if (ac_aggr.st_blocks)
18318 return 0;
18320 return 0;
18322 _ACEOF
18323 rm -f conftest.$ac_objext
18324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18325 (eval $ac_compile) 2>conftest.er1
18326 ac_status=$?
18327 grep -v '^ *+' conftest.er1 >conftest.err
18328 rm -f conftest.er1
18329 cat conftest.err >&5
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); } &&
18332 { ac_try='test -z "$ac_c_werror_flag"
18333 || test ! -s conftest.err'
18334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18335 (eval $ac_try) 2>&5
18336 ac_status=$?
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); }; } &&
18339 { ac_try='test -s conftest.$ac_objext'
18340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18341 (eval $ac_try) 2>&5
18342 ac_status=$?
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; }; then
18345 ac_cv_member_struct_stat_st_blocks=yes
18346 else
18347 echo "$as_me: failed program was:" >&5
18348 sed 's/^/| /' conftest.$ac_ext >&5
18350 cat >conftest.$ac_ext <<_ACEOF
18351 /* confdefs.h. */
18352 _ACEOF
18353 cat confdefs.h >>conftest.$ac_ext
18354 cat >>conftest.$ac_ext <<_ACEOF
18355 /* end confdefs.h. */
18356 $ac_includes_default
18358 main ()
18360 static struct stat ac_aggr;
18361 if (sizeof ac_aggr.st_blocks)
18362 return 0;
18364 return 0;
18366 _ACEOF
18367 rm -f conftest.$ac_objext
18368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18369 (eval $ac_compile) 2>conftest.er1
18370 ac_status=$?
18371 grep -v '^ *+' conftest.er1 >conftest.err
18372 rm -f conftest.er1
18373 cat conftest.err >&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); } &&
18376 { ac_try='test -z "$ac_c_werror_flag"
18377 || test ! -s conftest.err'
18378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18379 (eval $ac_try) 2>&5
18380 ac_status=$?
18381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382 (exit $ac_status); }; } &&
18383 { ac_try='test -s conftest.$ac_objext'
18384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18385 (eval $ac_try) 2>&5
18386 ac_status=$?
18387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388 (exit $ac_status); }; }; then
18389 ac_cv_member_struct_stat_st_blocks=yes
18390 else
18391 echo "$as_me: failed program was:" >&5
18392 sed 's/^/| /' conftest.$ac_ext >&5
18394 ac_cv_member_struct_stat_st_blocks=no
18396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18400 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
18401 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
18402 if test $ac_cv_member_struct_stat_st_blocks = yes; then
18404 cat >>confdefs.h <<_ACEOF
18405 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
18406 _ACEOF
18409 cat >>confdefs.h <<\_ACEOF
18410 #define HAVE_ST_BLOCKS 1
18411 _ACEOF
18413 else
18414 case $LIBOBJS in
18415 "fileblocks.$ac_objext" | \
18416 *" fileblocks.$ac_objext" | \
18417 "fileblocks.$ac_objext "* | \
18418 *" fileblocks.$ac_objext "* ) ;;
18419 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
18420 esac
18426 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
18427 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
18428 if test "${ac_cv_header_time_altzone+set}" = set; then
18429 echo $ECHO_N "(cached) $ECHO_C" >&6
18430 else
18431 cat >conftest.$ac_ext <<_ACEOF
18432 /* confdefs.h. */
18433 _ACEOF
18434 cat confdefs.h >>conftest.$ac_ext
18435 cat >>conftest.$ac_ext <<_ACEOF
18436 /* end confdefs.h. */
18437 #include <time.h>
18439 main ()
18441 return altzone;
18443 return 0;
18445 _ACEOF
18446 rm -f conftest.$ac_objext
18447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18448 (eval $ac_compile) 2>conftest.er1
18449 ac_status=$?
18450 grep -v '^ *+' conftest.er1 >conftest.err
18451 rm -f conftest.er1
18452 cat conftest.err >&5
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); } &&
18455 { ac_try='test -z "$ac_c_werror_flag"
18456 || test ! -s conftest.err'
18457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18458 (eval $ac_try) 2>&5
18459 ac_status=$?
18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461 (exit $ac_status); }; } &&
18462 { ac_try='test -s conftest.$ac_objext'
18463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18464 (eval $ac_try) 2>&5
18465 ac_status=$?
18466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467 (exit $ac_status); }; }; then
18468 ac_cv_header_time_altzone=yes
18469 else
18470 echo "$as_me: failed program was:" >&5
18471 sed 's/^/| /' conftest.$ac_ext >&5
18473 ac_cv_header_time_altzone=no
18475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18478 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
18479 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
18480 if test $ac_cv_header_time_altzone = yes; then
18482 cat >>confdefs.h <<\_ACEOF
18483 #define HAVE_ALTZONE 1
18484 _ACEOF
18488 was_it_defined=no
18489 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
18490 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
18491 cat >conftest.$ac_ext <<_ACEOF
18492 /* confdefs.h. */
18493 _ACEOF
18494 cat confdefs.h >>conftest.$ac_ext
18495 cat >>conftest.$ac_ext <<_ACEOF
18496 /* end confdefs.h. */
18498 #include <sys/types.h>
18499 #include <sys/select.h>
18500 #include <sys/time.h>
18503 main ()
18507 return 0;
18509 _ACEOF
18510 rm -f conftest.$ac_objext
18511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18512 (eval $ac_compile) 2>conftest.er1
18513 ac_status=$?
18514 grep -v '^ *+' conftest.er1 >conftest.err
18515 rm -f conftest.er1
18516 cat conftest.err >&5
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); } &&
18519 { ac_try='test -z "$ac_c_werror_flag"
18520 || test ! -s conftest.err'
18521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18522 (eval $ac_try) 2>&5
18523 ac_status=$?
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); }; } &&
18526 { ac_try='test -s conftest.$ac_objext'
18527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18528 (eval $ac_try) 2>&5
18529 ac_status=$?
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); }; }; then
18534 cat >>confdefs.h <<\_ACEOF
18535 #define SYS_SELECT_WITH_SYS_TIME 1
18536 _ACEOF
18538 was_it_defined=yes
18540 else
18541 echo "$as_me: failed program was:" >&5
18542 sed 's/^/| /' conftest.$ac_ext >&5
18545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18546 echo "$as_me:$LINENO: result: $was_it_defined" >&5
18547 echo "${ECHO_T}$was_it_defined" >&6
18549 echo "$as_me:$LINENO: checking for addrinfo" >&5
18550 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
18551 if test "${ac_cv_struct_addrinfo+set}" = set; then
18552 echo $ECHO_N "(cached) $ECHO_C" >&6
18553 else
18554 cat >conftest.$ac_ext <<_ACEOF
18555 /* confdefs.h. */
18556 _ACEOF
18557 cat confdefs.h >>conftest.$ac_ext
18558 cat >>conftest.$ac_ext <<_ACEOF
18559 /* end confdefs.h. */
18561 # include <netdb.h>
18563 main ()
18565 struct addrinfo a
18567 return 0;
18569 _ACEOF
18570 rm -f conftest.$ac_objext
18571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18572 (eval $ac_compile) 2>conftest.er1
18573 ac_status=$?
18574 grep -v '^ *+' conftest.er1 >conftest.err
18575 rm -f conftest.er1
18576 cat conftest.err >&5
18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); } &&
18579 { ac_try='test -z "$ac_c_werror_flag"
18580 || test ! -s conftest.err'
18581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18582 (eval $ac_try) 2>&5
18583 ac_status=$?
18584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585 (exit $ac_status); }; } &&
18586 { ac_try='test -s conftest.$ac_objext'
18587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18588 (eval $ac_try) 2>&5
18589 ac_status=$?
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); }; }; then
18592 ac_cv_struct_addrinfo=yes
18593 else
18594 echo "$as_me: failed program was:" >&5
18595 sed 's/^/| /' conftest.$ac_ext >&5
18597 ac_cv_struct_addrinfo=no
18599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18602 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
18603 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
18604 if test $ac_cv_struct_addrinfo = yes; then
18606 cat >>confdefs.h <<\_ACEOF
18607 #define HAVE_ADDRINFO 1
18608 _ACEOF
18612 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
18613 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
18614 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
18615 echo $ECHO_N "(cached) $ECHO_C" >&6
18616 else
18617 cat >conftest.$ac_ext <<_ACEOF
18618 /* confdefs.h. */
18619 _ACEOF
18620 cat confdefs.h >>conftest.$ac_ext
18621 cat >>conftest.$ac_ext <<_ACEOF
18622 /* end confdefs.h. */
18624 # include <sys/types.h>
18625 # include <sys/socket.h>
18627 main ()
18629 struct sockaddr_storage s
18631 return 0;
18633 _ACEOF
18634 rm -f conftest.$ac_objext
18635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18636 (eval $ac_compile) 2>conftest.er1
18637 ac_status=$?
18638 grep -v '^ *+' conftest.er1 >conftest.err
18639 rm -f conftest.er1
18640 cat conftest.err >&5
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); } &&
18643 { ac_try='test -z "$ac_c_werror_flag"
18644 || test ! -s conftest.err'
18645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18646 (eval $ac_try) 2>&5
18647 ac_status=$?
18648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); }; } &&
18650 { ac_try='test -s conftest.$ac_objext'
18651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18652 (eval $ac_try) 2>&5
18653 ac_status=$?
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); }; }; then
18656 ac_cv_struct_sockaddr_storage=yes
18657 else
18658 echo "$as_me: failed program was:" >&5
18659 sed 's/^/| /' conftest.$ac_ext >&5
18661 ac_cv_struct_sockaddr_storage=no
18663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18666 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
18667 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
18668 if test $ac_cv_struct_sockaddr_storage = yes; then
18670 cat >>confdefs.h <<\_ACEOF
18671 #define HAVE_SOCKADDR_STORAGE 1
18672 _ACEOF
18676 # checks for compiler characteristics
18679 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
18680 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
18681 if test "${ac_cv_c_char_unsigned+set}" = set; then
18682 echo $ECHO_N "(cached) $ECHO_C" >&6
18683 else
18684 cat >conftest.$ac_ext <<_ACEOF
18685 /* confdefs.h. */
18686 _ACEOF
18687 cat confdefs.h >>conftest.$ac_ext
18688 cat >>conftest.$ac_ext <<_ACEOF
18689 /* end confdefs.h. */
18690 $ac_includes_default
18692 main ()
18694 static int test_array [1 - 2 * !(((char) -1) < 0)];
18695 test_array [0] = 0
18698 return 0;
18700 _ACEOF
18701 rm -f conftest.$ac_objext
18702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18703 (eval $ac_compile) 2>conftest.er1
18704 ac_status=$?
18705 grep -v '^ *+' conftest.er1 >conftest.err
18706 rm -f conftest.er1
18707 cat conftest.err >&5
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); } &&
18710 { ac_try='test -z "$ac_c_werror_flag"
18711 || test ! -s conftest.err'
18712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18713 (eval $ac_try) 2>&5
18714 ac_status=$?
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); }; } &&
18717 { ac_try='test -s conftest.$ac_objext'
18718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18719 (eval $ac_try) 2>&5
18720 ac_status=$?
18721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722 (exit $ac_status); }; }; then
18723 ac_cv_c_char_unsigned=no
18724 else
18725 echo "$as_me: failed program was:" >&5
18726 sed 's/^/| /' conftest.$ac_ext >&5
18728 ac_cv_c_char_unsigned=yes
18730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18732 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
18733 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
18734 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18735 cat >>confdefs.h <<\_ACEOF
18736 #define __CHAR_UNSIGNED__ 1
18737 _ACEOF
18741 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18742 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18743 if test "${ac_cv_c_const+set}" = set; then
18744 echo $ECHO_N "(cached) $ECHO_C" >&6
18745 else
18746 cat >conftest.$ac_ext <<_ACEOF
18747 /* confdefs.h. */
18748 _ACEOF
18749 cat confdefs.h >>conftest.$ac_ext
18750 cat >>conftest.$ac_ext <<_ACEOF
18751 /* end confdefs.h. */
18754 main ()
18756 /* FIXME: Include the comments suggested by Paul. */
18757 #ifndef __cplusplus
18758 /* Ultrix mips cc rejects this. */
18759 typedef int charset[2];
18760 const charset x;
18761 /* SunOS 4.1.1 cc rejects this. */
18762 char const *const *ccp;
18763 char **p;
18764 /* NEC SVR4.0.2 mips cc rejects this. */
18765 struct point {int x, y;};
18766 static struct point const zero = {0,0};
18767 /* AIX XL C 1.02.0.0 rejects this.
18768 It does not let you subtract one const X* pointer from another in
18769 an arm of an if-expression whose if-part is not a constant
18770 expression */
18771 const char *g = "string";
18772 ccp = &g + (g ? g-g : 0);
18773 /* HPUX 7.0 cc rejects these. */
18774 ++ccp;
18775 p = (char**) ccp;
18776 ccp = (char const *const *) p;
18777 { /* SCO 3.2v4 cc rejects this. */
18778 char *t;
18779 char const *s = 0 ? (char *) 0 : (char const *) 0;
18781 *t++ = 0;
18783 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18784 int x[] = {25, 17};
18785 const int *foo = &x[0];
18786 ++foo;
18788 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18789 typedef const int *iptr;
18790 iptr p = 0;
18791 ++p;
18793 { /* AIX XL C 1.02.0.0 rejects this saying
18794 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18795 struct s { int j; const int *ap[3]; };
18796 struct s *b; b->j = 5;
18798 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18799 const int foo = 10;
18801 #endif
18804 return 0;
18806 _ACEOF
18807 rm -f conftest.$ac_objext
18808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18809 (eval $ac_compile) 2>conftest.er1
18810 ac_status=$?
18811 grep -v '^ *+' conftest.er1 >conftest.err
18812 rm -f conftest.er1
18813 cat conftest.err >&5
18814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); } &&
18816 { ac_try='test -z "$ac_c_werror_flag"
18817 || test ! -s conftest.err'
18818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18819 (eval $ac_try) 2>&5
18820 ac_status=$?
18821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18822 (exit $ac_status); }; } &&
18823 { ac_try='test -s conftest.$ac_objext'
18824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18825 (eval $ac_try) 2>&5
18826 ac_status=$?
18827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828 (exit $ac_status); }; }; then
18829 ac_cv_c_const=yes
18830 else
18831 echo "$as_me: failed program was:" >&5
18832 sed 's/^/| /' conftest.$ac_ext >&5
18834 ac_cv_c_const=no
18836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18838 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18839 echo "${ECHO_T}$ac_cv_c_const" >&6
18840 if test $ac_cv_c_const = no; then
18842 cat >>confdefs.h <<\_ACEOF
18843 #define const
18844 _ACEOF
18849 works=no
18850 echo "$as_me:$LINENO: checking for working volatile" >&5
18851 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
18852 cat >conftest.$ac_ext <<_ACEOF
18853 /* confdefs.h. */
18854 _ACEOF
18855 cat confdefs.h >>conftest.$ac_ext
18856 cat >>conftest.$ac_ext <<_ACEOF
18857 /* end confdefs.h. */
18860 main ()
18862 volatile int x; x = 0;
18864 return 0;
18866 _ACEOF
18867 rm -f conftest.$ac_objext
18868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18869 (eval $ac_compile) 2>conftest.er1
18870 ac_status=$?
18871 grep -v '^ *+' conftest.er1 >conftest.err
18872 rm -f conftest.er1
18873 cat conftest.err >&5
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); } &&
18876 { ac_try='test -z "$ac_c_werror_flag"
18877 || test ! -s conftest.err'
18878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18879 (eval $ac_try) 2>&5
18880 ac_status=$?
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); }; } &&
18883 { ac_try='test -s conftest.$ac_objext'
18884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18885 (eval $ac_try) 2>&5
18886 ac_status=$?
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); }; }; then
18889 works=yes
18890 else
18891 echo "$as_me: failed program was:" >&5
18892 sed 's/^/| /' conftest.$ac_ext >&5
18895 cat >>confdefs.h <<\_ACEOF
18896 #define volatile
18897 _ACEOF
18901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18902 echo "$as_me:$LINENO: result: $works" >&5
18903 echo "${ECHO_T}$works" >&6
18905 works=no
18906 echo "$as_me:$LINENO: checking for working signed char" >&5
18907 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
18908 cat >conftest.$ac_ext <<_ACEOF
18909 /* confdefs.h. */
18910 _ACEOF
18911 cat confdefs.h >>conftest.$ac_ext
18912 cat >>conftest.$ac_ext <<_ACEOF
18913 /* end confdefs.h. */
18916 main ()
18918 signed char c;
18920 return 0;
18922 _ACEOF
18923 rm -f conftest.$ac_objext
18924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18925 (eval $ac_compile) 2>conftest.er1
18926 ac_status=$?
18927 grep -v '^ *+' conftest.er1 >conftest.err
18928 rm -f conftest.er1
18929 cat conftest.err >&5
18930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931 (exit $ac_status); } &&
18932 { ac_try='test -z "$ac_c_werror_flag"
18933 || test ! -s conftest.err'
18934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18935 (eval $ac_try) 2>&5
18936 ac_status=$?
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); }; } &&
18939 { ac_try='test -s conftest.$ac_objext'
18940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18941 (eval $ac_try) 2>&5
18942 ac_status=$?
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); }; }; then
18945 works=yes
18946 else
18947 echo "$as_me: failed program was:" >&5
18948 sed 's/^/| /' conftest.$ac_ext >&5
18951 cat >>confdefs.h <<\_ACEOF
18952 #define signed
18953 _ACEOF
18957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18958 echo "$as_me:$LINENO: result: $works" >&5
18959 echo "${ECHO_T}$works" >&6
18961 have_prototypes=no
18962 echo "$as_me:$LINENO: checking for prototypes" >&5
18963 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
18964 cat >conftest.$ac_ext <<_ACEOF
18965 /* confdefs.h. */
18966 _ACEOF
18967 cat confdefs.h >>conftest.$ac_ext
18968 cat >>conftest.$ac_ext <<_ACEOF
18969 /* end confdefs.h. */
18970 int foo(int x) { return 0; }
18972 main ()
18974 return foo(10);
18976 return 0;
18978 _ACEOF
18979 rm -f conftest.$ac_objext
18980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18981 (eval $ac_compile) 2>conftest.er1
18982 ac_status=$?
18983 grep -v '^ *+' conftest.er1 >conftest.err
18984 rm -f conftest.er1
18985 cat conftest.err >&5
18986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987 (exit $ac_status); } &&
18988 { ac_try='test -z "$ac_c_werror_flag"
18989 || test ! -s conftest.err'
18990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18991 (eval $ac_try) 2>&5
18992 ac_status=$?
18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); }; } &&
18995 { ac_try='test -s conftest.$ac_objext'
18996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18997 (eval $ac_try) 2>&5
18998 ac_status=$?
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); }; }; then
19003 cat >>confdefs.h <<\_ACEOF
19004 #define HAVE_PROTOTYPES 1
19005 _ACEOF
19007 have_prototypes=yes
19009 else
19010 echo "$as_me: failed program was:" >&5
19011 sed 's/^/| /' conftest.$ac_ext >&5
19014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19015 echo "$as_me:$LINENO: result: $have_prototypes" >&5
19016 echo "${ECHO_T}$have_prototypes" >&6
19018 works=no
19019 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
19020 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
19021 cat >conftest.$ac_ext <<_ACEOF
19022 /* confdefs.h. */
19023 _ACEOF
19024 cat confdefs.h >>conftest.$ac_ext
19025 cat >>conftest.$ac_ext <<_ACEOF
19026 /* end confdefs.h. */
19028 #include <stdarg.h>
19029 int foo(int x, ...) {
19030 va_list va;
19031 va_start(va, x);
19032 va_arg(va, int);
19033 va_arg(va, char *);
19034 va_arg(va, double);
19035 return 0;
19039 main ()
19041 return foo(10, "", 3.14);
19043 return 0;
19045 _ACEOF
19046 rm -f conftest.$ac_objext
19047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19048 (eval $ac_compile) 2>conftest.er1
19049 ac_status=$?
19050 grep -v '^ *+' conftest.er1 >conftest.err
19051 rm -f conftest.er1
19052 cat conftest.err >&5
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); } &&
19055 { ac_try='test -z "$ac_c_werror_flag"
19056 || test ! -s conftest.err'
19057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19058 (eval $ac_try) 2>&5
19059 ac_status=$?
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); }; } &&
19062 { ac_try='test -s conftest.$ac_objext'
19063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19064 (eval $ac_try) 2>&5
19065 ac_status=$?
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); }; }; then
19070 cat >>confdefs.h <<\_ACEOF
19071 #define HAVE_STDARG_PROTOTYPES 1
19072 _ACEOF
19074 works=yes
19076 else
19077 echo "$as_me: failed program was:" >&5
19078 sed 's/^/| /' conftest.$ac_ext >&5
19081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19082 echo "$as_me:$LINENO: result: $works" >&5
19083 echo "${ECHO_T}$works" >&6
19085 # check for socketpair
19086 echo "$as_me:$LINENO: checking for socketpair" >&5
19087 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6
19088 cat >conftest.$ac_ext <<_ACEOF
19089 /* confdefs.h. */
19090 _ACEOF
19091 cat confdefs.h >>conftest.$ac_ext
19092 cat >>conftest.$ac_ext <<_ACEOF
19093 /* end confdefs.h. */
19095 #include <sys/types.h>
19096 #include <sys/socket.h>
19099 main ()
19101 void *x=socketpair
19103 return 0;
19105 _ACEOF
19106 rm -f conftest.$ac_objext
19107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19108 (eval $ac_compile) 2>conftest.er1
19109 ac_status=$?
19110 grep -v '^ *+' conftest.er1 >conftest.err
19111 rm -f conftest.er1
19112 cat conftest.err >&5
19113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); } &&
19115 { ac_try='test -z "$ac_c_werror_flag"
19116 || test ! -s conftest.err'
19117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19118 (eval $ac_try) 2>&5
19119 ac_status=$?
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); }; } &&
19122 { ac_try='test -s conftest.$ac_objext'
19123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19124 (eval $ac_try) 2>&5
19125 ac_status=$?
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); }; }; then
19129 cat >>confdefs.h <<\_ACEOF
19130 #define HAVE_SOCKETPAIR 1
19131 _ACEOF
19133 echo "$as_me:$LINENO: result: yes" >&5
19134 echo "${ECHO_T}yes" >&6
19135 else
19136 echo "$as_me: failed program was:" >&5
19137 sed 's/^/| /' conftest.$ac_ext >&5
19139 echo "$as_me:$LINENO: result: no" >&5
19140 echo "${ECHO_T}no" >&6
19143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19145 # check if sockaddr has sa_len member
19146 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
19147 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
19148 cat >conftest.$ac_ext <<_ACEOF
19149 /* confdefs.h. */
19150 _ACEOF
19151 cat confdefs.h >>conftest.$ac_ext
19152 cat >>conftest.$ac_ext <<_ACEOF
19153 /* end confdefs.h. */
19154 #include <sys/types.h>
19155 #include <sys/socket.h>
19157 main ()
19159 struct sockaddr x;
19160 x.sa_len = 0;
19162 return 0;
19164 _ACEOF
19165 rm -f conftest.$ac_objext
19166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19167 (eval $ac_compile) 2>conftest.er1
19168 ac_status=$?
19169 grep -v '^ *+' conftest.er1 >conftest.err
19170 rm -f conftest.er1
19171 cat conftest.err >&5
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); } &&
19174 { ac_try='test -z "$ac_c_werror_flag"
19175 || test ! -s conftest.err'
19176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19177 (eval $ac_try) 2>&5
19178 ac_status=$?
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); }; } &&
19181 { ac_try='test -s conftest.$ac_objext'
19182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19183 (eval $ac_try) 2>&5
19184 ac_status=$?
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); }; }; then
19187 echo "$as_me:$LINENO: result: yes" >&5
19188 echo "${ECHO_T}yes" >&6
19190 cat >>confdefs.h <<\_ACEOF
19191 #define HAVE_SOCKADDR_SA_LEN 1
19192 _ACEOF
19194 else
19195 echo "$as_me: failed program was:" >&5
19196 sed 's/^/| /' conftest.$ac_ext >&5
19198 echo "$as_me:$LINENO: result: no" >&5
19199 echo "${ECHO_T}no" >&6
19201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19203 va_list_is_array=no
19204 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
19205 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
19206 cat >conftest.$ac_ext <<_ACEOF
19207 /* confdefs.h. */
19208 _ACEOF
19209 cat confdefs.h >>conftest.$ac_ext
19210 cat >>conftest.$ac_ext <<_ACEOF
19211 /* end confdefs.h. */
19213 #ifdef HAVE_STDARG_PROTOTYPES
19214 #include <stdarg.h>
19215 #else
19216 #include <varargs.h>
19217 #endif
19220 main ()
19222 va_list list1, list2; list1 = list2;
19224 return 0;
19226 _ACEOF
19227 rm -f conftest.$ac_objext
19228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19229 (eval $ac_compile) 2>conftest.er1
19230 ac_status=$?
19231 grep -v '^ *+' conftest.er1 >conftest.err
19232 rm -f conftest.er1
19233 cat conftest.err >&5
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); } &&
19236 { ac_try='test -z "$ac_c_werror_flag"
19237 || test ! -s conftest.err'
19238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19239 (eval $ac_try) 2>&5
19240 ac_status=$?
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); }; } &&
19243 { ac_try='test -s conftest.$ac_objext'
19244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19245 (eval $ac_try) 2>&5
19246 ac_status=$?
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); }; }; then
19250 else
19251 echo "$as_me: failed program was:" >&5
19252 sed 's/^/| /' conftest.$ac_ext >&5
19256 cat >>confdefs.h <<\_ACEOF
19257 #define VA_LIST_IS_ARRAY 1
19258 _ACEOF
19260 va_list_is_array=yes
19263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19264 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
19265 echo "${ECHO_T}$va_list_is_array" >&6
19267 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
19271 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
19272 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
19273 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
19274 echo $ECHO_N "(cached) $ECHO_C" >&6
19275 else
19276 cat >conftest.$ac_ext <<_ACEOF
19277 /* confdefs.h. */
19278 _ACEOF
19279 cat confdefs.h >>conftest.$ac_ext
19280 cat >>conftest.$ac_ext <<_ACEOF
19281 /* end confdefs.h. */
19282 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
19283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19284 #define gethostbyname_r innocuous_gethostbyname_r
19286 /* System header to define __stub macros and hopefully few prototypes,
19287 which can conflict with char gethostbyname_r (); below.
19288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19289 <limits.h> exists even on freestanding compilers. */
19291 #ifdef __STDC__
19292 # include <limits.h>
19293 #else
19294 # include <assert.h>
19295 #endif
19297 #undef gethostbyname_r
19299 /* Override any gcc2 internal prototype to avoid an error. */
19300 #ifdef __cplusplus
19301 extern "C"
19303 #endif
19304 /* We use char because int might match the return type of a gcc2
19305 builtin and then its argument prototype would still apply. */
19306 char gethostbyname_r ();
19307 /* The GNU C library defines this for functions which it implements
19308 to always fail with ENOSYS. Some functions are actually named
19309 something starting with __ and the normal name is an alias. */
19310 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
19311 choke me
19312 #else
19313 char (*f) () = gethostbyname_r;
19314 #endif
19315 #ifdef __cplusplus
19317 #endif
19320 main ()
19322 return f != gethostbyname_r;
19324 return 0;
19326 _ACEOF
19327 rm -f conftest.$ac_objext conftest$ac_exeext
19328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19329 (eval $ac_link) 2>conftest.er1
19330 ac_status=$?
19331 grep -v '^ *+' conftest.er1 >conftest.err
19332 rm -f conftest.er1
19333 cat conftest.err >&5
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); } &&
19336 { ac_try='test -z "$ac_c_werror_flag"
19337 || test ! -s conftest.err'
19338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19339 (eval $ac_try) 2>&5
19340 ac_status=$?
19341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342 (exit $ac_status); }; } &&
19343 { ac_try='test -s conftest$ac_exeext'
19344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19345 (eval $ac_try) 2>&5
19346 ac_status=$?
19347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348 (exit $ac_status); }; }; then
19349 ac_cv_func_gethostbyname_r=yes
19350 else
19351 echo "$as_me: failed program was:" >&5
19352 sed 's/^/| /' conftest.$ac_ext >&5
19354 ac_cv_func_gethostbyname_r=no
19356 rm -f conftest.err conftest.$ac_objext \
19357 conftest$ac_exeext conftest.$ac_ext
19359 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
19360 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
19361 if test $ac_cv_func_gethostbyname_r = yes; then
19363 cat >>confdefs.h <<\_ACEOF
19364 #define HAVE_GETHOSTBYNAME_R 1
19365 _ACEOF
19367 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
19368 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
19369 OLD_CFLAGS=$CFLAGS
19370 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
19371 cat >conftest.$ac_ext <<_ACEOF
19372 /* confdefs.h. */
19373 _ACEOF
19374 cat confdefs.h >>conftest.$ac_ext
19375 cat >>conftest.$ac_ext <<_ACEOF
19376 /* end confdefs.h. */
19378 # include <netdb.h>
19381 main ()
19384 char *name;
19385 struct hostent *he, *res;
19386 char buffer[2048];
19387 int buflen = 2048;
19388 int h_errnop;
19390 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
19393 return 0;
19395 _ACEOF
19396 rm -f conftest.$ac_objext
19397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19398 (eval $ac_compile) 2>conftest.er1
19399 ac_status=$?
19400 grep -v '^ *+' conftest.er1 >conftest.err
19401 rm -f conftest.er1
19402 cat conftest.err >&5
19403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404 (exit $ac_status); } &&
19405 { ac_try='test -z "$ac_c_werror_flag"
19406 || test ! -s conftest.err'
19407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19408 (eval $ac_try) 2>&5
19409 ac_status=$?
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); }; } &&
19412 { ac_try='test -s conftest.$ac_objext'
19413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19414 (eval $ac_try) 2>&5
19415 ac_status=$?
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); }; }; then
19419 cat >>confdefs.h <<\_ACEOF
19420 #define HAVE_GETHOSTBYNAME_R 1
19421 _ACEOF
19424 cat >>confdefs.h <<\_ACEOF
19425 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
19426 _ACEOF
19428 echo "$as_me:$LINENO: result: yes" >&5
19429 echo "${ECHO_T}yes" >&6
19431 else
19432 echo "$as_me: failed program was:" >&5
19433 sed 's/^/| /' conftest.$ac_ext >&5
19436 echo "$as_me:$LINENO: result: no" >&5
19437 echo "${ECHO_T}no" >&6
19438 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
19439 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
19440 cat >conftest.$ac_ext <<_ACEOF
19441 /* confdefs.h. */
19442 _ACEOF
19443 cat confdefs.h >>conftest.$ac_ext
19444 cat >>conftest.$ac_ext <<_ACEOF
19445 /* end confdefs.h. */
19447 # include <netdb.h>
19450 main ()
19453 char *name;
19454 struct hostent *he;
19455 char buffer[2048];
19456 int buflen = 2048;
19457 int h_errnop;
19459 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
19462 return 0;
19464 _ACEOF
19465 rm -f conftest.$ac_objext
19466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19467 (eval $ac_compile) 2>conftest.er1
19468 ac_status=$?
19469 grep -v '^ *+' conftest.er1 >conftest.err
19470 rm -f conftest.er1
19471 cat conftest.err >&5
19472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473 (exit $ac_status); } &&
19474 { ac_try='test -z "$ac_c_werror_flag"
19475 || test ! -s conftest.err'
19476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477 (eval $ac_try) 2>&5
19478 ac_status=$?
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); }; } &&
19481 { ac_try='test -s conftest.$ac_objext'
19482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19483 (eval $ac_try) 2>&5
19484 ac_status=$?
19485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486 (exit $ac_status); }; }; then
19488 cat >>confdefs.h <<\_ACEOF
19489 #define HAVE_GETHOSTBYNAME_R 1
19490 _ACEOF
19493 cat >>confdefs.h <<\_ACEOF
19494 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
19495 _ACEOF
19497 echo "$as_me:$LINENO: result: yes" >&5
19498 echo "${ECHO_T}yes" >&6
19500 else
19501 echo "$as_me: failed program was:" >&5
19502 sed 's/^/| /' conftest.$ac_ext >&5
19505 echo "$as_me:$LINENO: result: no" >&5
19506 echo "${ECHO_T}no" >&6
19507 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
19508 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
19509 cat >conftest.$ac_ext <<_ACEOF
19510 /* confdefs.h. */
19511 _ACEOF
19512 cat confdefs.h >>conftest.$ac_ext
19513 cat >>conftest.$ac_ext <<_ACEOF
19514 /* end confdefs.h. */
19516 # include <netdb.h>
19519 main ()
19522 char *name;
19523 struct hostent *he;
19524 struct hostent_data data;
19526 (void) gethostbyname_r(name, he, &data);
19529 return 0;
19531 _ACEOF
19532 rm -f conftest.$ac_objext
19533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19534 (eval $ac_compile) 2>conftest.er1
19535 ac_status=$?
19536 grep -v '^ *+' conftest.er1 >conftest.err
19537 rm -f conftest.er1
19538 cat conftest.err >&5
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); } &&
19541 { ac_try='test -z "$ac_c_werror_flag"
19542 || test ! -s conftest.err'
19543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19544 (eval $ac_try) 2>&5
19545 ac_status=$?
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); }; } &&
19548 { ac_try='test -s conftest.$ac_objext'
19549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19550 (eval $ac_try) 2>&5
19551 ac_status=$?
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); }; }; then
19555 cat >>confdefs.h <<\_ACEOF
19556 #define HAVE_GETHOSTBYNAME_R 1
19557 _ACEOF
19560 cat >>confdefs.h <<\_ACEOF
19561 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
19562 _ACEOF
19564 echo "$as_me:$LINENO: result: yes" >&5
19565 echo "${ECHO_T}yes" >&6
19567 else
19568 echo "$as_me: failed program was:" >&5
19569 sed 's/^/| /' conftest.$ac_ext >&5
19572 echo "$as_me:$LINENO: result: no" >&5
19573 echo "${ECHO_T}no" >&6
19576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19583 CFLAGS=$OLD_CFLAGS
19585 else
19588 for ac_func in gethostbyname
19590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19591 echo "$as_me:$LINENO: checking for $ac_func" >&5
19592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19593 if eval "test \"\${$as_ac_var+set}\" = set"; then
19594 echo $ECHO_N "(cached) $ECHO_C" >&6
19595 else
19596 cat >conftest.$ac_ext <<_ACEOF
19597 /* confdefs.h. */
19598 _ACEOF
19599 cat confdefs.h >>conftest.$ac_ext
19600 cat >>conftest.$ac_ext <<_ACEOF
19601 /* end confdefs.h. */
19602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19604 #define $ac_func innocuous_$ac_func
19606 /* System header to define __stub macros and hopefully few prototypes,
19607 which can conflict with char $ac_func (); below.
19608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19609 <limits.h> exists even on freestanding compilers. */
19611 #ifdef __STDC__
19612 # include <limits.h>
19613 #else
19614 # include <assert.h>
19615 #endif
19617 #undef $ac_func
19619 /* Override any gcc2 internal prototype to avoid an error. */
19620 #ifdef __cplusplus
19621 extern "C"
19623 #endif
19624 /* We use char because int might match the return type of a gcc2
19625 builtin and then its argument prototype would still apply. */
19626 char $ac_func ();
19627 /* The GNU C library defines this for functions which it implements
19628 to always fail with ENOSYS. Some functions are actually named
19629 something starting with __ and the normal name is an alias. */
19630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19631 choke me
19632 #else
19633 char (*f) () = $ac_func;
19634 #endif
19635 #ifdef __cplusplus
19637 #endif
19640 main ()
19642 return f != $ac_func;
19644 return 0;
19646 _ACEOF
19647 rm -f conftest.$ac_objext conftest$ac_exeext
19648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19649 (eval $ac_link) 2>conftest.er1
19650 ac_status=$?
19651 grep -v '^ *+' conftest.er1 >conftest.err
19652 rm -f conftest.er1
19653 cat conftest.err >&5
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); } &&
19656 { ac_try='test -z "$ac_c_werror_flag"
19657 || test ! -s conftest.err'
19658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19659 (eval $ac_try) 2>&5
19660 ac_status=$?
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); }; } &&
19663 { ac_try='test -s conftest$ac_exeext'
19664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19665 (eval $ac_try) 2>&5
19666 ac_status=$?
19667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); }; }; then
19669 eval "$as_ac_var=yes"
19670 else
19671 echo "$as_me: failed program was:" >&5
19672 sed 's/^/| /' conftest.$ac_ext >&5
19674 eval "$as_ac_var=no"
19676 rm -f conftest.err conftest.$ac_objext \
19677 conftest$ac_exeext conftest.$ac_ext
19679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19680 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19681 if test `eval echo '${'$as_ac_var'}'` = yes; then
19682 cat >>confdefs.h <<_ACEOF
19683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19684 _ACEOF
19687 done
19698 # checks for system services
19699 # (none yet)
19701 # Linux requires this for correct f.p. operations
19702 echo "$as_me:$LINENO: checking for __fpu_control" >&5
19703 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
19704 if test "${ac_cv_func___fpu_control+set}" = set; then
19705 echo $ECHO_N "(cached) $ECHO_C" >&6
19706 else
19707 cat >conftest.$ac_ext <<_ACEOF
19708 /* confdefs.h. */
19709 _ACEOF
19710 cat confdefs.h >>conftest.$ac_ext
19711 cat >>conftest.$ac_ext <<_ACEOF
19712 /* end confdefs.h. */
19713 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
19714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19715 #define __fpu_control innocuous___fpu_control
19717 /* System header to define __stub macros and hopefully few prototypes,
19718 which can conflict with char __fpu_control (); below.
19719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19720 <limits.h> exists even on freestanding compilers. */
19722 #ifdef __STDC__
19723 # include <limits.h>
19724 #else
19725 # include <assert.h>
19726 #endif
19728 #undef __fpu_control
19730 /* Override any gcc2 internal prototype to avoid an error. */
19731 #ifdef __cplusplus
19732 extern "C"
19734 #endif
19735 /* We use char because int might match the return type of a gcc2
19736 builtin and then its argument prototype would still apply. */
19737 char __fpu_control ();
19738 /* The GNU C library defines this for functions which it implements
19739 to always fail with ENOSYS. Some functions are actually named
19740 something starting with __ and the normal name is an alias. */
19741 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
19742 choke me
19743 #else
19744 char (*f) () = __fpu_control;
19745 #endif
19746 #ifdef __cplusplus
19748 #endif
19751 main ()
19753 return f != __fpu_control;
19755 return 0;
19757 _ACEOF
19758 rm -f conftest.$ac_objext conftest$ac_exeext
19759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19760 (eval $ac_link) 2>conftest.er1
19761 ac_status=$?
19762 grep -v '^ *+' conftest.er1 >conftest.err
19763 rm -f conftest.er1
19764 cat conftest.err >&5
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); } &&
19767 { ac_try='test -z "$ac_c_werror_flag"
19768 || test ! -s conftest.err'
19769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19770 (eval $ac_try) 2>&5
19771 ac_status=$?
19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773 (exit $ac_status); }; } &&
19774 { ac_try='test -s conftest$ac_exeext'
19775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19776 (eval $ac_try) 2>&5
19777 ac_status=$?
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); }; }; then
19780 ac_cv_func___fpu_control=yes
19781 else
19782 echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.$ac_ext >&5
19785 ac_cv_func___fpu_control=no
19787 rm -f conftest.err conftest.$ac_objext \
19788 conftest$ac_exeext conftest.$ac_ext
19790 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
19791 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
19792 if test $ac_cv_func___fpu_control = yes; then
19794 else
19796 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
19797 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
19798 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
19799 echo $ECHO_N "(cached) $ECHO_C" >&6
19800 else
19801 ac_check_lib_save_LIBS=$LIBS
19802 LIBS="-lieee $LIBS"
19803 cat >conftest.$ac_ext <<_ACEOF
19804 /* confdefs.h. */
19805 _ACEOF
19806 cat confdefs.h >>conftest.$ac_ext
19807 cat >>conftest.$ac_ext <<_ACEOF
19808 /* end confdefs.h. */
19810 /* Override any gcc2 internal prototype to avoid an error. */
19811 #ifdef __cplusplus
19812 extern "C"
19813 #endif
19814 /* We use char because int might match the return type of a gcc2
19815 builtin and then its argument prototype would still apply. */
19816 char __fpu_control ();
19818 main ()
19820 __fpu_control ();
19822 return 0;
19824 _ACEOF
19825 rm -f conftest.$ac_objext conftest$ac_exeext
19826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19827 (eval $ac_link) 2>conftest.er1
19828 ac_status=$?
19829 grep -v '^ *+' conftest.er1 >conftest.err
19830 rm -f conftest.er1
19831 cat conftest.err >&5
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); } &&
19834 { ac_try='test -z "$ac_c_werror_flag"
19835 || test ! -s conftest.err'
19836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19837 (eval $ac_try) 2>&5
19838 ac_status=$?
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); }; } &&
19841 { ac_try='test -s conftest$ac_exeext'
19842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19843 (eval $ac_try) 2>&5
19844 ac_status=$?
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); }; }; then
19847 ac_cv_lib_ieee___fpu_control=yes
19848 else
19849 echo "$as_me: failed program was:" >&5
19850 sed 's/^/| /' conftest.$ac_ext >&5
19852 ac_cv_lib_ieee___fpu_control=no
19854 rm -f conftest.err conftest.$ac_objext \
19855 conftest$ac_exeext conftest.$ac_ext
19856 LIBS=$ac_check_lib_save_LIBS
19858 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
19859 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
19860 if test $ac_cv_lib_ieee___fpu_control = yes; then
19861 cat >>confdefs.h <<_ACEOF
19862 #define HAVE_LIBIEEE 1
19863 _ACEOF
19865 LIBS="-lieee $LIBS"
19873 # Check for --with-fpectl
19874 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
19875 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
19877 # Check whether --with-fpectl or --without-fpectl was given.
19878 if test "${with_fpectl+set}" = set; then
19879 withval="$with_fpectl"
19881 if test "$withval" != no
19882 then
19884 cat >>confdefs.h <<\_ACEOF
19885 #define WANT_SIGFPE_HANDLER 1
19886 _ACEOF
19888 echo "$as_me:$LINENO: result: yes" >&5
19889 echo "${ECHO_T}yes" >&6
19890 else echo "$as_me:$LINENO: result: no" >&5
19891 echo "${ECHO_T}no" >&6
19893 else
19894 echo "$as_me:$LINENO: result: no" >&5
19895 echo "${ECHO_T}no" >&6
19898 # check for --with-libm=...
19900 case $ac_sys_system in
19901 Darwin) ;;
19902 BeOS) ;;
19903 *) LIBM=-lm
19904 esac
19905 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
19906 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
19908 # Check whether --with-libm or --without-libm was given.
19909 if test "${with_libm+set}" = set; then
19910 withval="$with_libm"
19912 if test "$withval" = no
19913 then LIBM=
19914 echo "$as_me:$LINENO: result: force LIBM empty" >&5
19915 echo "${ECHO_T}force LIBM empty" >&6
19916 elif test "$withval" != yes
19917 then LIBM=$withval
19918 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
19919 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
19920 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
19921 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
19922 { (exit 1); exit 1; }; }
19924 else
19925 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
19926 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
19929 # check for --with-libc=...
19931 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
19932 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
19934 # Check whether --with-libc or --without-libc was given.
19935 if test "${with_libc+set}" = set; then
19936 withval="$with_libc"
19938 if test "$withval" = no
19939 then LIBC=
19940 echo "$as_me:$LINENO: result: force LIBC empty" >&5
19941 echo "${ECHO_T}force LIBC empty" >&6
19942 elif test "$withval" != yes
19943 then LIBC=$withval
19944 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
19945 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
19946 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
19947 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
19948 { (exit 1); exit 1; }; }
19950 else
19951 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
19952 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
19955 # check for hypot() in math library
19956 LIBS_SAVE=$LIBS
19957 LIBS="$LIBS $LIBM"
19959 for ac_func in hypot
19961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19962 echo "$as_me:$LINENO: checking for $ac_func" >&5
19963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19964 if eval "test \"\${$as_ac_var+set}\" = set"; then
19965 echo $ECHO_N "(cached) $ECHO_C" >&6
19966 else
19967 cat >conftest.$ac_ext <<_ACEOF
19968 /* confdefs.h. */
19969 _ACEOF
19970 cat confdefs.h >>conftest.$ac_ext
19971 cat >>conftest.$ac_ext <<_ACEOF
19972 /* end confdefs.h. */
19973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19975 #define $ac_func innocuous_$ac_func
19977 /* System header to define __stub macros and hopefully few prototypes,
19978 which can conflict with char $ac_func (); below.
19979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19980 <limits.h> exists even on freestanding compilers. */
19982 #ifdef __STDC__
19983 # include <limits.h>
19984 #else
19985 # include <assert.h>
19986 #endif
19988 #undef $ac_func
19990 /* Override any gcc2 internal prototype to avoid an error. */
19991 #ifdef __cplusplus
19992 extern "C"
19994 #endif
19995 /* We use char because int might match the return type of a gcc2
19996 builtin and then its argument prototype would still apply. */
19997 char $ac_func ();
19998 /* The GNU C library defines this for functions which it implements
19999 to always fail with ENOSYS. Some functions are actually named
20000 something starting with __ and the normal name is an alias. */
20001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20002 choke me
20003 #else
20004 char (*f) () = $ac_func;
20005 #endif
20006 #ifdef __cplusplus
20008 #endif
20011 main ()
20013 return f != $ac_func;
20015 return 0;
20017 _ACEOF
20018 rm -f conftest.$ac_objext conftest$ac_exeext
20019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20020 (eval $ac_link) 2>conftest.er1
20021 ac_status=$?
20022 grep -v '^ *+' conftest.er1 >conftest.err
20023 rm -f conftest.er1
20024 cat conftest.err >&5
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); } &&
20027 { ac_try='test -z "$ac_c_werror_flag"
20028 || test ! -s conftest.err'
20029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20030 (eval $ac_try) 2>&5
20031 ac_status=$?
20032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033 (exit $ac_status); }; } &&
20034 { ac_try='test -s conftest$ac_exeext'
20035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20036 (eval $ac_try) 2>&5
20037 ac_status=$?
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); }; }; then
20040 eval "$as_ac_var=yes"
20041 else
20042 echo "$as_me: failed program was:" >&5
20043 sed 's/^/| /' conftest.$ac_ext >&5
20045 eval "$as_ac_var=no"
20047 rm -f conftest.err conftest.$ac_objext \
20048 conftest$ac_exeext conftest.$ac_ext
20050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20051 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20052 if test `eval echo '${'$as_ac_var'}'` = yes; then
20053 cat >>confdefs.h <<_ACEOF
20054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20055 _ACEOF
20057 else
20058 case $LIBOBJS in
20059 "$ac_func.$ac_objext" | \
20060 *" $ac_func.$ac_objext" | \
20061 "$ac_func.$ac_objext "* | \
20062 *" $ac_func.$ac_objext "* ) ;;
20063 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20064 esac
20067 done
20070 LIBS=$LIBS_SAVE
20072 # check for wchar.h
20073 if test "${ac_cv_header_wchar_h+set}" = set; then
20074 echo "$as_me:$LINENO: checking for wchar.h" >&5
20075 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
20076 if test "${ac_cv_header_wchar_h+set}" = set; then
20077 echo $ECHO_N "(cached) $ECHO_C" >&6
20079 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
20080 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
20081 else
20082 # Is the header compilable?
20083 echo "$as_me:$LINENO: checking wchar.h usability" >&5
20084 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
20085 cat >conftest.$ac_ext <<_ACEOF
20086 /* confdefs.h. */
20087 _ACEOF
20088 cat confdefs.h >>conftest.$ac_ext
20089 cat >>conftest.$ac_ext <<_ACEOF
20090 /* end confdefs.h. */
20091 $ac_includes_default
20092 #include <wchar.h>
20093 _ACEOF
20094 rm -f conftest.$ac_objext
20095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20096 (eval $ac_compile) 2>conftest.er1
20097 ac_status=$?
20098 grep -v '^ *+' conftest.er1 >conftest.err
20099 rm -f conftest.er1
20100 cat conftest.err >&5
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); } &&
20103 { ac_try='test -z "$ac_c_werror_flag"
20104 || test ! -s conftest.err'
20105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20106 (eval $ac_try) 2>&5
20107 ac_status=$?
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); }; } &&
20110 { ac_try='test -s conftest.$ac_objext'
20111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20112 (eval $ac_try) 2>&5
20113 ac_status=$?
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); }; }; then
20116 ac_header_compiler=yes
20117 else
20118 echo "$as_me: failed program was:" >&5
20119 sed 's/^/| /' conftest.$ac_ext >&5
20121 ac_header_compiler=no
20123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20124 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20125 echo "${ECHO_T}$ac_header_compiler" >&6
20127 # Is the header present?
20128 echo "$as_me:$LINENO: checking wchar.h presence" >&5
20129 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
20130 cat >conftest.$ac_ext <<_ACEOF
20131 /* confdefs.h. */
20132 _ACEOF
20133 cat confdefs.h >>conftest.$ac_ext
20134 cat >>conftest.$ac_ext <<_ACEOF
20135 /* end confdefs.h. */
20136 #include <wchar.h>
20137 _ACEOF
20138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20140 ac_status=$?
20141 grep -v '^ *+' conftest.er1 >conftest.err
20142 rm -f conftest.er1
20143 cat conftest.err >&5
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); } >/dev/null; then
20146 if test -s conftest.err; then
20147 ac_cpp_err=$ac_c_preproc_warn_flag
20148 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20149 else
20150 ac_cpp_err=
20152 else
20153 ac_cpp_err=yes
20155 if test -z "$ac_cpp_err"; then
20156 ac_header_preproc=yes
20157 else
20158 echo "$as_me: failed program was:" >&5
20159 sed 's/^/| /' conftest.$ac_ext >&5
20161 ac_header_preproc=no
20163 rm -f conftest.err conftest.$ac_ext
20164 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20165 echo "${ECHO_T}$ac_header_preproc" >&6
20167 # So? What about this header?
20168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20169 yes:no: )
20170 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
20171 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20172 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
20173 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
20174 ac_header_preproc=yes
20176 no:yes:* )
20177 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
20178 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
20179 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
20180 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
20181 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
20182 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
20183 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
20184 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
20185 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
20186 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
20187 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
20188 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
20190 cat <<\_ASBOX
20191 ## ------------------------------------------------ ##
20192 ## Report this to http://www.python.org/python-bugs ##
20193 ## ------------------------------------------------ ##
20194 _ASBOX
20196 sed "s/^/$as_me: WARNING: /" >&2
20198 esac
20199 echo "$as_me:$LINENO: checking for wchar.h" >&5
20200 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
20201 if test "${ac_cv_header_wchar_h+set}" = set; then
20202 echo $ECHO_N "(cached) $ECHO_C" >&6
20203 else
20204 ac_cv_header_wchar_h=$ac_header_preproc
20206 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
20207 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
20210 if test $ac_cv_header_wchar_h = yes; then
20213 cat >>confdefs.h <<\_ACEOF
20214 #define HAVE_WCHAR_H 1
20215 _ACEOF
20217 wchar_h="yes"
20219 else
20220 wchar_h="no"
20226 # determine wchar_t size
20227 if test "$wchar_h" = yes
20228 then
20229 echo "$as_me:$LINENO: checking for wchar_t" >&5
20230 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
20231 if test "${ac_cv_type_wchar_t+set}" = set; then
20232 echo $ECHO_N "(cached) $ECHO_C" >&6
20233 else
20234 cat >conftest.$ac_ext <<_ACEOF
20235 /* confdefs.h. */
20236 _ACEOF
20237 cat confdefs.h >>conftest.$ac_ext
20238 cat >>conftest.$ac_ext <<_ACEOF
20239 /* end confdefs.h. */
20240 #include <wchar.h>
20243 main ()
20245 if ((wchar_t *) 0)
20246 return 0;
20247 if (sizeof (wchar_t))
20248 return 0;
20250 return 0;
20252 _ACEOF
20253 rm -f conftest.$ac_objext
20254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20255 (eval $ac_compile) 2>conftest.er1
20256 ac_status=$?
20257 grep -v '^ *+' conftest.er1 >conftest.err
20258 rm -f conftest.er1
20259 cat conftest.err >&5
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); } &&
20262 { ac_try='test -z "$ac_c_werror_flag"
20263 || test ! -s conftest.err'
20264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20265 (eval $ac_try) 2>&5
20266 ac_status=$?
20267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268 (exit $ac_status); }; } &&
20269 { ac_try='test -s conftest.$ac_objext'
20270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20271 (eval $ac_try) 2>&5
20272 ac_status=$?
20273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274 (exit $ac_status); }; }; then
20275 ac_cv_type_wchar_t=yes
20276 else
20277 echo "$as_me: failed program was:" >&5
20278 sed 's/^/| /' conftest.$ac_ext >&5
20280 ac_cv_type_wchar_t=no
20282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20284 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
20285 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
20287 echo "$as_me:$LINENO: checking size of wchar_t" >&5
20288 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
20289 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
20290 echo $ECHO_N "(cached) $ECHO_C" >&6
20291 else
20292 if test "$ac_cv_type_wchar_t" = yes; then
20293 # The cast to unsigned long works around a bug in the HP C Compiler
20294 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20295 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20296 # This bug is HP SR number 8606223364.
20297 if test "$cross_compiling" = yes; then
20298 # Depending upon the size, compute the lo and hi bounds.
20299 cat >conftest.$ac_ext <<_ACEOF
20300 /* confdefs.h. */
20301 _ACEOF
20302 cat confdefs.h >>conftest.$ac_ext
20303 cat >>conftest.$ac_ext <<_ACEOF
20304 /* end confdefs.h. */
20305 #include <wchar.h>
20308 main ()
20310 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
20311 test_array [0] = 0
20314 return 0;
20316 _ACEOF
20317 rm -f conftest.$ac_objext
20318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20319 (eval $ac_compile) 2>conftest.er1
20320 ac_status=$?
20321 grep -v '^ *+' conftest.er1 >conftest.err
20322 rm -f conftest.er1
20323 cat conftest.err >&5
20324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325 (exit $ac_status); } &&
20326 { ac_try='test -z "$ac_c_werror_flag"
20327 || test ! -s conftest.err'
20328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20329 (eval $ac_try) 2>&5
20330 ac_status=$?
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); }; } &&
20333 { ac_try='test -s conftest.$ac_objext'
20334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20335 (eval $ac_try) 2>&5
20336 ac_status=$?
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); }; }; then
20339 ac_lo=0 ac_mid=0
20340 while :; do
20341 cat >conftest.$ac_ext <<_ACEOF
20342 /* confdefs.h. */
20343 _ACEOF
20344 cat confdefs.h >>conftest.$ac_ext
20345 cat >>conftest.$ac_ext <<_ACEOF
20346 /* end confdefs.h. */
20347 #include <wchar.h>
20350 main ()
20352 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20353 test_array [0] = 0
20356 return 0;
20358 _ACEOF
20359 rm -f conftest.$ac_objext
20360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20361 (eval $ac_compile) 2>conftest.er1
20362 ac_status=$?
20363 grep -v '^ *+' conftest.er1 >conftest.err
20364 rm -f conftest.er1
20365 cat conftest.err >&5
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); } &&
20368 { ac_try='test -z "$ac_c_werror_flag"
20369 || test ! -s conftest.err'
20370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20371 (eval $ac_try) 2>&5
20372 ac_status=$?
20373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374 (exit $ac_status); }; } &&
20375 { ac_try='test -s conftest.$ac_objext'
20376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20377 (eval $ac_try) 2>&5
20378 ac_status=$?
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); }; }; then
20381 ac_hi=$ac_mid; break
20382 else
20383 echo "$as_me: failed program was:" >&5
20384 sed 's/^/| /' conftest.$ac_ext >&5
20386 ac_lo=`expr $ac_mid + 1`
20387 if test $ac_lo -le $ac_mid; then
20388 ac_lo= ac_hi=
20389 break
20391 ac_mid=`expr 2 '*' $ac_mid + 1`
20393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20394 done
20395 else
20396 echo "$as_me: failed program was:" >&5
20397 sed 's/^/| /' conftest.$ac_ext >&5
20399 cat >conftest.$ac_ext <<_ACEOF
20400 /* confdefs.h. */
20401 _ACEOF
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h. */
20405 #include <wchar.h>
20408 main ()
20410 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
20411 test_array [0] = 0
20414 return 0;
20416 _ACEOF
20417 rm -f conftest.$ac_objext
20418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20419 (eval $ac_compile) 2>conftest.er1
20420 ac_status=$?
20421 grep -v '^ *+' conftest.er1 >conftest.err
20422 rm -f conftest.er1
20423 cat conftest.err >&5
20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425 (exit $ac_status); } &&
20426 { ac_try='test -z "$ac_c_werror_flag"
20427 || test ! -s conftest.err'
20428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20429 (eval $ac_try) 2>&5
20430 ac_status=$?
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); }; } &&
20433 { ac_try='test -s conftest.$ac_objext'
20434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20435 (eval $ac_try) 2>&5
20436 ac_status=$?
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); }; }; then
20439 ac_hi=-1 ac_mid=-1
20440 while :; do
20441 cat >conftest.$ac_ext <<_ACEOF
20442 /* confdefs.h. */
20443 _ACEOF
20444 cat confdefs.h >>conftest.$ac_ext
20445 cat >>conftest.$ac_ext <<_ACEOF
20446 /* end confdefs.h. */
20447 #include <wchar.h>
20450 main ()
20452 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
20453 test_array [0] = 0
20456 return 0;
20458 _ACEOF
20459 rm -f conftest.$ac_objext
20460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20461 (eval $ac_compile) 2>conftest.er1
20462 ac_status=$?
20463 grep -v '^ *+' conftest.er1 >conftest.err
20464 rm -f conftest.er1
20465 cat conftest.err >&5
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); } &&
20468 { ac_try='test -z "$ac_c_werror_flag"
20469 || test ! -s conftest.err'
20470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20471 (eval $ac_try) 2>&5
20472 ac_status=$?
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); }; } &&
20475 { ac_try='test -s conftest.$ac_objext'
20476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20477 (eval $ac_try) 2>&5
20478 ac_status=$?
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); }; }; then
20481 ac_lo=$ac_mid; break
20482 else
20483 echo "$as_me: failed program was:" >&5
20484 sed 's/^/| /' conftest.$ac_ext >&5
20486 ac_hi=`expr '(' $ac_mid ')' - 1`
20487 if test $ac_mid -le $ac_hi; then
20488 ac_lo= ac_hi=
20489 break
20491 ac_mid=`expr 2 '*' $ac_mid`
20493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20494 done
20495 else
20496 echo "$as_me: failed program was:" >&5
20497 sed 's/^/| /' conftest.$ac_ext >&5
20499 ac_lo= ac_hi=
20501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20504 # Binary search between lo and hi bounds.
20505 while test "x$ac_lo" != "x$ac_hi"; do
20506 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20507 cat >conftest.$ac_ext <<_ACEOF
20508 /* confdefs.h. */
20509 _ACEOF
20510 cat confdefs.h >>conftest.$ac_ext
20511 cat >>conftest.$ac_ext <<_ACEOF
20512 /* end confdefs.h. */
20513 #include <wchar.h>
20516 main ()
20518 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20519 test_array [0] = 0
20522 return 0;
20524 _ACEOF
20525 rm -f conftest.$ac_objext
20526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20527 (eval $ac_compile) 2>conftest.er1
20528 ac_status=$?
20529 grep -v '^ *+' conftest.er1 >conftest.err
20530 rm -f conftest.er1
20531 cat conftest.err >&5
20532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533 (exit $ac_status); } &&
20534 { ac_try='test -z "$ac_c_werror_flag"
20535 || test ! -s conftest.err'
20536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20537 (eval $ac_try) 2>&5
20538 ac_status=$?
20539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540 (exit $ac_status); }; } &&
20541 { ac_try='test -s conftest.$ac_objext'
20542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20543 (eval $ac_try) 2>&5
20544 ac_status=$?
20545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546 (exit $ac_status); }; }; then
20547 ac_hi=$ac_mid
20548 else
20549 echo "$as_me: failed program was:" >&5
20550 sed 's/^/| /' conftest.$ac_ext >&5
20552 ac_lo=`expr '(' $ac_mid ')' + 1`
20554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20555 done
20556 case $ac_lo in
20557 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
20558 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20559 See \`config.log' for more details." >&5
20560 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20561 See \`config.log' for more details." >&2;}
20562 { (exit 1); exit 1; }; } ;;
20563 esac
20564 else
20565 if test "$cross_compiling" = yes; then
20566 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20567 See \`config.log' for more details." >&5
20568 echo "$as_me: error: cannot run test program while cross compiling
20569 See \`config.log' for more details." >&2;}
20570 { (exit 1); exit 1; }; }
20571 else
20572 cat >conftest.$ac_ext <<_ACEOF
20573 /* confdefs.h. */
20574 _ACEOF
20575 cat confdefs.h >>conftest.$ac_ext
20576 cat >>conftest.$ac_ext <<_ACEOF
20577 /* end confdefs.h. */
20578 #include <wchar.h>
20580 long longval () { return (long) (sizeof (wchar_t)); }
20581 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
20582 #include <stdio.h>
20583 #include <stdlib.h>
20585 main ()
20588 FILE *f = fopen ("conftest.val", "w");
20589 if (! f)
20590 exit (1);
20591 if (((long) (sizeof (wchar_t))) < 0)
20593 long i = longval ();
20594 if (i != ((long) (sizeof (wchar_t))))
20595 exit (1);
20596 fprintf (f, "%ld\n", i);
20598 else
20600 unsigned long i = ulongval ();
20601 if (i != ((long) (sizeof (wchar_t))))
20602 exit (1);
20603 fprintf (f, "%lu\n", i);
20605 exit (ferror (f) || fclose (f) != 0);
20608 return 0;
20610 _ACEOF
20611 rm -f conftest$ac_exeext
20612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20613 (eval $ac_link) 2>&5
20614 ac_status=$?
20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20618 (eval $ac_try) 2>&5
20619 ac_status=$?
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); }; }; then
20622 ac_cv_sizeof_wchar_t=`cat conftest.val`
20623 else
20624 echo "$as_me: program exited with status $ac_status" >&5
20625 echo "$as_me: failed program was:" >&5
20626 sed 's/^/| /' conftest.$ac_ext >&5
20628 ( exit $ac_status )
20629 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20630 See \`config.log' for more details." >&5
20631 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20632 See \`config.log' for more details." >&2;}
20633 { (exit 1); exit 1; }; }
20635 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20638 rm -f conftest.val
20639 else
20640 ac_cv_sizeof_wchar_t=0
20643 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
20644 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
20645 cat >>confdefs.h <<_ACEOF
20646 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
20647 _ACEOF
20652 echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
20653 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6
20654 have_ucs4_tcl=no
20655 cat >conftest.$ac_ext <<_ACEOF
20656 /* confdefs.h. */
20657 _ACEOF
20658 cat confdefs.h >>conftest.$ac_ext
20659 cat >>conftest.$ac_ext <<_ACEOF
20660 /* end confdefs.h. */
20662 #include <tcl.h>
20663 #if TCL_UTF_MAX != 6
20664 # error "NOT UCS4_TCL"
20665 #endif
20667 main ()
20671 return 0;
20673 _ACEOF
20674 rm -f conftest.$ac_objext
20675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20676 (eval $ac_compile) 2>conftest.er1
20677 ac_status=$?
20678 grep -v '^ *+' conftest.er1 >conftest.err
20679 rm -f conftest.er1
20680 cat conftest.err >&5
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); } &&
20683 { ac_try='test -z "$ac_c_werror_flag"
20684 || test ! -s conftest.err'
20685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686 (eval $ac_try) 2>&5
20687 ac_status=$?
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); }; } &&
20690 { ac_try='test -s conftest.$ac_objext'
20691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20692 (eval $ac_try) 2>&5
20693 ac_status=$?
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); }; }; then
20698 cat >>confdefs.h <<\_ACEOF
20699 #define HAVE_UCS4_TCL 1
20700 _ACEOF
20702 have_ucs4_tcl=yes
20704 else
20705 echo "$as_me: failed program was:" >&5
20706 sed 's/^/| /' conftest.$ac_ext >&5
20709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20710 echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
20711 echo "${ECHO_T}$have_ucs4_tcl" >&6
20713 # check whether wchar_t is signed or not
20714 if test "$wchar_h" = yes
20715 then
20716 # check whether wchar_t is signed or not
20717 echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
20718 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6
20719 if test "${ac_cv_wchar_t_signed+set}" = set; then
20720 echo $ECHO_N "(cached) $ECHO_C" >&6
20721 else
20723 if test "$cross_compiling" = yes; then
20724 ac_cv_wchar_t_signed=yes
20725 else
20726 cat >conftest.$ac_ext <<_ACEOF
20727 /* confdefs.h. */
20728 _ACEOF
20729 cat confdefs.h >>conftest.$ac_ext
20730 cat >>conftest.$ac_ext <<_ACEOF
20731 /* end confdefs.h. */
20733 #include <wchar.h>
20734 int main()
20736 /* Success: exit code 0 */
20737 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
20740 _ACEOF
20741 rm -f conftest$ac_exeext
20742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20743 (eval $ac_link) 2>&5
20744 ac_status=$?
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20748 (eval $ac_try) 2>&5
20749 ac_status=$?
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); }; }; then
20752 ac_cv_wchar_t_signed=yes
20753 else
20754 echo "$as_me: program exited with status $ac_status" >&5
20755 echo "$as_me: failed program was:" >&5
20756 sed 's/^/| /' conftest.$ac_ext >&5
20758 ( exit $ac_status )
20759 ac_cv_wchar_t_signed=no
20761 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20765 echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
20766 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6
20769 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
20770 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
20771 # Check whether --enable-unicode or --disable-unicode was given.
20772 if test "${enable_unicode+set}" = set; then
20773 enableval="$enable_unicode"
20775 else
20776 enable_unicode=yes
20779 if test $enable_unicode = yes
20780 then
20781 # Without any arguments, Py_UNICODE defaults to two-byte mode
20782 case "$have_ucs4_tcl" in
20783 yes) enable_unicode="ucs4"
20785 *) enable_unicode="ucs2"
20787 esac
20792 case "$enable_unicode" in
20793 ucs2) unicode_size="2"
20794 cat >>confdefs.h <<\_ACEOF
20795 #define Py_UNICODE_SIZE 2
20796 _ACEOF
20799 ucs4) unicode_size="4"
20800 cat >>confdefs.h <<\_ACEOF
20801 #define Py_UNICODE_SIZE 4
20802 _ACEOF
20805 esac
20811 if test "$enable_unicode" = "no"
20812 then
20813 UNICODE_OBJS=""
20814 echo "$as_me:$LINENO: result: not used" >&5
20815 echo "${ECHO_T}not used" >&6
20816 else
20817 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
20819 cat >>confdefs.h <<\_ACEOF
20820 #define Py_USING_UNICODE 1
20821 _ACEOF
20824 # wchar_t is only usable if it maps to an unsigned type
20825 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
20826 -a "$ac_cv_wchar_t_signed" = "no"
20827 then
20828 PY_UNICODE_TYPE="wchar_t"
20830 cat >>confdefs.h <<\_ACEOF
20831 #define HAVE_USABLE_WCHAR_T 1
20832 _ACEOF
20834 cat >>confdefs.h <<\_ACEOF
20835 #define PY_UNICODE_TYPE wchar_t
20836 _ACEOF
20838 elif test "$ac_cv_sizeof_short" = "$unicode_size"
20839 then
20840 PY_UNICODE_TYPE="unsigned short"
20841 cat >>confdefs.h <<\_ACEOF
20842 #define PY_UNICODE_TYPE unsigned short
20843 _ACEOF
20845 elif test "$ac_cv_sizeof_long" = "$unicode_size"
20846 then
20847 PY_UNICODE_TYPE="unsigned long"
20848 cat >>confdefs.h <<\_ACEOF
20849 #define PY_UNICODE_TYPE unsigned long
20850 _ACEOF
20852 else
20853 PY_UNICODE_TYPE="no type found"
20855 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
20856 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
20859 # check for endianness
20860 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20861 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20862 if test "${ac_cv_c_bigendian+set}" = set; then
20863 echo $ECHO_N "(cached) $ECHO_C" >&6
20864 else
20865 # See if sys/param.h defines the BYTE_ORDER macro.
20866 cat >conftest.$ac_ext <<_ACEOF
20867 /* confdefs.h. */
20868 _ACEOF
20869 cat confdefs.h >>conftest.$ac_ext
20870 cat >>conftest.$ac_ext <<_ACEOF
20871 /* end confdefs.h. */
20872 #include <sys/types.h>
20873 #include <sys/param.h>
20876 main ()
20878 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20879 bogus endian macros
20880 #endif
20883 return 0;
20885 _ACEOF
20886 rm -f conftest.$ac_objext
20887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20888 (eval $ac_compile) 2>conftest.er1
20889 ac_status=$?
20890 grep -v '^ *+' conftest.er1 >conftest.err
20891 rm -f conftest.er1
20892 cat conftest.err >&5
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); } &&
20895 { ac_try='test -z "$ac_c_werror_flag"
20896 || test ! -s conftest.err'
20897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20898 (eval $ac_try) 2>&5
20899 ac_status=$?
20900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901 (exit $ac_status); }; } &&
20902 { ac_try='test -s conftest.$ac_objext'
20903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20904 (eval $ac_try) 2>&5
20905 ac_status=$?
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); }; }; then
20908 # It does; now see whether it defined to BIG_ENDIAN or not.
20909 cat >conftest.$ac_ext <<_ACEOF
20910 /* confdefs.h. */
20911 _ACEOF
20912 cat confdefs.h >>conftest.$ac_ext
20913 cat >>conftest.$ac_ext <<_ACEOF
20914 /* end confdefs.h. */
20915 #include <sys/types.h>
20916 #include <sys/param.h>
20919 main ()
20921 #if BYTE_ORDER != BIG_ENDIAN
20922 not big endian
20923 #endif
20926 return 0;
20928 _ACEOF
20929 rm -f conftest.$ac_objext
20930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20931 (eval $ac_compile) 2>conftest.er1
20932 ac_status=$?
20933 grep -v '^ *+' conftest.er1 >conftest.err
20934 rm -f conftest.er1
20935 cat conftest.err >&5
20936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937 (exit $ac_status); } &&
20938 { ac_try='test -z "$ac_c_werror_flag"
20939 || test ! -s conftest.err'
20940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20941 (eval $ac_try) 2>&5
20942 ac_status=$?
20943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944 (exit $ac_status); }; } &&
20945 { ac_try='test -s conftest.$ac_objext'
20946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20947 (eval $ac_try) 2>&5
20948 ac_status=$?
20949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950 (exit $ac_status); }; }; then
20951 ac_cv_c_bigendian=yes
20952 else
20953 echo "$as_me: failed program was:" >&5
20954 sed 's/^/| /' conftest.$ac_ext >&5
20956 ac_cv_c_bigendian=no
20958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20959 else
20960 echo "$as_me: failed program was:" >&5
20961 sed 's/^/| /' conftest.$ac_ext >&5
20963 # It does not; compile a test program.
20964 if test "$cross_compiling" = yes; then
20965 # try to guess the endianness by grepping values into an object file
20966 ac_cv_c_bigendian=unknown
20967 cat >conftest.$ac_ext <<_ACEOF
20968 /* confdefs.h. */
20969 _ACEOF
20970 cat confdefs.h >>conftest.$ac_ext
20971 cat >>conftest.$ac_ext <<_ACEOF
20972 /* end confdefs.h. */
20973 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20974 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20975 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20976 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20977 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20978 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20980 main ()
20982 _ascii (); _ebcdic ();
20984 return 0;
20986 _ACEOF
20987 rm -f conftest.$ac_objext
20988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20989 (eval $ac_compile) 2>conftest.er1
20990 ac_status=$?
20991 grep -v '^ *+' conftest.er1 >conftest.err
20992 rm -f conftest.er1
20993 cat conftest.err >&5
20994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995 (exit $ac_status); } &&
20996 { ac_try='test -z "$ac_c_werror_flag"
20997 || test ! -s conftest.err'
20998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20999 (eval $ac_try) 2>&5
21000 ac_status=$?
21001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002 (exit $ac_status); }; } &&
21003 { ac_try='test -s conftest.$ac_objext'
21004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21005 (eval $ac_try) 2>&5
21006 ac_status=$?
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); }; }; then
21009 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21010 ac_cv_c_bigendian=yes
21012 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21013 if test "$ac_cv_c_bigendian" = unknown; then
21014 ac_cv_c_bigendian=no
21015 else
21016 # finding both strings is unlikely to happen, but who knows?
21017 ac_cv_c_bigendian=unknown
21020 else
21021 echo "$as_me: failed program was:" >&5
21022 sed 's/^/| /' conftest.$ac_ext >&5
21025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21026 else
21027 cat >conftest.$ac_ext <<_ACEOF
21028 /* confdefs.h. */
21029 _ACEOF
21030 cat confdefs.h >>conftest.$ac_ext
21031 cat >>conftest.$ac_ext <<_ACEOF
21032 /* end confdefs.h. */
21034 main ()
21036 /* Are we little or big endian? From Harbison&Steele. */
21037 union
21039 long l;
21040 char c[sizeof (long)];
21041 } u;
21042 u.l = 1;
21043 exit (u.c[sizeof (long) - 1] == 1);
21045 _ACEOF
21046 rm -f conftest$ac_exeext
21047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21048 (eval $ac_link) 2>&5
21049 ac_status=$?
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21053 (eval $ac_try) 2>&5
21054 ac_status=$?
21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); }; }; then
21057 ac_cv_c_bigendian=no
21058 else
21059 echo "$as_me: program exited with status $ac_status" >&5
21060 echo "$as_me: failed program was:" >&5
21061 sed 's/^/| /' conftest.$ac_ext >&5
21063 ( exit $ac_status )
21064 ac_cv_c_bigendian=yes
21066 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21071 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21072 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21073 case $ac_cv_c_bigendian in
21074 yes)
21076 cat >>confdefs.h <<\_ACEOF
21077 #define WORDS_BIGENDIAN 1
21078 _ACEOF
21083 { { echo "$as_me:$LINENO: error: unknown endianness
21084 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21085 echo "$as_me: error: unknown endianness
21086 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21087 { (exit 1); exit 1; }; } ;;
21088 esac
21093 # Check whether right shifting a negative integer extends the sign bit
21094 # or fills with zeros (like the Cray J90, according to Tim Peters).
21095 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
21096 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
21097 if test "${ac_cv_rshift_extends_sign+set}" = set; then
21098 echo $ECHO_N "(cached) $ECHO_C" >&6
21099 else
21101 if test "$cross_compiling" = yes; then
21102 ac_cv_rshift_extends_sign=yes
21103 else
21104 cat >conftest.$ac_ext <<_ACEOF
21105 /* confdefs.h. */
21106 _ACEOF
21107 cat confdefs.h >>conftest.$ac_ext
21108 cat >>conftest.$ac_ext <<_ACEOF
21109 /* end confdefs.h. */
21111 int main()
21113 exit(((-1)>>3 == -1) ? 0 : 1);
21116 _ACEOF
21117 rm -f conftest$ac_exeext
21118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21119 (eval $ac_link) 2>&5
21120 ac_status=$?
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21124 (eval $ac_try) 2>&5
21125 ac_status=$?
21126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127 (exit $ac_status); }; }; then
21128 ac_cv_rshift_extends_sign=yes
21129 else
21130 echo "$as_me: program exited with status $ac_status" >&5
21131 echo "$as_me: failed program was:" >&5
21132 sed 's/^/| /' conftest.$ac_ext >&5
21134 ( exit $ac_status )
21135 ac_cv_rshift_extends_sign=no
21137 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21141 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
21142 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
21143 if test "$ac_cv_rshift_extends_sign" = no
21144 then
21146 cat >>confdefs.h <<\_ACEOF
21147 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
21148 _ACEOF
21152 # check for getc_unlocked and related locking functions
21153 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
21154 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
21155 if test "${ac_cv_have_getc_unlocked+set}" = set; then
21156 echo $ECHO_N "(cached) $ECHO_C" >&6
21157 else
21159 cat >conftest.$ac_ext <<_ACEOF
21160 /* confdefs.h. */
21161 _ACEOF
21162 cat confdefs.h >>conftest.$ac_ext
21163 cat >>conftest.$ac_ext <<_ACEOF
21164 /* end confdefs.h. */
21165 #include <stdio.h>
21167 main ()
21170 FILE *f = fopen("/dev/null", "r");
21171 flockfile(f);
21172 getc_unlocked(f);
21173 funlockfile(f);
21176 return 0;
21178 _ACEOF
21179 rm -f conftest.$ac_objext conftest$ac_exeext
21180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21181 (eval $ac_link) 2>conftest.er1
21182 ac_status=$?
21183 grep -v '^ *+' conftest.er1 >conftest.err
21184 rm -f conftest.er1
21185 cat conftest.err >&5
21186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187 (exit $ac_status); } &&
21188 { ac_try='test -z "$ac_c_werror_flag"
21189 || test ! -s conftest.err'
21190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21191 (eval $ac_try) 2>&5
21192 ac_status=$?
21193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194 (exit $ac_status); }; } &&
21195 { ac_try='test -s conftest$ac_exeext'
21196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21197 (eval $ac_try) 2>&5
21198 ac_status=$?
21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200 (exit $ac_status); }; }; then
21201 ac_cv_have_getc_unlocked=yes
21202 else
21203 echo "$as_me: failed program was:" >&5
21204 sed 's/^/| /' conftest.$ac_ext >&5
21206 ac_cv_have_getc_unlocked=no
21208 rm -f conftest.err conftest.$ac_objext \
21209 conftest$ac_exeext conftest.$ac_ext
21212 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
21213 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
21214 if test "$ac_cv_have_getc_unlocked" = yes
21215 then
21217 cat >>confdefs.h <<\_ACEOF
21218 #define HAVE_GETC_UNLOCKED 1
21219 _ACEOF
21223 # check where readline lives
21224 # save the value of LIBS so we don't actually link Python with readline
21225 LIBS_no_readline=$LIBS
21227 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
21228 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
21229 if test "${ac_cv_lib_readline_readline+set}" = set; then
21230 echo $ECHO_N "(cached) $ECHO_C" >&6
21231 else
21232 ac_check_lib_save_LIBS=$LIBS
21233 LIBS="-lreadline $LIBS"
21234 cat >conftest.$ac_ext <<_ACEOF
21235 /* confdefs.h. */
21236 _ACEOF
21237 cat confdefs.h >>conftest.$ac_ext
21238 cat >>conftest.$ac_ext <<_ACEOF
21239 /* end confdefs.h. */
21241 /* Override any gcc2 internal prototype to avoid an error. */
21242 #ifdef __cplusplus
21243 extern "C"
21244 #endif
21245 /* We use char because int might match the return type of a gcc2
21246 builtin and then its argument prototype would still apply. */
21247 char readline ();
21249 main ()
21251 readline ();
21253 return 0;
21255 _ACEOF
21256 rm -f conftest.$ac_objext conftest$ac_exeext
21257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21258 (eval $ac_link) 2>conftest.er1
21259 ac_status=$?
21260 grep -v '^ *+' conftest.er1 >conftest.err
21261 rm -f conftest.er1
21262 cat conftest.err >&5
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); } &&
21265 { ac_try='test -z "$ac_c_werror_flag"
21266 || test ! -s conftest.err'
21267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21268 (eval $ac_try) 2>&5
21269 ac_status=$?
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); }; } &&
21272 { ac_try='test -s conftest$ac_exeext'
21273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21274 (eval $ac_try) 2>&5
21275 ac_status=$?
21276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277 (exit $ac_status); }; }; then
21278 ac_cv_lib_readline_readline=yes
21279 else
21280 echo "$as_me: failed program was:" >&5
21281 sed 's/^/| /' conftest.$ac_ext >&5
21283 ac_cv_lib_readline_readline=no
21285 rm -f conftest.err conftest.$ac_objext \
21286 conftest$ac_exeext conftest.$ac_ext
21287 LIBS=$ac_check_lib_save_LIBS
21289 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
21290 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
21291 if test $ac_cv_lib_readline_readline = yes; then
21292 cat >>confdefs.h <<_ACEOF
21293 #define HAVE_LIBREADLINE 1
21294 _ACEOF
21296 LIBS="-lreadline $LIBS"
21300 if test "$ac_cv_have_readline_readline" = no
21301 then
21303 echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
21304 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6
21305 if test "${ac_cv_lib_termcap_readline+set}" = set; then
21306 echo $ECHO_N "(cached) $ECHO_C" >&6
21307 else
21308 ac_check_lib_save_LIBS=$LIBS
21309 LIBS="-ltermcap $LIBS"
21310 cat >conftest.$ac_ext <<_ACEOF
21311 /* confdefs.h. */
21312 _ACEOF
21313 cat confdefs.h >>conftest.$ac_ext
21314 cat >>conftest.$ac_ext <<_ACEOF
21315 /* end confdefs.h. */
21317 /* Override any gcc2 internal prototype to avoid an error. */
21318 #ifdef __cplusplus
21319 extern "C"
21320 #endif
21321 /* We use char because int might match the return type of a gcc2
21322 builtin and then its argument prototype would still apply. */
21323 char readline ();
21325 main ()
21327 readline ();
21329 return 0;
21331 _ACEOF
21332 rm -f conftest.$ac_objext conftest$ac_exeext
21333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21334 (eval $ac_link) 2>conftest.er1
21335 ac_status=$?
21336 grep -v '^ *+' conftest.er1 >conftest.err
21337 rm -f conftest.er1
21338 cat conftest.err >&5
21339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340 (exit $ac_status); } &&
21341 { ac_try='test -z "$ac_c_werror_flag"
21342 || test ! -s conftest.err'
21343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21344 (eval $ac_try) 2>&5
21345 ac_status=$?
21346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347 (exit $ac_status); }; } &&
21348 { ac_try='test -s conftest$ac_exeext'
21349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21350 (eval $ac_try) 2>&5
21351 ac_status=$?
21352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353 (exit $ac_status); }; }; then
21354 ac_cv_lib_termcap_readline=yes
21355 else
21356 echo "$as_me: failed program was:" >&5
21357 sed 's/^/| /' conftest.$ac_ext >&5
21359 ac_cv_lib_termcap_readline=no
21361 rm -f conftest.err conftest.$ac_objext \
21362 conftest$ac_exeext conftest.$ac_ext
21363 LIBS=$ac_check_lib_save_LIBS
21365 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
21366 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6
21367 if test $ac_cv_lib_termcap_readline = yes; then
21368 cat >>confdefs.h <<_ACEOF
21369 #define HAVE_LIBTERMCAP 1
21370 _ACEOF
21372 LIBS="-ltermcap $LIBS"
21378 # check for readline 2.1
21379 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
21380 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
21381 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
21382 echo $ECHO_N "(cached) $ECHO_C" >&6
21383 else
21384 ac_check_lib_save_LIBS=$LIBS
21385 LIBS="-lreadline $LIBS"
21386 cat >conftest.$ac_ext <<_ACEOF
21387 /* confdefs.h. */
21388 _ACEOF
21389 cat confdefs.h >>conftest.$ac_ext
21390 cat >>conftest.$ac_ext <<_ACEOF
21391 /* end confdefs.h. */
21393 /* Override any gcc2 internal prototype to avoid an error. */
21394 #ifdef __cplusplus
21395 extern "C"
21396 #endif
21397 /* We use char because int might match the return type of a gcc2
21398 builtin and then its argument prototype would still apply. */
21399 char rl_callback_handler_install ();
21401 main ()
21403 rl_callback_handler_install ();
21405 return 0;
21407 _ACEOF
21408 rm -f conftest.$ac_objext conftest$ac_exeext
21409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21410 (eval $ac_link) 2>conftest.er1
21411 ac_status=$?
21412 grep -v '^ *+' conftest.er1 >conftest.err
21413 rm -f conftest.er1
21414 cat conftest.err >&5
21415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416 (exit $ac_status); } &&
21417 { ac_try='test -z "$ac_c_werror_flag"
21418 || test ! -s conftest.err'
21419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21420 (eval $ac_try) 2>&5
21421 ac_status=$?
21422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423 (exit $ac_status); }; } &&
21424 { ac_try='test -s conftest$ac_exeext'
21425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21426 (eval $ac_try) 2>&5
21427 ac_status=$?
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); }; }; then
21430 ac_cv_lib_readline_rl_callback_handler_install=yes
21431 else
21432 echo "$as_me: failed program was:" >&5
21433 sed 's/^/| /' conftest.$ac_ext >&5
21435 ac_cv_lib_readline_rl_callback_handler_install=no
21437 rm -f conftest.err conftest.$ac_objext \
21438 conftest$ac_exeext conftest.$ac_ext
21439 LIBS=$ac_check_lib_save_LIBS
21441 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
21442 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
21443 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
21445 cat >>confdefs.h <<\_ACEOF
21446 #define HAVE_RL_CALLBACK 1
21447 _ACEOF
21452 # check for readline 2.2
21453 cat >conftest.$ac_ext <<_ACEOF
21454 /* confdefs.h. */
21455 _ACEOF
21456 cat confdefs.h >>conftest.$ac_ext
21457 cat >>conftest.$ac_ext <<_ACEOF
21458 /* end confdefs.h. */
21459 #include <readline/readline.h>
21460 _ACEOF
21461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21463 ac_status=$?
21464 grep -v '^ *+' conftest.er1 >conftest.err
21465 rm -f conftest.er1
21466 cat conftest.err >&5
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); } >/dev/null; then
21469 if test -s conftest.err; then
21470 ac_cpp_err=$ac_c_preproc_warn_flag
21471 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21472 else
21473 ac_cpp_err=
21475 else
21476 ac_cpp_err=yes
21478 if test -z "$ac_cpp_err"; then
21479 have_readline=yes
21480 else
21481 echo "$as_me: failed program was:" >&5
21482 sed 's/^/| /' conftest.$ac_ext >&5
21484 have_readline=no
21486 rm -f conftest.err conftest.$ac_ext
21487 if test $have_readline = yes
21488 then
21489 cat >conftest.$ac_ext <<_ACEOF
21490 /* confdefs.h. */
21491 _ACEOF
21492 cat confdefs.h >>conftest.$ac_ext
21493 cat >>conftest.$ac_ext <<_ACEOF
21494 /* end confdefs.h. */
21495 #include <readline/readline.h>
21497 _ACEOF
21498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21499 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
21501 cat >>confdefs.h <<\_ACEOF
21502 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
21503 _ACEOF
21506 rm -f conftest*
21510 # check for readline 4.0
21511 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
21512 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
21513 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
21514 echo $ECHO_N "(cached) $ECHO_C" >&6
21515 else
21516 ac_check_lib_save_LIBS=$LIBS
21517 LIBS="-lreadline $LIBS"
21518 cat >conftest.$ac_ext <<_ACEOF
21519 /* confdefs.h. */
21520 _ACEOF
21521 cat confdefs.h >>conftest.$ac_ext
21522 cat >>conftest.$ac_ext <<_ACEOF
21523 /* end confdefs.h. */
21525 /* Override any gcc2 internal prototype to avoid an error. */
21526 #ifdef __cplusplus
21527 extern "C"
21528 #endif
21529 /* We use char because int might match the return type of a gcc2
21530 builtin and then its argument prototype would still apply. */
21531 char rl_pre_input_hook ();
21533 main ()
21535 rl_pre_input_hook ();
21537 return 0;
21539 _ACEOF
21540 rm -f conftest.$ac_objext conftest$ac_exeext
21541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21542 (eval $ac_link) 2>conftest.er1
21543 ac_status=$?
21544 grep -v '^ *+' conftest.er1 >conftest.err
21545 rm -f conftest.er1
21546 cat conftest.err >&5
21547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); } &&
21549 { ac_try='test -z "$ac_c_werror_flag"
21550 || test ! -s conftest.err'
21551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21552 (eval $ac_try) 2>&5
21553 ac_status=$?
21554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555 (exit $ac_status); }; } &&
21556 { ac_try='test -s conftest$ac_exeext'
21557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21558 (eval $ac_try) 2>&5
21559 ac_status=$?
21560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561 (exit $ac_status); }; }; then
21562 ac_cv_lib_readline_rl_pre_input_hook=yes
21563 else
21564 echo "$as_me: failed program was:" >&5
21565 sed 's/^/| /' conftest.$ac_ext >&5
21567 ac_cv_lib_readline_rl_pre_input_hook=no
21569 rm -f conftest.err conftest.$ac_objext \
21570 conftest$ac_exeext conftest.$ac_ext
21571 LIBS=$ac_check_lib_save_LIBS
21573 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
21574 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
21575 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
21577 cat >>confdefs.h <<\_ACEOF
21578 #define HAVE_RL_PRE_INPUT_HOOK 1
21579 _ACEOF
21584 # check for readline 4.2
21585 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
21586 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
21587 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
21588 echo $ECHO_N "(cached) $ECHO_C" >&6
21589 else
21590 ac_check_lib_save_LIBS=$LIBS
21591 LIBS="-lreadline $LIBS"
21592 cat >conftest.$ac_ext <<_ACEOF
21593 /* confdefs.h. */
21594 _ACEOF
21595 cat confdefs.h >>conftest.$ac_ext
21596 cat >>conftest.$ac_ext <<_ACEOF
21597 /* end confdefs.h. */
21599 /* Override any gcc2 internal prototype to avoid an error. */
21600 #ifdef __cplusplus
21601 extern "C"
21602 #endif
21603 /* We use char because int might match the return type of a gcc2
21604 builtin and then its argument prototype would still apply. */
21605 char rl_completion_matches ();
21607 main ()
21609 rl_completion_matches ();
21611 return 0;
21613 _ACEOF
21614 rm -f conftest.$ac_objext conftest$ac_exeext
21615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21616 (eval $ac_link) 2>conftest.er1
21617 ac_status=$?
21618 grep -v '^ *+' conftest.er1 >conftest.err
21619 rm -f conftest.er1
21620 cat conftest.err >&5
21621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622 (exit $ac_status); } &&
21623 { ac_try='test -z "$ac_c_werror_flag"
21624 || test ! -s conftest.err'
21625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21626 (eval $ac_try) 2>&5
21627 ac_status=$?
21628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629 (exit $ac_status); }; } &&
21630 { ac_try='test -s conftest$ac_exeext'
21631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21632 (eval $ac_try) 2>&5
21633 ac_status=$?
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); }; }; then
21636 ac_cv_lib_readline_rl_completion_matches=yes
21637 else
21638 echo "$as_me: failed program was:" >&5
21639 sed 's/^/| /' conftest.$ac_ext >&5
21641 ac_cv_lib_readline_rl_completion_matches=no
21643 rm -f conftest.err conftest.$ac_objext \
21644 conftest$ac_exeext conftest.$ac_ext
21645 LIBS=$ac_check_lib_save_LIBS
21647 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
21648 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
21649 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
21651 cat >>confdefs.h <<\_ACEOF
21652 #define HAVE_RL_COMPLETION_MATCHES 1
21653 _ACEOF
21658 # also in readline 4.2
21659 cat >conftest.$ac_ext <<_ACEOF
21660 /* confdefs.h. */
21661 _ACEOF
21662 cat confdefs.h >>conftest.$ac_ext
21663 cat >>conftest.$ac_ext <<_ACEOF
21664 /* end confdefs.h. */
21665 #include <readline/readline.h>
21666 _ACEOF
21667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21669 ac_status=$?
21670 grep -v '^ *+' conftest.er1 >conftest.err
21671 rm -f conftest.er1
21672 cat conftest.err >&5
21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); } >/dev/null; then
21675 if test -s conftest.err; then
21676 ac_cpp_err=$ac_c_preproc_warn_flag
21677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21678 else
21679 ac_cpp_err=
21681 else
21682 ac_cpp_err=yes
21684 if test -z "$ac_cpp_err"; then
21685 have_readline=yes
21686 else
21687 echo "$as_me: failed program was:" >&5
21688 sed 's/^/| /' conftest.$ac_ext >&5
21690 have_readline=no
21692 rm -f conftest.err conftest.$ac_ext
21693 if test $have_readline = yes
21694 then
21695 cat >conftest.$ac_ext <<_ACEOF
21696 /* confdefs.h. */
21697 _ACEOF
21698 cat confdefs.h >>conftest.$ac_ext
21699 cat >>conftest.$ac_ext <<_ACEOF
21700 /* end confdefs.h. */
21701 #include <readline/readline.h>
21703 _ACEOF
21704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21705 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
21707 cat >>confdefs.h <<\_ACEOF
21708 #define HAVE_RL_CATCH_SIGNAL 1
21709 _ACEOF
21712 rm -f conftest*
21716 # End of readline checks: restore LIBS
21717 LIBS=$LIBS_no_readline
21719 echo "$as_me:$LINENO: checking for broken nice()" >&5
21720 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
21721 if test "${ac_cv_broken_nice+set}" = set; then
21722 echo $ECHO_N "(cached) $ECHO_C" >&6
21723 else
21725 if test "$cross_compiling" = yes; then
21726 ac_cv_broken_nice=no
21727 else
21728 cat >conftest.$ac_ext <<_ACEOF
21729 /* confdefs.h. */
21730 _ACEOF
21731 cat confdefs.h >>conftest.$ac_ext
21732 cat >>conftest.$ac_ext <<_ACEOF
21733 /* end confdefs.h. */
21735 int main()
21737 int val1 = nice(1);
21738 if (val1 != -1 && val1 == nice(2))
21739 exit(0);
21740 exit(1);
21743 _ACEOF
21744 rm -f conftest$ac_exeext
21745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21746 (eval $ac_link) 2>&5
21747 ac_status=$?
21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21751 (eval $ac_try) 2>&5
21752 ac_status=$?
21753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); }; }; then
21755 ac_cv_broken_nice=yes
21756 else
21757 echo "$as_me: program exited with status $ac_status" >&5
21758 echo "$as_me: failed program was:" >&5
21759 sed 's/^/| /' conftest.$ac_ext >&5
21761 ( exit $ac_status )
21762 ac_cv_broken_nice=no
21764 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21768 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
21769 echo "${ECHO_T}$ac_cv_broken_nice" >&6
21770 if test "$ac_cv_broken_nice" = yes
21771 then
21773 cat >>confdefs.h <<\_ACEOF
21774 #define HAVE_BROKEN_NICE 1
21775 _ACEOF
21779 echo "$as_me:$LINENO: checking for broken poll()" >&5
21780 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6
21781 if test "$cross_compiling" = yes; then
21782 ac_cv_broken_poll=no
21783 else
21784 cat >conftest.$ac_ext <<_ACEOF
21785 /* confdefs.h. */
21786 _ACEOF
21787 cat confdefs.h >>conftest.$ac_ext
21788 cat >>conftest.$ac_ext <<_ACEOF
21789 /* end confdefs.h. */
21791 #include <poll.h>
21793 int main (void)
21795 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
21797 close (42);
21799 int poll_test = poll (&poll_struct, 1, 0);
21801 if (poll_test < 0)
21803 exit(0);
21805 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
21807 exit(0);
21809 else
21811 exit(1);
21815 _ACEOF
21816 rm -f conftest$ac_exeext
21817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21818 (eval $ac_link) 2>&5
21819 ac_status=$?
21820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21823 (eval $ac_try) 2>&5
21824 ac_status=$?
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); }; }; then
21827 ac_cv_broken_poll=yes
21828 else
21829 echo "$as_me: program exited with status $ac_status" >&5
21830 echo "$as_me: failed program was:" >&5
21831 sed 's/^/| /' conftest.$ac_ext >&5
21833 ( exit $ac_status )
21834 ac_cv_broken_poll=no
21836 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21838 echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
21839 echo "${ECHO_T}$ac_cv_broken_poll" >&6
21840 if test "$ac_cv_broken_poll" = yes
21841 then
21843 cat >>confdefs.h <<\_ACEOF
21844 #define HAVE_BROKEN_POLL 1
21845 _ACEOF
21849 # Before we can test tzset, we need to check if struct tm has a tm_zone
21850 # (which is not required by ISO C or UNIX spec) and/or if we support
21851 # tzname[]
21852 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21853 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21854 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21855 echo $ECHO_N "(cached) $ECHO_C" >&6
21856 else
21857 cat >conftest.$ac_ext <<_ACEOF
21858 /* confdefs.h. */
21859 _ACEOF
21860 cat confdefs.h >>conftest.$ac_ext
21861 cat >>conftest.$ac_ext <<_ACEOF
21862 /* end confdefs.h. */
21863 #include <sys/types.h>
21864 #include <$ac_cv_struct_tm>
21868 main ()
21870 static struct tm ac_aggr;
21871 if (ac_aggr.tm_zone)
21872 return 0;
21874 return 0;
21876 _ACEOF
21877 rm -f conftest.$ac_objext
21878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21879 (eval $ac_compile) 2>conftest.er1
21880 ac_status=$?
21881 grep -v '^ *+' conftest.er1 >conftest.err
21882 rm -f conftest.er1
21883 cat conftest.err >&5
21884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885 (exit $ac_status); } &&
21886 { ac_try='test -z "$ac_c_werror_flag"
21887 || test ! -s conftest.err'
21888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21889 (eval $ac_try) 2>&5
21890 ac_status=$?
21891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); }; } &&
21893 { ac_try='test -s conftest.$ac_objext'
21894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21895 (eval $ac_try) 2>&5
21896 ac_status=$?
21897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898 (exit $ac_status); }; }; then
21899 ac_cv_member_struct_tm_tm_zone=yes
21900 else
21901 echo "$as_me: failed program was:" >&5
21902 sed 's/^/| /' conftest.$ac_ext >&5
21904 cat >conftest.$ac_ext <<_ACEOF
21905 /* confdefs.h. */
21906 _ACEOF
21907 cat confdefs.h >>conftest.$ac_ext
21908 cat >>conftest.$ac_ext <<_ACEOF
21909 /* end confdefs.h. */
21910 #include <sys/types.h>
21911 #include <$ac_cv_struct_tm>
21915 main ()
21917 static struct tm ac_aggr;
21918 if (sizeof ac_aggr.tm_zone)
21919 return 0;
21921 return 0;
21923 _ACEOF
21924 rm -f conftest.$ac_objext
21925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21926 (eval $ac_compile) 2>conftest.er1
21927 ac_status=$?
21928 grep -v '^ *+' conftest.er1 >conftest.err
21929 rm -f conftest.er1
21930 cat conftest.err >&5
21931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932 (exit $ac_status); } &&
21933 { ac_try='test -z "$ac_c_werror_flag"
21934 || test ! -s conftest.err'
21935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21936 (eval $ac_try) 2>&5
21937 ac_status=$?
21938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939 (exit $ac_status); }; } &&
21940 { ac_try='test -s conftest.$ac_objext'
21941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21942 (eval $ac_try) 2>&5
21943 ac_status=$?
21944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21945 (exit $ac_status); }; }; then
21946 ac_cv_member_struct_tm_tm_zone=yes
21947 else
21948 echo "$as_me: failed program was:" >&5
21949 sed 's/^/| /' conftest.$ac_ext >&5
21951 ac_cv_member_struct_tm_tm_zone=no
21953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21957 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21958 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21959 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21961 cat >>confdefs.h <<_ACEOF
21962 #define HAVE_STRUCT_TM_TM_ZONE 1
21963 _ACEOF
21968 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21970 cat >>confdefs.h <<\_ACEOF
21971 #define HAVE_TM_ZONE 1
21972 _ACEOF
21974 else
21975 echo "$as_me:$LINENO: checking for tzname" >&5
21976 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21977 if test "${ac_cv_var_tzname+set}" = set; then
21978 echo $ECHO_N "(cached) $ECHO_C" >&6
21979 else
21980 cat >conftest.$ac_ext <<_ACEOF
21981 /* confdefs.h. */
21982 _ACEOF
21983 cat confdefs.h >>conftest.$ac_ext
21984 cat >>conftest.$ac_ext <<_ACEOF
21985 /* end confdefs.h. */
21986 #include <time.h>
21987 #ifndef tzname /* For SGI. */
21988 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21989 #endif
21992 main ()
21994 atoi(*tzname);
21996 return 0;
21998 _ACEOF
21999 rm -f conftest.$ac_objext conftest$ac_exeext
22000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22001 (eval $ac_link) 2>conftest.er1
22002 ac_status=$?
22003 grep -v '^ *+' conftest.er1 >conftest.err
22004 rm -f conftest.er1
22005 cat conftest.err >&5
22006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007 (exit $ac_status); } &&
22008 { ac_try='test -z "$ac_c_werror_flag"
22009 || test ! -s conftest.err'
22010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22011 (eval $ac_try) 2>&5
22012 ac_status=$?
22013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014 (exit $ac_status); }; } &&
22015 { ac_try='test -s conftest$ac_exeext'
22016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22017 (eval $ac_try) 2>&5
22018 ac_status=$?
22019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020 (exit $ac_status); }; }; then
22021 ac_cv_var_tzname=yes
22022 else
22023 echo "$as_me: failed program was:" >&5
22024 sed 's/^/| /' conftest.$ac_ext >&5
22026 ac_cv_var_tzname=no
22028 rm -f conftest.err conftest.$ac_objext \
22029 conftest$ac_exeext conftest.$ac_ext
22031 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
22032 echo "${ECHO_T}$ac_cv_var_tzname" >&6
22033 if test $ac_cv_var_tzname = yes; then
22035 cat >>confdefs.h <<\_ACEOF
22036 #define HAVE_TZNAME 1
22037 _ACEOF
22043 # check tzset(3) exists and works like we expect it to
22044 echo "$as_me:$LINENO: checking for working tzset()" >&5
22045 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
22046 if test "${ac_cv_working_tzset+set}" = set; then
22047 echo $ECHO_N "(cached) $ECHO_C" >&6
22048 else
22050 if test "$cross_compiling" = yes; then
22051 ac_cv_working_tzset=no
22052 else
22053 cat >conftest.$ac_ext <<_ACEOF
22054 /* confdefs.h. */
22055 _ACEOF
22056 cat confdefs.h >>conftest.$ac_ext
22057 cat >>conftest.$ac_ext <<_ACEOF
22058 /* end confdefs.h. */
22060 #include <stdlib.h>
22061 #include <time.h>
22062 #include <string.h>
22064 #if HAVE_TZNAME
22065 extern char *tzname[];
22066 #endif
22068 int main()
22070 /* Note that we need to ensure that not only does tzset(3)
22071 do 'something' with localtime, but it works as documented
22072 in the library reference and as expected by the test suite.
22073 This includes making sure that tzname is set properly if
22074 tm->tm_zone does not exist since it is the alternative way
22075 of getting timezone info.
22077 Red Hat 6.2 doesn't understand the southern hemisphere
22078 after New Year's Day.
22081 time_t groundhogday = 1044144000; /* GMT-based */
22082 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
22084 putenv("TZ=UTC+0");
22085 tzset();
22086 if (localtime(&groundhogday)->tm_hour != 0)
22087 exit(1);
22088 #if HAVE_TZNAME
22089 /* For UTC, tzname[1] is sometimes "", sometimes " " */
22090 if (strcmp(tzname[0], "UTC") ||
22091 (tzname[1][0] != 0 && tzname[1][0] != ' '))
22092 exit(1);
22093 #endif
22095 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
22096 tzset();
22097 if (localtime(&groundhogday)->tm_hour != 19)
22098 exit(1);
22099 #if HAVE_TZNAME
22100 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
22101 exit(1);
22102 #endif
22104 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
22105 tzset();
22106 if (localtime(&groundhogday)->tm_hour != 11)
22107 exit(1);
22108 #if HAVE_TZNAME
22109 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
22110 exit(1);
22111 #endif
22113 #if HAVE_STRUCT_TM_TM_ZONE
22114 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
22115 exit(1);
22116 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
22117 exit(1);
22118 #endif
22120 exit(0);
22123 _ACEOF
22124 rm -f conftest$ac_exeext
22125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22126 (eval $ac_link) 2>&5
22127 ac_status=$?
22128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22131 (eval $ac_try) 2>&5
22132 ac_status=$?
22133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134 (exit $ac_status); }; }; then
22135 ac_cv_working_tzset=yes
22136 else
22137 echo "$as_me: program exited with status $ac_status" >&5
22138 echo "$as_me: failed program was:" >&5
22139 sed 's/^/| /' conftest.$ac_ext >&5
22141 ( exit $ac_status )
22142 ac_cv_working_tzset=no
22144 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22148 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
22149 echo "${ECHO_T}$ac_cv_working_tzset" >&6
22150 if test "$ac_cv_working_tzset" = yes
22151 then
22153 cat >>confdefs.h <<\_ACEOF
22154 #define HAVE_WORKING_TZSET 1
22155 _ACEOF
22159 # Look for subsecond timestamps in struct stat
22160 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
22161 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
22162 if test "${ac_cv_stat_tv_nsec+set}" = set; then
22163 echo $ECHO_N "(cached) $ECHO_C" >&6
22164 else
22165 cat >conftest.$ac_ext <<_ACEOF
22166 /* confdefs.h. */
22167 _ACEOF
22168 cat confdefs.h >>conftest.$ac_ext
22169 cat >>conftest.$ac_ext <<_ACEOF
22170 /* end confdefs.h. */
22171 #include <sys/stat.h>
22173 main ()
22176 struct stat st;
22177 st.st_mtim.tv_nsec = 1;
22180 return 0;
22182 _ACEOF
22183 rm -f conftest.$ac_objext
22184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22185 (eval $ac_compile) 2>conftest.er1
22186 ac_status=$?
22187 grep -v '^ *+' conftest.er1 >conftest.err
22188 rm -f conftest.er1
22189 cat conftest.err >&5
22190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191 (exit $ac_status); } &&
22192 { ac_try='test -z "$ac_c_werror_flag"
22193 || test ! -s conftest.err'
22194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22195 (eval $ac_try) 2>&5
22196 ac_status=$?
22197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22198 (exit $ac_status); }; } &&
22199 { ac_try='test -s conftest.$ac_objext'
22200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22201 (eval $ac_try) 2>&5
22202 ac_status=$?
22203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204 (exit $ac_status); }; }; then
22205 ac_cv_stat_tv_nsec=yes
22206 else
22207 echo "$as_me: failed program was:" >&5
22208 sed 's/^/| /' conftest.$ac_ext >&5
22210 ac_cv_stat_tv_nsec=no
22212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22215 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
22216 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
22217 if test "$ac_cv_stat_tv_nsec" = yes
22218 then
22220 cat >>confdefs.h <<\_ACEOF
22221 #define HAVE_STAT_TV_NSEC 1
22222 _ACEOF
22226 # Look for BSD style subsecond timestamps in struct stat
22227 echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
22228 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6
22229 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
22230 echo $ECHO_N "(cached) $ECHO_C" >&6
22231 else
22232 cat >conftest.$ac_ext <<_ACEOF
22233 /* confdefs.h. */
22234 _ACEOF
22235 cat confdefs.h >>conftest.$ac_ext
22236 cat >>conftest.$ac_ext <<_ACEOF
22237 /* end confdefs.h. */
22238 #include <sys/stat.h>
22240 main ()
22243 struct stat st;
22244 st.st_mtimespec.tv_nsec = 1;
22247 return 0;
22249 _ACEOF
22250 rm -f conftest.$ac_objext
22251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22252 (eval $ac_compile) 2>conftest.er1
22253 ac_status=$?
22254 grep -v '^ *+' conftest.er1 >conftest.err
22255 rm -f conftest.er1
22256 cat conftest.err >&5
22257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258 (exit $ac_status); } &&
22259 { ac_try='test -z "$ac_c_werror_flag"
22260 || test ! -s conftest.err'
22261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22262 (eval $ac_try) 2>&5
22263 ac_status=$?
22264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265 (exit $ac_status); }; } &&
22266 { ac_try='test -s conftest.$ac_objext'
22267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22268 (eval $ac_try) 2>&5
22269 ac_status=$?
22270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271 (exit $ac_status); }; }; then
22272 ac_cv_stat_tv_nsec2=yes
22273 else
22274 echo "$as_me: failed program was:" >&5
22275 sed 's/^/| /' conftest.$ac_ext >&5
22277 ac_cv_stat_tv_nsec2=no
22279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22282 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
22283 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6
22284 if test "$ac_cv_stat_tv_nsec2" = yes
22285 then
22287 cat >>confdefs.h <<\_ACEOF
22288 #define HAVE_STAT_TV_NSEC2 1
22289 _ACEOF
22293 # On HP/UX 11.0, mvwdelch is a block with a return statement
22294 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
22295 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
22296 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
22297 echo $ECHO_N "(cached) $ECHO_C" >&6
22298 else
22299 cat >conftest.$ac_ext <<_ACEOF
22300 /* confdefs.h. */
22301 _ACEOF
22302 cat confdefs.h >>conftest.$ac_ext
22303 cat >>conftest.$ac_ext <<_ACEOF
22304 /* end confdefs.h. */
22305 #include <curses.h>
22307 main ()
22310 int rtn;
22311 rtn = mvwdelch(0,0,0);
22314 return 0;
22316 _ACEOF
22317 rm -f conftest.$ac_objext
22318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22319 (eval $ac_compile) 2>conftest.er1
22320 ac_status=$?
22321 grep -v '^ *+' conftest.er1 >conftest.err
22322 rm -f conftest.er1
22323 cat conftest.err >&5
22324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22325 (exit $ac_status); } &&
22326 { ac_try='test -z "$ac_c_werror_flag"
22327 || test ! -s conftest.err'
22328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22329 (eval $ac_try) 2>&5
22330 ac_status=$?
22331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332 (exit $ac_status); }; } &&
22333 { ac_try='test -s conftest.$ac_objext'
22334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22335 (eval $ac_try) 2>&5
22336 ac_status=$?
22337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338 (exit $ac_status); }; }; then
22339 ac_cv_mvwdelch_is_expression=yes
22340 else
22341 echo "$as_me: failed program was:" >&5
22342 sed 's/^/| /' conftest.$ac_ext >&5
22344 ac_cv_mvwdelch_is_expression=no
22346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22349 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
22350 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
22352 if test "$ac_cv_mvwdelch_is_expression" = yes
22353 then
22355 cat >>confdefs.h <<\_ACEOF
22356 #define MVWDELCH_IS_EXPRESSION 1
22357 _ACEOF
22361 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
22362 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
22363 if test "${ac_cv_window_has_flags+set}" = set; then
22364 echo $ECHO_N "(cached) $ECHO_C" >&6
22365 else
22366 cat >conftest.$ac_ext <<_ACEOF
22367 /* confdefs.h. */
22368 _ACEOF
22369 cat confdefs.h >>conftest.$ac_ext
22370 cat >>conftest.$ac_ext <<_ACEOF
22371 /* end confdefs.h. */
22372 #include <curses.h>
22374 main ()
22377 WINDOW *w;
22378 w->_flags = 0;
22381 return 0;
22383 _ACEOF
22384 rm -f conftest.$ac_objext
22385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22386 (eval $ac_compile) 2>conftest.er1
22387 ac_status=$?
22388 grep -v '^ *+' conftest.er1 >conftest.err
22389 rm -f conftest.er1
22390 cat conftest.err >&5
22391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392 (exit $ac_status); } &&
22393 { ac_try='test -z "$ac_c_werror_flag"
22394 || test ! -s conftest.err'
22395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22396 (eval $ac_try) 2>&5
22397 ac_status=$?
22398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22399 (exit $ac_status); }; } &&
22400 { ac_try='test -s conftest.$ac_objext'
22401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22402 (eval $ac_try) 2>&5
22403 ac_status=$?
22404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22405 (exit $ac_status); }; }; then
22406 ac_cv_window_has_flags=yes
22407 else
22408 echo "$as_me: failed program was:" >&5
22409 sed 's/^/| /' conftest.$ac_ext >&5
22411 ac_cv_window_has_flags=no
22413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22416 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
22417 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
22420 if test "$ac_cv_window_has_flags" = yes
22421 then
22423 cat >>confdefs.h <<\_ACEOF
22424 #define WINDOW_HAS_FLAGS 1
22425 _ACEOF
22429 echo "$as_me:$LINENO: checking for is_term_resized" >&5
22430 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6
22431 cat >conftest.$ac_ext <<_ACEOF
22432 /* confdefs.h. */
22433 _ACEOF
22434 cat confdefs.h >>conftest.$ac_ext
22435 cat >>conftest.$ac_ext <<_ACEOF
22436 /* end confdefs.h. */
22437 #include <curses.h>
22439 main ()
22441 void *x=is_term_resized
22443 return 0;
22445 _ACEOF
22446 rm -f conftest.$ac_objext
22447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22448 (eval $ac_compile) 2>conftest.er1
22449 ac_status=$?
22450 grep -v '^ *+' conftest.er1 >conftest.err
22451 rm -f conftest.er1
22452 cat conftest.err >&5
22453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454 (exit $ac_status); } &&
22455 { ac_try='test -z "$ac_c_werror_flag"
22456 || test ! -s conftest.err'
22457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22458 (eval $ac_try) 2>&5
22459 ac_status=$?
22460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); }; } &&
22462 { ac_try='test -s conftest.$ac_objext'
22463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22464 (eval $ac_try) 2>&5
22465 ac_status=$?
22466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467 (exit $ac_status); }; }; then
22469 cat >>confdefs.h <<\_ACEOF
22470 #define HAVE_CURSES_IS_TERM_RESIZED 1
22471 _ACEOF
22473 echo "$as_me:$LINENO: result: yes" >&5
22474 echo "${ECHO_T}yes" >&6
22475 else
22476 echo "$as_me: failed program was:" >&5
22477 sed 's/^/| /' conftest.$ac_ext >&5
22479 echo "$as_me:$LINENO: result: no" >&5
22480 echo "${ECHO_T}no" >&6
22483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22485 echo "$as_me:$LINENO: checking for resize_term" >&5
22486 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6
22487 cat >conftest.$ac_ext <<_ACEOF
22488 /* confdefs.h. */
22489 _ACEOF
22490 cat confdefs.h >>conftest.$ac_ext
22491 cat >>conftest.$ac_ext <<_ACEOF
22492 /* end confdefs.h. */
22493 #include <curses.h>
22495 main ()
22497 void *x=resize_term
22499 return 0;
22501 _ACEOF
22502 rm -f conftest.$ac_objext
22503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22504 (eval $ac_compile) 2>conftest.er1
22505 ac_status=$?
22506 grep -v '^ *+' conftest.er1 >conftest.err
22507 rm -f conftest.er1
22508 cat conftest.err >&5
22509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22510 (exit $ac_status); } &&
22511 { ac_try='test -z "$ac_c_werror_flag"
22512 || test ! -s conftest.err'
22513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22514 (eval $ac_try) 2>&5
22515 ac_status=$?
22516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517 (exit $ac_status); }; } &&
22518 { ac_try='test -s conftest.$ac_objext'
22519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22520 (eval $ac_try) 2>&5
22521 ac_status=$?
22522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523 (exit $ac_status); }; }; then
22525 cat >>confdefs.h <<\_ACEOF
22526 #define HAVE_CURSES_RESIZE_TERM 1
22527 _ACEOF
22529 echo "$as_me:$LINENO: result: yes" >&5
22530 echo "${ECHO_T}yes" >&6
22531 else
22532 echo "$as_me: failed program was:" >&5
22533 sed 's/^/| /' conftest.$ac_ext >&5
22535 echo "$as_me:$LINENO: result: no" >&5
22536 echo "${ECHO_T}no" >&6
22539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22541 echo "$as_me:$LINENO: checking for resizeterm" >&5
22542 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6
22543 cat >conftest.$ac_ext <<_ACEOF
22544 /* confdefs.h. */
22545 _ACEOF
22546 cat confdefs.h >>conftest.$ac_ext
22547 cat >>conftest.$ac_ext <<_ACEOF
22548 /* end confdefs.h. */
22549 #include <curses.h>
22551 main ()
22553 void *x=resizeterm
22555 return 0;
22557 _ACEOF
22558 rm -f conftest.$ac_objext
22559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22560 (eval $ac_compile) 2>conftest.er1
22561 ac_status=$?
22562 grep -v '^ *+' conftest.er1 >conftest.err
22563 rm -f conftest.er1
22564 cat conftest.err >&5
22565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566 (exit $ac_status); } &&
22567 { ac_try='test -z "$ac_c_werror_flag"
22568 || test ! -s conftest.err'
22569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22570 (eval $ac_try) 2>&5
22571 ac_status=$?
22572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573 (exit $ac_status); }; } &&
22574 { ac_try='test -s conftest.$ac_objext'
22575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22576 (eval $ac_try) 2>&5
22577 ac_status=$?
22578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579 (exit $ac_status); }; }; then
22581 cat >>confdefs.h <<\_ACEOF
22582 #define HAVE_CURSES_RESIZETERM 1
22583 _ACEOF
22585 echo "$as_me:$LINENO: result: yes" >&5
22586 echo "${ECHO_T}yes" >&6
22587 else
22588 echo "$as_me: failed program was:" >&5
22589 sed 's/^/| /' conftest.$ac_ext >&5
22591 echo "$as_me:$LINENO: result: no" >&5
22592 echo "${ECHO_T}no" >&6
22595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22597 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
22598 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
22600 if test -r /dev/ptmx
22601 then
22602 echo "$as_me:$LINENO: result: yes" >&5
22603 echo "${ECHO_T}yes" >&6
22605 cat >>confdefs.h <<\_ACEOF
22606 #define HAVE_DEV_PTMX 1
22607 _ACEOF
22609 else
22610 echo "$as_me:$LINENO: result: no" >&5
22611 echo "${ECHO_T}no" >&6
22614 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
22615 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
22617 if test -r /dev/ptc
22618 then
22619 echo "$as_me:$LINENO: result: yes" >&5
22620 echo "${ECHO_T}yes" >&6
22622 cat >>confdefs.h <<\_ACEOF
22623 #define HAVE_DEV_PTC 1
22624 _ACEOF
22626 else
22627 echo "$as_me:$LINENO: result: no" >&5
22628 echo "${ECHO_T}no" >&6
22631 echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
22632 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6
22633 if test "$cross_compiling" = yes; then
22634 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22635 See \`config.log' for more details." >&5
22636 echo "$as_me: error: cannot run test program while cross compiling
22637 See \`config.log' for more details." >&2;}
22638 { (exit 1); exit 1; }; }
22639 else
22640 cat >conftest.$ac_ext <<_ACEOF
22641 /* confdefs.h. */
22642 _ACEOF
22643 cat confdefs.h >>conftest.$ac_ext
22644 cat >>conftest.$ac_ext <<_ACEOF
22645 /* end confdefs.h. */
22646 #include <stdio.h>
22647 #include <stddef.h>
22648 #include <string.h>
22650 int main()
22652 char buffer[256];
22654 #ifdef HAVE_SSIZE_T
22655 typedef ssize_t Py_ssize_t;
22656 #elif SIZEOF_VOID_P == SIZEOF_LONG
22657 typedef long Py_ssize_t;
22658 #else
22659 typedef int Py_ssize_t;
22660 #endif
22662 if(sprintf(buffer, "%zd", (size_t)123) < 0)
22663 return 1;
22665 if (strcmp(buffer, "123"))
22666 return 1;
22668 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
22669 return 1;
22671 if (strcmp(buffer, "-123"))
22672 return 1;
22674 return 0;
22676 _ACEOF
22677 rm -f conftest$ac_exeext
22678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22679 (eval $ac_link) 2>&5
22680 ac_status=$?
22681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22684 (eval $ac_try) 2>&5
22685 ac_status=$?
22686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687 (exit $ac_status); }; }; then
22688 echo "$as_me:$LINENO: result: yes" >&5
22689 echo "${ECHO_T}yes" >&6
22691 cat >>confdefs.h <<\_ACEOF
22692 #define PY_FORMAT_SIZE_T "z"
22693 _ACEOF
22695 else
22696 echo "$as_me: program exited with status $ac_status" >&5
22697 echo "$as_me: failed program was:" >&5
22698 sed 's/^/| /' conftest.$ac_ext >&5
22700 ( exit $ac_status )
22701 echo "$as_me:$LINENO: result: no" >&5
22702 echo "${ECHO_T}no" >&6
22704 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22707 echo "$as_me:$LINENO: checking for socklen_t" >&5
22708 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
22709 if test "${ac_cv_type_socklen_t+set}" = set; then
22710 echo $ECHO_N "(cached) $ECHO_C" >&6
22711 else
22712 cat >conftest.$ac_ext <<_ACEOF
22713 /* confdefs.h. */
22714 _ACEOF
22715 cat confdefs.h >>conftest.$ac_ext
22716 cat >>conftest.$ac_ext <<_ACEOF
22717 /* end confdefs.h. */
22719 #ifdef HAVE_SYS_TYPES_H
22720 #include <sys/types.h>
22721 #endif
22722 #ifdef HAVE_SYS_SOCKET_H
22723 #include <sys/socket.h>
22724 #endif
22728 main ()
22730 if ((socklen_t *) 0)
22731 return 0;
22732 if (sizeof (socklen_t))
22733 return 0;
22735 return 0;
22737 _ACEOF
22738 rm -f conftest.$ac_objext
22739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22740 (eval $ac_compile) 2>conftest.er1
22741 ac_status=$?
22742 grep -v '^ *+' conftest.er1 >conftest.err
22743 rm -f conftest.er1
22744 cat conftest.err >&5
22745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746 (exit $ac_status); } &&
22747 { ac_try='test -z "$ac_c_werror_flag"
22748 || test ! -s conftest.err'
22749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22750 (eval $ac_try) 2>&5
22751 ac_status=$?
22752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753 (exit $ac_status); }; } &&
22754 { ac_try='test -s conftest.$ac_objext'
22755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22756 (eval $ac_try) 2>&5
22757 ac_status=$?
22758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759 (exit $ac_status); }; }; then
22760 ac_cv_type_socklen_t=yes
22761 else
22762 echo "$as_me: failed program was:" >&5
22763 sed 's/^/| /' conftest.$ac_ext >&5
22765 ac_cv_type_socklen_t=no
22767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22769 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22770 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
22771 if test $ac_cv_type_socklen_t = yes; then
22773 else
22775 cat >>confdefs.h <<\_ACEOF
22776 #define socklen_t int
22777 _ACEOF
22784 for h in `(cd $srcdir;echo Python/thread_*.h)`
22786 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
22787 done
22790 SRCDIRS="Parser Grammar Objects Python Modules Mac"
22791 echo "$as_me:$LINENO: checking for build directories" >&5
22792 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
22793 for dir in $SRCDIRS; do
22794 if test ! -d $dir; then
22795 mkdir $dir
22797 done
22798 echo "$as_me:$LINENO: result: done" >&5
22799 echo "${ECHO_T}done" >&6
22801 # generate output files
22802 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
22804 cat >confcache <<\_ACEOF
22805 # This file is a shell script that caches the results of configure
22806 # tests run on this system so they can be shared between configure
22807 # scripts and configure runs, see configure's option --config-cache.
22808 # It is not useful on other systems. If it contains results you don't
22809 # want to keep, you may remove or edit it.
22811 # config.status only pays attention to the cache file if you give it
22812 # the --recheck option to rerun configure.
22814 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22815 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22816 # following values.
22818 _ACEOF
22820 # The following way of writing the cache mishandles newlines in values,
22821 # but we know of no workaround that is simple, portable, and efficient.
22822 # So, don't put newlines in cache variables' values.
22823 # Ultrix sh set writes to stderr and can't be redirected directly,
22824 # and sets the high bit in the cache file unless we assign to the vars.
22826 (set) 2>&1 |
22827 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22828 *ac_space=\ *)
22829 # `set' does not quote correctly, so add quotes (double-quote
22830 # substitution turns \\\\ into \\, and sed turns \\ into \).
22831 sed -n \
22832 "s/'/'\\\\''/g;
22833 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22836 # `set' quotes correctly as required by POSIX, so do not add quotes.
22837 sed -n \
22838 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22840 esac;
22842 sed '
22843 t clear
22844 : clear
22845 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22846 t end
22847 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22848 : end' >>confcache
22849 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22850 if test -w $cache_file; then
22851 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22852 cat confcache >$cache_file
22853 else
22854 echo "not updating unwritable cache $cache_file"
22857 rm -f confcache
22859 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22860 # Let make expand exec_prefix.
22861 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22863 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22864 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22865 # trailing colons and then remove the whole line if VPATH becomes empty
22866 # (actually we leave an empty line to preserve line numbers).
22867 if test "x$srcdir" = x.; then
22868 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22869 s/:*\$(srcdir):*/:/;
22870 s/:*\${srcdir}:*/:/;
22871 s/:*@srcdir@:*/:/;
22872 s/^\([^=]*=[ ]*\):*/\1/;
22873 s/:*$//;
22874 s/^[^=]*=[ ]*$//;
22878 DEFS=-DHAVE_CONFIG_H
22880 ac_libobjs=
22881 ac_ltlibobjs=
22882 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22883 # 1. Remove the extension, and $U if already installed.
22884 ac_i=`echo "$ac_i" |
22885 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22886 # 2. Add them.
22887 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22888 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22889 done
22890 LIBOBJS=$ac_libobjs
22892 LTLIBOBJS=$ac_ltlibobjs
22896 : ${CONFIG_STATUS=./config.status}
22897 ac_clean_files_save=$ac_clean_files
22898 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22899 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22900 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22901 cat >$CONFIG_STATUS <<_ACEOF
22902 #! $SHELL
22903 # Generated by $as_me.
22904 # Run this file to recreate the current configuration.
22905 # Compiler output produced by configure, useful for debugging
22906 # configure, is in config.log if it exists.
22908 debug=false
22909 ac_cs_recheck=false
22910 ac_cs_silent=false
22911 SHELL=\${CONFIG_SHELL-$SHELL}
22912 _ACEOF
22914 cat >>$CONFIG_STATUS <<\_ACEOF
22915 ## --------------------- ##
22916 ## M4sh Initialization. ##
22917 ## --------------------- ##
22919 # Be Bourne compatible
22920 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22921 emulate sh
22922 NULLCMD=:
22923 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22924 # is contrary to our usage. Disable this feature.
22925 alias -g '${1+"$@"}'='"$@"'
22926 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22927 set -o posix
22929 DUALCASE=1; export DUALCASE # for MKS sh
22931 # Support unset when possible.
22932 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22933 as_unset=unset
22934 else
22935 as_unset=false
22939 # Work around bugs in pre-3.0 UWIN ksh.
22940 $as_unset ENV MAIL MAILPATH
22941 PS1='$ '
22942 PS2='> '
22943 PS4='+ '
22945 # NLS nuisances.
22946 for as_var in \
22947 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22948 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22949 LC_TELEPHONE LC_TIME
22951 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22952 eval $as_var=C; export $as_var
22953 else
22954 $as_unset $as_var
22956 done
22958 # Required to use basename.
22959 if expr a : '\(a\)' >/dev/null 2>&1; then
22960 as_expr=expr
22961 else
22962 as_expr=false
22965 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22966 as_basename=basename
22967 else
22968 as_basename=false
22972 # Name of the executable.
22973 as_me=`$as_basename "$0" ||
22974 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22975 X"$0" : 'X\(//\)$' \| \
22976 X"$0" : 'X\(/\)$' \| \
22977 . : '\(.\)' 2>/dev/null ||
22978 echo X/"$0" |
22979 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22980 /^X\/\(\/\/\)$/{ s//\1/; q; }
22981 /^X\/\(\/\).*/{ s//\1/; q; }
22982 s/.*/./; q'`
22985 # PATH needs CR, and LINENO needs CR and PATH.
22986 # Avoid depending upon Character Ranges.
22987 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22988 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22989 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22990 as_cr_digits='0123456789'
22991 as_cr_alnum=$as_cr_Letters$as_cr_digits
22993 # The user is always right.
22994 if test "${PATH_SEPARATOR+set}" != set; then
22995 echo "#! /bin/sh" >conf$$.sh
22996 echo "exit 0" >>conf$$.sh
22997 chmod +x conf$$.sh
22998 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22999 PATH_SEPARATOR=';'
23000 else
23001 PATH_SEPARATOR=:
23003 rm -f conf$$.sh
23007 as_lineno_1=$LINENO
23008 as_lineno_2=$LINENO
23009 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23010 test "x$as_lineno_1" != "x$as_lineno_2" &&
23011 test "x$as_lineno_3" = "x$as_lineno_2" || {
23012 # Find who we are. Look in the path if we contain no path at all
23013 # relative or not.
23014 case $0 in
23015 *[\\/]* ) as_myself=$0 ;;
23016 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23017 for as_dir in $PATH
23019 IFS=$as_save_IFS
23020 test -z "$as_dir" && as_dir=.
23021 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23022 done
23025 esac
23026 # We did not find ourselves, most probably we were run as `sh COMMAND'
23027 # in which case we are not to be found in the path.
23028 if test "x$as_myself" = x; then
23029 as_myself=$0
23031 if test ! -f "$as_myself"; then
23032 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23033 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23034 { (exit 1); exit 1; }; }
23036 case $CONFIG_SHELL in
23038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23039 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23041 IFS=$as_save_IFS
23042 test -z "$as_dir" && as_dir=.
23043 for as_base in sh bash ksh sh5; do
23044 case $as_dir in
23046 if ("$as_dir/$as_base" -c '
23047 as_lineno_1=$LINENO
23048 as_lineno_2=$LINENO
23049 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23050 test "x$as_lineno_1" != "x$as_lineno_2" &&
23051 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23052 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23053 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23054 CONFIG_SHELL=$as_dir/$as_base
23055 export CONFIG_SHELL
23056 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23057 fi;;
23058 esac
23059 done
23060 done
23062 esac
23064 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23065 # uniformly replaced by the line number. The first 'sed' inserts a
23066 # line-number line before each line; the second 'sed' does the real
23067 # work. The second script uses 'N' to pair each line-number line
23068 # with the numbered line, and appends trailing '-' during
23069 # substitution so that $LINENO is not a special case at line end.
23070 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23071 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23072 sed '=' <$as_myself |
23073 sed '
23075 s,$,-,
23076 : loop
23077 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23078 t loop
23079 s,-$,,
23080 s,^['$as_cr_digits']*\n,,
23081 ' >$as_me.lineno &&
23082 chmod +x $as_me.lineno ||
23083 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23084 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23085 { (exit 1); exit 1; }; }
23087 # Don't try to exec as it changes $[0], causing all sort of problems
23088 # (the dirname of $[0] is not the place where we might find the
23089 # original and so on. Autoconf is especially sensible to this).
23090 . ./$as_me.lineno
23091 # Exit status is that of the last command.
23092 exit
23096 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23097 *c*,-n*) ECHO_N= ECHO_C='
23098 ' ECHO_T=' ' ;;
23099 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23100 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23101 esac
23103 if expr a : '\(a\)' >/dev/null 2>&1; then
23104 as_expr=expr
23105 else
23106 as_expr=false
23109 rm -f conf$$ conf$$.exe conf$$.file
23110 echo >conf$$.file
23111 if ln -s conf$$.file conf$$ 2>/dev/null; then
23112 # We could just check for DJGPP; but this test a) works b) is more generic
23113 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23114 if test -f conf$$.exe; then
23115 # Don't use ln at all; we don't have any links
23116 as_ln_s='cp -p'
23117 else
23118 as_ln_s='ln -s'
23120 elif ln conf$$.file conf$$ 2>/dev/null; then
23121 as_ln_s=ln
23122 else
23123 as_ln_s='cp -p'
23125 rm -f conf$$ conf$$.exe conf$$.file
23127 if mkdir -p . 2>/dev/null; then
23128 as_mkdir_p=:
23129 else
23130 test -d ./-p && rmdir ./-p
23131 as_mkdir_p=false
23134 as_executable_p="test -f"
23136 # Sed expression to map a string onto a valid CPP name.
23137 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23139 # Sed expression to map a string onto a valid variable name.
23140 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23143 # IFS
23144 # We need space, tab and new line, in precisely that order.
23145 as_nl='
23147 IFS=" $as_nl"
23149 # CDPATH.
23150 $as_unset CDPATH
23152 exec 6>&1
23154 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23155 # report actual input values of CONFIG_FILES etc. instead of their
23156 # values after options handling. Logging --version etc. is OK.
23157 exec 5>>config.log
23159 echo
23160 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23161 ## Running $as_me. ##
23162 _ASBOX
23163 } >&5
23164 cat >&5 <<_CSEOF
23166 This file was extended by python $as_me 2.6, which was
23167 generated by GNU Autoconf 2.59. Invocation command line was
23169 CONFIG_FILES = $CONFIG_FILES
23170 CONFIG_HEADERS = $CONFIG_HEADERS
23171 CONFIG_LINKS = $CONFIG_LINKS
23172 CONFIG_COMMANDS = $CONFIG_COMMANDS
23173 $ $0 $@
23175 _CSEOF
23176 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23177 echo >&5
23178 _ACEOF
23180 # Files that config.status was made for.
23181 if test -n "$ac_config_files"; then
23182 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23185 if test -n "$ac_config_headers"; then
23186 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23189 if test -n "$ac_config_links"; then
23190 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23193 if test -n "$ac_config_commands"; then
23194 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23197 cat >>$CONFIG_STATUS <<\_ACEOF
23199 ac_cs_usage="\
23200 \`$as_me' instantiates files from templates according to the
23201 current configuration.
23203 Usage: $0 [OPTIONS] [FILE]...
23205 -h, --help print this help, then exit
23206 -V, --version print version number, then exit
23207 -q, --quiet do not print progress messages
23208 -d, --debug don't remove temporary files
23209 --recheck update $as_me by reconfiguring in the same conditions
23210 --file=FILE[:TEMPLATE]
23211 instantiate the configuration file FILE
23212 --header=FILE[:TEMPLATE]
23213 instantiate the configuration header FILE
23215 Configuration files:
23216 $config_files
23218 Configuration headers:
23219 $config_headers
23221 Report bugs to <bug-autoconf@gnu.org>."
23222 _ACEOF
23224 cat >>$CONFIG_STATUS <<_ACEOF
23225 ac_cs_version="\\
23226 python config.status 2.6
23227 configured by $0, generated by GNU Autoconf 2.59,
23228 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23230 Copyright (C) 2003 Free Software Foundation, Inc.
23231 This config.status script is free software; the Free Software Foundation
23232 gives unlimited permission to copy, distribute and modify it."
23233 srcdir=$srcdir
23234 INSTALL="$INSTALL"
23235 _ACEOF
23237 cat >>$CONFIG_STATUS <<\_ACEOF
23238 # If no file are specified by the user, then we need to provide default
23239 # value. By we need to know if files were specified by the user.
23240 ac_need_defaults=:
23241 while test $# != 0
23243 case $1 in
23244 --*=*)
23245 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23246 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23247 ac_shift=:
23250 ac_option=$1
23251 ac_optarg=$2
23252 ac_shift=shift
23254 *) # This is not an option, so the user has probably given explicit
23255 # arguments.
23256 ac_option=$1
23257 ac_need_defaults=false;;
23258 esac
23260 case $ac_option in
23261 # Handling of the options.
23262 _ACEOF
23263 cat >>$CONFIG_STATUS <<\_ACEOF
23264 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23265 ac_cs_recheck=: ;;
23266 --version | --vers* | -V )
23267 echo "$ac_cs_version"; exit 0 ;;
23268 --he | --h)
23269 # Conflict between --help and --header
23270 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23271 Try \`$0 --help' for more information." >&5
23272 echo "$as_me: error: ambiguous option: $1
23273 Try \`$0 --help' for more information." >&2;}
23274 { (exit 1); exit 1; }; };;
23275 --help | --hel | -h )
23276 echo "$ac_cs_usage"; exit 0 ;;
23277 --debug | --d* | -d )
23278 debug=: ;;
23279 --file | --fil | --fi | --f )
23280 $ac_shift
23281 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23282 ac_need_defaults=false;;
23283 --header | --heade | --head | --hea )
23284 $ac_shift
23285 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23286 ac_need_defaults=false;;
23287 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23288 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23289 ac_cs_silent=: ;;
23291 # This is an error.
23292 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23293 Try \`$0 --help' for more information." >&5
23294 echo "$as_me: error: unrecognized option: $1
23295 Try \`$0 --help' for more information." >&2;}
23296 { (exit 1); exit 1; }; } ;;
23298 *) ac_config_targets="$ac_config_targets $1" ;;
23300 esac
23301 shift
23302 done
23304 ac_configure_extra_args=
23306 if $ac_cs_silent; then
23307 exec 6>/dev/null
23308 ac_configure_extra_args="$ac_configure_extra_args --silent"
23311 _ACEOF
23312 cat >>$CONFIG_STATUS <<_ACEOF
23313 if \$ac_cs_recheck; then
23314 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23315 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23318 _ACEOF
23324 cat >>$CONFIG_STATUS <<\_ACEOF
23325 for ac_config_target in $ac_config_targets
23327 case "$ac_config_target" in
23328 # Handling of arguments.
23329 "Mac/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
23330 "Mac/PythonLauncher/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
23331 "Mac/IDLE/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
23332 "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
23333 "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
23334 "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
23335 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23336 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23337 { (exit 1); exit 1; }; };;
23338 esac
23339 done
23341 # If the user did not use the arguments to specify the items to instantiate,
23342 # then the envvar interface is used. Set only those that are not.
23343 # We use the long form for the default assignment because of an extremely
23344 # bizarre bug on SunOS 4.1.3.
23345 if $ac_need_defaults; then
23346 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23347 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23350 # Have a temporary directory for convenience. Make it in the build tree
23351 # simply because there is no reason to put it here, and in addition,
23352 # creating and moving files from /tmp can sometimes cause problems.
23353 # Create a temporary directory, and hook for its removal unless debugging.
23354 $debug ||
23356 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23357 trap '{ (exit 1); exit 1; }' 1 2 13 15
23360 # Create a (secure) tmp directory for tmp files.
23363 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23364 test -n "$tmp" && test -d "$tmp"
23365 } ||
23367 tmp=./confstat$$-$RANDOM
23368 (umask 077 && mkdir $tmp)
23369 } ||
23371 echo "$me: cannot create a temporary directory in ." >&2
23372 { (exit 1); exit 1; }
23375 _ACEOF
23377 cat >>$CONFIG_STATUS <<_ACEOF
23380 # CONFIG_FILES section.
23383 # No need to generate the scripts if there are no CONFIG_FILES.
23384 # This happens for instance when ./config.status config.h
23385 if test -n "\$CONFIG_FILES"; then
23386 # Protect against being on the right side of a sed subst in config.status.
23387 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23388 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23389 s,@SHELL@,$SHELL,;t t
23390 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23391 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23392 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23393 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23394 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23395 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23396 s,@exec_prefix@,$exec_prefix,;t t
23397 s,@prefix@,$prefix,;t t
23398 s,@program_transform_name@,$program_transform_name,;t t
23399 s,@bindir@,$bindir,;t t
23400 s,@sbindir@,$sbindir,;t t
23401 s,@libexecdir@,$libexecdir,;t t
23402 s,@datadir@,$datadir,;t t
23403 s,@sysconfdir@,$sysconfdir,;t t
23404 s,@sharedstatedir@,$sharedstatedir,;t t
23405 s,@localstatedir@,$localstatedir,;t t
23406 s,@libdir@,$libdir,;t t
23407 s,@includedir@,$includedir,;t t
23408 s,@oldincludedir@,$oldincludedir,;t t
23409 s,@infodir@,$infodir,;t t
23410 s,@mandir@,$mandir,;t t
23411 s,@build_alias@,$build_alias,;t t
23412 s,@host_alias@,$host_alias,;t t
23413 s,@target_alias@,$target_alias,;t t
23414 s,@DEFS@,$DEFS,;t t
23415 s,@ECHO_C@,$ECHO_C,;t t
23416 s,@ECHO_N@,$ECHO_N,;t t
23417 s,@ECHO_T@,$ECHO_T,;t t
23418 s,@LIBS@,$LIBS,;t t
23419 s,@VERSION@,$VERSION,;t t
23420 s,@SOVERSION@,$SOVERSION,;t t
23421 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
23422 s,@UNIVERSALSDK@,$UNIVERSALSDK,;t t
23423 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
23424 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
23425 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
23426 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
23427 s,@FRAMEWORKINSTALLFIRST@,$FRAMEWORKINSTALLFIRST,;t t
23428 s,@FRAMEWORKINSTALLLAST@,$FRAMEWORKINSTALLLAST,;t t
23429 s,@FRAMEWORKALTINSTALLFIRST@,$FRAMEWORKALTINSTALLFIRST,;t t
23430 s,@FRAMEWORKALTINSTALLLAST@,$FRAMEWORKALTINSTALLLAST,;t t
23431 s,@FRAMEWORKUNIXTOOLSPREFIX@,$FRAMEWORKUNIXTOOLSPREFIX,;t t
23432 s,@MACHDEP@,$MACHDEP,;t t
23433 s,@SGI_ABI@,$SGI_ABI,;t t
23434 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
23435 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
23436 s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t
23437 s,@EXPORT_MACOSX_DEPLOYMENT_TARGET@,$EXPORT_MACOSX_DEPLOYMENT_TARGET,;t t
23438 s,@CC@,$CC,;t t
23439 s,@CFLAGS@,$CFLAGS,;t t
23440 s,@LDFLAGS@,$LDFLAGS,;t t
23441 s,@CPPFLAGS@,$CPPFLAGS,;t t
23442 s,@ac_ct_CC@,$ac_ct_CC,;t t
23443 s,@EXEEXT@,$EXEEXT,;t t
23444 s,@OBJEXT@,$OBJEXT,;t t
23445 s,@CXX@,$CXX,;t t
23446 s,@MAINCC@,$MAINCC,;t t
23447 s,@CPP@,$CPP,;t t
23448 s,@EGREP@,$EGREP,;t t
23449 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
23450 s,@LIBRARY@,$LIBRARY,;t t
23451 s,@LDLIBRARY@,$LDLIBRARY,;t t
23452 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
23453 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
23454 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
23455 s,@INSTSONAME@,$INSTSONAME,;t t
23456 s,@RUNSHARED@,$RUNSHARED,;t t
23457 s,@LINKCC@,$LINKCC,;t t
23458 s,@RANLIB@,$RANLIB,;t t
23459 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23460 s,@AR@,$AR,;t t
23461 s,@SVNVERSION@,$SVNVERSION,;t t
23462 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23463 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23464 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23465 s,@LN@,$LN,;t t
23466 s,@OPT@,$OPT,;t t
23467 s,@BASECFLAGS@,$BASECFLAGS,;t t
23468 s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t
23469 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
23470 s,@SO@,$SO,;t t
23471 s,@LDSHARED@,$LDSHARED,;t t
23472 s,@BLDSHARED@,$BLDSHARED,;t t
23473 s,@CCSHARED@,$CCSHARED,;t t
23474 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
23475 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
23476 s,@SHLIBS@,$SHLIBS,;t t
23477 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
23478 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
23479 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
23480 s,@LDLAST@,$LDLAST,;t t
23481 s,@THREADOBJ@,$THREADOBJ,;t t
23482 s,@DLINCLDIR@,$DLINCLDIR,;t t
23483 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
23484 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
23485 s,@TRUE@,$TRUE,;t t
23486 s,@LIBOBJS@,$LIBOBJS,;t t
23487 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
23488 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
23489 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
23490 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
23491 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
23492 s,@LIBM@,$LIBM,;t t
23493 s,@LIBC@,$LIBC,;t t
23494 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
23495 s,@THREADHEADERS@,$THREADHEADERS,;t t
23496 s,@SRCDIRS@,$SRCDIRS,;t t
23497 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23498 CEOF
23500 _ACEOF
23502 cat >>$CONFIG_STATUS <<\_ACEOF
23503 # Split the substitutions into bite-sized pieces for seds with
23504 # small command number limits, like on Digital OSF/1 and HP-UX.
23505 ac_max_sed_lines=48
23506 ac_sed_frag=1 # Number of current file.
23507 ac_beg=1 # First line for current file.
23508 ac_end=$ac_max_sed_lines # Line after last line for current file.
23509 ac_more_lines=:
23510 ac_sed_cmds=
23511 while $ac_more_lines; do
23512 if test $ac_beg -gt 1; then
23513 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23514 else
23515 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23517 if test ! -s $tmp/subs.frag; then
23518 ac_more_lines=false
23519 else
23520 # The purpose of the label and of the branching condition is to
23521 # speed up the sed processing (if there are no `@' at all, there
23522 # is no need to browse any of the substitutions).
23523 # These are the two extra sed commands mentioned above.
23524 (echo ':t
23525 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23526 if test -z "$ac_sed_cmds"; then
23527 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23528 else
23529 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23531 ac_sed_frag=`expr $ac_sed_frag + 1`
23532 ac_beg=$ac_end
23533 ac_end=`expr $ac_end + $ac_max_sed_lines`
23535 done
23536 if test -z "$ac_sed_cmds"; then
23537 ac_sed_cmds=cat
23539 fi # test -n "$CONFIG_FILES"
23541 _ACEOF
23542 cat >>$CONFIG_STATUS <<\_ACEOF
23543 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23544 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23545 case $ac_file in
23546 - | *:- | *:-:* ) # input from stdin
23547 cat >$tmp/stdin
23548 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23549 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23550 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23551 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23552 * ) ac_file_in=$ac_file.in ;;
23553 esac
23555 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23556 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23557 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23558 X"$ac_file" : 'X\(//\)[^/]' \| \
23559 X"$ac_file" : 'X\(//\)$' \| \
23560 X"$ac_file" : 'X\(/\)' \| \
23561 . : '\(.\)' 2>/dev/null ||
23562 echo X"$ac_file" |
23563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23564 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23565 /^X\(\/\/\)$/{ s//\1/; q; }
23566 /^X\(\/\).*/{ s//\1/; q; }
23567 s/.*/./; q'`
23568 { if $as_mkdir_p; then
23569 mkdir -p "$ac_dir"
23570 else
23571 as_dir="$ac_dir"
23572 as_dirs=
23573 while test ! -d "$as_dir"; do
23574 as_dirs="$as_dir $as_dirs"
23575 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23576 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23577 X"$as_dir" : 'X\(//\)[^/]' \| \
23578 X"$as_dir" : 'X\(//\)$' \| \
23579 X"$as_dir" : 'X\(/\)' \| \
23580 . : '\(.\)' 2>/dev/null ||
23581 echo X"$as_dir" |
23582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23583 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23584 /^X\(\/\/\)$/{ s//\1/; q; }
23585 /^X\(\/\).*/{ s//\1/; q; }
23586 s/.*/./; q'`
23587 done
23588 test ! -n "$as_dirs" || mkdir $as_dirs
23589 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23590 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23591 { (exit 1); exit 1; }; }; }
23593 ac_builddir=.
23595 if test "$ac_dir" != .; then
23596 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23597 # A "../" for each directory in $ac_dir_suffix.
23598 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23599 else
23600 ac_dir_suffix= ac_top_builddir=
23603 case $srcdir in
23604 .) # No --srcdir option. We are building in place.
23605 ac_srcdir=.
23606 if test -z "$ac_top_builddir"; then
23607 ac_top_srcdir=.
23608 else
23609 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23610 fi ;;
23611 [\\/]* | ?:[\\/]* ) # Absolute path.
23612 ac_srcdir=$srcdir$ac_dir_suffix;
23613 ac_top_srcdir=$srcdir ;;
23614 *) # Relative path.
23615 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23616 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23617 esac
23619 # Do not use `cd foo && pwd` to compute absolute paths, because
23620 # the directories may not exist.
23621 case `pwd` in
23622 .) ac_abs_builddir="$ac_dir";;
23624 case "$ac_dir" in
23625 .) ac_abs_builddir=`pwd`;;
23626 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23627 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23628 esac;;
23629 esac
23630 case $ac_abs_builddir in
23631 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23633 case ${ac_top_builddir}. in
23634 .) ac_abs_top_builddir=$ac_abs_builddir;;
23635 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23636 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23637 esac;;
23638 esac
23639 case $ac_abs_builddir in
23640 .) ac_abs_srcdir=$ac_srcdir;;
23642 case $ac_srcdir in
23643 .) ac_abs_srcdir=$ac_abs_builddir;;
23644 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23645 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23646 esac;;
23647 esac
23648 case $ac_abs_builddir in
23649 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23651 case $ac_top_srcdir in
23652 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23653 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23654 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23655 esac;;
23656 esac
23659 case $INSTALL in
23660 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23661 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23662 esac
23664 if test x"$ac_file" != x-; then
23665 { echo "$as_me:$LINENO: creating $ac_file" >&5
23666 echo "$as_me: creating $ac_file" >&6;}
23667 rm -f "$ac_file"
23669 # Let's still pretend it is `configure' which instantiates (i.e., don't
23670 # use $as_me), people would be surprised to read:
23671 # /* config.h. Generated by config.status. */
23672 if test x"$ac_file" = x-; then
23673 configure_input=
23674 else
23675 configure_input="$ac_file. "
23677 configure_input=$configure_input"Generated from `echo $ac_file_in |
23678 sed 's,.*/,,'` by configure."
23680 # First look for the input files in the build tree, otherwise in the
23681 # src tree.
23682 ac_file_inputs=`IFS=:
23683 for f in $ac_file_in; do
23684 case $f in
23685 -) echo $tmp/stdin ;;
23686 [\\/$]*)
23687 # Absolute (can't be DOS-style, as IFS=:)
23688 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23689 echo "$as_me: error: cannot find input file: $f" >&2;}
23690 { (exit 1); exit 1; }; }
23691 echo "$f";;
23692 *) # Relative
23693 if test -f "$f"; then
23694 # Build tree
23695 echo "$f"
23696 elif test -f "$srcdir/$f"; then
23697 # Source tree
23698 echo "$srcdir/$f"
23699 else
23700 # /dev/null tree
23701 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23702 echo "$as_me: error: cannot find input file: $f" >&2;}
23703 { (exit 1); exit 1; }; }
23704 fi;;
23705 esac
23706 done` || { (exit 1); exit 1; }
23707 _ACEOF
23708 cat >>$CONFIG_STATUS <<_ACEOF
23709 sed "$ac_vpsub
23710 $extrasub
23711 _ACEOF
23712 cat >>$CONFIG_STATUS <<\_ACEOF
23714 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23715 s,@configure_input@,$configure_input,;t t
23716 s,@srcdir@,$ac_srcdir,;t t
23717 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23718 s,@top_srcdir@,$ac_top_srcdir,;t t
23719 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23720 s,@builddir@,$ac_builddir,;t t
23721 s,@abs_builddir@,$ac_abs_builddir,;t t
23722 s,@top_builddir@,$ac_top_builddir,;t t
23723 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23724 s,@INSTALL@,$ac_INSTALL,;t t
23725 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23726 rm -f $tmp/stdin
23727 if test x"$ac_file" != x-; then
23728 mv $tmp/out $ac_file
23729 else
23730 cat $tmp/out
23731 rm -f $tmp/out
23734 done
23735 _ACEOF
23736 cat >>$CONFIG_STATUS <<\_ACEOF
23739 # CONFIG_HEADER section.
23742 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23743 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23745 # ac_d sets the value in "#define NAME VALUE" lines.
23746 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23747 ac_dB='[ ].*$,\1#\2'
23748 ac_dC=' '
23749 ac_dD=',;t'
23750 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23751 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23752 ac_uB='$,\1#\2define\3'
23753 ac_uC=' '
23754 ac_uD=',;t'
23756 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23757 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23758 case $ac_file in
23759 - | *:- | *:-:* ) # input from stdin
23760 cat >$tmp/stdin
23761 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23762 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23763 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23764 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23765 * ) ac_file_in=$ac_file.in ;;
23766 esac
23768 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23769 echo "$as_me: creating $ac_file" >&6;}
23771 # First look for the input files in the build tree, otherwise in the
23772 # src tree.
23773 ac_file_inputs=`IFS=:
23774 for f in $ac_file_in; do
23775 case $f in
23776 -) echo $tmp/stdin ;;
23777 [\\/$]*)
23778 # Absolute (can't be DOS-style, as IFS=:)
23779 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23780 echo "$as_me: error: cannot find input file: $f" >&2;}
23781 { (exit 1); exit 1; }; }
23782 # Do quote $f, to prevent DOS paths from being IFS'd.
23783 echo "$f";;
23784 *) # Relative
23785 if test -f "$f"; then
23786 # Build tree
23787 echo "$f"
23788 elif test -f "$srcdir/$f"; then
23789 # Source tree
23790 echo "$srcdir/$f"
23791 else
23792 # /dev/null tree
23793 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23794 echo "$as_me: error: cannot find input file: $f" >&2;}
23795 { (exit 1); exit 1; }; }
23796 fi;;
23797 esac
23798 done` || { (exit 1); exit 1; }
23799 # Remove the trailing spaces.
23800 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23802 _ACEOF
23804 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23805 # `conftest.undefs', that substitutes the proper values into
23806 # config.h.in to produce config.h. The first handles `#define'
23807 # templates, and the second `#undef' templates.
23808 # And first: Protect against being on the right side of a sed subst in
23809 # config.status. Protect against being in an unquoted here document
23810 # in config.status.
23811 rm -f conftest.defines conftest.undefs
23812 # Using a here document instead of a string reduces the quoting nightmare.
23813 # Putting comments in sed scripts is not portable.
23815 # `end' is used to avoid that the second main sed command (meant for
23816 # 0-ary CPP macros) applies to n-ary macro definitions.
23817 # See the Autoconf documentation for `clear'.
23818 cat >confdef2sed.sed <<\_ACEOF
23819 s/[\\&,]/\\&/g
23820 s,[\\$`],\\&,g
23821 t clear
23822 : clear
23823 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23824 t end
23825 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23826 : end
23827 _ACEOF
23828 # If some macros were called several times there might be several times
23829 # the same #defines, which is useless. Nevertheless, we may not want to
23830 # sort them, since we want the *last* AC-DEFINE to be honored.
23831 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23832 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23833 rm -f confdef2sed.sed
23835 # This sed command replaces #undef with comments. This is necessary, for
23836 # example, in the case of _POSIX_SOURCE, which is predefined and required
23837 # on some systems where configure will not decide to define it.
23838 cat >>conftest.undefs <<\_ACEOF
23839 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23840 _ACEOF
23842 # Break up conftest.defines because some shells have a limit on the size
23843 # of here documents, and old seds have small limits too (100 cmds).
23844 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23845 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23846 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23847 echo ' :' >>$CONFIG_STATUS
23848 rm -f conftest.tail
23849 while grep . conftest.defines >/dev/null
23851 # Write a limited-size here document to $tmp/defines.sed.
23852 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23853 # Speed up: don't consider the non `#define' lines.
23854 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23855 # Work around the forget-to-reset-the-flag bug.
23856 echo 't clr' >>$CONFIG_STATUS
23857 echo ': clr' >>$CONFIG_STATUS
23858 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23859 echo 'CEOF
23860 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23861 rm -f $tmp/in
23862 mv $tmp/out $tmp/in
23863 ' >>$CONFIG_STATUS
23864 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23865 rm -f conftest.defines
23866 mv conftest.tail conftest.defines
23867 done
23868 rm -f conftest.defines
23869 echo ' fi # grep' >>$CONFIG_STATUS
23870 echo >>$CONFIG_STATUS
23872 # Break up conftest.undefs because some shells have a limit on the size
23873 # of here documents, and old seds have small limits too (100 cmds).
23874 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23875 rm -f conftest.tail
23876 while grep . conftest.undefs >/dev/null
23878 # Write a limited-size here document to $tmp/undefs.sed.
23879 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23880 # Speed up: don't consider the non `#undef'
23881 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23882 # Work around the forget-to-reset-the-flag bug.
23883 echo 't clr' >>$CONFIG_STATUS
23884 echo ': clr' >>$CONFIG_STATUS
23885 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23886 echo 'CEOF
23887 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23888 rm -f $tmp/in
23889 mv $tmp/out $tmp/in
23890 ' >>$CONFIG_STATUS
23891 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23892 rm -f conftest.undefs
23893 mv conftest.tail conftest.undefs
23894 done
23895 rm -f conftest.undefs
23897 cat >>$CONFIG_STATUS <<\_ACEOF
23898 # Let's still pretend it is `configure' which instantiates (i.e., don't
23899 # use $as_me), people would be surprised to read:
23900 # /* config.h. Generated by config.status. */
23901 if test x"$ac_file" = x-; then
23902 echo "/* Generated by configure. */" >$tmp/config.h
23903 else
23904 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23906 cat $tmp/in >>$tmp/config.h
23907 rm -f $tmp/in
23908 if test x"$ac_file" != x-; then
23909 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23910 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23911 echo "$as_me: $ac_file is unchanged" >&6;}
23912 else
23913 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23914 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23915 X"$ac_file" : 'X\(//\)[^/]' \| \
23916 X"$ac_file" : 'X\(//\)$' \| \
23917 X"$ac_file" : 'X\(/\)' \| \
23918 . : '\(.\)' 2>/dev/null ||
23919 echo X"$ac_file" |
23920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23921 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23922 /^X\(\/\/\)$/{ s//\1/; q; }
23923 /^X\(\/\).*/{ s//\1/; q; }
23924 s/.*/./; q'`
23925 { if $as_mkdir_p; then
23926 mkdir -p "$ac_dir"
23927 else
23928 as_dir="$ac_dir"
23929 as_dirs=
23930 while test ! -d "$as_dir"; do
23931 as_dirs="$as_dir $as_dirs"
23932 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23933 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23934 X"$as_dir" : 'X\(//\)[^/]' \| \
23935 X"$as_dir" : 'X\(//\)$' \| \
23936 X"$as_dir" : 'X\(/\)' \| \
23937 . : '\(.\)' 2>/dev/null ||
23938 echo X"$as_dir" |
23939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23940 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23941 /^X\(\/\/\)$/{ s//\1/; q; }
23942 /^X\(\/\).*/{ s//\1/; q; }
23943 s/.*/./; q'`
23944 done
23945 test ! -n "$as_dirs" || mkdir $as_dirs
23946 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23947 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23948 { (exit 1); exit 1; }; }; }
23950 rm -f $ac_file
23951 mv $tmp/config.h $ac_file
23953 else
23954 cat $tmp/config.h
23955 rm -f $tmp/config.h
23957 done
23958 _ACEOF
23960 cat >>$CONFIG_STATUS <<\_ACEOF
23962 { (exit 0); exit 0; }
23963 _ACEOF
23964 chmod +x $CONFIG_STATUS
23965 ac_clean_files=$ac_clean_files_save
23968 # configure is writing to config.log, and then calls config.status.
23969 # config.status does its own redirection, appending to config.log.
23970 # Unfortunately, on DOS this fails, as config.log is still kept open
23971 # by configure, so config.status won't be able to write to it; its
23972 # output is simply discarded. So we exec the FD to /dev/null,
23973 # effectively closing config.log, so it can be properly (re)opened and
23974 # appended to by config.status. When coming back to configure, we
23975 # need to make the FD available again.
23976 if test "$no_create" != yes; then
23977 ac_cs_success=:
23978 ac_config_status_args=
23979 test "$silent" = yes &&
23980 ac_config_status_args="$ac_config_status_args --quiet"
23981 exec 5>/dev/null
23982 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23983 exec 5>>config.log
23984 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23985 # would make configure fail if this is the last instruction.
23986 $ac_cs_success || { (exit 1); exit 1; }
23990 echo "creating Modules/Setup"
23991 if test ! -f Modules/Setup
23992 then
23993 cp $srcdir/Modules/Setup.dist Modules/Setup
23996 echo "creating Modules/Setup.local"
23997 if test ! -f Modules/Setup.local
23998 then
23999 echo "# Edit this file for local setup changes" >Modules/Setup.local
24002 echo "creating Makefile"
24003 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
24004 -s Modules Modules/Setup.config \
24005 Modules/Setup.local Modules/Setup
24006 mv config.c Modules