2006-03-20 Thomas Koenig <Thomas.Koenig@online.de>
[official-gcc.git] / libcpp / configure
blob3b25bdc7e2b1d0ca1f179bf6ea8d15bfc9640ac7
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for cpplib .
5 # Report bugs to <gcc-bugs@gcc.gnu.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251 exec 6>&1
254 # Initializations.
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='cpplib'
271 PACKAGE_TARNAME='cpplib'
272 PACKAGE_VERSION=' '
273 PACKAGE_STRING='cpplib '
274 PACKAGE_BUGREPORT='gcc-bugs@gcc.gnu.org'
276 ac_unique_file="ucnid.h"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 # include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 # include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 # include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
314 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT RANLIB ac_ct_RANLIB ACLOCAL AUTOCONF AUTOHEADER WARN_CFLAGS WARN_PEDANTIC WERROR am__leading_dot DEPDIR CCDEPMODE CPP EGREP LIBOBJS ALLOCA USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS LIBICONV LTLIBICONV PACKAGE USED_CATALOGS MAINT LTLIBOBJS'
315 ac_subst_files=''
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
355 ac_prev=
356 for ac_option
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
369 case $ac_option in
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
388 --config-cache | -C)
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
588 -with-* | --with-*)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 esac
652 done
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669 done
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681 done
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
727 else
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
777 # Report the --help message.
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
782 cat <<_ACEOF
783 \`configure' configures cpplib to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
792 Configuration:
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 _ACEOF
805 cat <<_ACEOF
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
808 [$ac_default_prefix]
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 [PREFIX]
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
832 _ACEOF
834 cat <<\_ACEOF
836 System types:
837 --build=BUILD configure for building on BUILD [guessed]
838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
839 --target=TARGET configure for building compilers for TARGET [HOST]
840 _ACEOF
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of cpplib :";;
846 esac
847 cat <<\_ACEOF
849 Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-werror-always enable -Werror despite compiler version
853 --disable-rpath do not hardcode runtime library paths
854 --enable-maintainer-mode enable rules only needed by maintainers
855 --enable-checking enable expensive run-time checks
857 Optional Packages:
858 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
859 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
860 --with-gnu-ld assume the C compiler uses GNU ld default=no
861 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
862 --without-libiconv-prefix don't search for libiconv in includedir and libdir
864 Some influential environment variables:
865 CC C compiler command
866 CFLAGS C compiler flags
867 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
868 nonstandard directory <lib dir>
869 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
870 headers in a nonstandard directory <include dir>
871 CPP C preprocessor
873 Use these variables to override the choices made by `configure' or to help
874 it to find libraries and programs with nonstandard names/locations.
876 Report bugs to <gcc-bugs@gcc.gnu.org>.
877 _ACEOF
880 if test "$ac_init_help" = "recursive"; then
881 # If there are subdirs, report their specific --help.
882 ac_popdir=`pwd`
883 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
884 test -d $ac_dir || continue
885 ac_builddir=.
887 if test "$ac_dir" != .; then
888 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
889 # A "../" for each directory in $ac_dir_suffix.
890 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
891 else
892 ac_dir_suffix= ac_top_builddir=
895 case $srcdir in
896 .) # No --srcdir option. We are building in place.
897 ac_srcdir=.
898 if test -z "$ac_top_builddir"; then
899 ac_top_srcdir=.
900 else
901 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
902 fi ;;
903 [\\/]* | ?:[\\/]* ) # Absolute path.
904 ac_srcdir=$srcdir$ac_dir_suffix;
905 ac_top_srcdir=$srcdir ;;
906 *) # Relative path.
907 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
908 ac_top_srcdir=$ac_top_builddir$srcdir ;;
909 esac
911 # Do not use `cd foo && pwd` to compute absolute paths, because
912 # the directories may not exist.
913 case `pwd` in
914 .) ac_abs_builddir="$ac_dir";;
916 case "$ac_dir" in
917 .) ac_abs_builddir=`pwd`;;
918 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
919 *) ac_abs_builddir=`pwd`/"$ac_dir";;
920 esac;;
921 esac
922 case $ac_abs_builddir in
923 .) ac_abs_top_builddir=${ac_top_builddir}.;;
925 case ${ac_top_builddir}. in
926 .) ac_abs_top_builddir=$ac_abs_builddir;;
927 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
928 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
929 esac;;
930 esac
931 case $ac_abs_builddir in
932 .) ac_abs_srcdir=$ac_srcdir;;
934 case $ac_srcdir in
935 .) ac_abs_srcdir=$ac_abs_builddir;;
936 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
937 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
938 esac;;
939 esac
940 case $ac_abs_builddir in
941 .) ac_abs_top_srcdir=$ac_top_srcdir;;
943 case $ac_top_srcdir in
944 .) ac_abs_top_srcdir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
946 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
947 esac;;
948 esac
950 cd $ac_dir
951 # Check for guested configure; otherwise get Cygnus style configure.
952 if test -f $ac_srcdir/configure.gnu; then
953 echo
954 $SHELL $ac_srcdir/configure.gnu --help=recursive
955 elif test -f $ac_srcdir/configure; then
956 echo
957 $SHELL $ac_srcdir/configure --help=recursive
958 elif test -f $ac_srcdir/configure.ac ||
959 test -f $ac_srcdir/configure.in; then
960 echo
961 $ac_configure --help
962 else
963 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
965 cd $ac_popdir
966 done
969 test -n "$ac_init_help" && exit 0
970 if $ac_init_version; then
971 cat <<\_ACEOF
972 cpplib configure
973 generated by GNU Autoconf 2.59
975 Copyright (C) 2003 Free Software Foundation, Inc.
976 This configure script is free software; the Free Software Foundation
977 gives unlimited permission to copy, distribute and modify it.
978 _ACEOF
979 exit 0
981 exec 5>config.log
982 cat >&5 <<_ACEOF
983 This file contains any messages produced by compilers while
984 running configure, to aid debugging if configure makes a mistake.
986 It was created by cpplib $as_me , which was
987 generated by GNU Autoconf 2.59. Invocation command line was
989 $ $0 $@
991 _ACEOF
993 cat <<_ASUNAME
994 ## --------- ##
995 ## Platform. ##
996 ## --------- ##
998 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
999 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1000 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1001 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1002 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1004 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1005 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1007 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1008 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1009 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1010 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1011 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1012 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1013 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1015 _ASUNAME
1017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1018 for as_dir in $PATH
1020 IFS=$as_save_IFS
1021 test -z "$as_dir" && as_dir=.
1022 echo "PATH: $as_dir"
1023 done
1025 } >&5
1027 cat >&5 <<_ACEOF
1030 ## ----------- ##
1031 ## Core tests. ##
1032 ## ----------- ##
1034 _ACEOF
1037 # Keep a trace of the command line.
1038 # Strip out --no-create and --no-recursion so they do not pile up.
1039 # Strip out --silent because we don't want to record it for future runs.
1040 # Also quote any args containing shell meta-characters.
1041 # Make two passes to allow for proper duplicate-argument suppression.
1042 ac_configure_args=
1043 ac_configure_args0=
1044 ac_configure_args1=
1045 ac_sep=
1046 ac_must_keep_next=false
1047 for ac_pass in 1 2
1049 for ac_arg
1051 case $ac_arg in
1052 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054 | -silent | --silent | --silen | --sile | --sil)
1055 continue ;;
1056 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1057 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1058 esac
1059 case $ac_pass in
1060 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1062 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1063 if test $ac_must_keep_next = true; then
1064 ac_must_keep_next=false # Got value, back to normal.
1065 else
1066 case $ac_arg in
1067 *=* | --config-cache | -C | -disable-* | --disable-* \
1068 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1069 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1070 | -with-* | --with-* | -without-* | --without-* | --x)
1071 case "$ac_configure_args0 " in
1072 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1073 esac
1075 -* ) ac_must_keep_next=true ;;
1076 esac
1078 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1079 # Get rid of the leading space.
1080 ac_sep=" "
1082 esac
1083 done
1084 done
1085 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1086 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1088 # When interrupted or exit'd, cleanup temporary files, and complete
1089 # config.log. We remove comments because anyway the quotes in there
1090 # would cause problems or look ugly.
1091 # WARNING: Be sure not to use single quotes in there, as some shells,
1092 # such as our DU 5.0 friend, will then `close' the trap.
1093 trap 'exit_status=$?
1094 # Save into config.log some information that might help in debugging.
1096 echo
1098 cat <<\_ASBOX
1099 ## ---------------- ##
1100 ## Cache variables. ##
1101 ## ---------------- ##
1102 _ASBOX
1103 echo
1104 # The following way of writing the cache mishandles newlines in values,
1106 (set) 2>&1 |
1107 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1108 *ac_space=\ *)
1109 sed -n \
1110 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1114 sed -n \
1115 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1117 esac;
1119 echo
1121 cat <<\_ASBOX
1122 ## ----------------- ##
1123 ## Output variables. ##
1124 ## ----------------- ##
1125 _ASBOX
1126 echo
1127 for ac_var in $ac_subst_vars
1129 eval ac_val=$`echo $ac_var`
1130 echo "$ac_var='"'"'$ac_val'"'"'"
1131 done | sort
1132 echo
1134 if test -n "$ac_subst_files"; then
1135 cat <<\_ASBOX
1136 ## ------------- ##
1137 ## Output files. ##
1138 ## ------------- ##
1139 _ASBOX
1140 echo
1141 for ac_var in $ac_subst_files
1143 eval ac_val=$`echo $ac_var`
1144 echo "$ac_var='"'"'$ac_val'"'"'"
1145 done | sort
1146 echo
1149 if test -s confdefs.h; then
1150 cat <<\_ASBOX
1151 ## ----------- ##
1152 ## confdefs.h. ##
1153 ## ----------- ##
1154 _ASBOX
1155 echo
1156 sed "/^$/d" confdefs.h | sort
1157 echo
1159 test "$ac_signal" != 0 &&
1160 echo "$as_me: caught signal $ac_signal"
1161 echo "$as_me: exit $exit_status"
1162 } >&5
1163 rm -f core *.core &&
1164 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1165 exit $exit_status
1167 for ac_signal in 1 2 13 15; do
1168 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1169 done
1170 ac_signal=0
1172 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1173 rm -rf conftest* confdefs.h
1174 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1175 echo >confdefs.h
1177 # Predefined preprocessor variables.
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_NAME "$PACKAGE_NAME"
1181 _ACEOF
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1186 _ACEOF
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1191 _ACEOF
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_STRING "$PACKAGE_STRING"
1196 _ACEOF
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1201 _ACEOF
1204 # Let the site file select an alternate cache file if it wants to.
1205 # Prefer explicitly selected file to automatically selected ones.
1206 if test -z "$CONFIG_SITE"; then
1207 if test "x$prefix" != xNONE; then
1208 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1209 else
1210 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1213 for ac_site_file in $CONFIG_SITE; do
1214 if test -r "$ac_site_file"; then
1215 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1216 echo "$as_me: loading site script $ac_site_file" >&6;}
1217 sed 's/^/| /' "$ac_site_file" >&5
1218 . "$ac_site_file"
1220 done
1222 if test -r "$cache_file"; then
1223 # Some versions of bash will fail to source /dev/null (special
1224 # files actually), so we avoid doing that.
1225 if test -f "$cache_file"; then
1226 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1227 echo "$as_me: loading cache $cache_file" >&6;}
1228 case $cache_file in
1229 [\\/]* | ?:[\\/]* ) . $cache_file;;
1230 *) . ./$cache_file;;
1231 esac
1233 else
1234 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1235 echo "$as_me: creating cache $cache_file" >&6;}
1236 >$cache_file
1239 # Check that the precious variables saved in the cache have kept the same
1240 # value.
1241 ac_cache_corrupted=false
1242 for ac_var in `(set) 2>&1 |
1243 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1244 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1245 eval ac_new_set=\$ac_env_${ac_var}_set
1246 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1247 eval ac_new_val="\$ac_env_${ac_var}_value"
1248 case $ac_old_set,$ac_new_set in
1249 set,)
1250 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1252 ac_cache_corrupted=: ;;
1253 ,set)
1254 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1255 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1256 ac_cache_corrupted=: ;;
1257 ,);;
1259 if test "x$ac_old_val" != "x$ac_new_val"; then
1260 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1261 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1262 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1263 echo "$as_me: former value: $ac_old_val" >&2;}
1264 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1265 echo "$as_me: current value: $ac_new_val" >&2;}
1266 ac_cache_corrupted=:
1267 fi;;
1268 esac
1269 # Pass precious variables to config.status.
1270 if test "$ac_new_set" = set; then
1271 case $ac_new_val in
1272 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1273 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1274 *) ac_arg=$ac_var=$ac_new_val ;;
1275 esac
1276 case " $ac_configure_args " in
1277 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1278 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1279 esac
1281 done
1282 if $ac_cache_corrupted; then
1283 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1284 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1285 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1286 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1287 { (exit 1); exit 1; }; }
1290 ac_ext=c
1291 ac_cpp='$CPP $CPPFLAGS'
1292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1323 case ../config in
1324 [\\/]* | ?:[\\/]* ) ac_macro_dir=../config ;;
1325 *) ac_macro_dir=$srcdir/../config ;;
1326 esac
1327 if test -d "$ac_macro_dir"; then :
1328 else
1329 { { echo "$as_me:$LINENO: error: cannot find macro directory \`../config'" >&5
1330 echo "$as_me: error: cannot find macro directory \`../config'" >&2;}
1331 { (exit 1); exit 1; }; }
1334 ac_aux_dir=
1335 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1336 if test -f $ac_dir/install-sh; then
1337 ac_aux_dir=$ac_dir
1338 ac_install_sh="$ac_aux_dir/install-sh -c"
1339 break
1340 elif test -f $ac_dir/install.sh; then
1341 ac_aux_dir=$ac_dir
1342 ac_install_sh="$ac_aux_dir/install.sh -c"
1343 break
1344 elif test -f $ac_dir/shtool; then
1345 ac_aux_dir=$ac_dir
1346 ac_install_sh="$ac_aux_dir/shtool install -c"
1347 break
1349 done
1350 if test -z "$ac_aux_dir"; then
1351 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1352 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1353 { (exit 1); exit 1; }; }
1355 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1356 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1357 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1359 # Make sure we can run config.sub.
1360 $ac_config_sub sun4 >/dev/null 2>&1 ||
1361 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1362 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1363 { (exit 1); exit 1; }; }
1365 echo "$as_me:$LINENO: checking build system type" >&5
1366 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1367 if test "${ac_cv_build+set}" = set; then
1368 echo $ECHO_N "(cached) $ECHO_C" >&6
1369 else
1370 ac_cv_build_alias=$build_alias
1371 test -z "$ac_cv_build_alias" &&
1372 ac_cv_build_alias=`$ac_config_guess`
1373 test -z "$ac_cv_build_alias" &&
1374 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1375 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1376 { (exit 1); exit 1; }; }
1377 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1378 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1379 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1380 { (exit 1); exit 1; }; }
1383 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1384 echo "${ECHO_T}$ac_cv_build" >&6
1385 build=$ac_cv_build
1386 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1387 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1388 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1391 echo "$as_me:$LINENO: checking host system type" >&5
1392 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1393 if test "${ac_cv_host+set}" = set; then
1394 echo $ECHO_N "(cached) $ECHO_C" >&6
1395 else
1396 ac_cv_host_alias=$host_alias
1397 test -z "$ac_cv_host_alias" &&
1398 ac_cv_host_alias=$ac_cv_build_alias
1399 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1400 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1401 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1402 { (exit 1); exit 1; }; }
1405 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1406 echo "${ECHO_T}$ac_cv_host" >&6
1407 host=$ac_cv_host
1408 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1409 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1410 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1413 echo "$as_me:$LINENO: checking target system type" >&5
1414 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1415 if test "${ac_cv_target+set}" = set; then
1416 echo $ECHO_N "(cached) $ECHO_C" >&6
1417 else
1418 ac_cv_target_alias=$target_alias
1419 test "x$ac_cv_target_alias" = "x" &&
1420 ac_cv_target_alias=$ac_cv_host_alias
1421 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1422 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1423 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1424 { (exit 1); exit 1; }; }
1427 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1428 echo "${ECHO_T}$ac_cv_target" >&6
1429 target=$ac_cv_target
1430 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1431 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1432 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1435 # The aliases save the names the user supplied, while $host etc.
1436 # will get canonicalized.
1437 test -n "$target_alias" &&
1438 test "$program_prefix$program_suffix$program_transform_name" = \
1439 NONENONEs,x,x, &&
1440 program_prefix=${target_alias}-
1442 # Checks for programs.
1443 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1444 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1445 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1446 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1447 echo $ECHO_N "(cached) $ECHO_C" >&6
1448 else
1449 cat >conftest.make <<\_ACEOF
1450 all:
1451 @echo 'ac_maketemp="$(MAKE)"'
1452 _ACEOF
1453 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1454 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1455 if test -n "$ac_maketemp"; then
1456 eval ac_cv_prog_make_${ac_make}_set=yes
1457 else
1458 eval ac_cv_prog_make_${ac_make}_set=no
1460 rm -f conftest.make
1462 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1463 echo "$as_me:$LINENO: result: yes" >&5
1464 echo "${ECHO_T}yes" >&6
1465 SET_MAKE=
1466 else
1467 echo "$as_me:$LINENO: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1469 SET_MAKE="MAKE=${MAKE-make}"
1472 # Find a good install program. We prefer a C program (faster),
1473 # so one script is as good as another. But avoid the broken or
1474 # incompatible versions:
1475 # SysV /etc/install, /usr/sbin/install
1476 # SunOS /usr/etc/install
1477 # IRIX /sbin/install
1478 # AIX /bin/install
1479 # AmigaOS /C/install, which installs bootblocks on floppy discs
1480 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1481 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1482 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1483 # OS/2's system install, which has a completely different semantic
1484 # ./install, which can be erroneously created by make from ./install.sh.
1485 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1486 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1487 if test -z "$INSTALL"; then
1488 if test "${ac_cv_path_install+set}" = set; then
1489 echo $ECHO_N "(cached) $ECHO_C" >&6
1490 else
1491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492 for as_dir in $PATH
1494 IFS=$as_save_IFS
1495 test -z "$as_dir" && as_dir=.
1496 # Account for people who put trailing slashes in PATH elements.
1497 case $as_dir/ in
1498 ./ | .// | /cC/* | \
1499 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1500 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1501 /usr/ucb/* ) ;;
1503 # OSF1 and SCO ODT 3.0 have their own names for install.
1504 # Don't use installbsd from OSF since it installs stuff as root
1505 # by default.
1506 for ac_prog in ginstall scoinst install; do
1507 for ac_exec_ext in '' $ac_executable_extensions; do
1508 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1509 if test $ac_prog = install &&
1510 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1511 # AIX install. It has an incompatible calling convention.
1513 elif test $ac_prog = install &&
1514 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1515 # program-specific install script used by HP pwplus--don't use.
1517 else
1518 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1519 break 3
1522 done
1523 done
1525 esac
1526 done
1530 if test "${ac_cv_path_install+set}" = set; then
1531 INSTALL=$ac_cv_path_install
1532 else
1533 # As a last resort, use the slow shell script. We don't cache a
1534 # path for INSTALL within a source directory, because that will
1535 # break other packages using the cache if that directory is
1536 # removed, or if the path is relative.
1537 INSTALL=$ac_install_sh
1540 echo "$as_me:$LINENO: result: $INSTALL" >&5
1541 echo "${ECHO_T}$INSTALL" >&6
1543 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1544 # It thinks the first close brace ends the variable substitution.
1545 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1547 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1549 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1551 ac_ext=c
1552 ac_cpp='$CPP $CPPFLAGS'
1553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1556 if test -n "$ac_tool_prefix"; then
1557 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1558 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1559 echo "$as_me:$LINENO: checking for $ac_word" >&5
1560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1561 if test "${ac_cv_prog_CC+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 else
1564 if test -n "$CC"; then
1565 ac_cv_prog_CC="$CC" # Let the user override the test.
1566 else
1567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1568 for as_dir in $PATH
1570 IFS=$as_save_IFS
1571 test -z "$as_dir" && as_dir=.
1572 for ac_exec_ext in '' $ac_executable_extensions; do
1573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1574 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1576 break 2
1578 done
1579 done
1583 CC=$ac_cv_prog_CC
1584 if test -n "$CC"; then
1585 echo "$as_me:$LINENO: result: $CC" >&5
1586 echo "${ECHO_T}$CC" >&6
1587 else
1588 echo "$as_me:$LINENO: result: no" >&5
1589 echo "${ECHO_T}no" >&6
1593 if test -z "$ac_cv_prog_CC"; then
1594 ac_ct_CC=$CC
1595 # Extract the first word of "gcc", so it can be a program name with args.
1596 set dummy gcc; ac_word=$2
1597 echo "$as_me:$LINENO: checking for $ac_word" >&5
1598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1601 else
1602 if test -n "$ac_ct_CC"; then
1603 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1604 else
1605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606 for as_dir in $PATH
1608 IFS=$as_save_IFS
1609 test -z "$as_dir" && as_dir=.
1610 for ac_exec_ext in '' $ac_executable_extensions; do
1611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1612 ac_cv_prog_ac_ct_CC="gcc"
1613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1614 break 2
1616 done
1617 done
1621 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1622 if test -n "$ac_ct_CC"; then
1623 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1624 echo "${ECHO_T}$ac_ct_CC" >&6
1625 else
1626 echo "$as_me:$LINENO: result: no" >&5
1627 echo "${ECHO_T}no" >&6
1630 CC=$ac_ct_CC
1631 else
1632 CC="$ac_cv_prog_CC"
1635 if test -z "$CC"; then
1636 if test -n "$ac_tool_prefix"; then
1637 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1638 set dummy ${ac_tool_prefix}cc; ac_word=$2
1639 echo "$as_me:$LINENO: checking for $ac_word" >&5
1640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641 if test "${ac_cv_prog_CC+set}" = set; then
1642 echo $ECHO_N "(cached) $ECHO_C" >&6
1643 else
1644 if test -n "$CC"; then
1645 ac_cv_prog_CC="$CC" # Let the user override the test.
1646 else
1647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648 for as_dir in $PATH
1650 IFS=$as_save_IFS
1651 test -z "$as_dir" && as_dir=.
1652 for ac_exec_ext in '' $ac_executable_extensions; do
1653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1654 ac_cv_prog_CC="${ac_tool_prefix}cc"
1655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1656 break 2
1658 done
1659 done
1663 CC=$ac_cv_prog_CC
1664 if test -n "$CC"; then
1665 echo "$as_me:$LINENO: result: $CC" >&5
1666 echo "${ECHO_T}$CC" >&6
1667 else
1668 echo "$as_me:$LINENO: result: no" >&5
1669 echo "${ECHO_T}no" >&6
1673 if test -z "$ac_cv_prog_CC"; then
1674 ac_ct_CC=$CC
1675 # Extract the first word of "cc", so it can be a program name with args.
1676 set dummy cc; ac_word=$2
1677 echo "$as_me:$LINENO: checking for $ac_word" >&5
1678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1679 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1680 echo $ECHO_N "(cached) $ECHO_C" >&6
1681 else
1682 if test -n "$ac_ct_CC"; then
1683 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1684 else
1685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1686 for as_dir in $PATH
1688 IFS=$as_save_IFS
1689 test -z "$as_dir" && as_dir=.
1690 for ac_exec_ext in '' $ac_executable_extensions; do
1691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1692 ac_cv_prog_ac_ct_CC="cc"
1693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1694 break 2
1696 done
1697 done
1701 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1702 if test -n "$ac_ct_CC"; then
1703 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1704 echo "${ECHO_T}$ac_ct_CC" >&6
1705 else
1706 echo "$as_me:$LINENO: result: no" >&5
1707 echo "${ECHO_T}no" >&6
1710 CC=$ac_ct_CC
1711 else
1712 CC="$ac_cv_prog_CC"
1716 if test -z "$CC"; then
1717 # Extract the first word of "cc", so it can be a program name with args.
1718 set dummy cc; ac_word=$2
1719 echo "$as_me:$LINENO: checking for $ac_word" >&5
1720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1721 if test "${ac_cv_prog_CC+set}" = set; then
1722 echo $ECHO_N "(cached) $ECHO_C" >&6
1723 else
1724 if test -n "$CC"; then
1725 ac_cv_prog_CC="$CC" # Let the user override the test.
1726 else
1727 ac_prog_rejected=no
1728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729 for as_dir in $PATH
1731 IFS=$as_save_IFS
1732 test -z "$as_dir" && as_dir=.
1733 for ac_exec_ext in '' $ac_executable_extensions; do
1734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1735 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1736 ac_prog_rejected=yes
1737 continue
1739 ac_cv_prog_CC="cc"
1740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1741 break 2
1743 done
1744 done
1746 if test $ac_prog_rejected = yes; then
1747 # We found a bogon in the path, so make sure we never use it.
1748 set dummy $ac_cv_prog_CC
1749 shift
1750 if test $# != 0; then
1751 # We chose a different compiler from the bogus one.
1752 # However, it has the same basename, so the bogon will be chosen
1753 # first if we set CC to just the basename; use the full file name.
1754 shift
1755 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1760 CC=$ac_cv_prog_CC
1761 if test -n "$CC"; then
1762 echo "$as_me:$LINENO: result: $CC" >&5
1763 echo "${ECHO_T}$CC" >&6
1764 else
1765 echo "$as_me:$LINENO: result: no" >&5
1766 echo "${ECHO_T}no" >&6
1770 if test -z "$CC"; then
1771 if test -n "$ac_tool_prefix"; then
1772 for ac_prog in cl
1774 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1775 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1776 echo "$as_me:$LINENO: checking for $ac_word" >&5
1777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1778 if test "${ac_cv_prog_CC+set}" = set; then
1779 echo $ECHO_N "(cached) $ECHO_C" >&6
1780 else
1781 if test -n "$CC"; then
1782 ac_cv_prog_CC="$CC" # Let the user override the test.
1783 else
1784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1785 for as_dir in $PATH
1787 IFS=$as_save_IFS
1788 test -z "$as_dir" && as_dir=.
1789 for ac_exec_ext in '' $ac_executable_extensions; do
1790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1791 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1793 break 2
1795 done
1796 done
1800 CC=$ac_cv_prog_CC
1801 if test -n "$CC"; then
1802 echo "$as_me:$LINENO: result: $CC" >&5
1803 echo "${ECHO_T}$CC" >&6
1804 else
1805 echo "$as_me:$LINENO: result: no" >&5
1806 echo "${ECHO_T}no" >&6
1809 test -n "$CC" && break
1810 done
1812 if test -z "$CC"; then
1813 ac_ct_CC=$CC
1814 for ac_prog in cl
1816 # Extract the first word of "$ac_prog", so it can be a program name with args.
1817 set dummy $ac_prog; ac_word=$2
1818 echo "$as_me:$LINENO: checking for $ac_word" >&5
1819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1820 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1821 echo $ECHO_N "(cached) $ECHO_C" >&6
1822 else
1823 if test -n "$ac_ct_CC"; then
1824 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1825 else
1826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827 for as_dir in $PATH
1829 IFS=$as_save_IFS
1830 test -z "$as_dir" && as_dir=.
1831 for ac_exec_ext in '' $ac_executable_extensions; do
1832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1833 ac_cv_prog_ac_ct_CC="$ac_prog"
1834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1835 break 2
1837 done
1838 done
1842 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1843 if test -n "$ac_ct_CC"; then
1844 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1845 echo "${ECHO_T}$ac_ct_CC" >&6
1846 else
1847 echo "$as_me:$LINENO: result: no" >&5
1848 echo "${ECHO_T}no" >&6
1851 test -n "$ac_ct_CC" && break
1852 done
1854 CC=$ac_ct_CC
1860 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1861 See \`config.log' for more details." >&5
1862 echo "$as_me: error: no acceptable C compiler found in \$PATH
1863 See \`config.log' for more details." >&2;}
1864 { (exit 1); exit 1; }; }
1866 # Provide some information about the compiler.
1867 echo "$as_me:$LINENO:" \
1868 "checking for C compiler version" >&5
1869 ac_compiler=`set X $ac_compile; echo $2`
1870 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1871 (eval $ac_compiler --version </dev/null >&5) 2>&5
1872 ac_status=$?
1873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1874 (exit $ac_status); }
1875 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1876 (eval $ac_compiler -v </dev/null >&5) 2>&5
1877 ac_status=$?
1878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1879 (exit $ac_status); }
1880 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1881 (eval $ac_compiler -V </dev/null >&5) 2>&5
1882 ac_status=$?
1883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1884 (exit $ac_status); }
1886 cat >conftest.$ac_ext <<_ACEOF
1887 /* confdefs.h. */
1888 _ACEOF
1889 cat confdefs.h >>conftest.$ac_ext
1890 cat >>conftest.$ac_ext <<_ACEOF
1891 /* end confdefs.h. */
1894 main ()
1898 return 0;
1900 _ACEOF
1901 ac_clean_files_save=$ac_clean_files
1902 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1903 # Try to create an executable without -o first, disregard a.out.
1904 # It will help us diagnose broken compilers, and finding out an intuition
1905 # of exeext.
1906 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1907 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1908 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1909 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1910 (eval $ac_link_default) 2>&5
1911 ac_status=$?
1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913 (exit $ac_status); }; then
1914 # Find the output, starting from the most likely. This scheme is
1915 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1916 # resort.
1918 # Be careful to initialize this variable, since it used to be cached.
1919 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1920 ac_cv_exeext=
1921 # b.out is created by i960 compilers.
1922 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1924 test -f "$ac_file" || continue
1925 case $ac_file in
1926 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1928 conftest.$ac_ext )
1929 # This is the source file.
1931 [ab].out )
1932 # We found the default executable, but exeext='' is most
1933 # certainly right.
1934 break;;
1935 *.* )
1936 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1937 # FIXME: I believe we export ac_cv_exeext for Libtool,
1938 # but it would be cool to find out if it's true. Does anybody
1939 # maintain Libtool? --akim.
1940 export ac_cv_exeext
1941 break;;
1943 break;;
1944 esac
1945 done
1946 else
1947 echo "$as_me: failed program was:" >&5
1948 sed 's/^/| /' conftest.$ac_ext >&5
1950 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1951 See \`config.log' for more details." >&5
1952 echo "$as_me: error: C compiler cannot create executables
1953 See \`config.log' for more details." >&2;}
1954 { (exit 77); exit 77; }; }
1957 ac_exeext=$ac_cv_exeext
1958 echo "$as_me:$LINENO: result: $ac_file" >&5
1959 echo "${ECHO_T}$ac_file" >&6
1961 # Check the compiler produces executables we can run. If not, either
1962 # the compiler is broken, or we cross compile.
1963 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1964 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1965 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1966 # If not cross compiling, check that we can run a simple program.
1967 if test "$cross_compiling" != yes; then
1968 if { ac_try='./$ac_file'
1969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1970 (eval $ac_try) 2>&5
1971 ac_status=$?
1972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973 (exit $ac_status); }; }; then
1974 cross_compiling=no
1975 else
1976 if test "$cross_compiling" = maybe; then
1977 cross_compiling=yes
1978 else
1979 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1980 If you meant to cross compile, use \`--host'.
1981 See \`config.log' for more details." >&5
1982 echo "$as_me: error: cannot run C compiled programs.
1983 If you meant to cross compile, use \`--host'.
1984 See \`config.log' for more details." >&2;}
1985 { (exit 1); exit 1; }; }
1989 echo "$as_me:$LINENO: result: yes" >&5
1990 echo "${ECHO_T}yes" >&6
1992 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1993 ac_clean_files=$ac_clean_files_save
1994 # Check the compiler produces executables we can run. If not, either
1995 # the compiler is broken, or we cross compile.
1996 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1997 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1998 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1999 echo "${ECHO_T}$cross_compiling" >&6
2001 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2002 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2004 (eval $ac_link) 2>&5
2005 ac_status=$?
2006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007 (exit $ac_status); }; then
2008 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2009 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2010 # work properly (i.e., refer to `conftest.exe'), while it won't with
2011 # `rm'.
2012 for ac_file in conftest.exe conftest conftest.*; do
2013 test -f "$ac_file" || continue
2014 case $ac_file in
2015 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2016 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2017 export ac_cv_exeext
2018 break;;
2019 * ) break;;
2020 esac
2021 done
2022 else
2023 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2024 See \`config.log' for more details." >&5
2025 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2026 See \`config.log' for more details." >&2;}
2027 { (exit 1); exit 1; }; }
2030 rm -f conftest$ac_cv_exeext
2031 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2032 echo "${ECHO_T}$ac_cv_exeext" >&6
2034 rm -f conftest.$ac_ext
2035 EXEEXT=$ac_cv_exeext
2036 ac_exeext=$EXEEXT
2037 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2038 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2039 if test "${ac_cv_objext+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2041 else
2042 cat >conftest.$ac_ext <<_ACEOF
2043 /* confdefs.h. */
2044 _ACEOF
2045 cat confdefs.h >>conftest.$ac_ext
2046 cat >>conftest.$ac_ext <<_ACEOF
2047 /* end confdefs.h. */
2050 main ()
2054 return 0;
2056 _ACEOF
2057 rm -f conftest.o conftest.obj
2058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2059 (eval $ac_compile) 2>&5
2060 ac_status=$?
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }; then
2063 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2064 case $ac_file in
2065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2066 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2067 break;;
2068 esac
2069 done
2070 else
2071 echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2074 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2075 See \`config.log' for more details." >&5
2076 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2077 See \`config.log' for more details." >&2;}
2078 { (exit 1); exit 1; }; }
2081 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2083 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2084 echo "${ECHO_T}$ac_cv_objext" >&6
2085 OBJEXT=$ac_cv_objext
2086 ac_objext=$OBJEXT
2087 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2088 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2089 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2090 echo $ECHO_N "(cached) $ECHO_C" >&6
2091 else
2092 cat >conftest.$ac_ext <<_ACEOF
2093 /* confdefs.h. */
2094 _ACEOF
2095 cat confdefs.h >>conftest.$ac_ext
2096 cat >>conftest.$ac_ext <<_ACEOF
2097 /* end confdefs.h. */
2100 main ()
2102 #ifndef __GNUC__
2103 choke me
2104 #endif
2107 return 0;
2109 _ACEOF
2110 rm -f conftest.$ac_objext
2111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2112 (eval $ac_compile) 2>conftest.er1
2113 ac_status=$?
2114 grep -v '^ *+' conftest.er1 >conftest.err
2115 rm -f conftest.er1
2116 cat conftest.err >&5
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); } &&
2119 { ac_try='test -z "$ac_c_werror_flag"
2120 || test ! -s conftest.err'
2121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2122 (eval $ac_try) 2>&5
2123 ac_status=$?
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }; } &&
2126 { ac_try='test -s conftest.$ac_objext'
2127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2128 (eval $ac_try) 2>&5
2129 ac_status=$?
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); }; }; then
2132 ac_compiler_gnu=yes
2133 else
2134 echo "$as_me: failed program was:" >&5
2135 sed 's/^/| /' conftest.$ac_ext >&5
2137 ac_compiler_gnu=no
2139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2140 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2143 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2144 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2145 GCC=`test $ac_compiler_gnu = yes && echo yes`
2146 ac_test_CFLAGS=${CFLAGS+set}
2147 ac_save_CFLAGS=$CFLAGS
2148 CFLAGS="-g"
2149 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2150 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2151 if test "${ac_cv_prog_cc_g+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 else
2154 cat >conftest.$ac_ext <<_ACEOF
2155 /* confdefs.h. */
2156 _ACEOF
2157 cat confdefs.h >>conftest.$ac_ext
2158 cat >>conftest.$ac_ext <<_ACEOF
2159 /* end confdefs.h. */
2162 main ()
2166 return 0;
2168 _ACEOF
2169 rm -f conftest.$ac_objext
2170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171 (eval $ac_compile) 2>conftest.er1
2172 ac_status=$?
2173 grep -v '^ *+' conftest.er1 >conftest.err
2174 rm -f conftest.er1
2175 cat conftest.err >&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); } &&
2178 { ac_try='test -z "$ac_c_werror_flag"
2179 || test ! -s conftest.err'
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181 (eval $ac_try) 2>&5
2182 ac_status=$?
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; } &&
2185 { ac_try='test -s conftest.$ac_objext'
2186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187 (eval $ac_try) 2>&5
2188 ac_status=$?
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }; }; then
2191 ac_cv_prog_cc_g=yes
2192 else
2193 echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2196 ac_cv_prog_cc_g=no
2198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2200 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2201 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2202 if test "$ac_test_CFLAGS" = set; then
2203 CFLAGS=$ac_save_CFLAGS
2204 elif test $ac_cv_prog_cc_g = yes; then
2205 if test "$GCC" = yes; then
2206 CFLAGS="-g -O2"
2207 else
2208 CFLAGS="-g"
2210 else
2211 if test "$GCC" = yes; then
2212 CFLAGS="-O2"
2213 else
2214 CFLAGS=
2217 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2218 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2219 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2220 echo $ECHO_N "(cached) $ECHO_C" >&6
2221 else
2222 ac_cv_prog_cc_stdc=no
2223 ac_save_CC=$CC
2224 cat >conftest.$ac_ext <<_ACEOF
2225 /* confdefs.h. */
2226 _ACEOF
2227 cat confdefs.h >>conftest.$ac_ext
2228 cat >>conftest.$ac_ext <<_ACEOF
2229 /* end confdefs.h. */
2230 #include <stdarg.h>
2231 #include <stdio.h>
2232 #include <sys/types.h>
2233 #include <sys/stat.h>
2234 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2235 struct buf { int x; };
2236 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2237 static char *e (p, i)
2238 char **p;
2239 int i;
2241 return p[i];
2243 static char *f (char * (*g) (char **, int), char **p, ...)
2245 char *s;
2246 va_list v;
2247 va_start (v,p);
2248 s = g (p, va_arg (v,int));
2249 va_end (v);
2250 return s;
2253 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2254 function prototypes and stuff, but not '\xHH' hex character constants.
2255 These don't provoke an error unfortunately, instead are silently treated
2256 as 'x'. The following induces an error, until -std1 is added to get
2257 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2258 array size at least. It's necessary to write '\x00'==0 to get something
2259 that's true only with -std1. */
2260 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2262 int test (int i, double x);
2263 struct s1 {int (*f) (int a);};
2264 struct s2 {int (*f) (double a);};
2265 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2266 int argc;
2267 char **argv;
2269 main ()
2271 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2273 return 0;
2275 _ACEOF
2276 # Don't try gcc -ansi; that turns off useful extensions and
2277 # breaks some systems' header files.
2278 # AIX -qlanglvl=ansi
2279 # Ultrix and OSF/1 -std1
2280 # HP-UX 10.20 and later -Ae
2281 # HP-UX older versions -Aa -D_HPUX_SOURCE
2282 # SVR4 -Xc -D__EXTENSIONS__
2283 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2285 CC="$ac_save_CC $ac_arg"
2286 rm -f conftest.$ac_objext
2287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2288 (eval $ac_compile) 2>conftest.er1
2289 ac_status=$?
2290 grep -v '^ *+' conftest.er1 >conftest.err
2291 rm -f conftest.er1
2292 cat conftest.err >&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); } &&
2295 { ac_try='test -z "$ac_c_werror_flag"
2296 || test ! -s conftest.err'
2297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2298 (eval $ac_try) 2>&5
2299 ac_status=$?
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; } &&
2302 { ac_try='test -s conftest.$ac_objext'
2303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304 (eval $ac_try) 2>&5
2305 ac_status=$?
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; }; then
2308 ac_cv_prog_cc_stdc=$ac_arg
2309 break
2310 else
2311 echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2315 rm -f conftest.err conftest.$ac_objext
2316 done
2317 rm -f conftest.$ac_ext conftest.$ac_objext
2318 CC=$ac_save_CC
2322 case "x$ac_cv_prog_cc_stdc" in
2323 x|xno)
2324 echo "$as_me:$LINENO: result: none needed" >&5
2325 echo "${ECHO_T}none needed" >&6 ;;
2327 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2328 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2329 CC="$CC $ac_cv_prog_cc_stdc" ;;
2330 esac
2332 # Some people use a C++ compiler to compile C. Since we use `exit',
2333 # in C++ we need to declare it. In case someone uses the same compiler
2334 # for both compiling C and C++ we need to have the C++ compiler decide
2335 # the declaration of exit, since it's the most demanding environment.
2336 cat >conftest.$ac_ext <<_ACEOF
2337 #ifndef __cplusplus
2338 choke me
2339 #endif
2340 _ACEOF
2341 rm -f conftest.$ac_objext
2342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343 (eval $ac_compile) 2>conftest.er1
2344 ac_status=$?
2345 grep -v '^ *+' conftest.er1 >conftest.err
2346 rm -f conftest.er1
2347 cat conftest.err >&5
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); } &&
2350 { ac_try='test -z "$ac_c_werror_flag"
2351 || test ! -s conftest.err'
2352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353 (eval $ac_try) 2>&5
2354 ac_status=$?
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; } &&
2357 { ac_try='test -s conftest.$ac_objext'
2358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 (eval $ac_try) 2>&5
2360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; }; then
2363 for ac_declaration in \
2364 '' \
2365 'extern "C" void std::exit (int) throw (); using std::exit;' \
2366 'extern "C" void std::exit (int); using std::exit;' \
2367 'extern "C" void exit (int) throw ();' \
2368 'extern "C" void exit (int);' \
2369 'void exit (int);'
2371 cat >conftest.$ac_ext <<_ACEOF
2372 /* confdefs.h. */
2373 _ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h. */
2377 $ac_declaration
2378 #include <stdlib.h>
2380 main ()
2382 exit (42);
2384 return 0;
2386 _ACEOF
2387 rm -f conftest.$ac_objext
2388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2389 (eval $ac_compile) 2>conftest.er1
2390 ac_status=$?
2391 grep -v '^ *+' conftest.er1 >conftest.err
2392 rm -f conftest.er1
2393 cat conftest.err >&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); } &&
2396 { ac_try='test -z "$ac_c_werror_flag"
2397 || test ! -s conftest.err'
2398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399 (eval $ac_try) 2>&5
2400 ac_status=$?
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; } &&
2403 { ac_try='test -s conftest.$ac_objext'
2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405 (eval $ac_try) 2>&5
2406 ac_status=$?
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; }; then
2410 else
2411 echo "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2414 continue
2416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2417 cat >conftest.$ac_ext <<_ACEOF
2418 /* confdefs.h. */
2419 _ACEOF
2420 cat confdefs.h >>conftest.$ac_ext
2421 cat >>conftest.$ac_ext <<_ACEOF
2422 /* end confdefs.h. */
2423 $ac_declaration
2425 main ()
2427 exit (42);
2429 return 0;
2431 _ACEOF
2432 rm -f conftest.$ac_objext
2433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434 (eval $ac_compile) 2>conftest.er1
2435 ac_status=$?
2436 grep -v '^ *+' conftest.er1 >conftest.err
2437 rm -f conftest.er1
2438 cat conftest.err >&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); } &&
2441 { ac_try='test -z "$ac_c_werror_flag"
2442 || test ! -s conftest.err'
2443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444 (eval $ac_try) 2>&5
2445 ac_status=$?
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }; } &&
2448 { ac_try='test -s conftest.$ac_objext'
2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450 (eval $ac_try) 2>&5
2451 ac_status=$?
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; }; then
2454 break
2455 else
2456 echo "$as_me: failed program was:" >&5
2457 sed 's/^/| /' conftest.$ac_ext >&5
2460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2461 done
2462 rm -f conftest*
2463 if test -n "$ac_declaration"; then
2464 echo '#ifdef __cplusplus' >>confdefs.h
2465 echo $ac_declaration >>confdefs.h
2466 echo '#endif' >>confdefs.h
2469 else
2470 echo "$as_me: failed program was:" >&5
2471 sed 's/^/| /' conftest.$ac_ext >&5
2474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2475 ac_ext=c
2476 ac_cpp='$CPP $CPPFLAGS'
2477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2481 if test -n "$ac_tool_prefix"; then
2482 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2483 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2484 echo "$as_me:$LINENO: checking for $ac_word" >&5
2485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2486 if test "${ac_cv_prog_RANLIB+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
2488 else
2489 if test -n "$RANLIB"; then
2490 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2491 else
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH
2495 IFS=$as_save_IFS
2496 test -z "$as_dir" && as_dir=.
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2499 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2501 break 2
2503 done
2504 done
2508 RANLIB=$ac_cv_prog_RANLIB
2509 if test -n "$RANLIB"; then
2510 echo "$as_me:$LINENO: result: $RANLIB" >&5
2511 echo "${ECHO_T}$RANLIB" >&6
2512 else
2513 echo "$as_me:$LINENO: result: no" >&5
2514 echo "${ECHO_T}no" >&6
2518 if test -z "$ac_cv_prog_RANLIB"; then
2519 ac_ct_RANLIB=$RANLIB
2520 # Extract the first word of "ranlib", so it can be a program name with args.
2521 set dummy ranlib; ac_word=$2
2522 echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2524 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527 if test -n "$ac_ct_RANLIB"; then
2528 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2533 IFS=$as_save_IFS
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2537 ac_cv_prog_ac_ct_RANLIB="ranlib"
2538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 break 2
2541 done
2542 done
2544 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2547 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2548 if test -n "$ac_ct_RANLIB"; then
2549 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2550 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2551 else
2552 echo "$as_me:$LINENO: result: no" >&5
2553 echo "${ECHO_T}no" >&6
2556 RANLIB=$ac_ct_RANLIB
2557 else
2558 RANLIB="$ac_cv_prog_RANLIB"
2562 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2563 for ac_prog in aclocal
2565 # Extract the first word of "$ac_prog", so it can be a program name with args.
2566 set dummy $ac_prog; ac_word=$2
2567 echo "$as_me:$LINENO: checking for $ac_word" >&5
2568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2569 if test "${ac_cv_prog_ACLOCAL+set}" = set; then
2570 echo $ECHO_N "(cached) $ECHO_C" >&6
2571 else
2572 if test -n "$ACLOCAL"; then
2573 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
2574 else
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 for as_dir in $PATH
2578 IFS=$as_save_IFS
2579 test -z "$as_dir" && as_dir=.
2580 for ac_exec_ext in '' $ac_executable_extensions; do
2581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2582 ac_cv_prog_ACLOCAL="$ac_prog"
2583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 break 2
2586 done
2587 done
2591 ACLOCAL=$ac_cv_prog_ACLOCAL
2592 if test -n "$ACLOCAL"; then
2593 echo "$as_me:$LINENO: result: $ACLOCAL" >&5
2594 echo "${ECHO_T}$ACLOCAL" >&6
2595 else
2596 echo "$as_me:$LINENO: result: no" >&5
2597 echo "${ECHO_T}no" >&6
2600 test -n "$ACLOCAL" && break
2601 done
2602 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
2604 for ac_prog in autoconf
2606 # Extract the first word of "$ac_prog", so it can be a program name with args.
2607 set dummy $ac_prog; ac_word=$2
2608 echo "$as_me:$LINENO: checking for $ac_word" >&5
2609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2610 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
2611 echo $ECHO_N "(cached) $ECHO_C" >&6
2612 else
2613 if test -n "$AUTOCONF"; then
2614 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
2615 else
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 for as_dir in $PATH
2619 IFS=$as_save_IFS
2620 test -z "$as_dir" && as_dir=.
2621 for ac_exec_ext in '' $ac_executable_extensions; do
2622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2623 ac_cv_prog_AUTOCONF="$ac_prog"
2624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 break 2
2627 done
2628 done
2632 AUTOCONF=$ac_cv_prog_AUTOCONF
2633 if test -n "$AUTOCONF"; then
2634 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
2635 echo "${ECHO_T}$AUTOCONF" >&6
2636 else
2637 echo "$as_me:$LINENO: result: no" >&5
2638 echo "${ECHO_T}no" >&6
2641 test -n "$AUTOCONF" && break
2642 done
2643 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
2645 for ac_prog in autoheader
2647 # Extract the first word of "$ac_prog", so it can be a program name with args.
2648 set dummy $ac_prog; ac_word=$2
2649 echo "$as_me:$LINENO: checking for $ac_word" >&5
2650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2651 if test "${ac_cv_prog_AUTOHEADER+set}" = set; then
2652 echo $ECHO_N "(cached) $ECHO_C" >&6
2653 else
2654 if test -n "$AUTOHEADER"; then
2655 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
2656 else
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 for as_dir in $PATH
2660 IFS=$as_save_IFS
2661 test -z "$as_dir" && as_dir=.
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2664 ac_cv_prog_AUTOHEADER="$ac_prog"
2665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2666 break 2
2668 done
2669 done
2673 AUTOHEADER=$ac_cv_prog_AUTOHEADER
2674 if test -n "$AUTOHEADER"; then
2675 echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
2676 echo "${ECHO_T}$AUTOHEADER" >&6
2677 else
2678 echo "$as_me:$LINENO: result: no" >&5
2679 echo "${ECHO_T}no" >&6
2682 test -n "$AUTOHEADER" && break
2683 done
2684 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
2687 # Figure out what compiler warnings we can enable.
2688 # See config/warnings.m4 for details.
2691 WARN_CFLAGS=
2692 save_CFLAGS="$CFLAGS"
2693 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
2694 -Wmissing-prototypes -Wold-style-definition \
2695 -Wmissing-format-attribute; do
2696 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
2698 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
2699 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
2700 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
2701 echo $ECHO_N "(cached) $ECHO_C" >&6
2702 else
2703 CFLAGS="$option"
2704 cat >conftest.$ac_ext <<_ACEOF
2705 /* confdefs.h. */
2706 _ACEOF
2707 cat confdefs.h >>conftest.$ac_ext
2708 cat >>conftest.$ac_ext <<_ACEOF
2709 /* end confdefs.h. */
2712 main ()
2716 return 0;
2718 _ACEOF
2719 rm -f conftest.$ac_objext
2720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2721 (eval $ac_compile) 2>conftest.er1
2722 ac_status=$?
2723 grep -v '^ *+' conftest.er1 >conftest.err
2724 rm -f conftest.er1
2725 cat conftest.err >&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); } &&
2728 { ac_try='test -z "$ac_c_werror_flag"
2729 || test ! -s conftest.err'
2730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731 (eval $ac_try) 2>&5
2732 ac_status=$?
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }; } &&
2735 { ac_try='test -s conftest.$ac_objext'
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737 (eval $ac_try) 2>&5
2738 ac_status=$?
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; }; then
2741 eval "$as_acx_Woption=yes"
2742 else
2743 echo "$as_me: failed program was:" >&5
2744 sed 's/^/| /' conftest.$ac_ext >&5
2746 eval "$as_acx_Woption=no"
2748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2751 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
2752 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
2753 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
2754 WARN_CFLAGS="$WARN_CFLAGS${WARN_CFLAGS:+ }$option"
2757 done
2758 CFLAGS="$save_CFLAGS"
2760 WARN_PEDANTIC=
2761 if test "$GCC" = yes; then
2762 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long" >&5
2763 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long... $ECHO_C" >&6
2764 if test "${acx_cv_prog_cc_pedantic__Wno_long_long+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2766 else
2767 save_CFLAGS="$CFLAGS"
2768 CFLAGS="-pedantic -Wno-long-long"
2769 cat >conftest.$ac_ext <<_ACEOF
2770 /* confdefs.h. */
2771 _ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h. */
2777 main ()
2781 return 0;
2783 _ACEOF
2784 rm -f conftest.$ac_objext
2785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2786 (eval $ac_compile) 2>conftest.er1
2787 ac_status=$?
2788 grep -v '^ *+' conftest.er1 >conftest.err
2789 rm -f conftest.er1
2790 cat conftest.err >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); } &&
2793 { ac_try='test -z "$ac_c_werror_flag"
2794 || test ! -s conftest.err'
2795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 (eval $ac_try) 2>&5
2797 ac_status=$?
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; } &&
2800 { ac_try='test -s conftest.$ac_objext'
2801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802 (eval $ac_try) 2>&5
2803 ac_status=$?
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }; }; then
2806 acx_cv_prog_cc_pedantic__Wno_long_long=yes
2807 else
2808 echo "$as_me: failed program was:" >&5
2809 sed 's/^/| /' conftest.$ac_ext >&5
2811 acx_cv_prog_cc_pedantic__Wno_long_long=no
2813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2814 CFLAGS="$save_CFLAGS"
2816 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long" >&5
2817 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long" >&6
2818 if test $acx_cv_prog_cc_pedantic__Wno_long_long = yes; then
2819 WARN_PEDANTIC="-pedantic -Wno-long-long"
2827 # Only enable with --enable-werror-always until existing warnings are
2828 # corrected.
2829 WERROR=
2830 # Check whether --enable-werror-always or --disable-werror-always was given.
2831 if test "${enable_werror_always+set}" = set; then
2832 enableval="$enable_werror_always"
2834 else
2835 enable_werror_always=no
2837 if test $enable_werror_always = yes; then
2838 WERROR=-Werror
2843 # Dependency checking.
2844 rm -rf .tst 2>/dev/null
2845 mkdir .tst 2>/dev/null
2846 if test -d .tst; then
2847 am__leading_dot=.
2848 else
2849 am__leading_dot=_
2851 rmdir .tst 2>/dev/null
2853 DEPDIR="${am__leading_dot}deps"
2855 ac_config_commands="$ac_config_commands depdir"
2858 depcc="$CC" am_compiler_list=
2860 am_depcomp=$ac_aux_dir/depcomp
2861 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2862 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2863 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2864 echo $ECHO_N "(cached) $ECHO_C" >&6
2865 else
2866 if test -f "$am_depcomp"; then
2867 # We make a subdir and do the tests there. Otherwise we can end up
2868 # making bogus files that we don't know about and never remove. For
2869 # instance it was reported that on HP-UX the gcc test will end up
2870 # making a dummy file named `D' -- because `-MD' means `put the output
2871 # in D'.
2872 mkdir conftest.dir
2873 # Copy depcomp to subdir because otherwise we won't find it if we're
2874 # using a relative directory.
2875 cp "$am_depcomp" conftest.dir
2876 cd conftest.dir
2877 # We will build objects and dependencies in a subdirectory because
2878 # it helps to detect inapplicable dependency modes. For instance
2879 # both Tru64's cc and ICC support -MD to output dependencies as a
2880 # side effect of compilation, but ICC will put the dependencies in
2881 # the current directory while Tru64 will put them in the object
2882 # directory.
2883 mkdir sub
2885 am_cv_CC_dependencies_compiler_type=none
2886 if test "$am_compiler_list" = ""; then
2887 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2889 for depmode in $am_compiler_list; do
2890 if test $depmode = none; then break; fi
2892 echo "$as_me:$LINENO: trying $depmode" >&5
2893 # Setup a source with many dependencies, because some compilers
2894 # like to wrap large dependency lists on column 80 (with \), and
2895 # we should not choose a depcomp mode which is confused by this.
2897 # We need to recreate these files for each test, as the compiler may
2898 # overwrite some of them when testing with obscure command lines.
2899 # This happens at least with the AIX C compiler.
2900 : > sub/conftest.c
2901 for i in 1 2 3 4 5 6; do
2902 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2903 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2904 # Solaris 8's {/usr,}/bin/sh.
2905 touch sub/conftst$i.h
2906 done
2907 echo "include sub/conftest.Po" > confmf
2909 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2910 # mode. It turns out that the SunPro C++ compiler does not properly
2911 # handle `-M -o', and we need to detect this.
2912 depcmd="depmode=$depmode \
2913 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2914 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2915 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
2916 echo "| $depcmd" | sed -e 's/ */ /g' >&5
2917 if env $depcmd > conftest.err 2>&1 &&
2918 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
2919 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
2920 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
2921 # icc doesn't choke on unknown options, it will just issue warnings
2922 # or remarks (even with -Werror). So we grep stderr for any message
2923 # that says an option was ignored or not supported.
2924 # When given -MP, icc 7.0 and 7.1 complain thusly:
2925 # icc: Command line warning: ignoring option '-M'; no argument required
2926 # The diagnosis changed in icc 8.0:
2927 # icc: Command line remark: option '-MP' not supported
2928 if (grep 'ignoring option' conftest.err ||
2929 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2930 am_cv_CC_dependencies_compiler_type=$depmode
2931 echo "$as_me:$LINENO: success" >&5
2932 break
2935 echo "$as_me:$LINENO: failure, diagnostics are:" >&5
2936 sed -e 's/^/| /' < conftest.err >&5
2937 done
2939 cd ..
2940 rm -rf conftest.dir
2941 else
2942 am_cv_CC_dependencies_compiler_type=none
2946 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2947 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2948 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
2949 then { { echo "$as_me:$LINENO: error: no usable dependency style found" >&5
2950 echo "$as_me: error: no usable dependency style found" >&2;}
2951 { (exit 1); exit 1; }; }
2952 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2957 # Checks for header files.
2958 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
2959 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
2960 if test "${ac_cv_header_time+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2962 else
2963 cat >conftest.$ac_ext <<_ACEOF
2964 /* confdefs.h. */
2965 _ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h. */
2969 #include <sys/types.h>
2970 #include <sys/time.h>
2971 #include <time.h>
2974 main ()
2976 if ((struct tm *) 0)
2977 return 0;
2979 return 0;
2981 _ACEOF
2982 rm -f conftest.$ac_objext
2983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2984 (eval $ac_compile) 2>conftest.er1
2985 ac_status=$?
2986 grep -v '^ *+' conftest.er1 >conftest.err
2987 rm -f conftest.er1
2988 cat conftest.err >&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); } &&
2991 { ac_try='test -z "$ac_c_werror_flag"
2992 || test ! -s conftest.err'
2993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2994 (eval $ac_try) 2>&5
2995 ac_status=$?
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); }; } &&
2998 { ac_try='test -s conftest.$ac_objext'
2999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3000 (eval $ac_try) 2>&5
3001 ac_status=$?
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); }; }; then
3004 ac_cv_header_time=yes
3005 else
3006 echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3009 ac_cv_header_time=no
3011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3013 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3014 echo "${ECHO_T}$ac_cv_header_time" >&6
3015 if test $ac_cv_header_time = yes; then
3017 cat >>confdefs.h <<\_ACEOF
3018 #define TIME_WITH_SYS_TIME 1
3019 _ACEOF
3023 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
3024 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
3025 if test "${gcc_cv_header_string+set}" = set; then
3026 echo $ECHO_N "(cached) $ECHO_C" >&6
3027 else
3028 cat >conftest.$ac_ext <<_ACEOF
3029 /* confdefs.h. */
3030 _ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h. */
3034 #include <string.h>
3035 #include <strings.h>
3037 main ()
3041 return 0;
3043 _ACEOF
3044 rm -f conftest.$ac_objext
3045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3046 (eval $ac_compile) 2>conftest.er1
3047 ac_status=$?
3048 grep -v '^ *+' conftest.er1 >conftest.err
3049 rm -f conftest.er1
3050 cat conftest.err >&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } &&
3053 { ac_try='test -z "$ac_c_werror_flag"
3054 || test ! -s conftest.err'
3055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056 (eval $ac_try) 2>&5
3057 ac_status=$?
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; } &&
3060 { ac_try='test -s conftest.$ac_objext'
3061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3062 (eval $ac_try) 2>&5
3063 ac_status=$?
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); }; }; then
3066 gcc_cv_header_string=yes
3067 else
3068 echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3071 gcc_cv_header_string=no
3073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3075 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
3076 echo "${ECHO_T}$gcc_cv_header_string" >&6
3077 if test $gcc_cv_header_string = yes; then
3079 cat >>confdefs.h <<\_ACEOF
3080 #define STRING_WITH_STRINGS 1
3081 _ACEOF
3085 ac_ext=c
3086 ac_cpp='$CPP $CPPFLAGS'
3087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3090 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3091 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3092 # On Suns, sometimes $CPP names a directory.
3093 if test -n "$CPP" && test -d "$CPP"; then
3094 CPP=
3096 if test -z "$CPP"; then
3097 if test "${ac_cv_prog_CPP+set}" = set; then
3098 echo $ECHO_N "(cached) $ECHO_C" >&6
3099 else
3100 # Double quotes because CPP needs to be expanded
3101 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3103 ac_preproc_ok=false
3104 for ac_c_preproc_warn_flag in '' yes
3106 # Use a header file that comes with gcc, so configuring glibc
3107 # with a fresh cross-compiler works.
3108 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3109 # <limits.h> exists even on freestanding compilers.
3110 # On the NeXT, cc -E runs the code through the compiler's parser,
3111 # not just through cpp. "Syntax error" is here to catch this case.
3112 cat >conftest.$ac_ext <<_ACEOF
3113 /* confdefs.h. */
3114 _ACEOF
3115 cat confdefs.h >>conftest.$ac_ext
3116 cat >>conftest.$ac_ext <<_ACEOF
3117 /* end confdefs.h. */
3118 #ifdef __STDC__
3119 # include <limits.h>
3120 #else
3121 # include <assert.h>
3122 #endif
3123 Syntax error
3124 _ACEOF
3125 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3127 ac_status=$?
3128 grep -v '^ *+' conftest.er1 >conftest.err
3129 rm -f conftest.er1
3130 cat conftest.err >&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); } >/dev/null; then
3133 if test -s conftest.err; then
3134 ac_cpp_err=$ac_c_preproc_warn_flag
3135 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3136 else
3137 ac_cpp_err=
3139 else
3140 ac_cpp_err=yes
3142 if test -z "$ac_cpp_err"; then
3144 else
3145 echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3148 # Broken: fails on valid input.
3149 continue
3151 rm -f conftest.err conftest.$ac_ext
3153 # OK, works on sane cases. Now check whether non-existent headers
3154 # can be detected and how.
3155 cat >conftest.$ac_ext <<_ACEOF
3156 /* confdefs.h. */
3157 _ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3161 #include <ac_nonexistent.h>
3162 _ACEOF
3163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3165 ac_status=$?
3166 grep -v '^ *+' conftest.er1 >conftest.err
3167 rm -f conftest.er1
3168 cat conftest.err >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); } >/dev/null; then
3171 if test -s conftest.err; then
3172 ac_cpp_err=$ac_c_preproc_warn_flag
3173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3174 else
3175 ac_cpp_err=
3177 else
3178 ac_cpp_err=yes
3180 if test -z "$ac_cpp_err"; then
3181 # Broken: success on invalid input.
3182 continue
3183 else
3184 echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3187 # Passes both tests.
3188 ac_preproc_ok=:
3189 break
3191 rm -f conftest.err conftest.$ac_ext
3193 done
3194 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3195 rm -f conftest.err conftest.$ac_ext
3196 if $ac_preproc_ok; then
3197 break
3200 done
3201 ac_cv_prog_CPP=$CPP
3204 CPP=$ac_cv_prog_CPP
3205 else
3206 ac_cv_prog_CPP=$CPP
3208 echo "$as_me:$LINENO: result: $CPP" >&5
3209 echo "${ECHO_T}$CPP" >&6
3210 ac_preproc_ok=false
3211 for ac_c_preproc_warn_flag in '' yes
3213 # Use a header file that comes with gcc, so configuring glibc
3214 # with a fresh cross-compiler works.
3215 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3216 # <limits.h> exists even on freestanding compilers.
3217 # On the NeXT, cc -E runs the code through the compiler's parser,
3218 # not just through cpp. "Syntax error" is here to catch this case.
3219 cat >conftest.$ac_ext <<_ACEOF
3220 /* confdefs.h. */
3221 _ACEOF
3222 cat confdefs.h >>conftest.$ac_ext
3223 cat >>conftest.$ac_ext <<_ACEOF
3224 /* end confdefs.h. */
3225 #ifdef __STDC__
3226 # include <limits.h>
3227 #else
3228 # include <assert.h>
3229 #endif
3230 Syntax error
3231 _ACEOF
3232 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3234 ac_status=$?
3235 grep -v '^ *+' conftest.er1 >conftest.err
3236 rm -f conftest.er1
3237 cat conftest.err >&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } >/dev/null; then
3240 if test -s conftest.err; then
3241 ac_cpp_err=$ac_c_preproc_warn_flag
3242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3243 else
3244 ac_cpp_err=
3246 else
3247 ac_cpp_err=yes
3249 if test -z "$ac_cpp_err"; then
3251 else
3252 echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3255 # Broken: fails on valid input.
3256 continue
3258 rm -f conftest.err conftest.$ac_ext
3260 # OK, works on sane cases. Now check whether non-existent headers
3261 # can be detected and how.
3262 cat >conftest.$ac_ext <<_ACEOF
3263 /* confdefs.h. */
3264 _ACEOF
3265 cat confdefs.h >>conftest.$ac_ext
3266 cat >>conftest.$ac_ext <<_ACEOF
3267 /* end confdefs.h. */
3268 #include <ac_nonexistent.h>
3269 _ACEOF
3270 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3272 ac_status=$?
3273 grep -v '^ *+' conftest.er1 >conftest.err
3274 rm -f conftest.er1
3275 cat conftest.err >&5
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); } >/dev/null; then
3278 if test -s conftest.err; then
3279 ac_cpp_err=$ac_c_preproc_warn_flag
3280 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3281 else
3282 ac_cpp_err=
3284 else
3285 ac_cpp_err=yes
3287 if test -z "$ac_cpp_err"; then
3288 # Broken: success on invalid input.
3289 continue
3290 else
3291 echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3294 # Passes both tests.
3295 ac_preproc_ok=:
3296 break
3298 rm -f conftest.err conftest.$ac_ext
3300 done
3301 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3302 rm -f conftest.err conftest.$ac_ext
3303 if $ac_preproc_ok; then
3305 else
3306 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3307 See \`config.log' for more details." >&5
3308 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3309 See \`config.log' for more details." >&2;}
3310 { (exit 1); exit 1; }; }
3313 ac_ext=c
3314 ac_cpp='$CPP $CPPFLAGS'
3315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3320 echo "$as_me:$LINENO: checking for egrep" >&5
3321 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3322 if test "${ac_cv_prog_egrep+set}" = set; then
3323 echo $ECHO_N "(cached) $ECHO_C" >&6
3324 else
3325 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3326 then ac_cv_prog_egrep='grep -E'
3327 else ac_cv_prog_egrep='egrep'
3330 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3331 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3332 EGREP=$ac_cv_prog_egrep
3335 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3336 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3337 if test "${ac_cv_header_stdc+set}" = set; then
3338 echo $ECHO_N "(cached) $ECHO_C" >&6
3339 else
3340 cat >conftest.$ac_ext <<_ACEOF
3341 /* confdefs.h. */
3342 _ACEOF
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h. */
3346 #include <stdlib.h>
3347 #include <stdarg.h>
3348 #include <string.h>
3349 #include <float.h>
3352 main ()
3356 return 0;
3358 _ACEOF
3359 rm -f conftest.$ac_objext
3360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3361 (eval $ac_compile) 2>conftest.er1
3362 ac_status=$?
3363 grep -v '^ *+' conftest.er1 >conftest.err
3364 rm -f conftest.er1
3365 cat conftest.err >&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } &&
3368 { ac_try='test -z "$ac_c_werror_flag"
3369 || test ! -s conftest.err'
3370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371 (eval $ac_try) 2>&5
3372 ac_status=$?
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); }; } &&
3375 { ac_try='test -s conftest.$ac_objext'
3376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377 (eval $ac_try) 2>&5
3378 ac_status=$?
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; }; then
3381 ac_cv_header_stdc=yes
3382 else
3383 echo "$as_me: failed program was:" >&5
3384 sed 's/^/| /' conftest.$ac_ext >&5
3386 ac_cv_header_stdc=no
3388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3390 if test $ac_cv_header_stdc = yes; then
3391 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3392 cat >conftest.$ac_ext <<_ACEOF
3393 /* confdefs.h. */
3394 _ACEOF
3395 cat confdefs.h >>conftest.$ac_ext
3396 cat >>conftest.$ac_ext <<_ACEOF
3397 /* end confdefs.h. */
3398 #include <string.h>
3400 _ACEOF
3401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3402 $EGREP "memchr" >/dev/null 2>&1; then
3404 else
3405 ac_cv_header_stdc=no
3407 rm -f conftest*
3411 if test $ac_cv_header_stdc = yes; then
3412 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3413 cat >conftest.$ac_ext <<_ACEOF
3414 /* confdefs.h. */
3415 _ACEOF
3416 cat confdefs.h >>conftest.$ac_ext
3417 cat >>conftest.$ac_ext <<_ACEOF
3418 /* end confdefs.h. */
3419 #include <stdlib.h>
3421 _ACEOF
3422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3423 $EGREP "free" >/dev/null 2>&1; then
3425 else
3426 ac_cv_header_stdc=no
3428 rm -f conftest*
3432 if test $ac_cv_header_stdc = yes; then
3433 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3434 if test "$cross_compiling" = yes; then
3436 else
3437 cat >conftest.$ac_ext <<_ACEOF
3438 /* confdefs.h. */
3439 _ACEOF
3440 cat confdefs.h >>conftest.$ac_ext
3441 cat >>conftest.$ac_ext <<_ACEOF
3442 /* end confdefs.h. */
3443 #include <ctype.h>
3444 #if ((' ' & 0x0FF) == 0x020)
3445 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3446 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3447 #else
3448 # define ISLOWER(c) \
3449 (('a' <= (c) && (c) <= 'i') \
3450 || ('j' <= (c) && (c) <= 'r') \
3451 || ('s' <= (c) && (c) <= 'z'))
3452 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3453 #endif
3455 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3457 main ()
3459 int i;
3460 for (i = 0; i < 256; i++)
3461 if (XOR (islower (i), ISLOWER (i))
3462 || toupper (i) != TOUPPER (i))
3463 exit(2);
3464 exit (0);
3466 _ACEOF
3467 rm -f conftest$ac_exeext
3468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3469 (eval $ac_link) 2>&5
3470 ac_status=$?
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3474 (eval $ac_try) 2>&5
3475 ac_status=$?
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); }; }; then
3479 else
3480 echo "$as_me: program exited with status $ac_status" >&5
3481 echo "$as_me: failed program was:" >&5
3482 sed 's/^/| /' conftest.$ac_ext >&5
3484 ( exit $ac_status )
3485 ac_cv_header_stdc=no
3487 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3491 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3492 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3493 if test $ac_cv_header_stdc = yes; then
3495 cat >>confdefs.h <<\_ACEOF
3496 #define STDC_HEADERS 1
3497 _ACEOF
3501 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3511 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3512 inttypes.h stdint.h unistd.h
3514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3515 echo "$as_me:$LINENO: checking for $ac_header" >&5
3516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3519 else
3520 cat >conftest.$ac_ext <<_ACEOF
3521 /* confdefs.h. */
3522 _ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h. */
3526 $ac_includes_default
3528 #include <$ac_header>
3529 _ACEOF
3530 rm -f conftest.$ac_objext
3531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3532 (eval $ac_compile) 2>conftest.er1
3533 ac_status=$?
3534 grep -v '^ *+' conftest.er1 >conftest.err
3535 rm -f conftest.er1
3536 cat conftest.err >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } &&
3539 { ac_try='test -z "$ac_c_werror_flag"
3540 || test ! -s conftest.err'
3541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3542 (eval $ac_try) 2>&5
3543 ac_status=$?
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); }; } &&
3546 { ac_try='test -s conftest.$ac_objext'
3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548 (eval $ac_try) 2>&5
3549 ac_status=$?
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; }; then
3552 eval "$as_ac_Header=yes"
3553 else
3554 echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3557 eval "$as_ac_Header=no"
3559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3564 cat >>confdefs.h <<_ACEOF
3565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3566 _ACEOF
3570 done
3583 for ac_header in iconv.h locale.h fcntl.h limits.h stddef.h \
3584 stdlib.h strings.h string.h sys/file.h unistd.h
3586 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3588 echo "$as_me:$LINENO: checking for $ac_header" >&5
3589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3591 echo $ECHO_N "(cached) $ECHO_C" >&6
3593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3595 else
3596 # Is the header compilable?
3597 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3598 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3599 cat >conftest.$ac_ext <<_ACEOF
3600 /* confdefs.h. */
3601 _ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3605 $ac_includes_default
3606 #include <$ac_header>
3607 _ACEOF
3608 rm -f conftest.$ac_objext
3609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3610 (eval $ac_compile) 2>conftest.er1
3611 ac_status=$?
3612 grep -v '^ *+' conftest.er1 >conftest.err
3613 rm -f conftest.er1
3614 cat conftest.err >&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); } &&
3617 { ac_try='test -z "$ac_c_werror_flag"
3618 || test ! -s conftest.err'
3619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620 (eval $ac_try) 2>&5
3621 ac_status=$?
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }; } &&
3624 { ac_try='test -s conftest.$ac_objext'
3625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626 (eval $ac_try) 2>&5
3627 ac_status=$?
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }; }; then
3630 ac_header_compiler=yes
3631 else
3632 echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3635 ac_header_compiler=no
3637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3639 echo "${ECHO_T}$ac_header_compiler" >&6
3641 # Is the header present?
3642 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3643 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3644 cat >conftest.$ac_ext <<_ACEOF
3645 /* confdefs.h. */
3646 _ACEOF
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h. */
3650 #include <$ac_header>
3651 _ACEOF
3652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3654 ac_status=$?
3655 grep -v '^ *+' conftest.er1 >conftest.err
3656 rm -f conftest.er1
3657 cat conftest.err >&5
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); } >/dev/null; then
3660 if test -s conftest.err; then
3661 ac_cpp_err=$ac_c_preproc_warn_flag
3662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3663 else
3664 ac_cpp_err=
3666 else
3667 ac_cpp_err=yes
3669 if test -z "$ac_cpp_err"; then
3670 ac_header_preproc=yes
3671 else
3672 echo "$as_me: failed program was:" >&5
3673 sed 's/^/| /' conftest.$ac_ext >&5
3675 ac_header_preproc=no
3677 rm -f conftest.err conftest.$ac_ext
3678 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3679 echo "${ECHO_T}$ac_header_preproc" >&6
3681 # So? What about this header?
3682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3683 yes:no: )
3684 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3685 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3687 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3688 ac_header_preproc=yes
3690 no:yes:* )
3691 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3692 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3693 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3694 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3695 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3696 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3697 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3698 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3700 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3701 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3702 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3704 cat <<\_ASBOX
3705 ## ----------------------------------- ##
3706 ## Report this to gcc-bugs@gcc.gnu.org ##
3707 ## ----------------------------------- ##
3708 _ASBOX
3710 sed "s/^/$as_me: WARNING: /" >&2
3712 esac
3713 echo "$as_me:$LINENO: checking for $ac_header" >&5
3714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3717 else
3718 eval "$as_ac_Header=\$ac_header_preproc"
3720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3725 cat >>confdefs.h <<_ACEOF
3726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3727 _ACEOF
3731 done
3734 # Checks for typedefs, structures, and compiler characteristics.
3735 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3736 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3737 if test "${ac_cv_c_const+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 else
3740 cat >conftest.$ac_ext <<_ACEOF
3741 /* confdefs.h. */
3742 _ACEOF
3743 cat confdefs.h >>conftest.$ac_ext
3744 cat >>conftest.$ac_ext <<_ACEOF
3745 /* end confdefs.h. */
3748 main ()
3750 /* FIXME: Include the comments suggested by Paul. */
3751 #ifndef __cplusplus
3752 /* Ultrix mips cc rejects this. */
3753 typedef int charset[2];
3754 const charset x;
3755 /* SunOS 4.1.1 cc rejects this. */
3756 char const *const *ccp;
3757 char **p;
3758 /* NEC SVR4.0.2 mips cc rejects this. */
3759 struct point {int x, y;};
3760 static struct point const zero = {0,0};
3761 /* AIX XL C 1.02.0.0 rejects this.
3762 It does not let you subtract one const X* pointer from another in
3763 an arm of an if-expression whose if-part is not a constant
3764 expression */
3765 const char *g = "string";
3766 ccp = &g + (g ? g-g : 0);
3767 /* HPUX 7.0 cc rejects these. */
3768 ++ccp;
3769 p = (char**) ccp;
3770 ccp = (char const *const *) p;
3771 { /* SCO 3.2v4 cc rejects this. */
3772 char *t;
3773 char const *s = 0 ? (char *) 0 : (char const *) 0;
3775 *t++ = 0;
3777 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3778 int x[] = {25, 17};
3779 const int *foo = &x[0];
3780 ++foo;
3782 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3783 typedef const int *iptr;
3784 iptr p = 0;
3785 ++p;
3787 { /* AIX XL C 1.02.0.0 rejects this saying
3788 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3789 struct s { int j; const int *ap[3]; };
3790 struct s *b; b->j = 5;
3792 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3793 const int foo = 10;
3795 #endif
3798 return 0;
3800 _ACEOF
3801 rm -f conftest.$ac_objext
3802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3803 (eval $ac_compile) 2>conftest.er1
3804 ac_status=$?
3805 grep -v '^ *+' conftest.er1 >conftest.err
3806 rm -f conftest.er1
3807 cat conftest.err >&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); } &&
3810 { ac_try='test -z "$ac_c_werror_flag"
3811 || test ! -s conftest.err'
3812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813 (eval $ac_try) 2>&5
3814 ac_status=$?
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); }; } &&
3817 { ac_try='test -s conftest.$ac_objext'
3818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3819 (eval $ac_try) 2>&5
3820 ac_status=$?
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }; }; then
3823 ac_cv_c_const=yes
3824 else
3825 echo "$as_me: failed program was:" >&5
3826 sed 's/^/| /' conftest.$ac_ext >&5
3828 ac_cv_c_const=no
3830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3832 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3833 echo "${ECHO_T}$ac_cv_c_const" >&6
3834 if test $ac_cv_c_const = no; then
3836 cat >>confdefs.h <<\_ACEOF
3837 #define const
3838 _ACEOF
3842 echo "$as_me:$LINENO: checking for inline" >&5
3843 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3844 if test "${ac_cv_c_inline+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3846 else
3847 ac_cv_c_inline=no
3848 for ac_kw in inline __inline__ __inline; do
3849 cat >conftest.$ac_ext <<_ACEOF
3850 /* confdefs.h. */
3851 _ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3855 #ifndef __cplusplus
3856 typedef int foo_t;
3857 static $ac_kw foo_t static_foo () {return 0; }
3858 $ac_kw foo_t foo () {return 0; }
3859 #endif
3861 _ACEOF
3862 rm -f conftest.$ac_objext
3863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3864 (eval $ac_compile) 2>conftest.er1
3865 ac_status=$?
3866 grep -v '^ *+' conftest.er1 >conftest.err
3867 rm -f conftest.er1
3868 cat conftest.err >&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); } &&
3871 { ac_try='test -z "$ac_c_werror_flag"
3872 || test ! -s conftest.err'
3873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3874 (eval $ac_try) 2>&5
3875 ac_status=$?
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }; } &&
3878 { ac_try='test -s conftest.$ac_objext'
3879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3880 (eval $ac_try) 2>&5
3881 ac_status=$?
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); }; }; then
3884 ac_cv_c_inline=$ac_kw; break
3885 else
3886 echo "$as_me: failed program was:" >&5
3887 sed 's/^/| /' conftest.$ac_ext >&5
3890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3891 done
3894 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3895 echo "${ECHO_T}$ac_cv_c_inline" >&6
3898 case $ac_cv_c_inline in
3899 inline | yes) ;;
3901 case $ac_cv_c_inline in
3902 no) ac_val=;;
3903 *) ac_val=$ac_cv_c_inline;;
3904 esac
3905 cat >>confdefs.h <<_ACEOF
3906 #ifndef __cplusplus
3907 #define inline $ac_val
3908 #endif
3909 _ACEOF
3911 esac
3913 echo "$as_me:$LINENO: checking for obstacks" >&5
3914 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
3915 if test "${ac_cv_func_obstack+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 else
3918 cat >conftest.$ac_ext <<_ACEOF
3919 /* confdefs.h. */
3920 _ACEOF
3921 cat confdefs.h >>conftest.$ac_ext
3922 cat >>conftest.$ac_ext <<_ACEOF
3923 /* end confdefs.h. */
3924 #include "obstack.h"
3926 main ()
3928 struct obstack *mem; obstack_free(mem,(char *) 0)
3930 return 0;
3932 _ACEOF
3933 rm -f conftest.$ac_objext conftest$ac_exeext
3934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3935 (eval $ac_link) 2>conftest.er1
3936 ac_status=$?
3937 grep -v '^ *+' conftest.er1 >conftest.err
3938 rm -f conftest.er1
3939 cat conftest.err >&5
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); } &&
3942 { ac_try='test -z "$ac_c_werror_flag"
3943 || test ! -s conftest.err'
3944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3945 (eval $ac_try) 2>&5
3946 ac_status=$?
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); }; } &&
3949 { ac_try='test -s conftest$ac_exeext'
3950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3951 (eval $ac_try) 2>&5
3952 ac_status=$?
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); }; }; then
3955 ac_cv_func_obstack=yes
3956 else
3957 echo "$as_me: failed program was:" >&5
3958 sed 's/^/| /' conftest.$ac_ext >&5
3960 ac_cv_func_obstack=no
3962 rm -f conftest.err conftest.$ac_objext \
3963 conftest$ac_exeext conftest.$ac_ext
3965 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
3966 echo "${ECHO_T}$ac_cv_func_obstack" >&6
3967 if test $ac_cv_func_obstack = yes; then
3969 cat >>confdefs.h <<\_ACEOF
3970 #define HAVE_OBSTACK 1
3971 _ACEOF
3973 else
3974 case $LIBOBJS in
3975 "obstack.$ac_objext" | \
3976 *" obstack.$ac_objext" | \
3977 "obstack.$ac_objext "* | \
3978 *" obstack.$ac_objext "* ) ;;
3979 *) LIBOBJS="$LIBOBJS obstack.$ac_objext" ;;
3980 esac
3984 echo "$as_me:$LINENO: checking for off_t" >&5
3985 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3986 if test "${ac_cv_type_off_t+set}" = set; then
3987 echo $ECHO_N "(cached) $ECHO_C" >&6
3988 else
3989 cat >conftest.$ac_ext <<_ACEOF
3990 /* confdefs.h. */
3991 _ACEOF
3992 cat confdefs.h >>conftest.$ac_ext
3993 cat >>conftest.$ac_ext <<_ACEOF
3994 /* end confdefs.h. */
3995 $ac_includes_default
3997 main ()
3999 if ((off_t *) 0)
4000 return 0;
4001 if (sizeof (off_t))
4002 return 0;
4004 return 0;
4006 _ACEOF
4007 rm -f conftest.$ac_objext
4008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4009 (eval $ac_compile) 2>conftest.er1
4010 ac_status=$?
4011 grep -v '^ *+' conftest.er1 >conftest.err
4012 rm -f conftest.er1
4013 cat conftest.err >&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); } &&
4016 { ac_try='test -z "$ac_c_werror_flag"
4017 || test ! -s conftest.err'
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); }; } &&
4023 { ac_try='test -s conftest.$ac_objext'
4024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4025 (eval $ac_try) 2>&5
4026 ac_status=$?
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); }; }; then
4029 ac_cv_type_off_t=yes
4030 else
4031 echo "$as_me: failed program was:" >&5
4032 sed 's/^/| /' conftest.$ac_ext >&5
4034 ac_cv_type_off_t=no
4036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4038 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4039 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4040 if test $ac_cv_type_off_t = yes; then
4042 else
4044 cat >>confdefs.h <<_ACEOF
4045 #define off_t long
4046 _ACEOF
4050 echo "$as_me:$LINENO: checking for size_t" >&5
4051 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4052 if test "${ac_cv_type_size_t+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4054 else
4055 cat >conftest.$ac_ext <<_ACEOF
4056 /* confdefs.h. */
4057 _ACEOF
4058 cat confdefs.h >>conftest.$ac_ext
4059 cat >>conftest.$ac_ext <<_ACEOF
4060 /* end confdefs.h. */
4061 $ac_includes_default
4063 main ()
4065 if ((size_t *) 0)
4066 return 0;
4067 if (sizeof (size_t))
4068 return 0;
4070 return 0;
4072 _ACEOF
4073 rm -f conftest.$ac_objext
4074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4075 (eval $ac_compile) 2>conftest.er1
4076 ac_status=$?
4077 grep -v '^ *+' conftest.er1 >conftest.err
4078 rm -f conftest.er1
4079 cat conftest.err >&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); } &&
4082 { ac_try='test -z "$ac_c_werror_flag"
4083 || test ! -s conftest.err'
4084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085 (eval $ac_try) 2>&5
4086 ac_status=$?
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; } &&
4089 { ac_try='test -s conftest.$ac_objext'
4090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4091 (eval $ac_try) 2>&5
4092 ac_status=$?
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); }; }; then
4095 ac_cv_type_size_t=yes
4096 else
4097 echo "$as_me: failed program was:" >&5
4098 sed 's/^/| /' conftest.$ac_ext >&5
4100 ac_cv_type_size_t=no
4102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4104 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4105 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4106 if test $ac_cv_type_size_t = yes; then
4108 else
4110 cat >>confdefs.h <<_ACEOF
4111 #define size_t unsigned
4112 _ACEOF
4116 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4117 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4118 if test "${ac_cv_struct_tm+set}" = set; then
4119 echo $ECHO_N "(cached) $ECHO_C" >&6
4120 else
4121 cat >conftest.$ac_ext <<_ACEOF
4122 /* confdefs.h. */
4123 _ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h. */
4127 #include <sys/types.h>
4128 #include <time.h>
4131 main ()
4133 struct tm *tp; tp->tm_sec;
4135 return 0;
4137 _ACEOF
4138 rm -f conftest.$ac_objext
4139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4140 (eval $ac_compile) 2>conftest.er1
4141 ac_status=$?
4142 grep -v '^ *+' conftest.er1 >conftest.err
4143 rm -f conftest.er1
4144 cat conftest.err >&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); } &&
4147 { ac_try='test -z "$ac_c_werror_flag"
4148 || test ! -s conftest.err'
4149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4150 (eval $ac_try) 2>&5
4151 ac_status=$?
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); }; } &&
4154 { ac_try='test -s conftest.$ac_objext'
4155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4156 (eval $ac_try) 2>&5
4157 ac_status=$?
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }; }; then
4160 ac_cv_struct_tm=time.h
4161 else
4162 echo "$as_me: failed program was:" >&5
4163 sed 's/^/| /' conftest.$ac_ext >&5
4165 ac_cv_struct_tm=sys/time.h
4167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4169 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4170 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4171 if test $ac_cv_struct_tm = sys/time.h; then
4173 cat >>confdefs.h <<\_ACEOF
4174 #define TM_IN_SYS_TIME 1
4175 _ACEOF
4179 echo "$as_me:$LINENO: checking for int" >&5
4180 echo $ECHO_N "checking for int... $ECHO_C" >&6
4181 if test "${ac_cv_type_int+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 else
4184 cat >conftest.$ac_ext <<_ACEOF
4185 /* confdefs.h. */
4186 _ACEOF
4187 cat confdefs.h >>conftest.$ac_ext
4188 cat >>conftest.$ac_ext <<_ACEOF
4189 /* end confdefs.h. */
4190 $ac_includes_default
4192 main ()
4194 if ((int *) 0)
4195 return 0;
4196 if (sizeof (int))
4197 return 0;
4199 return 0;
4201 _ACEOF
4202 rm -f conftest.$ac_objext
4203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4204 (eval $ac_compile) 2>conftest.er1
4205 ac_status=$?
4206 grep -v '^ *+' conftest.er1 >conftest.err
4207 rm -f conftest.er1
4208 cat conftest.err >&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } &&
4211 { ac_try='test -z "$ac_c_werror_flag"
4212 || test ! -s conftest.err'
4213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214 (eval $ac_try) 2>&5
4215 ac_status=$?
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); }; } &&
4218 { ac_try='test -s conftest.$ac_objext'
4219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220 (eval $ac_try) 2>&5
4221 ac_status=$?
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); }; }; then
4224 ac_cv_type_int=yes
4225 else
4226 echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.$ac_ext >&5
4229 ac_cv_type_int=no
4231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4233 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4234 echo "${ECHO_T}$ac_cv_type_int" >&6
4236 echo "$as_me:$LINENO: checking size of int" >&5
4237 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4238 if test "${ac_cv_sizeof_int+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4240 else
4241 if test "$ac_cv_type_int" = yes; then
4242 # The cast to unsigned long works around a bug in the HP C Compiler
4243 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4244 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4245 # This bug is HP SR number 8606223364.
4246 if test "$cross_compiling" = yes; then
4247 # Depending upon the size, compute the lo and hi bounds.
4248 cat >conftest.$ac_ext <<_ACEOF
4249 /* confdefs.h. */
4250 _ACEOF
4251 cat confdefs.h >>conftest.$ac_ext
4252 cat >>conftest.$ac_ext <<_ACEOF
4253 /* end confdefs.h. */
4254 $ac_includes_default
4256 main ()
4258 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4259 test_array [0] = 0
4262 return 0;
4264 _ACEOF
4265 rm -f conftest.$ac_objext
4266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4267 (eval $ac_compile) 2>conftest.er1
4268 ac_status=$?
4269 grep -v '^ *+' conftest.er1 >conftest.err
4270 rm -f conftest.er1
4271 cat conftest.err >&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } &&
4274 { ac_try='test -z "$ac_c_werror_flag"
4275 || test ! -s conftest.err'
4276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277 (eval $ac_try) 2>&5
4278 ac_status=$?
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; } &&
4281 { ac_try='test -s conftest.$ac_objext'
4282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283 (eval $ac_try) 2>&5
4284 ac_status=$?
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }; }; then
4287 ac_lo=0 ac_mid=0
4288 while :; do
4289 cat >conftest.$ac_ext <<_ACEOF
4290 /* confdefs.h. */
4291 _ACEOF
4292 cat confdefs.h >>conftest.$ac_ext
4293 cat >>conftest.$ac_ext <<_ACEOF
4294 /* end confdefs.h. */
4295 $ac_includes_default
4297 main ()
4299 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4300 test_array [0] = 0
4303 return 0;
4305 _ACEOF
4306 rm -f conftest.$ac_objext
4307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4308 (eval $ac_compile) 2>conftest.er1
4309 ac_status=$?
4310 grep -v '^ *+' conftest.er1 >conftest.err
4311 rm -f conftest.er1
4312 cat conftest.err >&5
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); } &&
4315 { ac_try='test -z "$ac_c_werror_flag"
4316 || test ! -s conftest.err'
4317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4318 (eval $ac_try) 2>&5
4319 ac_status=$?
4320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321 (exit $ac_status); }; } &&
4322 { ac_try='test -s conftest.$ac_objext'
4323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4324 (eval $ac_try) 2>&5
4325 ac_status=$?
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); }; }; then
4328 ac_hi=$ac_mid; break
4329 else
4330 echo "$as_me: failed program was:" >&5
4331 sed 's/^/| /' conftest.$ac_ext >&5
4333 ac_lo=`expr $ac_mid + 1`
4334 if test $ac_lo -le $ac_mid; then
4335 ac_lo= ac_hi=
4336 break
4338 ac_mid=`expr 2 '*' $ac_mid + 1`
4340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4341 done
4342 else
4343 echo "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.$ac_ext >&5
4346 cat >conftest.$ac_ext <<_ACEOF
4347 /* confdefs.h. */
4348 _ACEOF
4349 cat confdefs.h >>conftest.$ac_ext
4350 cat >>conftest.$ac_ext <<_ACEOF
4351 /* end confdefs.h. */
4352 $ac_includes_default
4354 main ()
4356 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4357 test_array [0] = 0
4360 return 0;
4362 _ACEOF
4363 rm -f conftest.$ac_objext
4364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4365 (eval $ac_compile) 2>conftest.er1
4366 ac_status=$?
4367 grep -v '^ *+' conftest.er1 >conftest.err
4368 rm -f conftest.er1
4369 cat conftest.err >&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); } &&
4372 { ac_try='test -z "$ac_c_werror_flag"
4373 || test ! -s conftest.err'
4374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375 (eval $ac_try) 2>&5
4376 ac_status=$?
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; } &&
4379 { ac_try='test -s conftest.$ac_objext'
4380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381 (eval $ac_try) 2>&5
4382 ac_status=$?
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); }; }; then
4385 ac_hi=-1 ac_mid=-1
4386 while :; do
4387 cat >conftest.$ac_ext <<_ACEOF
4388 /* confdefs.h. */
4389 _ACEOF
4390 cat confdefs.h >>conftest.$ac_ext
4391 cat >>conftest.$ac_ext <<_ACEOF
4392 /* end confdefs.h. */
4393 $ac_includes_default
4395 main ()
4397 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4398 test_array [0] = 0
4401 return 0;
4403 _ACEOF
4404 rm -f conftest.$ac_objext
4405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4406 (eval $ac_compile) 2>conftest.er1
4407 ac_status=$?
4408 grep -v '^ *+' conftest.er1 >conftest.err
4409 rm -f conftest.er1
4410 cat conftest.err >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); } &&
4413 { ac_try='test -z "$ac_c_werror_flag"
4414 || test ! -s conftest.err'
4415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4416 (eval $ac_try) 2>&5
4417 ac_status=$?
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); }; } &&
4420 { ac_try='test -s conftest.$ac_objext'
4421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4422 (eval $ac_try) 2>&5
4423 ac_status=$?
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); }; }; then
4426 ac_lo=$ac_mid; break
4427 else
4428 echo "$as_me: failed program was:" >&5
4429 sed 's/^/| /' conftest.$ac_ext >&5
4431 ac_hi=`expr '(' $ac_mid ')' - 1`
4432 if test $ac_mid -le $ac_hi; then
4433 ac_lo= ac_hi=
4434 break
4436 ac_mid=`expr 2 '*' $ac_mid`
4438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4439 done
4440 else
4441 echo "$as_me: failed program was:" >&5
4442 sed 's/^/| /' conftest.$ac_ext >&5
4444 ac_lo= ac_hi=
4446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4449 # Binary search between lo and hi bounds.
4450 while test "x$ac_lo" != "x$ac_hi"; do
4451 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4452 cat >conftest.$ac_ext <<_ACEOF
4453 /* confdefs.h. */
4454 _ACEOF
4455 cat confdefs.h >>conftest.$ac_ext
4456 cat >>conftest.$ac_ext <<_ACEOF
4457 /* end confdefs.h. */
4458 $ac_includes_default
4460 main ()
4462 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4463 test_array [0] = 0
4466 return 0;
4468 _ACEOF
4469 rm -f conftest.$ac_objext
4470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4471 (eval $ac_compile) 2>conftest.er1
4472 ac_status=$?
4473 grep -v '^ *+' conftest.er1 >conftest.err
4474 rm -f conftest.er1
4475 cat conftest.err >&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); } &&
4478 { ac_try='test -z "$ac_c_werror_flag"
4479 || test ! -s conftest.err'
4480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481 (eval $ac_try) 2>&5
4482 ac_status=$?
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; } &&
4485 { ac_try='test -s conftest.$ac_objext'
4486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487 (eval $ac_try) 2>&5
4488 ac_status=$?
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; }; then
4491 ac_hi=$ac_mid
4492 else
4493 echo "$as_me: failed program was:" >&5
4494 sed 's/^/| /' conftest.$ac_ext >&5
4496 ac_lo=`expr '(' $ac_mid ')' + 1`
4498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4499 done
4500 case $ac_lo in
4501 ?*) ac_cv_sizeof_int=$ac_lo;;
4502 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4503 See \`config.log' for more details." >&5
4504 echo "$as_me: error: cannot compute sizeof (int), 77
4505 See \`config.log' for more details." >&2;}
4506 { (exit 1); exit 1; }; } ;;
4507 esac
4508 else
4509 if test "$cross_compiling" = yes; then
4510 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4511 See \`config.log' for more details." >&5
4512 echo "$as_me: error: cannot run test program while cross compiling
4513 See \`config.log' for more details." >&2;}
4514 { (exit 1); exit 1; }; }
4515 else
4516 cat >conftest.$ac_ext <<_ACEOF
4517 /* confdefs.h. */
4518 _ACEOF
4519 cat confdefs.h >>conftest.$ac_ext
4520 cat >>conftest.$ac_ext <<_ACEOF
4521 /* end confdefs.h. */
4522 $ac_includes_default
4523 long longval () { return (long) (sizeof (int)); }
4524 unsigned long ulongval () { return (long) (sizeof (int)); }
4525 #include <stdio.h>
4526 #include <stdlib.h>
4528 main ()
4531 FILE *f = fopen ("conftest.val", "w");
4532 if (! f)
4533 exit (1);
4534 if (((long) (sizeof (int))) < 0)
4536 long i = longval ();
4537 if (i != ((long) (sizeof (int))))
4538 exit (1);
4539 fprintf (f, "%ld\n", i);
4541 else
4543 unsigned long i = ulongval ();
4544 if (i != ((long) (sizeof (int))))
4545 exit (1);
4546 fprintf (f, "%lu\n", i);
4548 exit (ferror (f) || fclose (f) != 0);
4551 return 0;
4553 _ACEOF
4554 rm -f conftest$ac_exeext
4555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4556 (eval $ac_link) 2>&5
4557 ac_status=$?
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561 (eval $ac_try) 2>&5
4562 ac_status=$?
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; }; then
4565 ac_cv_sizeof_int=`cat conftest.val`
4566 else
4567 echo "$as_me: program exited with status $ac_status" >&5
4568 echo "$as_me: failed program was:" >&5
4569 sed 's/^/| /' conftest.$ac_ext >&5
4571 ( exit $ac_status )
4572 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4573 See \`config.log' for more details." >&5
4574 echo "$as_me: error: cannot compute sizeof (int), 77
4575 See \`config.log' for more details." >&2;}
4576 { (exit 1); exit 1; }; }
4578 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4581 rm -f conftest.val
4582 else
4583 ac_cv_sizeof_int=0
4586 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4587 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4588 cat >>confdefs.h <<_ACEOF
4589 #define SIZEOF_INT $ac_cv_sizeof_int
4590 _ACEOF
4593 echo "$as_me:$LINENO: checking for long" >&5
4594 echo $ECHO_N "checking for long... $ECHO_C" >&6
4595 if test "${ac_cv_type_long+set}" = set; then
4596 echo $ECHO_N "(cached) $ECHO_C" >&6
4597 else
4598 cat >conftest.$ac_ext <<_ACEOF
4599 /* confdefs.h. */
4600 _ACEOF
4601 cat confdefs.h >>conftest.$ac_ext
4602 cat >>conftest.$ac_ext <<_ACEOF
4603 /* end confdefs.h. */
4604 $ac_includes_default
4606 main ()
4608 if ((long *) 0)
4609 return 0;
4610 if (sizeof (long))
4611 return 0;
4613 return 0;
4615 _ACEOF
4616 rm -f conftest.$ac_objext
4617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4618 (eval $ac_compile) 2>conftest.er1
4619 ac_status=$?
4620 grep -v '^ *+' conftest.er1 >conftest.err
4621 rm -f conftest.er1
4622 cat conftest.err >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } &&
4625 { ac_try='test -z "$ac_c_werror_flag"
4626 || test ! -s conftest.err'
4627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628 (eval $ac_try) 2>&5
4629 ac_status=$?
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; } &&
4632 { ac_try='test -s conftest.$ac_objext'
4633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634 (eval $ac_try) 2>&5
4635 ac_status=$?
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; }; then
4638 ac_cv_type_long=yes
4639 else
4640 echo "$as_me: failed program was:" >&5
4641 sed 's/^/| /' conftest.$ac_ext >&5
4643 ac_cv_type_long=no
4645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4647 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4648 echo "${ECHO_T}$ac_cv_type_long" >&6
4650 echo "$as_me:$LINENO: checking size of long" >&5
4651 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4652 if test "${ac_cv_sizeof_long+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 else
4655 if test "$ac_cv_type_long" = yes; then
4656 # The cast to unsigned long works around a bug in the HP C Compiler
4657 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4658 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4659 # This bug is HP SR number 8606223364.
4660 if test "$cross_compiling" = yes; then
4661 # Depending upon the size, compute the lo and hi bounds.
4662 cat >conftest.$ac_ext <<_ACEOF
4663 /* confdefs.h. */
4664 _ACEOF
4665 cat confdefs.h >>conftest.$ac_ext
4666 cat >>conftest.$ac_ext <<_ACEOF
4667 /* end confdefs.h. */
4668 $ac_includes_default
4670 main ()
4672 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4673 test_array [0] = 0
4676 return 0;
4678 _ACEOF
4679 rm -f conftest.$ac_objext
4680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4681 (eval $ac_compile) 2>conftest.er1
4682 ac_status=$?
4683 grep -v '^ *+' conftest.er1 >conftest.err
4684 rm -f conftest.er1
4685 cat conftest.err >&5
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); } &&
4688 { ac_try='test -z "$ac_c_werror_flag"
4689 || test ! -s conftest.err'
4690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4691 (eval $ac_try) 2>&5
4692 ac_status=$?
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); }; } &&
4695 { ac_try='test -s conftest.$ac_objext'
4696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4697 (eval $ac_try) 2>&5
4698 ac_status=$?
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); }; }; then
4701 ac_lo=0 ac_mid=0
4702 while :; do
4703 cat >conftest.$ac_ext <<_ACEOF
4704 /* confdefs.h. */
4705 _ACEOF
4706 cat confdefs.h >>conftest.$ac_ext
4707 cat >>conftest.$ac_ext <<_ACEOF
4708 /* end confdefs.h. */
4709 $ac_includes_default
4711 main ()
4713 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4714 test_array [0] = 0
4717 return 0;
4719 _ACEOF
4720 rm -f conftest.$ac_objext
4721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4722 (eval $ac_compile) 2>conftest.er1
4723 ac_status=$?
4724 grep -v '^ *+' conftest.er1 >conftest.err
4725 rm -f conftest.er1
4726 cat conftest.err >&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } &&
4729 { ac_try='test -z "$ac_c_werror_flag"
4730 || test ! -s conftest.err'
4731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4732 (eval $ac_try) 2>&5
4733 ac_status=$?
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); }; } &&
4736 { ac_try='test -s conftest.$ac_objext'
4737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738 (eval $ac_try) 2>&5
4739 ac_status=$?
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; }; then
4742 ac_hi=$ac_mid; break
4743 else
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.$ac_ext >&5
4747 ac_lo=`expr $ac_mid + 1`
4748 if test $ac_lo -le $ac_mid; then
4749 ac_lo= ac_hi=
4750 break
4752 ac_mid=`expr 2 '*' $ac_mid + 1`
4754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4755 done
4756 else
4757 echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.$ac_ext >&5
4760 cat >conftest.$ac_ext <<_ACEOF
4761 /* confdefs.h. */
4762 _ACEOF
4763 cat confdefs.h >>conftest.$ac_ext
4764 cat >>conftest.$ac_ext <<_ACEOF
4765 /* end confdefs.h. */
4766 $ac_includes_default
4768 main ()
4770 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4771 test_array [0] = 0
4774 return 0;
4776 _ACEOF
4777 rm -f conftest.$ac_objext
4778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4779 (eval $ac_compile) 2>conftest.er1
4780 ac_status=$?
4781 grep -v '^ *+' conftest.er1 >conftest.err
4782 rm -f conftest.er1
4783 cat conftest.err >&5
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); } &&
4786 { ac_try='test -z "$ac_c_werror_flag"
4787 || test ! -s conftest.err'
4788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4789 (eval $ac_try) 2>&5
4790 ac_status=$?
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); }; } &&
4793 { ac_try='test -s conftest.$ac_objext'
4794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795 (eval $ac_try) 2>&5
4796 ac_status=$?
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); }; }; then
4799 ac_hi=-1 ac_mid=-1
4800 while :; do
4801 cat >conftest.$ac_ext <<_ACEOF
4802 /* confdefs.h. */
4803 _ACEOF
4804 cat confdefs.h >>conftest.$ac_ext
4805 cat >>conftest.$ac_ext <<_ACEOF
4806 /* end confdefs.h. */
4807 $ac_includes_default
4809 main ()
4811 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4812 test_array [0] = 0
4815 return 0;
4817 _ACEOF
4818 rm -f conftest.$ac_objext
4819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4820 (eval $ac_compile) 2>conftest.er1
4821 ac_status=$?
4822 grep -v '^ *+' conftest.er1 >conftest.err
4823 rm -f conftest.er1
4824 cat conftest.err >&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); } &&
4827 { ac_try='test -z "$ac_c_werror_flag"
4828 || test ! -s conftest.err'
4829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4830 (eval $ac_try) 2>&5
4831 ac_status=$?
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); }; } &&
4834 { ac_try='test -s conftest.$ac_objext'
4835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836 (eval $ac_try) 2>&5
4837 ac_status=$?
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); }; }; then
4840 ac_lo=$ac_mid; break
4841 else
4842 echo "$as_me: failed program was:" >&5
4843 sed 's/^/| /' conftest.$ac_ext >&5
4845 ac_hi=`expr '(' $ac_mid ')' - 1`
4846 if test $ac_mid -le $ac_hi; then
4847 ac_lo= ac_hi=
4848 break
4850 ac_mid=`expr 2 '*' $ac_mid`
4852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4853 done
4854 else
4855 echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.$ac_ext >&5
4858 ac_lo= ac_hi=
4860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4863 # Binary search between lo and hi bounds.
4864 while test "x$ac_lo" != "x$ac_hi"; do
4865 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4866 cat >conftest.$ac_ext <<_ACEOF
4867 /* confdefs.h. */
4868 _ACEOF
4869 cat confdefs.h >>conftest.$ac_ext
4870 cat >>conftest.$ac_ext <<_ACEOF
4871 /* end confdefs.h. */
4872 $ac_includes_default
4874 main ()
4876 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4877 test_array [0] = 0
4880 return 0;
4882 _ACEOF
4883 rm -f conftest.$ac_objext
4884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4885 (eval $ac_compile) 2>conftest.er1
4886 ac_status=$?
4887 grep -v '^ *+' conftest.er1 >conftest.err
4888 rm -f conftest.er1
4889 cat conftest.err >&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); } &&
4892 { ac_try='test -z "$ac_c_werror_flag"
4893 || test ! -s conftest.err'
4894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4895 (eval $ac_try) 2>&5
4896 ac_status=$?
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }; } &&
4899 { ac_try='test -s conftest.$ac_objext'
4900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4901 (eval $ac_try) 2>&5
4902 ac_status=$?
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); }; }; then
4905 ac_hi=$ac_mid
4906 else
4907 echo "$as_me: failed program was:" >&5
4908 sed 's/^/| /' conftest.$ac_ext >&5
4910 ac_lo=`expr '(' $ac_mid ')' + 1`
4912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4913 done
4914 case $ac_lo in
4915 ?*) ac_cv_sizeof_long=$ac_lo;;
4916 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4917 See \`config.log' for more details." >&5
4918 echo "$as_me: error: cannot compute sizeof (long), 77
4919 See \`config.log' for more details." >&2;}
4920 { (exit 1); exit 1; }; } ;;
4921 esac
4922 else
4923 if test "$cross_compiling" = yes; then
4924 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4925 See \`config.log' for more details." >&5
4926 echo "$as_me: error: cannot run test program while cross compiling
4927 See \`config.log' for more details." >&2;}
4928 { (exit 1); exit 1; }; }
4929 else
4930 cat >conftest.$ac_ext <<_ACEOF
4931 /* confdefs.h. */
4932 _ACEOF
4933 cat confdefs.h >>conftest.$ac_ext
4934 cat >>conftest.$ac_ext <<_ACEOF
4935 /* end confdefs.h. */
4936 $ac_includes_default
4937 long longval () { return (long) (sizeof (long)); }
4938 unsigned long ulongval () { return (long) (sizeof (long)); }
4939 #include <stdio.h>
4940 #include <stdlib.h>
4942 main ()
4945 FILE *f = fopen ("conftest.val", "w");
4946 if (! f)
4947 exit (1);
4948 if (((long) (sizeof (long))) < 0)
4950 long i = longval ();
4951 if (i != ((long) (sizeof (long))))
4952 exit (1);
4953 fprintf (f, "%ld\n", i);
4955 else
4957 unsigned long i = ulongval ();
4958 if (i != ((long) (sizeof (long))))
4959 exit (1);
4960 fprintf (f, "%lu\n", i);
4962 exit (ferror (f) || fclose (f) != 0);
4965 return 0;
4967 _ACEOF
4968 rm -f conftest$ac_exeext
4969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4970 (eval $ac_link) 2>&5
4971 ac_status=$?
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4975 (eval $ac_try) 2>&5
4976 ac_status=$?
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); }; }; then
4979 ac_cv_sizeof_long=`cat conftest.val`
4980 else
4981 echo "$as_me: program exited with status $ac_status" >&5
4982 echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4985 ( exit $ac_status )
4986 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4987 See \`config.log' for more details." >&5
4988 echo "$as_me: error: cannot compute sizeof (long), 77
4989 See \`config.log' for more details." >&2;}
4990 { (exit 1); exit 1; }; }
4992 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4995 rm -f conftest.val
4996 else
4997 ac_cv_sizeof_long=0
5000 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5001 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5002 cat >>confdefs.h <<_ACEOF
5003 #define SIZEOF_LONG $ac_cv_sizeof_long
5004 _ACEOF
5024 for ac_func in clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
5026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5027 echo "$as_me:$LINENO: checking for $ac_func" >&5
5028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5029 if eval "test \"\${$as_ac_var+set}\" = set"; then
5030 echo $ECHO_N "(cached) $ECHO_C" >&6
5031 else
5032 cat >conftest.$ac_ext <<_ACEOF
5033 /* confdefs.h. */
5034 _ACEOF
5035 cat confdefs.h >>conftest.$ac_ext
5036 cat >>conftest.$ac_ext <<_ACEOF
5037 /* end confdefs.h. */
5038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5040 #define $ac_func innocuous_$ac_func
5042 /* System header to define __stub macros and hopefully few prototypes,
5043 which can conflict with char $ac_func (); below.
5044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5045 <limits.h> exists even on freestanding compilers. */
5047 #ifdef __STDC__
5048 # include <limits.h>
5049 #else
5050 # include <assert.h>
5051 #endif
5053 #undef $ac_func
5055 /* Override any gcc2 internal prototype to avoid an error. */
5056 #ifdef __cplusplus
5057 extern "C"
5059 #endif
5060 /* We use char because int might match the return type of a gcc2
5061 builtin and then its argument prototype would still apply. */
5062 char $ac_func ();
5063 /* The GNU C library defines this for functions which it implements
5064 to always fail with ENOSYS. Some functions are actually named
5065 something starting with __ and the normal name is an alias. */
5066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5067 choke me
5068 #else
5069 char (*f) () = $ac_func;
5070 #endif
5071 #ifdef __cplusplus
5073 #endif
5076 main ()
5078 return f != $ac_func;
5080 return 0;
5082 _ACEOF
5083 rm -f conftest.$ac_objext conftest$ac_exeext
5084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5085 (eval $ac_link) 2>conftest.er1
5086 ac_status=$?
5087 grep -v '^ *+' conftest.er1 >conftest.err
5088 rm -f conftest.er1
5089 cat conftest.err >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); } &&
5092 { ac_try='test -z "$ac_c_werror_flag"
5093 || test ! -s conftest.err'
5094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095 (eval $ac_try) 2>&5
5096 ac_status=$?
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); }; } &&
5099 { ac_try='test -s conftest$ac_exeext'
5100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5101 (eval $ac_try) 2>&5
5102 ac_status=$?
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); }; }; then
5105 eval "$as_ac_var=yes"
5106 else
5107 echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5110 eval "$as_ac_var=no"
5112 rm -f conftest.err conftest.$ac_objext \
5113 conftest$ac_exeext conftest.$ac_ext
5115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5116 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5117 if test `eval echo '${'$as_ac_var'}'` = yes; then
5118 cat >>confdefs.h <<_ACEOF
5119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5120 _ACEOF
5123 done
5125 echo "$as_me:$LINENO: checking whether abort is declared" >&5
5126 echo $ECHO_N "checking whether abort is declared... $ECHO_C" >&6
5127 if test "${ac_cv_have_decl_abort+set}" = set; then
5128 echo $ECHO_N "(cached) $ECHO_C" >&6
5129 else
5130 cat >conftest.$ac_ext <<_ACEOF
5131 /* confdefs.h. */
5132 _ACEOF
5133 cat confdefs.h >>conftest.$ac_ext
5134 cat >>conftest.$ac_ext <<_ACEOF
5135 /* end confdefs.h. */
5136 $ac_includes_default
5138 main ()
5140 #ifndef abort
5141 char *p = (char *) abort;
5142 #endif
5145 return 0;
5147 _ACEOF
5148 rm -f conftest.$ac_objext
5149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5150 (eval $ac_compile) 2>conftest.er1
5151 ac_status=$?
5152 grep -v '^ *+' conftest.er1 >conftest.err
5153 rm -f conftest.er1
5154 cat conftest.err >&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); } &&
5157 { ac_try='test -z "$ac_c_werror_flag"
5158 || test ! -s conftest.err'
5159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5160 (eval $ac_try) 2>&5
5161 ac_status=$?
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); }; } &&
5164 { ac_try='test -s conftest.$ac_objext'
5165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5166 (eval $ac_try) 2>&5
5167 ac_status=$?
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); }; }; then
5170 ac_cv_have_decl_abort=yes
5171 else
5172 echo "$as_me: failed program was:" >&5
5173 sed 's/^/| /' conftest.$ac_ext >&5
5175 ac_cv_have_decl_abort=no
5177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5179 echo "$as_me:$LINENO: result: $ac_cv_have_decl_abort" >&5
5180 echo "${ECHO_T}$ac_cv_have_decl_abort" >&6
5181 if test $ac_cv_have_decl_abort = yes; then
5183 cat >>confdefs.h <<_ACEOF
5184 #define HAVE_DECL_ABORT 1
5185 _ACEOF
5188 else
5189 cat >>confdefs.h <<_ACEOF
5190 #define HAVE_DECL_ABORT 0
5191 _ACEOF
5195 echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
5196 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
5197 if test "${ac_cv_have_decl_asprintf+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 $ac_includes_default
5208 main ()
5210 #ifndef asprintf
5211 char *p = (char *) asprintf;
5212 #endif
5215 return 0;
5217 _ACEOF
5218 rm -f conftest.$ac_objext
5219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5220 (eval $ac_compile) 2>conftest.er1
5221 ac_status=$?
5222 grep -v '^ *+' conftest.er1 >conftest.err
5223 rm -f conftest.er1
5224 cat conftest.err >&5
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); } &&
5227 { ac_try='test -z "$ac_c_werror_flag"
5228 || test ! -s conftest.err'
5229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230 (eval $ac_try) 2>&5
5231 ac_status=$?
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); }; } &&
5234 { ac_try='test -s conftest.$ac_objext'
5235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5236 (eval $ac_try) 2>&5
5237 ac_status=$?
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); }; }; then
5240 ac_cv_have_decl_asprintf=yes
5241 else
5242 echo "$as_me: failed program was:" >&5
5243 sed 's/^/| /' conftest.$ac_ext >&5
5245 ac_cv_have_decl_asprintf=no
5247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5249 echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
5250 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
5251 if test $ac_cv_have_decl_asprintf = yes; then
5253 cat >>confdefs.h <<_ACEOF
5254 #define HAVE_DECL_ASPRINTF 1
5255 _ACEOF
5258 else
5259 cat >>confdefs.h <<_ACEOF
5260 #define HAVE_DECL_ASPRINTF 0
5261 _ACEOF
5265 echo "$as_me:$LINENO: checking whether basename is declared" >&5
5266 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
5267 if test "${ac_cv_have_decl_basename+set}" = set; then
5268 echo $ECHO_N "(cached) $ECHO_C" >&6
5269 else
5270 cat >conftest.$ac_ext <<_ACEOF
5271 /* confdefs.h. */
5272 _ACEOF
5273 cat confdefs.h >>conftest.$ac_ext
5274 cat >>conftest.$ac_ext <<_ACEOF
5275 /* end confdefs.h. */
5276 $ac_includes_default
5278 main ()
5280 #ifndef basename
5281 char *p = (char *) basename;
5282 #endif
5285 return 0;
5287 _ACEOF
5288 rm -f conftest.$ac_objext
5289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5290 (eval $ac_compile) 2>conftest.er1
5291 ac_status=$?
5292 grep -v '^ *+' conftest.er1 >conftest.err
5293 rm -f conftest.er1
5294 cat conftest.err >&5
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); } &&
5297 { ac_try='test -z "$ac_c_werror_flag"
5298 || test ! -s conftest.err'
5299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5300 (eval $ac_try) 2>&5
5301 ac_status=$?
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); }; } &&
5304 { ac_try='test -s conftest.$ac_objext'
5305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5306 (eval $ac_try) 2>&5
5307 ac_status=$?
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); }; }; then
5310 ac_cv_have_decl_basename=yes
5311 else
5312 echo "$as_me: failed program was:" >&5
5313 sed 's/^/| /' conftest.$ac_ext >&5
5315 ac_cv_have_decl_basename=no
5317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5319 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
5320 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
5321 if test $ac_cv_have_decl_basename = yes; then
5323 cat >>confdefs.h <<_ACEOF
5324 #define HAVE_DECL_BASENAME 1
5325 _ACEOF
5328 else
5329 cat >>confdefs.h <<_ACEOF
5330 #define HAVE_DECL_BASENAME 0
5331 _ACEOF
5335 echo "$as_me:$LINENO: checking whether errno is declared" >&5
5336 echo $ECHO_N "checking whether errno is declared... $ECHO_C" >&6
5337 if test "${ac_cv_have_decl_errno+set}" = set; then
5338 echo $ECHO_N "(cached) $ECHO_C" >&6
5339 else
5340 cat >conftest.$ac_ext <<_ACEOF
5341 /* confdefs.h. */
5342 _ACEOF
5343 cat confdefs.h >>conftest.$ac_ext
5344 cat >>conftest.$ac_ext <<_ACEOF
5345 /* end confdefs.h. */
5346 $ac_includes_default
5348 main ()
5350 #ifndef errno
5351 char *p = (char *) errno;
5352 #endif
5355 return 0;
5357 _ACEOF
5358 rm -f conftest.$ac_objext
5359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5360 (eval $ac_compile) 2>conftest.er1
5361 ac_status=$?
5362 grep -v '^ *+' conftest.er1 >conftest.err
5363 rm -f conftest.er1
5364 cat conftest.err >&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } &&
5367 { ac_try='test -z "$ac_c_werror_flag"
5368 || test ! -s conftest.err'
5369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5370 (eval $ac_try) 2>&5
5371 ac_status=$?
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); }; } &&
5374 { ac_try='test -s conftest.$ac_objext'
5375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376 (eval $ac_try) 2>&5
5377 ac_status=$?
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); }; }; then
5380 ac_cv_have_decl_errno=yes
5381 else
5382 echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5385 ac_cv_have_decl_errno=no
5387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5389 echo "$as_me:$LINENO: result: $ac_cv_have_decl_errno" >&5
5390 echo "${ECHO_T}$ac_cv_have_decl_errno" >&6
5391 if test $ac_cv_have_decl_errno = yes; then
5393 cat >>confdefs.h <<_ACEOF
5394 #define HAVE_DECL_ERRNO 1
5395 _ACEOF
5398 else
5399 cat >>confdefs.h <<_ACEOF
5400 #define HAVE_DECL_ERRNO 0
5401 _ACEOF
5405 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
5406 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
5407 if test "${ac_cv_have_decl_getopt+set}" = set; then
5408 echo $ECHO_N "(cached) $ECHO_C" >&6
5409 else
5410 cat >conftest.$ac_ext <<_ACEOF
5411 /* confdefs.h. */
5412 _ACEOF
5413 cat confdefs.h >>conftest.$ac_ext
5414 cat >>conftest.$ac_ext <<_ACEOF
5415 /* end confdefs.h. */
5416 $ac_includes_default
5418 main ()
5420 #ifndef getopt
5421 char *p = (char *) getopt;
5422 #endif
5425 return 0;
5427 _ACEOF
5428 rm -f conftest.$ac_objext
5429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5430 (eval $ac_compile) 2>conftest.er1
5431 ac_status=$?
5432 grep -v '^ *+' conftest.er1 >conftest.err
5433 rm -f conftest.er1
5434 cat conftest.err >&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); } &&
5437 { ac_try='test -z "$ac_c_werror_flag"
5438 || test ! -s conftest.err'
5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440 (eval $ac_try) 2>&5
5441 ac_status=$?
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; } &&
5444 { ac_try='test -s conftest.$ac_objext'
5445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5446 (eval $ac_try) 2>&5
5447 ac_status=$?
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); }; }; then
5450 ac_cv_have_decl_getopt=yes
5451 else
5452 echo "$as_me: failed program was:" >&5
5453 sed 's/^/| /' conftest.$ac_ext >&5
5455 ac_cv_have_decl_getopt=no
5457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5459 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
5460 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
5461 if test $ac_cv_have_decl_getopt = yes; then
5463 cat >>confdefs.h <<_ACEOF
5464 #define HAVE_DECL_GETOPT 1
5465 _ACEOF
5468 else
5469 cat >>confdefs.h <<_ACEOF
5470 #define HAVE_DECL_GETOPT 0
5471 _ACEOF
5475 echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
5476 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
5477 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
5478 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 else
5480 cat >conftest.$ac_ext <<_ACEOF
5481 /* confdefs.h. */
5482 _ACEOF
5483 cat confdefs.h >>conftest.$ac_ext
5484 cat >>conftest.$ac_ext <<_ACEOF
5485 /* end confdefs.h. */
5486 $ac_includes_default
5488 main ()
5490 #ifndef clearerr_unlocked
5491 char *p = (char *) clearerr_unlocked;
5492 #endif
5495 return 0;
5497 _ACEOF
5498 rm -f conftest.$ac_objext
5499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5500 (eval $ac_compile) 2>conftest.er1
5501 ac_status=$?
5502 grep -v '^ *+' conftest.er1 >conftest.err
5503 rm -f conftest.er1
5504 cat conftest.err >&5
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); } &&
5507 { ac_try='test -z "$ac_c_werror_flag"
5508 || test ! -s conftest.err'
5509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5510 (eval $ac_try) 2>&5
5511 ac_status=$?
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); }; } &&
5514 { ac_try='test -s conftest.$ac_objext'
5515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5516 (eval $ac_try) 2>&5
5517 ac_status=$?
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); }; }; then
5520 ac_cv_have_decl_clearerr_unlocked=yes
5521 else
5522 echo "$as_me: failed program was:" >&5
5523 sed 's/^/| /' conftest.$ac_ext >&5
5525 ac_cv_have_decl_clearerr_unlocked=no
5527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5529 echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
5530 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
5531 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
5533 cat >>confdefs.h <<_ACEOF
5534 #define HAVE_DECL_CLEARERR_UNLOCKED 1
5535 _ACEOF
5538 else
5539 cat >>confdefs.h <<_ACEOF
5540 #define HAVE_DECL_CLEARERR_UNLOCKED 0
5541 _ACEOF
5545 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
5546 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
5547 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5549 else
5550 cat >conftest.$ac_ext <<_ACEOF
5551 /* confdefs.h. */
5552 _ACEOF
5553 cat confdefs.h >>conftest.$ac_ext
5554 cat >>conftest.$ac_ext <<_ACEOF
5555 /* end confdefs.h. */
5556 $ac_includes_default
5558 main ()
5560 #ifndef feof_unlocked
5561 char *p = (char *) feof_unlocked;
5562 #endif
5565 return 0;
5567 _ACEOF
5568 rm -f conftest.$ac_objext
5569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5570 (eval $ac_compile) 2>conftest.er1
5571 ac_status=$?
5572 grep -v '^ *+' conftest.er1 >conftest.err
5573 rm -f conftest.er1
5574 cat conftest.err >&5
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); } &&
5577 { ac_try='test -z "$ac_c_werror_flag"
5578 || test ! -s conftest.err'
5579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5580 (eval $ac_try) 2>&5
5581 ac_status=$?
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); }; } &&
5584 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5590 ac_cv_have_decl_feof_unlocked=yes
5591 else
5592 echo "$as_me: failed program was:" >&5
5593 sed 's/^/| /' conftest.$ac_ext >&5
5595 ac_cv_have_decl_feof_unlocked=no
5597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5599 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
5600 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
5601 if test $ac_cv_have_decl_feof_unlocked = yes; then
5603 cat >>confdefs.h <<_ACEOF
5604 #define HAVE_DECL_FEOF_UNLOCKED 1
5605 _ACEOF
5608 else
5609 cat >>confdefs.h <<_ACEOF
5610 #define HAVE_DECL_FEOF_UNLOCKED 0
5611 _ACEOF
5615 echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
5616 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
5617 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
5618 echo $ECHO_N "(cached) $ECHO_C" >&6
5619 else
5620 cat >conftest.$ac_ext <<_ACEOF
5621 /* confdefs.h. */
5622 _ACEOF
5623 cat confdefs.h >>conftest.$ac_ext
5624 cat >>conftest.$ac_ext <<_ACEOF
5625 /* end confdefs.h. */
5626 $ac_includes_default
5628 main ()
5630 #ifndef ferror_unlocked
5631 char *p = (char *) ferror_unlocked;
5632 #endif
5635 return 0;
5637 _ACEOF
5638 rm -f conftest.$ac_objext
5639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5640 (eval $ac_compile) 2>conftest.er1
5641 ac_status=$?
5642 grep -v '^ *+' conftest.er1 >conftest.err
5643 rm -f conftest.er1
5644 cat conftest.err >&5
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); } &&
5647 { ac_try='test -z "$ac_c_werror_flag"
5648 || test ! -s conftest.err'
5649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650 (eval $ac_try) 2>&5
5651 ac_status=$?
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); }; } &&
5654 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5660 ac_cv_have_decl_ferror_unlocked=yes
5661 else
5662 echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.$ac_ext >&5
5665 ac_cv_have_decl_ferror_unlocked=no
5667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5669 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
5670 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
5671 if test $ac_cv_have_decl_ferror_unlocked = yes; then
5673 cat >>confdefs.h <<_ACEOF
5674 #define HAVE_DECL_FERROR_UNLOCKED 1
5675 _ACEOF
5678 else
5679 cat >>confdefs.h <<_ACEOF
5680 #define HAVE_DECL_FERROR_UNLOCKED 0
5681 _ACEOF
5685 echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
5686 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
5687 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
5688 echo $ECHO_N "(cached) $ECHO_C" >&6
5689 else
5690 cat >conftest.$ac_ext <<_ACEOF
5691 /* confdefs.h. */
5692 _ACEOF
5693 cat confdefs.h >>conftest.$ac_ext
5694 cat >>conftest.$ac_ext <<_ACEOF
5695 /* end confdefs.h. */
5696 $ac_includes_default
5698 main ()
5700 #ifndef fflush_unlocked
5701 char *p = (char *) fflush_unlocked;
5702 #endif
5705 return 0;
5707 _ACEOF
5708 rm -f conftest.$ac_objext
5709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5710 (eval $ac_compile) 2>conftest.er1
5711 ac_status=$?
5712 grep -v '^ *+' conftest.er1 >conftest.err
5713 rm -f conftest.er1
5714 cat conftest.err >&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); } &&
5717 { ac_try='test -z "$ac_c_werror_flag"
5718 || test ! -s conftest.err'
5719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5720 (eval $ac_try) 2>&5
5721 ac_status=$?
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }; } &&
5724 { ac_try='test -s conftest.$ac_objext'
5725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726 (eval $ac_try) 2>&5
5727 ac_status=$?
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; }; then
5730 ac_cv_have_decl_fflush_unlocked=yes
5731 else
5732 echo "$as_me: failed program was:" >&5
5733 sed 's/^/| /' conftest.$ac_ext >&5
5735 ac_cv_have_decl_fflush_unlocked=no
5737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5739 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
5740 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
5741 if test $ac_cv_have_decl_fflush_unlocked = yes; then
5743 cat >>confdefs.h <<_ACEOF
5744 #define HAVE_DECL_FFLUSH_UNLOCKED 1
5745 _ACEOF
5748 else
5749 cat >>confdefs.h <<_ACEOF
5750 #define HAVE_DECL_FFLUSH_UNLOCKED 0
5751 _ACEOF
5755 echo "$as_me:$LINENO: checking whether fgetc_unlocked is declared" >&5
5756 echo $ECHO_N "checking whether fgetc_unlocked is declared... $ECHO_C" >&6
5757 if test "${ac_cv_have_decl_fgetc_unlocked+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5759 else
5760 cat >conftest.$ac_ext <<_ACEOF
5761 /* confdefs.h. */
5762 _ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5766 $ac_includes_default
5768 main ()
5770 #ifndef fgetc_unlocked
5771 char *p = (char *) fgetc_unlocked;
5772 #endif
5775 return 0;
5777 _ACEOF
5778 rm -f conftest.$ac_objext
5779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5780 (eval $ac_compile) 2>conftest.er1
5781 ac_status=$?
5782 grep -v '^ *+' conftest.er1 >conftest.err
5783 rm -f conftest.er1
5784 cat conftest.err >&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); } &&
5787 { ac_try='test -z "$ac_c_werror_flag"
5788 || test ! -s conftest.err'
5789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790 (eval $ac_try) 2>&5
5791 ac_status=$?
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); }; } &&
5794 { ac_try='test -s conftest.$ac_objext'
5795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5796 (eval $ac_try) 2>&5
5797 ac_status=$?
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }; }; then
5800 ac_cv_have_decl_fgetc_unlocked=yes
5801 else
5802 echo "$as_me: failed program was:" >&5
5803 sed 's/^/| /' conftest.$ac_ext >&5
5805 ac_cv_have_decl_fgetc_unlocked=no
5807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5809 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgetc_unlocked" >&5
5810 echo "${ECHO_T}$ac_cv_have_decl_fgetc_unlocked" >&6
5811 if test $ac_cv_have_decl_fgetc_unlocked = yes; then
5813 cat >>confdefs.h <<_ACEOF
5814 #define HAVE_DECL_FGETC_UNLOCKED 1
5815 _ACEOF
5818 else
5819 cat >>confdefs.h <<_ACEOF
5820 #define HAVE_DECL_FGETC_UNLOCKED 0
5821 _ACEOF
5825 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
5826 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
5827 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5829 else
5830 cat >conftest.$ac_ext <<_ACEOF
5831 /* confdefs.h. */
5832 _ACEOF
5833 cat confdefs.h >>conftest.$ac_ext
5834 cat >>conftest.$ac_ext <<_ACEOF
5835 /* end confdefs.h. */
5836 $ac_includes_default
5838 main ()
5840 #ifndef fgets_unlocked
5841 char *p = (char *) fgets_unlocked;
5842 #endif
5845 return 0;
5847 _ACEOF
5848 rm -f conftest.$ac_objext
5849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5850 (eval $ac_compile) 2>conftest.er1
5851 ac_status=$?
5852 grep -v '^ *+' conftest.er1 >conftest.err
5853 rm -f conftest.er1
5854 cat conftest.err >&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); } &&
5857 { ac_try='test -z "$ac_c_werror_flag"
5858 || test ! -s conftest.err'
5859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5860 (eval $ac_try) 2>&5
5861 ac_status=$?
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); }; } &&
5864 { ac_try='test -s conftest.$ac_objext'
5865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5866 (eval $ac_try) 2>&5
5867 ac_status=$?
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }; }; then
5870 ac_cv_have_decl_fgets_unlocked=yes
5871 else
5872 echo "$as_me: failed program was:" >&5
5873 sed 's/^/| /' conftest.$ac_ext >&5
5875 ac_cv_have_decl_fgets_unlocked=no
5877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5879 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
5880 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
5881 if test $ac_cv_have_decl_fgets_unlocked = yes; then
5883 cat >>confdefs.h <<_ACEOF
5884 #define HAVE_DECL_FGETS_UNLOCKED 1
5885 _ACEOF
5888 else
5889 cat >>confdefs.h <<_ACEOF
5890 #define HAVE_DECL_FGETS_UNLOCKED 0
5891 _ACEOF
5895 echo "$as_me:$LINENO: checking whether fileno_unlocked is declared" >&5
5896 echo $ECHO_N "checking whether fileno_unlocked is declared... $ECHO_C" >&6
5897 if test "${ac_cv_have_decl_fileno_unlocked+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5899 else
5900 cat >conftest.$ac_ext <<_ACEOF
5901 /* confdefs.h. */
5902 _ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5906 $ac_includes_default
5908 main ()
5910 #ifndef fileno_unlocked
5911 char *p = (char *) fileno_unlocked;
5912 #endif
5915 return 0;
5917 _ACEOF
5918 rm -f conftest.$ac_objext
5919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5920 (eval $ac_compile) 2>conftest.er1
5921 ac_status=$?
5922 grep -v '^ *+' conftest.er1 >conftest.err
5923 rm -f conftest.er1
5924 cat conftest.err >&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } &&
5927 { ac_try='test -z "$ac_c_werror_flag"
5928 || test ! -s conftest.err'
5929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930 (eval $ac_try) 2>&5
5931 ac_status=$?
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); }; } &&
5934 { ac_try='test -s conftest.$ac_objext'
5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936 (eval $ac_try) 2>&5
5937 ac_status=$?
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; }; then
5940 ac_cv_have_decl_fileno_unlocked=yes
5941 else
5942 echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5945 ac_cv_have_decl_fileno_unlocked=no
5947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5949 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fileno_unlocked" >&5
5950 echo "${ECHO_T}$ac_cv_have_decl_fileno_unlocked" >&6
5951 if test $ac_cv_have_decl_fileno_unlocked = yes; then
5953 cat >>confdefs.h <<_ACEOF
5954 #define HAVE_DECL_FILENO_UNLOCKED 1
5955 _ACEOF
5958 else
5959 cat >>confdefs.h <<_ACEOF
5960 #define HAVE_DECL_FILENO_UNLOCKED 0
5961 _ACEOF
5965 echo "$as_me:$LINENO: checking whether fprintf_unlocked is declared" >&5
5966 echo $ECHO_N "checking whether fprintf_unlocked is declared... $ECHO_C" >&6
5967 if test "${ac_cv_have_decl_fprintf_unlocked+set}" = set; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
5969 else
5970 cat >conftest.$ac_ext <<_ACEOF
5971 /* confdefs.h. */
5972 _ACEOF
5973 cat confdefs.h >>conftest.$ac_ext
5974 cat >>conftest.$ac_ext <<_ACEOF
5975 /* end confdefs.h. */
5976 $ac_includes_default
5978 main ()
5980 #ifndef fprintf_unlocked
5981 char *p = (char *) fprintf_unlocked;
5982 #endif
5985 return 0;
5987 _ACEOF
5988 rm -f conftest.$ac_objext
5989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5990 (eval $ac_compile) 2>conftest.er1
5991 ac_status=$?
5992 grep -v '^ *+' conftest.er1 >conftest.err
5993 rm -f conftest.er1
5994 cat conftest.err >&5
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); } &&
5997 { ac_try='test -z "$ac_c_werror_flag"
5998 || test ! -s conftest.err'
5999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000 (eval $ac_try) 2>&5
6001 ac_status=$?
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; } &&
6004 { ac_try='test -s conftest.$ac_objext'
6005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 (eval $ac_try) 2>&5
6007 ac_status=$?
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; }; then
6010 ac_cv_have_decl_fprintf_unlocked=yes
6011 else
6012 echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.$ac_ext >&5
6015 ac_cv_have_decl_fprintf_unlocked=no
6017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6019 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf_unlocked" >&5
6020 echo "${ECHO_T}$ac_cv_have_decl_fprintf_unlocked" >&6
6021 if test $ac_cv_have_decl_fprintf_unlocked = yes; then
6023 cat >>confdefs.h <<_ACEOF
6024 #define HAVE_DECL_FPRINTF_UNLOCKED 1
6025 _ACEOF
6028 else
6029 cat >>confdefs.h <<_ACEOF
6030 #define HAVE_DECL_FPRINTF_UNLOCKED 0
6031 _ACEOF
6035 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
6036 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
6037 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6039 else
6040 cat >conftest.$ac_ext <<_ACEOF
6041 /* confdefs.h. */
6042 _ACEOF
6043 cat confdefs.h >>conftest.$ac_ext
6044 cat >>conftest.$ac_ext <<_ACEOF
6045 /* end confdefs.h. */
6046 $ac_includes_default
6048 main ()
6050 #ifndef fputc_unlocked
6051 char *p = (char *) fputc_unlocked;
6052 #endif
6055 return 0;
6057 _ACEOF
6058 rm -f conftest.$ac_objext
6059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6060 (eval $ac_compile) 2>conftest.er1
6061 ac_status=$?
6062 grep -v '^ *+' conftest.er1 >conftest.err
6063 rm -f conftest.er1
6064 cat conftest.err >&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); } &&
6067 { ac_try='test -z "$ac_c_werror_flag"
6068 || test ! -s conftest.err'
6069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6070 (eval $ac_try) 2>&5
6071 ac_status=$?
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); }; } &&
6074 { ac_try='test -s conftest.$ac_objext'
6075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6076 (eval $ac_try) 2>&5
6077 ac_status=$?
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); }; }; then
6080 ac_cv_have_decl_fputc_unlocked=yes
6081 else
6082 echo "$as_me: failed program was:" >&5
6083 sed 's/^/| /' conftest.$ac_ext >&5
6085 ac_cv_have_decl_fputc_unlocked=no
6087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6089 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
6090 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
6091 if test $ac_cv_have_decl_fputc_unlocked = yes; then
6093 cat >>confdefs.h <<_ACEOF
6094 #define HAVE_DECL_FPUTC_UNLOCKED 1
6095 _ACEOF
6098 else
6099 cat >>confdefs.h <<_ACEOF
6100 #define HAVE_DECL_FPUTC_UNLOCKED 0
6101 _ACEOF
6105 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
6106 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
6107 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6109 else
6110 cat >conftest.$ac_ext <<_ACEOF
6111 /* confdefs.h. */
6112 _ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h. */
6116 $ac_includes_default
6118 main ()
6120 #ifndef fputs_unlocked
6121 char *p = (char *) fputs_unlocked;
6122 #endif
6125 return 0;
6127 _ACEOF
6128 rm -f conftest.$ac_objext
6129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6130 (eval $ac_compile) 2>conftest.er1
6131 ac_status=$?
6132 grep -v '^ *+' conftest.er1 >conftest.err
6133 rm -f conftest.er1
6134 cat conftest.err >&5
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); } &&
6137 { ac_try='test -z "$ac_c_werror_flag"
6138 || test ! -s conftest.err'
6139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6140 (eval $ac_try) 2>&5
6141 ac_status=$?
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); }; } &&
6144 { ac_try='test -s conftest.$ac_objext'
6145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6146 (eval $ac_try) 2>&5
6147 ac_status=$?
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); }; }; then
6150 ac_cv_have_decl_fputs_unlocked=yes
6151 else
6152 echo "$as_me: failed program was:" >&5
6153 sed 's/^/| /' conftest.$ac_ext >&5
6155 ac_cv_have_decl_fputs_unlocked=no
6157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6159 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
6160 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
6161 if test $ac_cv_have_decl_fputs_unlocked = yes; then
6163 cat >>confdefs.h <<_ACEOF
6164 #define HAVE_DECL_FPUTS_UNLOCKED 1
6165 _ACEOF
6168 else
6169 cat >>confdefs.h <<_ACEOF
6170 #define HAVE_DECL_FPUTS_UNLOCKED 0
6171 _ACEOF
6175 echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
6176 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
6177 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6179 else
6180 cat >conftest.$ac_ext <<_ACEOF
6181 /* confdefs.h. */
6182 _ACEOF
6183 cat confdefs.h >>conftest.$ac_ext
6184 cat >>conftest.$ac_ext <<_ACEOF
6185 /* end confdefs.h. */
6186 $ac_includes_default
6188 main ()
6190 #ifndef fread_unlocked
6191 char *p = (char *) fread_unlocked;
6192 #endif
6195 return 0;
6197 _ACEOF
6198 rm -f conftest.$ac_objext
6199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6200 (eval $ac_compile) 2>conftest.er1
6201 ac_status=$?
6202 grep -v '^ *+' conftest.er1 >conftest.err
6203 rm -f conftest.er1
6204 cat conftest.err >&5
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); } &&
6207 { ac_try='test -z "$ac_c_werror_flag"
6208 || test ! -s conftest.err'
6209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6210 (eval $ac_try) 2>&5
6211 ac_status=$?
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); }; } &&
6214 { ac_try='test -s conftest.$ac_objext'
6215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6216 (eval $ac_try) 2>&5
6217 ac_status=$?
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); }; }; then
6220 ac_cv_have_decl_fread_unlocked=yes
6221 else
6222 echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.$ac_ext >&5
6225 ac_cv_have_decl_fread_unlocked=no
6227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6229 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
6230 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
6231 if test $ac_cv_have_decl_fread_unlocked = yes; then
6233 cat >>confdefs.h <<_ACEOF
6234 #define HAVE_DECL_FREAD_UNLOCKED 1
6235 _ACEOF
6238 else
6239 cat >>confdefs.h <<_ACEOF
6240 #define HAVE_DECL_FREAD_UNLOCKED 0
6241 _ACEOF
6245 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
6246 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
6247 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
6249 else
6250 cat >conftest.$ac_ext <<_ACEOF
6251 /* confdefs.h. */
6252 _ACEOF
6253 cat confdefs.h >>conftest.$ac_ext
6254 cat >>conftest.$ac_ext <<_ACEOF
6255 /* end confdefs.h. */
6256 $ac_includes_default
6258 main ()
6260 #ifndef fwrite_unlocked
6261 char *p = (char *) fwrite_unlocked;
6262 #endif
6265 return 0;
6267 _ACEOF
6268 rm -f conftest.$ac_objext
6269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6270 (eval $ac_compile) 2>conftest.er1
6271 ac_status=$?
6272 grep -v '^ *+' conftest.er1 >conftest.err
6273 rm -f conftest.er1
6274 cat conftest.err >&5
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); } &&
6277 { ac_try='test -z "$ac_c_werror_flag"
6278 || test ! -s conftest.err'
6279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6280 (eval $ac_try) 2>&5
6281 ac_status=$?
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); }; } &&
6284 { ac_try='test -s conftest.$ac_objext'
6285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286 (eval $ac_try) 2>&5
6287 ac_status=$?
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); }; }; then
6290 ac_cv_have_decl_fwrite_unlocked=yes
6291 else
6292 echo "$as_me: failed program was:" >&5
6293 sed 's/^/| /' conftest.$ac_ext >&5
6295 ac_cv_have_decl_fwrite_unlocked=no
6297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6299 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
6300 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
6301 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
6303 cat >>confdefs.h <<_ACEOF
6304 #define HAVE_DECL_FWRITE_UNLOCKED 1
6305 _ACEOF
6308 else
6309 cat >>confdefs.h <<_ACEOF
6310 #define HAVE_DECL_FWRITE_UNLOCKED 0
6311 _ACEOF
6315 echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
6316 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
6317 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
6318 echo $ECHO_N "(cached) $ECHO_C" >&6
6319 else
6320 cat >conftest.$ac_ext <<_ACEOF
6321 /* confdefs.h. */
6322 _ACEOF
6323 cat confdefs.h >>conftest.$ac_ext
6324 cat >>conftest.$ac_ext <<_ACEOF
6325 /* end confdefs.h. */
6326 $ac_includes_default
6328 main ()
6330 #ifndef getchar_unlocked
6331 char *p = (char *) getchar_unlocked;
6332 #endif
6335 return 0;
6337 _ACEOF
6338 rm -f conftest.$ac_objext
6339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6340 (eval $ac_compile) 2>conftest.er1
6341 ac_status=$?
6342 grep -v '^ *+' conftest.er1 >conftest.err
6343 rm -f conftest.er1
6344 cat conftest.err >&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); } &&
6347 { ac_try='test -z "$ac_c_werror_flag"
6348 || test ! -s conftest.err'
6349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350 (eval $ac_try) 2>&5
6351 ac_status=$?
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; } &&
6354 { ac_try='test -s conftest.$ac_objext'
6355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 (eval $ac_try) 2>&5
6357 ac_status=$?
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; }; then
6360 ac_cv_have_decl_getchar_unlocked=yes
6361 else
6362 echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.$ac_ext >&5
6365 ac_cv_have_decl_getchar_unlocked=no
6367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6369 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
6370 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
6371 if test $ac_cv_have_decl_getchar_unlocked = yes; then
6373 cat >>confdefs.h <<_ACEOF
6374 #define HAVE_DECL_GETCHAR_UNLOCKED 1
6375 _ACEOF
6378 else
6379 cat >>confdefs.h <<_ACEOF
6380 #define HAVE_DECL_GETCHAR_UNLOCKED 0
6381 _ACEOF
6385 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
6386 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
6387 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6389 else
6390 cat >conftest.$ac_ext <<_ACEOF
6391 /* confdefs.h. */
6392 _ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6396 $ac_includes_default
6398 main ()
6400 #ifndef getc_unlocked
6401 char *p = (char *) getc_unlocked;
6402 #endif
6405 return 0;
6407 _ACEOF
6408 rm -f conftest.$ac_objext
6409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6410 (eval $ac_compile) 2>conftest.er1
6411 ac_status=$?
6412 grep -v '^ *+' conftest.er1 >conftest.err
6413 rm -f conftest.er1
6414 cat conftest.err >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); } &&
6417 { ac_try='test -z "$ac_c_werror_flag"
6418 || test ! -s conftest.err'
6419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420 (eval $ac_try) 2>&5
6421 ac_status=$?
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); }; } &&
6424 { ac_try='test -s conftest.$ac_objext'
6425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426 (eval $ac_try) 2>&5
6427 ac_status=$?
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); }; }; then
6430 ac_cv_have_decl_getc_unlocked=yes
6431 else
6432 echo "$as_me: failed program was:" >&5
6433 sed 's/^/| /' conftest.$ac_ext >&5
6435 ac_cv_have_decl_getc_unlocked=no
6437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6439 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
6440 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
6441 if test $ac_cv_have_decl_getc_unlocked = yes; then
6443 cat >>confdefs.h <<_ACEOF
6444 #define HAVE_DECL_GETC_UNLOCKED 1
6445 _ACEOF
6448 else
6449 cat >>confdefs.h <<_ACEOF
6450 #define HAVE_DECL_GETC_UNLOCKED 0
6451 _ACEOF
6455 echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
6456 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
6457 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6459 else
6460 cat >conftest.$ac_ext <<_ACEOF
6461 /* confdefs.h. */
6462 _ACEOF
6463 cat confdefs.h >>conftest.$ac_ext
6464 cat >>conftest.$ac_ext <<_ACEOF
6465 /* end confdefs.h. */
6466 $ac_includes_default
6468 main ()
6470 #ifndef putchar_unlocked
6471 char *p = (char *) putchar_unlocked;
6472 #endif
6475 return 0;
6477 _ACEOF
6478 rm -f conftest.$ac_objext
6479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6480 (eval $ac_compile) 2>conftest.er1
6481 ac_status=$?
6482 grep -v '^ *+' conftest.er1 >conftest.err
6483 rm -f conftest.er1
6484 cat conftest.err >&5
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); } &&
6487 { ac_try='test -z "$ac_c_werror_flag"
6488 || test ! -s conftest.err'
6489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6490 (eval $ac_try) 2>&5
6491 ac_status=$?
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); }; } &&
6494 { ac_try='test -s conftest.$ac_objext'
6495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496 (eval $ac_try) 2>&5
6497 ac_status=$?
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); }; }; then
6500 ac_cv_have_decl_putchar_unlocked=yes
6501 else
6502 echo "$as_me: failed program was:" >&5
6503 sed 's/^/| /' conftest.$ac_ext >&5
6505 ac_cv_have_decl_putchar_unlocked=no
6507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6509 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
6510 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
6511 if test $ac_cv_have_decl_putchar_unlocked = yes; then
6513 cat >>confdefs.h <<_ACEOF
6514 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
6515 _ACEOF
6518 else
6519 cat >>confdefs.h <<_ACEOF
6520 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
6521 _ACEOF
6525 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
6526 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
6527 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
6528 echo $ECHO_N "(cached) $ECHO_C" >&6
6529 else
6530 cat >conftest.$ac_ext <<_ACEOF
6531 /* confdefs.h. */
6532 _ACEOF
6533 cat confdefs.h >>conftest.$ac_ext
6534 cat >>conftest.$ac_ext <<_ACEOF
6535 /* end confdefs.h. */
6536 $ac_includes_default
6538 main ()
6540 #ifndef putc_unlocked
6541 char *p = (char *) putc_unlocked;
6542 #endif
6545 return 0;
6547 _ACEOF
6548 rm -f conftest.$ac_objext
6549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6550 (eval $ac_compile) 2>conftest.er1
6551 ac_status=$?
6552 grep -v '^ *+' conftest.er1 >conftest.err
6553 rm -f conftest.er1
6554 cat conftest.err >&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); } &&
6557 { ac_try='test -z "$ac_c_werror_flag"
6558 || test ! -s conftest.err'
6559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560 (eval $ac_try) 2>&5
6561 ac_status=$?
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; } &&
6564 { ac_try='test -s conftest.$ac_objext'
6565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566 (eval $ac_try) 2>&5
6567 ac_status=$?
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); }; }; then
6570 ac_cv_have_decl_putc_unlocked=yes
6571 else
6572 echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.$ac_ext >&5
6575 ac_cv_have_decl_putc_unlocked=no
6577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6579 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
6580 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
6581 if test $ac_cv_have_decl_putc_unlocked = yes; then
6583 cat >>confdefs.h <<_ACEOF
6584 #define HAVE_DECL_PUTC_UNLOCKED 1
6585 _ACEOF
6588 else
6589 cat >>confdefs.h <<_ACEOF
6590 #define HAVE_DECL_PUTC_UNLOCKED 0
6591 _ACEOF
6595 echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
6596 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
6597 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
6598 echo $ECHO_N "(cached) $ECHO_C" >&6
6599 else
6600 cat >conftest.$ac_ext <<_ACEOF
6601 /* confdefs.h. */
6602 _ACEOF
6603 cat confdefs.h >>conftest.$ac_ext
6604 cat >>conftest.$ac_ext <<_ACEOF
6605 /* end confdefs.h. */
6606 $ac_includes_default
6608 main ()
6610 #ifndef vasprintf
6611 char *p = (char *) vasprintf;
6612 #endif
6615 return 0;
6617 _ACEOF
6618 rm -f conftest.$ac_objext
6619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6620 (eval $ac_compile) 2>conftest.er1
6621 ac_status=$?
6622 grep -v '^ *+' conftest.er1 >conftest.err
6623 rm -f conftest.er1
6624 cat conftest.err >&5
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); } &&
6627 { ac_try='test -z "$ac_c_werror_flag"
6628 || test ! -s conftest.err'
6629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6630 (eval $ac_try) 2>&5
6631 ac_status=$?
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; } &&
6634 { ac_try='test -s conftest.$ac_objext'
6635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6636 (eval $ac_try) 2>&5
6637 ac_status=$?
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); }; }; then
6640 ac_cv_have_decl_vasprintf=yes
6641 else
6642 echo "$as_me: failed program was:" >&5
6643 sed 's/^/| /' conftest.$ac_ext >&5
6645 ac_cv_have_decl_vasprintf=no
6647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6649 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
6650 echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
6651 if test $ac_cv_have_decl_vasprintf = yes; then
6653 cat >>confdefs.h <<_ACEOF
6654 #define HAVE_DECL_VASPRINTF 1
6655 _ACEOF
6658 else
6659 cat >>confdefs.h <<_ACEOF
6660 #define HAVE_DECL_VASPRINTF 0
6661 _ACEOF
6668 # Checks for library functions.
6669 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6670 # for constant arguments. Useless!
6671 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6672 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6673 if test "${ac_cv_working_alloca_h+set}" = set; then
6674 echo $ECHO_N "(cached) $ECHO_C" >&6
6675 else
6676 cat >conftest.$ac_ext <<_ACEOF
6677 /* confdefs.h. */
6678 _ACEOF
6679 cat confdefs.h >>conftest.$ac_ext
6680 cat >>conftest.$ac_ext <<_ACEOF
6681 /* end confdefs.h. */
6682 #include <alloca.h>
6684 main ()
6686 char *p = (char *) alloca (2 * sizeof (int));
6688 return 0;
6690 _ACEOF
6691 rm -f conftest.$ac_objext conftest$ac_exeext
6692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6693 (eval $ac_link) 2>conftest.er1
6694 ac_status=$?
6695 grep -v '^ *+' conftest.er1 >conftest.err
6696 rm -f conftest.er1
6697 cat conftest.err >&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } &&
6700 { ac_try='test -z "$ac_c_werror_flag"
6701 || test ! -s conftest.err'
6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703 (eval $ac_try) 2>&5
6704 ac_status=$?
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; } &&
6707 { ac_try='test -s conftest$ac_exeext'
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709 (eval $ac_try) 2>&5
6710 ac_status=$?
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6713 ac_cv_working_alloca_h=yes
6714 else
6715 echo "$as_me: failed program was:" >&5
6716 sed 's/^/| /' conftest.$ac_ext >&5
6718 ac_cv_working_alloca_h=no
6720 rm -f conftest.err conftest.$ac_objext \
6721 conftest$ac_exeext conftest.$ac_ext
6723 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6724 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6725 if test $ac_cv_working_alloca_h = yes; then
6727 cat >>confdefs.h <<\_ACEOF
6728 #define HAVE_ALLOCA_H 1
6729 _ACEOF
6733 echo "$as_me:$LINENO: checking for alloca" >&5
6734 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6735 if test "${ac_cv_func_alloca_works+set}" = set; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6737 else
6738 cat >conftest.$ac_ext <<_ACEOF
6739 /* confdefs.h. */
6740 _ACEOF
6741 cat confdefs.h >>conftest.$ac_ext
6742 cat >>conftest.$ac_ext <<_ACEOF
6743 /* end confdefs.h. */
6744 #ifdef __GNUC__
6745 # define alloca __builtin_alloca
6746 #else
6747 # ifdef _MSC_VER
6748 # include <malloc.h>
6749 # define alloca _alloca
6750 # else
6751 # if HAVE_ALLOCA_H
6752 # include <alloca.h>
6753 # else
6754 # ifdef _AIX
6755 #pragma alloca
6756 # else
6757 # ifndef alloca /* predefined by HP cc +Olibcalls */
6758 char *alloca ();
6759 # endif
6760 # endif
6761 # endif
6762 # endif
6763 #endif
6766 main ()
6768 char *p = (char *) alloca (1);
6770 return 0;
6772 _ACEOF
6773 rm -f conftest.$ac_objext conftest$ac_exeext
6774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6775 (eval $ac_link) 2>conftest.er1
6776 ac_status=$?
6777 grep -v '^ *+' conftest.er1 >conftest.err
6778 rm -f conftest.er1
6779 cat conftest.err >&5
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); } &&
6782 { ac_try='test -z "$ac_c_werror_flag"
6783 || test ! -s conftest.err'
6784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785 (eval $ac_try) 2>&5
6786 ac_status=$?
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); }; } &&
6789 { ac_try='test -s conftest$ac_exeext'
6790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6791 (eval $ac_try) 2>&5
6792 ac_status=$?
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); }; }; then
6795 ac_cv_func_alloca_works=yes
6796 else
6797 echo "$as_me: failed program was:" >&5
6798 sed 's/^/| /' conftest.$ac_ext >&5
6800 ac_cv_func_alloca_works=no
6802 rm -f conftest.err conftest.$ac_objext \
6803 conftest$ac_exeext conftest.$ac_ext
6805 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6806 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6808 if test $ac_cv_func_alloca_works = yes; then
6810 cat >>confdefs.h <<\_ACEOF
6811 #define HAVE_ALLOCA 1
6812 _ACEOF
6814 else
6815 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6816 # that cause trouble. Some versions do not even contain alloca or
6817 # contain a buggy version. If you still want to use their alloca,
6818 # use ar to extract alloca.o from them instead of compiling alloca.c.
6820 ALLOCA=alloca.$ac_objext
6822 cat >>confdefs.h <<\_ACEOF
6823 #define C_ALLOCA 1
6824 _ACEOF
6827 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6828 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6829 if test "${ac_cv_os_cray+set}" = set; then
6830 echo $ECHO_N "(cached) $ECHO_C" >&6
6831 else
6832 cat >conftest.$ac_ext <<_ACEOF
6833 /* confdefs.h. */
6834 _ACEOF
6835 cat confdefs.h >>conftest.$ac_ext
6836 cat >>conftest.$ac_ext <<_ACEOF
6837 /* end confdefs.h. */
6838 #if defined(CRAY) && ! defined(CRAY2)
6839 webecray
6840 #else
6841 wenotbecray
6842 #endif
6844 _ACEOF
6845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6846 $EGREP "webecray" >/dev/null 2>&1; then
6847 ac_cv_os_cray=yes
6848 else
6849 ac_cv_os_cray=no
6851 rm -f conftest*
6854 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6855 echo "${ECHO_T}$ac_cv_os_cray" >&6
6856 if test $ac_cv_os_cray = yes; then
6857 for ac_func in _getb67 GETB67 getb67; do
6858 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6859 echo "$as_me:$LINENO: checking for $ac_func" >&5
6860 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6861 if eval "test \"\${$as_ac_var+set}\" = set"; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 else
6864 cat >conftest.$ac_ext <<_ACEOF
6865 /* confdefs.h. */
6866 _ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h. */
6870 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6872 #define $ac_func innocuous_$ac_func
6874 /* System header to define __stub macros and hopefully few prototypes,
6875 which can conflict with char $ac_func (); below.
6876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6877 <limits.h> exists even on freestanding compilers. */
6879 #ifdef __STDC__
6880 # include <limits.h>
6881 #else
6882 # include <assert.h>
6883 #endif
6885 #undef $ac_func
6887 /* Override any gcc2 internal prototype to avoid an error. */
6888 #ifdef __cplusplus
6889 extern "C"
6891 #endif
6892 /* We use char because int might match the return type of a gcc2
6893 builtin and then its argument prototype would still apply. */
6894 char $ac_func ();
6895 /* The GNU C library defines this for functions which it implements
6896 to always fail with ENOSYS. Some functions are actually named
6897 something starting with __ and the normal name is an alias. */
6898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6899 choke me
6900 #else
6901 char (*f) () = $ac_func;
6902 #endif
6903 #ifdef __cplusplus
6905 #endif
6908 main ()
6910 return f != $ac_func;
6912 return 0;
6914 _ACEOF
6915 rm -f conftest.$ac_objext conftest$ac_exeext
6916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6917 (eval $ac_link) 2>conftest.er1
6918 ac_status=$?
6919 grep -v '^ *+' conftest.er1 >conftest.err
6920 rm -f conftest.er1
6921 cat conftest.err >&5
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); } &&
6924 { ac_try='test -z "$ac_c_werror_flag"
6925 || test ! -s conftest.err'
6926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6927 (eval $ac_try) 2>&5
6928 ac_status=$?
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); }; } &&
6931 { ac_try='test -s conftest$ac_exeext'
6932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6933 (eval $ac_try) 2>&5
6934 ac_status=$?
6935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936 (exit $ac_status); }; }; then
6937 eval "$as_ac_var=yes"
6938 else
6939 echo "$as_me: failed program was:" >&5
6940 sed 's/^/| /' conftest.$ac_ext >&5
6942 eval "$as_ac_var=no"
6944 rm -f conftest.err conftest.$ac_objext \
6945 conftest$ac_exeext conftest.$ac_ext
6947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6948 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6949 if test `eval echo '${'$as_ac_var'}'` = yes; then
6951 cat >>confdefs.h <<_ACEOF
6952 #define CRAY_STACKSEG_END $ac_func
6953 _ACEOF
6955 break
6958 done
6961 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6962 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6963 if test "${ac_cv_c_stack_direction+set}" = set; then
6964 echo $ECHO_N "(cached) $ECHO_C" >&6
6965 else
6966 if test "$cross_compiling" = yes; then
6967 ac_cv_c_stack_direction=0
6968 else
6969 cat >conftest.$ac_ext <<_ACEOF
6970 /* confdefs.h. */
6971 _ACEOF
6972 cat confdefs.h >>conftest.$ac_ext
6973 cat >>conftest.$ac_ext <<_ACEOF
6974 /* end confdefs.h. */
6976 find_stack_direction ()
6978 static char *addr = 0;
6979 auto char dummy;
6980 if (addr == 0)
6982 addr = &dummy;
6983 return find_stack_direction ();
6985 else
6986 return (&dummy > addr) ? 1 : -1;
6990 main ()
6992 exit (find_stack_direction () < 0);
6994 _ACEOF
6995 rm -f conftest$ac_exeext
6996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6997 (eval $ac_link) 2>&5
6998 ac_status=$?
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7002 (eval $ac_try) 2>&5
7003 ac_status=$?
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); }; }; then
7006 ac_cv_c_stack_direction=1
7007 else
7008 echo "$as_me: program exited with status $ac_status" >&5
7009 echo "$as_me: failed program was:" >&5
7010 sed 's/^/| /' conftest.$ac_ext >&5
7012 ( exit $ac_status )
7013 ac_cv_c_stack_direction=-1
7015 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7018 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7019 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7021 cat >>confdefs.h <<_ACEOF
7022 #define STACK_DIRECTION $ac_cv_c_stack_direction
7023 _ACEOF
7028 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7029 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7030 if test "${ac_cv_header_stdc+set}" = set; then
7031 echo $ECHO_N "(cached) $ECHO_C" >&6
7032 else
7033 cat >conftest.$ac_ext <<_ACEOF
7034 /* confdefs.h. */
7035 _ACEOF
7036 cat confdefs.h >>conftest.$ac_ext
7037 cat >>conftest.$ac_ext <<_ACEOF
7038 /* end confdefs.h. */
7039 #include <stdlib.h>
7040 #include <stdarg.h>
7041 #include <string.h>
7042 #include <float.h>
7045 main ()
7049 return 0;
7051 _ACEOF
7052 rm -f conftest.$ac_objext
7053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7054 (eval $ac_compile) 2>conftest.er1
7055 ac_status=$?
7056 grep -v '^ *+' conftest.er1 >conftest.err
7057 rm -f conftest.er1
7058 cat conftest.err >&5
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); } &&
7061 { ac_try='test -z "$ac_c_werror_flag"
7062 || test ! -s conftest.err'
7063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7064 (eval $ac_try) 2>&5
7065 ac_status=$?
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); }; } &&
7068 { ac_try='test -s conftest.$ac_objext'
7069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7070 (eval $ac_try) 2>&5
7071 ac_status=$?
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); }; }; then
7074 ac_cv_header_stdc=yes
7075 else
7076 echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.$ac_ext >&5
7079 ac_cv_header_stdc=no
7081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7083 if test $ac_cv_header_stdc = yes; then
7084 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7085 cat >conftest.$ac_ext <<_ACEOF
7086 /* confdefs.h. */
7087 _ACEOF
7088 cat confdefs.h >>conftest.$ac_ext
7089 cat >>conftest.$ac_ext <<_ACEOF
7090 /* end confdefs.h. */
7091 #include <string.h>
7093 _ACEOF
7094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7095 $EGREP "memchr" >/dev/null 2>&1; then
7097 else
7098 ac_cv_header_stdc=no
7100 rm -f conftest*
7104 if test $ac_cv_header_stdc = yes; then
7105 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7106 cat >conftest.$ac_ext <<_ACEOF
7107 /* confdefs.h. */
7108 _ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h. */
7112 #include <stdlib.h>
7114 _ACEOF
7115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7116 $EGREP "free" >/dev/null 2>&1; then
7118 else
7119 ac_cv_header_stdc=no
7121 rm -f conftest*
7125 if test $ac_cv_header_stdc = yes; then
7126 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7127 if test "$cross_compiling" = yes; then
7129 else
7130 cat >conftest.$ac_ext <<_ACEOF
7131 /* confdefs.h. */
7132 _ACEOF
7133 cat confdefs.h >>conftest.$ac_ext
7134 cat >>conftest.$ac_ext <<_ACEOF
7135 /* end confdefs.h. */
7136 #include <ctype.h>
7137 #if ((' ' & 0x0FF) == 0x020)
7138 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7139 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7140 #else
7141 # define ISLOWER(c) \
7142 (('a' <= (c) && (c) <= 'i') \
7143 || ('j' <= (c) && (c) <= 'r') \
7144 || ('s' <= (c) && (c) <= 'z'))
7145 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7146 #endif
7148 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7150 main ()
7152 int i;
7153 for (i = 0; i < 256; i++)
7154 if (XOR (islower (i), ISLOWER (i))
7155 || toupper (i) != TOUPPER (i))
7156 exit(2);
7157 exit (0);
7159 _ACEOF
7160 rm -f conftest$ac_exeext
7161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7162 (eval $ac_link) 2>&5
7163 ac_status=$?
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7167 (eval $ac_try) 2>&5
7168 ac_status=$?
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); }; }; then
7172 else
7173 echo "$as_me: program exited with status $ac_status" >&5
7174 echo "$as_me: failed program was:" >&5
7175 sed 's/^/| /' conftest.$ac_ext >&5
7177 ( exit $ac_status )
7178 ac_cv_header_stdc=no
7180 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7184 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7185 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7186 if test $ac_cv_header_stdc = yes; then
7188 cat >>confdefs.h <<\_ACEOF
7189 #define STDC_HEADERS 1
7190 _ACEOF
7195 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
7196 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7197 if test "${am_cv_langinfo_codeset+set}" = set; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7199 else
7200 cat >conftest.$ac_ext <<_ACEOF
7201 /* confdefs.h. */
7202 _ACEOF
7203 cat confdefs.h >>conftest.$ac_ext
7204 cat >>conftest.$ac_ext <<_ACEOF
7205 /* end confdefs.h. */
7206 #include <langinfo.h>
7208 main ()
7210 char* cs = nl_langinfo(CODESET);
7212 return 0;
7214 _ACEOF
7215 rm -f conftest.$ac_objext conftest$ac_exeext
7216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7217 (eval $ac_link) 2>conftest.er1
7218 ac_status=$?
7219 grep -v '^ *+' conftest.er1 >conftest.err
7220 rm -f conftest.er1
7221 cat conftest.err >&5
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); } &&
7224 { ac_try='test -z "$ac_c_werror_flag"
7225 || test ! -s conftest.err'
7226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227 (eval $ac_try) 2>&5
7228 ac_status=$?
7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); }; } &&
7231 { ac_try='test -s conftest$ac_exeext'
7232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7233 (eval $ac_try) 2>&5
7234 ac_status=$?
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); }; }; then
7237 am_cv_langinfo_codeset=yes
7238 else
7239 echo "$as_me: failed program was:" >&5
7240 sed 's/^/| /' conftest.$ac_ext >&5
7242 am_cv_langinfo_codeset=no
7244 rm -f conftest.err conftest.$ac_objext \
7245 conftest$ac_exeext conftest.$ac_ext
7248 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
7249 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7250 if test $am_cv_langinfo_codeset = yes; then
7252 cat >>confdefs.h <<\_ACEOF
7253 #define HAVE_LANGINFO_CODESET 1
7254 _ACEOF
7258 # If we haven't got the data from the intl directory,
7259 # assume NLS is disabled.
7260 USE_NLS=no
7261 LIBINTL=
7262 LIBINTL_DEP=
7263 INCINTL=
7264 XGETTEXT=
7265 GMSGFMT=
7266 POSUB=
7267 if test -f ../intl/config.intl; then
7268 . ../intl/config.intl
7270 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7271 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7272 if test x"$USE_NLS" != xyes; then
7273 echo "$as_me:$LINENO: result: no" >&5
7274 echo "${ECHO_T}no" >&6
7275 else
7276 echo "$as_me:$LINENO: result: yes" >&5
7277 echo "${ECHO_T}yes" >&6
7279 cat >>confdefs.h <<\_ACEOF
7280 #define ENABLE_NLS 1
7281 _ACEOF
7284 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7285 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
7286 # Look for .po and .gmo files in the source directory.
7287 CATALOGS=
7288 XLINGUAS=
7289 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
7290 # If there aren't any .gmo files the shell will give us the
7291 # literal string "../path/to/srcdir/po/*.gmo" which has to be
7292 # weeded out.
7293 case "$cat" in *\**)
7294 continue;;
7295 esac
7296 # The quadruple backslash is collapsed to a double backslash
7297 # by the backticks, then collapsed again by the double quotes,
7298 # leaving us with one backslash in the sed expression (right
7299 # before the dot that mustn't act as a wildcard).
7300 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
7301 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
7302 # The user is allowed to set LINGUAS to a list of languages to
7303 # install catalogs for. If it's empty that means "all of them."
7304 if test "x$LINGUAS" = x; then
7305 CATALOGS="$CATALOGS $cat"
7306 XLINGUAS="$XLINGUAS $lang"
7307 else
7308 case "$LINGUAS" in *$lang*)
7309 CATALOGS="$CATALOGS $cat"
7310 XLINGUAS="$XLINGUAS $lang"
7312 esac
7314 done
7315 LINGUAS="$XLINGUAS"
7316 echo "$as_me:$LINENO: result: $LINGUAS" >&5
7317 echo "${ECHO_T}$LINGUAS" >&6
7320 echo "$as_me:$LINENO: checking for uchar" >&5
7321 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
7322 if test "${gcc_cv_type_uchar+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7324 else
7325 cat >conftest.$ac_ext <<_ACEOF
7326 /* confdefs.h. */
7327 _ACEOF
7328 cat confdefs.h >>conftest.$ac_ext
7329 cat >>conftest.$ac_ext <<_ACEOF
7330 /* end confdefs.h. */
7332 #include <sys/types.h>
7335 main ()
7337 if ((uchar *)0) return 0;
7338 if (sizeof(uchar)) return 0;
7340 return 0;
7342 _ACEOF
7343 rm -f conftest.$ac_objext
7344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7345 (eval $ac_compile) 2>conftest.er1
7346 ac_status=$?
7347 grep -v '^ *+' conftest.er1 >conftest.err
7348 rm -f conftest.er1
7349 cat conftest.err >&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); } &&
7352 { ac_try='test -z "$ac_c_werror_flag"
7353 || test ! -s conftest.err'
7354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7355 (eval $ac_try) 2>&5
7356 ac_status=$?
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); }; } &&
7359 { ac_try='test -s conftest.$ac_objext'
7360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361 (eval $ac_try) 2>&5
7362 ac_status=$?
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); }; }; then
7365 ac_cv_type_uchar=yes
7366 else
7367 echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7370 ac_cv_type_uchar=no
7372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7374 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
7375 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
7376 if test $ac_cv_type_uchar = yes; then
7378 cat >>confdefs.h <<\_ACEOF
7379 #define HAVE_UCHAR 1
7380 _ACEOF
7385 if test "X$prefix" = "XNONE"; then
7386 acl_final_prefix="$ac_default_prefix"
7387 else
7388 acl_final_prefix="$prefix"
7390 if test "X$exec_prefix" = "XNONE"; then
7391 acl_final_exec_prefix='${prefix}'
7392 else
7393 acl_final_exec_prefix="$exec_prefix"
7395 acl_save_prefix="$prefix"
7396 prefix="$acl_final_prefix"
7397 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7398 prefix="$acl_save_prefix"
7401 # Check whether --with-gnu-ld or --without-gnu-ld was given.
7402 if test "${with_gnu_ld+set}" = set; then
7403 withval="$with_gnu_ld"
7404 test "$withval" = no || with_gnu_ld=yes
7405 else
7406 with_gnu_ld=no
7408 # Prepare PATH_SEPARATOR.
7409 # The user is always right.
7410 if test "${PATH_SEPARATOR+set}" != set; then
7411 echo "#! /bin/sh" >conf$$.sh
7412 echo "exit 0" >>conf$$.sh
7413 chmod +x conf$$.sh
7414 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7415 PATH_SEPARATOR=';'
7416 else
7417 PATH_SEPARATOR=:
7419 rm -f conf$$.sh
7421 ac_prog=ld
7422 if test "$GCC" = yes; then
7423 # Check if gcc -print-prog-name=ld gives a path.
7424 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7425 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7426 case $host in
7427 *-*-mingw*)
7428 # gcc leaves a trailing carriage return which upsets mingw
7429 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7431 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7432 esac
7433 case $ac_prog in
7434 # Accept absolute paths.
7435 [\\/]* | [A-Za-z]:[\\/]*)
7436 re_direlt='/[^/][^/]*/\.\./'
7437 # Canonicalize the path of ld
7438 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7439 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7440 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7441 done
7442 test -z "$LD" && LD="$ac_prog"
7445 # If it fails, then pretend we aren't using GCC.
7446 ac_prog=ld
7449 # If it is relative, then search for the first ld in PATH.
7450 with_gnu_ld=unknown
7452 esac
7453 elif test "$with_gnu_ld" = yes; then
7454 echo "$as_me:$LINENO: checking for GNU ld" >&5
7455 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7456 else
7457 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7458 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7460 if test "${acl_cv_path_LD+set}" = set; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
7462 else
7463 if test -z "$LD"; then
7464 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7465 for ac_dir in $PATH; do
7466 test -z "$ac_dir" && ac_dir=.
7467 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7468 acl_cv_path_LD="$ac_dir/$ac_prog"
7469 # Check to see if the program is GNU ld. I'd rather use --version,
7470 # but apparently some GNU ld's only accept -v.
7471 # Break only if it was the GNU/non-GNU ld that we prefer.
7472 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7473 test "$with_gnu_ld" != no && break
7474 else
7475 test "$with_gnu_ld" != yes && break
7478 done
7479 IFS="$ac_save_ifs"
7480 else
7481 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7485 LD="$acl_cv_path_LD"
7486 if test -n "$LD"; then
7487 echo "$as_me:$LINENO: result: $LD" >&5
7488 echo "${ECHO_T}$LD" >&6
7489 else
7490 echo "$as_me:$LINENO: result: no" >&5
7491 echo "${ECHO_T}no" >&6
7493 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7494 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7495 { (exit 1); exit 1; }; }
7496 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7497 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7498 if test "${acl_cv_prog_gnu_ld+set}" = set; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7500 else
7501 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7502 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7503 acl_cv_prog_gnu_ld=yes
7504 else
7505 acl_cv_prog_gnu_ld=no
7508 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7509 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7510 with_gnu_ld=$acl_cv_prog_gnu_ld
7514 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7515 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7516 if test "${acl_cv_rpath+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7518 else
7520 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7521 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7522 . ./conftest.sh
7523 rm -f ./conftest.sh
7524 acl_cv_rpath=done
7527 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7528 echo "${ECHO_T}$acl_cv_rpath" >&6
7529 wl="$acl_cv_wl"
7530 libext="$acl_cv_libext"
7531 shlibext="$acl_cv_shlibext"
7532 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7533 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7534 hardcode_direct="$acl_cv_hardcode_direct"
7535 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7536 # Check whether --enable-rpath or --disable-rpath was given.
7537 if test "${enable_rpath+set}" = set; then
7538 enableval="$enable_rpath"
7540 else
7541 enable_rpath=yes
7550 use_additional=yes
7552 acl_save_prefix="$prefix"
7553 prefix="$acl_final_prefix"
7554 acl_save_exec_prefix="$exec_prefix"
7555 exec_prefix="$acl_final_exec_prefix"
7557 eval additional_includedir=\"$includedir\"
7558 eval additional_libdir=\"$libdir\"
7560 exec_prefix="$acl_save_exec_prefix"
7561 prefix="$acl_save_prefix"
7564 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7565 if test "${with_libiconv_prefix+set}" = set; then
7566 withval="$with_libiconv_prefix"
7568 if test "X$withval" = "Xno"; then
7569 use_additional=no
7570 else
7571 if test "X$withval" = "X"; then
7573 acl_save_prefix="$prefix"
7574 prefix="$acl_final_prefix"
7575 acl_save_exec_prefix="$exec_prefix"
7576 exec_prefix="$acl_final_exec_prefix"
7578 eval additional_includedir=\"$includedir\"
7579 eval additional_libdir=\"$libdir\"
7581 exec_prefix="$acl_save_exec_prefix"
7582 prefix="$acl_save_prefix"
7584 else
7585 additional_includedir="$withval/include"
7586 additional_libdir="$withval/lib"
7591 LIBICONV=
7592 LTLIBICONV=
7593 INCICONV=
7594 rpathdirs=
7595 ltrpathdirs=
7596 names_already_handled=
7597 names_next_round='iconv '
7598 while test -n "$names_next_round"; do
7599 names_this_round="$names_next_round"
7600 names_next_round=
7601 for name in $names_this_round; do
7602 already_handled=
7603 for n in $names_already_handled; do
7604 if test "$n" = "$name"; then
7605 already_handled=yes
7606 break
7608 done
7609 if test -z "$already_handled"; then
7610 names_already_handled="$names_already_handled $name"
7611 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7612 eval value=\"\$HAVE_LIB$uppername\"
7613 if test -n "$value"; then
7614 if test "$value" = yes; then
7615 eval value=\"\$LIB$uppername\"
7616 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7617 eval value=\"\$LTLIB$uppername\"
7618 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7619 else
7622 else
7623 found_dir=
7624 found_la=
7625 found_so=
7626 found_a=
7627 if test $use_additional = yes; then
7628 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7629 found_dir="$additional_libdir"
7630 found_so="$additional_libdir/lib$name.$shlibext"
7631 if test -f "$additional_libdir/lib$name.la"; then
7632 found_la="$additional_libdir/lib$name.la"
7634 else
7635 if test -f "$additional_libdir/lib$name.$libext"; then
7636 found_dir="$additional_libdir"
7637 found_a="$additional_libdir/lib$name.$libext"
7638 if test -f "$additional_libdir/lib$name.la"; then
7639 found_la="$additional_libdir/lib$name.la"
7644 if test "X$found_dir" = "X"; then
7645 for x in $LDFLAGS $LTLIBICONV; do
7647 acl_save_prefix="$prefix"
7648 prefix="$acl_final_prefix"
7649 acl_save_exec_prefix="$exec_prefix"
7650 exec_prefix="$acl_final_exec_prefix"
7651 eval x=\"$x\"
7652 exec_prefix="$acl_save_exec_prefix"
7653 prefix="$acl_save_prefix"
7655 case "$x" in
7656 -L*)
7657 dir=`echo "X$x" | sed -e 's/^X-L//'`
7658 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7659 found_dir="$dir"
7660 found_so="$dir/lib$name.$shlibext"
7661 if test -f "$dir/lib$name.la"; then
7662 found_la="$dir/lib$name.la"
7664 else
7665 if test -f "$dir/lib$name.$libext"; then
7666 found_dir="$dir"
7667 found_a="$dir/lib$name.$libext"
7668 if test -f "$dir/lib$name.la"; then
7669 found_la="$dir/lib$name.la"
7674 esac
7675 if test "X$found_dir" != "X"; then
7676 break
7678 done
7680 if test "X$found_dir" != "X"; then
7681 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7682 if test "X$found_so" != "X"; then
7683 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7684 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7685 else
7686 haveit=
7687 for x in $ltrpathdirs; do
7688 if test "X$x" = "X$found_dir"; then
7689 haveit=yes
7690 break
7692 done
7693 if test -z "$haveit"; then
7694 ltrpathdirs="$ltrpathdirs $found_dir"
7696 if test "$hardcode_direct" = yes; then
7697 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7698 else
7699 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7700 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7701 haveit=
7702 for x in $rpathdirs; do
7703 if test "X$x" = "X$found_dir"; then
7704 haveit=yes
7705 break
7707 done
7708 if test -z "$haveit"; then
7709 rpathdirs="$rpathdirs $found_dir"
7711 else
7712 haveit=
7713 for x in $LDFLAGS $LIBICONV; do
7715 acl_save_prefix="$prefix"
7716 prefix="$acl_final_prefix"
7717 acl_save_exec_prefix="$exec_prefix"
7718 exec_prefix="$acl_final_exec_prefix"
7719 eval x=\"$x\"
7720 exec_prefix="$acl_save_exec_prefix"
7721 prefix="$acl_save_prefix"
7723 if test "X$x" = "X-L$found_dir"; then
7724 haveit=yes
7725 break
7727 done
7728 if test -z "$haveit"; then
7729 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7731 if test "$hardcode_minus_L" != no; then
7732 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7733 else
7734 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7739 else
7740 if test "X$found_a" != "X"; then
7741 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7742 else
7743 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7746 additional_includedir=
7747 case "$found_dir" in
7748 */lib | */lib/)
7749 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7750 additional_includedir="$basedir/include"
7752 esac
7753 if test "X$additional_includedir" != "X"; then
7754 if test "X$additional_includedir" != "X/usr/include"; then
7755 haveit=
7756 if test "X$additional_includedir" = "X/usr/local/include"; then
7757 if test -n "$GCC"; then
7758 case $host_os in
7759 linux*) haveit=yes;;
7760 esac
7763 if test -z "$haveit"; then
7764 for x in $CPPFLAGS $INCICONV; do
7766 acl_save_prefix="$prefix"
7767 prefix="$acl_final_prefix"
7768 acl_save_exec_prefix="$exec_prefix"
7769 exec_prefix="$acl_final_exec_prefix"
7770 eval x=\"$x\"
7771 exec_prefix="$acl_save_exec_prefix"
7772 prefix="$acl_save_prefix"
7774 if test "X$x" = "X-I$additional_includedir"; then
7775 haveit=yes
7776 break
7778 done
7779 if test -z "$haveit"; then
7780 if test -d "$additional_includedir"; then
7781 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7787 if test -n "$found_la"; then
7788 save_libdir="$libdir"
7789 case "$found_la" in
7790 */* | *\\*) . "$found_la" ;;
7791 *) . "./$found_la" ;;
7792 esac
7793 libdir="$save_libdir"
7794 for dep in $dependency_libs; do
7795 case "$dep" in
7796 -L*)
7797 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7798 if test "X$additional_libdir" != "X/usr/lib"; then
7799 haveit=
7800 if test "X$additional_libdir" = "X/usr/local/lib"; then
7801 if test -n "$GCC"; then
7802 case $host_os in
7803 linux*) haveit=yes;;
7804 esac
7807 if test -z "$haveit"; then
7808 haveit=
7809 for x in $LDFLAGS $LIBICONV; do
7811 acl_save_prefix="$prefix"
7812 prefix="$acl_final_prefix"
7813 acl_save_exec_prefix="$exec_prefix"
7814 exec_prefix="$acl_final_exec_prefix"
7815 eval x=\"$x\"
7816 exec_prefix="$acl_save_exec_prefix"
7817 prefix="$acl_save_prefix"
7819 if test "X$x" = "X-L$additional_libdir"; then
7820 haveit=yes
7821 break
7823 done
7824 if test -z "$haveit"; then
7825 if test -d "$additional_libdir"; then
7826 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7829 haveit=
7830 for x in $LDFLAGS $LTLIBICONV; do
7832 acl_save_prefix="$prefix"
7833 prefix="$acl_final_prefix"
7834 acl_save_exec_prefix="$exec_prefix"
7835 exec_prefix="$acl_final_exec_prefix"
7836 eval x=\"$x\"
7837 exec_prefix="$acl_save_exec_prefix"
7838 prefix="$acl_save_prefix"
7840 if test "X$x" = "X-L$additional_libdir"; then
7841 haveit=yes
7842 break
7844 done
7845 if test -z "$haveit"; then
7846 if test -d "$additional_libdir"; then
7847 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7853 -R*)
7854 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7855 if test "$enable_rpath" != no; then
7856 haveit=
7857 for x in $rpathdirs; do
7858 if test "X$x" = "X$dir"; then
7859 haveit=yes
7860 break
7862 done
7863 if test -z "$haveit"; then
7864 rpathdirs="$rpathdirs $dir"
7866 haveit=
7867 for x in $ltrpathdirs; do
7868 if test "X$x" = "X$dir"; then
7869 haveit=yes
7870 break
7872 done
7873 if test -z "$haveit"; then
7874 ltrpathdirs="$ltrpathdirs $dir"
7878 -l*)
7879 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7881 *.la)
7882 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7885 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7886 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7888 esac
7889 done
7891 else
7892 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7893 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7897 done
7898 done
7899 if test "X$rpathdirs" != "X"; then
7900 if test -n "$hardcode_libdir_separator"; then
7901 alldirs=
7902 for found_dir in $rpathdirs; do
7903 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7904 done
7905 acl_save_libdir="$libdir"
7906 libdir="$alldirs"
7907 eval flag=\"$hardcode_libdir_flag_spec\"
7908 libdir="$acl_save_libdir"
7909 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7910 else
7911 for found_dir in $rpathdirs; do
7912 acl_save_libdir="$libdir"
7913 libdir="$found_dir"
7914 eval flag=\"$hardcode_libdir_flag_spec\"
7915 libdir="$acl_save_libdir"
7916 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7917 done
7920 if test "X$ltrpathdirs" != "X"; then
7921 for found_dir in $ltrpathdirs; do
7922 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7923 done
7932 am_save_CPPFLAGS="$CPPFLAGS"
7934 for element in $INCICONV; do
7935 haveit=
7936 for x in $CPPFLAGS; do
7938 acl_save_prefix="$prefix"
7939 prefix="$acl_final_prefix"
7940 acl_save_exec_prefix="$exec_prefix"
7941 exec_prefix="$acl_final_exec_prefix"
7942 eval x=\"$x\"
7943 exec_prefix="$acl_save_exec_prefix"
7944 prefix="$acl_save_prefix"
7946 if test "X$x" = "X$element"; then
7947 haveit=yes
7948 break
7950 done
7951 if test -z "$haveit"; then
7952 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7954 done
7957 echo "$as_me:$LINENO: checking for iconv" >&5
7958 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7959 if test "${am_cv_func_iconv+set}" = set; then
7960 echo $ECHO_N "(cached) $ECHO_C" >&6
7961 else
7963 am_cv_func_iconv="no, consider installing GNU libiconv"
7964 am_cv_lib_iconv=no
7965 cat >conftest.$ac_ext <<_ACEOF
7966 /* confdefs.h. */
7967 _ACEOF
7968 cat confdefs.h >>conftest.$ac_ext
7969 cat >>conftest.$ac_ext <<_ACEOF
7970 /* end confdefs.h. */
7971 #include <stdlib.h>
7972 #include <iconv.h>
7974 main ()
7976 iconv_t cd = iconv_open("","");
7977 iconv(cd,NULL,NULL,NULL,NULL);
7978 iconv_close(cd);
7980 return 0;
7982 _ACEOF
7983 rm -f conftest.$ac_objext conftest$ac_exeext
7984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7985 (eval $ac_link) 2>conftest.er1
7986 ac_status=$?
7987 grep -v '^ *+' conftest.er1 >conftest.err
7988 rm -f conftest.er1
7989 cat conftest.err >&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); } &&
7992 { ac_try='test -z "$ac_c_werror_flag"
7993 || test ! -s conftest.err'
7994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7995 (eval $ac_try) 2>&5
7996 ac_status=$?
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); }; } &&
7999 { ac_try='test -s conftest$ac_exeext'
8000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8001 (eval $ac_try) 2>&5
8002 ac_status=$?
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); }; }; then
8005 am_cv_func_iconv=yes
8006 else
8007 echo "$as_me: failed program was:" >&5
8008 sed 's/^/| /' conftest.$ac_ext >&5
8011 rm -f conftest.err conftest.$ac_objext \
8012 conftest$ac_exeext conftest.$ac_ext
8013 if test "$am_cv_func_iconv" != yes; then
8014 am_save_LIBS="$LIBS"
8015 LIBS="$LIBS $LIBICONV"
8016 cat >conftest.$ac_ext <<_ACEOF
8017 /* confdefs.h. */
8018 _ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h. */
8022 #include <stdlib.h>
8023 #include <iconv.h>
8025 main ()
8027 iconv_t cd = iconv_open("","");
8028 iconv(cd,NULL,NULL,NULL,NULL);
8029 iconv_close(cd);
8031 return 0;
8033 _ACEOF
8034 rm -f conftest.$ac_objext conftest$ac_exeext
8035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8036 (eval $ac_link) 2>conftest.er1
8037 ac_status=$?
8038 grep -v '^ *+' conftest.er1 >conftest.err
8039 rm -f conftest.er1
8040 cat conftest.err >&5
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); } &&
8043 { ac_try='test -z "$ac_c_werror_flag"
8044 || test ! -s conftest.err'
8045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8046 (eval $ac_try) 2>&5
8047 ac_status=$?
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); }; } &&
8050 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8056 am_cv_lib_iconv=yes
8057 am_cv_func_iconv=yes
8058 else
8059 echo "$as_me: failed program was:" >&5
8060 sed 's/^/| /' conftest.$ac_ext >&5
8063 rm -f conftest.err conftest.$ac_objext \
8064 conftest$ac_exeext conftest.$ac_ext
8065 LIBS="$am_save_LIBS"
8069 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8070 echo "${ECHO_T}$am_cv_func_iconv" >&6
8071 if test "$am_cv_func_iconv" = yes; then
8073 cat >>confdefs.h <<\_ACEOF
8074 #define HAVE_ICONV 1
8075 _ACEOF
8078 if test "$am_cv_lib_iconv" = yes; then
8079 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8080 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
8081 echo "$as_me:$LINENO: result: $LIBICONV" >&5
8082 echo "${ECHO_T}$LIBICONV" >&6
8083 else
8084 CPPFLAGS="$am_save_CPPFLAGS"
8085 LIBICONV=
8086 LTLIBICONV=
8091 if test "$am_cv_func_iconv" = yes; then
8092 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8093 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8094 if test "${am_cv_proto_iconv+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8096 else
8098 cat >conftest.$ac_ext <<_ACEOF
8099 /* confdefs.h. */
8100 _ACEOF
8101 cat confdefs.h >>conftest.$ac_ext
8102 cat >>conftest.$ac_ext <<_ACEOF
8103 /* end confdefs.h. */
8105 #include <stdlib.h>
8106 #include <iconv.h>
8107 extern
8108 #ifdef __cplusplus
8110 #endif
8111 #if defined(__STDC__) || defined(__cplusplus)
8112 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8113 #else
8114 size_t iconv();
8115 #endif
8118 main ()
8122 return 0;
8124 _ACEOF
8125 rm -f conftest.$ac_objext
8126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8127 (eval $ac_compile) 2>conftest.er1
8128 ac_status=$?
8129 grep -v '^ *+' conftest.er1 >conftest.err
8130 rm -f conftest.er1
8131 cat conftest.err >&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); } &&
8134 { ac_try='test -z "$ac_c_werror_flag"
8135 || test ! -s conftest.err'
8136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137 (eval $ac_try) 2>&5
8138 ac_status=$?
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); }; } &&
8141 { ac_try='test -s conftest.$ac_objext'
8142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143 (eval $ac_try) 2>&5
8144 ac_status=$?
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); }; }; then
8147 am_cv_proto_iconv_arg1=""
8148 else
8149 echo "$as_me: failed program was:" >&5
8150 sed 's/^/| /' conftest.$ac_ext >&5
8152 am_cv_proto_iconv_arg1="const"
8154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8155 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
8158 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8159 echo "$as_me:$LINENO: result: ${ac_t:-
8160 }$am_cv_proto_iconv" >&5
8161 echo "${ECHO_T}${ac_t:-
8162 }$am_cv_proto_iconv" >&6
8164 cat >>confdefs.h <<_ACEOF
8165 #define ICONV_CONST $am_cv_proto_iconv_arg1
8166 _ACEOF
8171 # More defines and substitutions.
8172 PACKAGE="$PACKAGE_TARNAME"
8174 cat >>confdefs.h <<_ACEOF
8175 #define PACKAGE "$PACKAGE"
8176 _ACEOF
8180 if test "x$enable_nls" != xno; then
8181 USED_CATALOGS='$(CATALOGS)'
8182 else
8183 USED_CATALOGS=
8187 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8188 if test "${enable_maintainer_mode+set}" = set; then
8189 enableval="$enable_maintainer_mode"
8191 else
8192 enable_maintainer_mode=no
8195 if test "x$enable_maintainer_mode" = xno; then
8196 MAINT='#'
8197 else
8198 MAINT=
8202 # Check whether --enable-checking or --disable-checking was given.
8203 if test "${enable_checking+set}" = set; then
8204 enableval="$enable_checking"
8206 else
8207 enable_checking=no
8210 if test $enable_checking != no ; then
8212 cat >>confdefs.h <<\_ACEOF
8213 #define ENABLE_CHECKING 1
8214 _ACEOF
8219 case $target in
8220 alpha*-*-* | \
8221 arm*-*-*eabi* | \
8222 arm*-*-symbianelf* | \
8223 x86_64-*-* | \
8224 ia64-*-* | \
8225 hppa*64*-*-* | parisc*64*-*-* | \
8226 i[34567]86-*-solaris2.1[0-9]* | \
8227 mips*-*-* | \
8228 mmix-*-* | \
8229 powerpc*-*-* | \
8230 rs6000*-*-* | \
8231 s390*-*-* | \
8232 sparc64*-*-* | ultrasparc-*-freebsd* | \
8233 sparcv9-*-solaris2* | \
8234 sparc-*-solaris2.[789] | sparc-*-solaris2.1[0-9]* | \
8235 sh[123456789l]*-*-*)
8236 need_64bit_hwint=yes ;;
8238 need_64bit_hwint=no ;;
8239 esac
8241 case $need_64bit_hwint:$ac_cv_sizeof_long in
8242 *:8 | no:*) host_wide_int=long ;;
8243 *) host_wide_int='long long' ;;
8244 esac
8248 cat >>confdefs.h <<_ACEOF
8249 #define HOST_WIDE_INT $host_wide_int
8250 _ACEOF
8253 # Output.
8255 ac_config_headers="$ac_config_headers config.h:config.in"
8257 ac_config_files="$ac_config_files Makefile"
8259 cat >confcache <<\_ACEOF
8260 # This file is a shell script that caches the results of configure
8261 # tests run on this system so they can be shared between configure
8262 # scripts and configure runs, see configure's option --config-cache.
8263 # It is not useful on other systems. If it contains results you don't
8264 # want to keep, you may remove or edit it.
8266 # config.status only pays attention to the cache file if you give it
8267 # the --recheck option to rerun configure.
8269 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8270 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8271 # following values.
8273 _ACEOF
8275 # The following way of writing the cache mishandles newlines in values,
8276 # but we know of no workaround that is simple, portable, and efficient.
8277 # So, don't put newlines in cache variables' values.
8278 # Ultrix sh set writes to stderr and can't be redirected directly,
8279 # and sets the high bit in the cache file unless we assign to the vars.
8281 (set) 2>&1 |
8282 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8283 *ac_space=\ *)
8284 # `set' does not quote correctly, so add quotes (double-quote
8285 # substitution turns \\\\ into \\, and sed turns \\ into \).
8286 sed -n \
8287 "s/'/'\\\\''/g;
8288 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8291 # `set' quotes correctly as required by POSIX, so do not add quotes.
8292 sed -n \
8293 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8295 esac;
8297 sed '
8298 t clear
8299 : clear
8300 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8301 t end
8302 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8303 : end' >>confcache
8304 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8305 if test -w $cache_file; then
8306 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8307 cat confcache >$cache_file
8308 else
8309 echo "not updating unwritable cache $cache_file"
8312 rm -f confcache
8314 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8315 # Let make expand exec_prefix.
8316 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8318 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8319 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8320 # trailing colons and then remove the whole line if VPATH becomes empty
8321 # (actually we leave an empty line to preserve line numbers).
8322 if test "x$srcdir" = x.; then
8323 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8324 s/:*\$(srcdir):*/:/;
8325 s/:*\${srcdir}:*/:/;
8326 s/:*@srcdir@:*/:/;
8327 s/^\([^=]*=[ ]*\):*/\1/;
8328 s/:*$//;
8329 s/^[^=]*=[ ]*$//;
8333 DEFS=-DHAVE_CONFIG_H
8335 ac_libobjs=
8336 ac_ltlibobjs=
8337 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8338 # 1. Remove the extension, and $U if already installed.
8339 ac_i=`echo "$ac_i" |
8340 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8341 # 2. Add them.
8342 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8343 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8344 done
8345 LIBOBJS=$ac_libobjs
8347 LTLIBOBJS=$ac_ltlibobjs
8351 : ${CONFIG_STATUS=./config.status}
8352 ac_clean_files_save=$ac_clean_files
8353 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8354 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8355 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8356 cat >$CONFIG_STATUS <<_ACEOF
8357 #! $SHELL
8358 # Generated by $as_me.
8359 # Run this file to recreate the current configuration.
8360 # Compiler output produced by configure, useful for debugging
8361 # configure, is in config.log if it exists.
8363 debug=false
8364 ac_cs_recheck=false
8365 ac_cs_silent=false
8366 SHELL=\${CONFIG_SHELL-$SHELL}
8367 _ACEOF
8369 cat >>$CONFIG_STATUS <<\_ACEOF
8370 ## --------------------- ##
8371 ## M4sh Initialization. ##
8372 ## --------------------- ##
8374 # Be Bourne compatible
8375 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8376 emulate sh
8377 NULLCMD=:
8378 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8379 # is contrary to our usage. Disable this feature.
8380 alias -g '${1+"$@"}'='"$@"'
8381 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8382 set -o posix
8384 DUALCASE=1; export DUALCASE # for MKS sh
8386 # Support unset when possible.
8387 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8388 as_unset=unset
8389 else
8390 as_unset=false
8394 # Work around bugs in pre-3.0 UWIN ksh.
8395 $as_unset ENV MAIL MAILPATH
8396 PS1='$ '
8397 PS2='> '
8398 PS4='+ '
8400 # NLS nuisances.
8401 for as_var in \
8402 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8403 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8404 LC_TELEPHONE LC_TIME
8406 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8407 eval $as_var=C; export $as_var
8408 else
8409 $as_unset $as_var
8411 done
8413 # Required to use basename.
8414 if expr a : '\(a\)' >/dev/null 2>&1; then
8415 as_expr=expr
8416 else
8417 as_expr=false
8420 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8421 as_basename=basename
8422 else
8423 as_basename=false
8427 # Name of the executable.
8428 as_me=`$as_basename "$0" ||
8429 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8430 X"$0" : 'X\(//\)$' \| \
8431 X"$0" : 'X\(/\)$' \| \
8432 . : '\(.\)' 2>/dev/null ||
8433 echo X/"$0" |
8434 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8435 /^X\/\(\/\/\)$/{ s//\1/; q; }
8436 /^X\/\(\/\).*/{ s//\1/; q; }
8437 s/.*/./; q'`
8440 # PATH needs CR, and LINENO needs CR and PATH.
8441 # Avoid depending upon Character Ranges.
8442 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8443 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8444 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8445 as_cr_digits='0123456789'
8446 as_cr_alnum=$as_cr_Letters$as_cr_digits
8448 # The user is always right.
8449 if test "${PATH_SEPARATOR+set}" != set; then
8450 echo "#! /bin/sh" >conf$$.sh
8451 echo "exit 0" >>conf$$.sh
8452 chmod +x conf$$.sh
8453 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8454 PATH_SEPARATOR=';'
8455 else
8456 PATH_SEPARATOR=:
8458 rm -f conf$$.sh
8462 as_lineno_1=$LINENO
8463 as_lineno_2=$LINENO
8464 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8465 test "x$as_lineno_1" != "x$as_lineno_2" &&
8466 test "x$as_lineno_3" = "x$as_lineno_2" || {
8467 # Find who we are. Look in the path if we contain no path at all
8468 # relative or not.
8469 case $0 in
8470 *[\\/]* ) as_myself=$0 ;;
8471 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8472 for as_dir in $PATH
8474 IFS=$as_save_IFS
8475 test -z "$as_dir" && as_dir=.
8476 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8477 done
8480 esac
8481 # We did not find ourselves, most probably we were run as `sh COMMAND'
8482 # in which case we are not to be found in the path.
8483 if test "x$as_myself" = x; then
8484 as_myself=$0
8486 if test ! -f "$as_myself"; then
8487 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8488 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8489 { (exit 1); exit 1; }; }
8491 case $CONFIG_SHELL in
8493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8494 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8496 IFS=$as_save_IFS
8497 test -z "$as_dir" && as_dir=.
8498 for as_base in sh bash ksh sh5; do
8499 case $as_dir in
8501 if ("$as_dir/$as_base" -c '
8502 as_lineno_1=$LINENO
8503 as_lineno_2=$LINENO
8504 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8505 test "x$as_lineno_1" != "x$as_lineno_2" &&
8506 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8507 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8508 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8509 CONFIG_SHELL=$as_dir/$as_base
8510 export CONFIG_SHELL
8511 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8512 fi;;
8513 esac
8514 done
8515 done
8517 esac
8519 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8520 # uniformly replaced by the line number. The first 'sed' inserts a
8521 # line-number line before each line; the second 'sed' does the real
8522 # work. The second script uses 'N' to pair each line-number line
8523 # with the numbered line, and appends trailing '-' during
8524 # substitution so that $LINENO is not a special case at line end.
8525 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8526 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8527 sed '=' <$as_myself |
8528 sed '
8530 s,$,-,
8531 : loop
8532 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8533 t loop
8534 s,-$,,
8535 s,^['$as_cr_digits']*\n,,
8536 ' >$as_me.lineno &&
8537 chmod +x $as_me.lineno ||
8538 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8539 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8540 { (exit 1); exit 1; }; }
8542 # Don't try to exec as it changes $[0], causing all sort of problems
8543 # (the dirname of $[0] is not the place where we might find the
8544 # original and so on. Autoconf is especially sensible to this).
8545 . ./$as_me.lineno
8546 # Exit status is that of the last command.
8547 exit
8551 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8552 *c*,-n*) ECHO_N= ECHO_C='
8553 ' ECHO_T=' ' ;;
8554 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8555 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8556 esac
8558 if expr a : '\(a\)' >/dev/null 2>&1; then
8559 as_expr=expr
8560 else
8561 as_expr=false
8564 rm -f conf$$ conf$$.exe conf$$.file
8565 echo >conf$$.file
8566 if ln -s conf$$.file conf$$ 2>/dev/null; then
8567 # We could just check for DJGPP; but this test a) works b) is more generic
8568 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8569 if test -f conf$$.exe; then
8570 # Don't use ln at all; we don't have any links
8571 as_ln_s='cp -p'
8572 else
8573 as_ln_s='ln -s'
8575 elif ln conf$$.file conf$$ 2>/dev/null; then
8576 as_ln_s=ln
8577 else
8578 as_ln_s='cp -p'
8580 rm -f conf$$ conf$$.exe conf$$.file
8582 if mkdir -p . 2>/dev/null; then
8583 as_mkdir_p=:
8584 else
8585 test -d ./-p && rmdir ./-p
8586 as_mkdir_p=false
8589 as_executable_p="test -f"
8591 # Sed expression to map a string onto a valid CPP name.
8592 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8594 # Sed expression to map a string onto a valid variable name.
8595 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8598 # IFS
8599 # We need space, tab and new line, in precisely that order.
8600 as_nl='
8602 IFS=" $as_nl"
8604 # CDPATH.
8605 $as_unset CDPATH
8607 exec 6>&1
8609 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8610 # report actual input values of CONFIG_FILES etc. instead of their
8611 # values after options handling. Logging --version etc. is OK.
8612 exec 5>>config.log
8614 echo
8615 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8616 ## Running $as_me. ##
8617 _ASBOX
8618 } >&5
8619 cat >&5 <<_CSEOF
8621 This file was extended by cpplib $as_me , which was
8622 generated by GNU Autoconf 2.59. Invocation command line was
8624 CONFIG_FILES = $CONFIG_FILES
8625 CONFIG_HEADERS = $CONFIG_HEADERS
8626 CONFIG_LINKS = $CONFIG_LINKS
8627 CONFIG_COMMANDS = $CONFIG_COMMANDS
8628 $ $0 $@
8630 _CSEOF
8631 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8632 echo >&5
8633 _ACEOF
8635 # Files that config.status was made for.
8636 if test -n "$ac_config_files"; then
8637 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8640 if test -n "$ac_config_headers"; then
8641 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8644 if test -n "$ac_config_links"; then
8645 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8648 if test -n "$ac_config_commands"; then
8649 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8652 cat >>$CONFIG_STATUS <<\_ACEOF
8654 ac_cs_usage="\
8655 \`$as_me' instantiates files from templates according to the
8656 current configuration.
8658 Usage: $0 [OPTIONS] [FILE]...
8660 -h, --help print this help, then exit
8661 -V, --version print version number, then exit
8662 -q, --quiet do not print progress messages
8663 -d, --debug don't remove temporary files
8664 --recheck update $as_me by reconfiguring in the same conditions
8665 --file=FILE[:TEMPLATE]
8666 instantiate the configuration file FILE
8667 --header=FILE[:TEMPLATE]
8668 instantiate the configuration header FILE
8670 Configuration files:
8671 $config_files
8673 Configuration headers:
8674 $config_headers
8676 Configuration commands:
8677 $config_commands
8679 Report bugs to <bug-autoconf@gnu.org>."
8680 _ACEOF
8682 cat >>$CONFIG_STATUS <<_ACEOF
8683 ac_cs_version="\\
8684 cpplib config.status
8685 configured by $0, generated by GNU Autoconf 2.59,
8686 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8688 Copyright (C) 2003 Free Software Foundation, Inc.
8689 This config.status script is free software; the Free Software Foundation
8690 gives unlimited permission to copy, distribute and modify it."
8691 srcdir=$srcdir
8692 INSTALL="$INSTALL"
8693 _ACEOF
8695 cat >>$CONFIG_STATUS <<\_ACEOF
8696 # If no file are specified by the user, then we need to provide default
8697 # value. By we need to know if files were specified by the user.
8698 ac_need_defaults=:
8699 while test $# != 0
8701 case $1 in
8702 --*=*)
8703 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8704 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8705 ac_shift=:
8708 ac_option=$1
8709 ac_optarg=$2
8710 ac_shift=shift
8712 *) # This is not an option, so the user has probably given explicit
8713 # arguments.
8714 ac_option=$1
8715 ac_need_defaults=false;;
8716 esac
8718 case $ac_option in
8719 # Handling of the options.
8720 _ACEOF
8721 cat >>$CONFIG_STATUS <<\_ACEOF
8722 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8723 ac_cs_recheck=: ;;
8724 --version | --vers* | -V )
8725 echo "$ac_cs_version"; exit 0 ;;
8726 --he | --h)
8727 # Conflict between --help and --header
8728 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8729 Try \`$0 --help' for more information." >&5
8730 echo "$as_me: error: ambiguous option: $1
8731 Try \`$0 --help' for more information." >&2;}
8732 { (exit 1); exit 1; }; };;
8733 --help | --hel | -h )
8734 echo "$ac_cs_usage"; exit 0 ;;
8735 --debug | --d* | -d )
8736 debug=: ;;
8737 --file | --fil | --fi | --f )
8738 $ac_shift
8739 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8740 ac_need_defaults=false;;
8741 --header | --heade | --head | --hea )
8742 $ac_shift
8743 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8744 ac_need_defaults=false;;
8745 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8746 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8747 ac_cs_silent=: ;;
8749 # This is an error.
8750 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8751 Try \`$0 --help' for more information." >&5
8752 echo "$as_me: error: unrecognized option: $1
8753 Try \`$0 --help' for more information." >&2;}
8754 { (exit 1); exit 1; }; } ;;
8756 *) ac_config_targets="$ac_config_targets $1" ;;
8758 esac
8759 shift
8760 done
8762 ac_configure_extra_args=
8764 if $ac_cs_silent; then
8765 exec 6>/dev/null
8766 ac_configure_extra_args="$ac_configure_extra_args --silent"
8769 _ACEOF
8770 cat >>$CONFIG_STATUS <<_ACEOF
8771 if \$ac_cs_recheck; then
8772 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8773 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8776 _ACEOF
8778 cat >>$CONFIG_STATUS <<_ACEOF
8780 # INIT-COMMANDS section.
8783 DEPDIR=$DEPDIR
8785 _ACEOF
8789 cat >>$CONFIG_STATUS <<\_ACEOF
8790 for ac_config_target in $ac_config_targets
8792 case "$ac_config_target" in
8793 # Handling of arguments.
8794 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8795 "depdir" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
8796 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8797 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8798 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8799 { (exit 1); exit 1; }; };;
8800 esac
8801 done
8803 # If the user did not use the arguments to specify the items to instantiate,
8804 # then the envvar interface is used. Set only those that are not.
8805 # We use the long form for the default assignment because of an extremely
8806 # bizarre bug on SunOS 4.1.3.
8807 if $ac_need_defaults; then
8808 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8809 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8810 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8813 # Have a temporary directory for convenience. Make it in the build tree
8814 # simply because there is no reason to put it here, and in addition,
8815 # creating and moving files from /tmp can sometimes cause problems.
8816 # Create a temporary directory, and hook for its removal unless debugging.
8817 $debug ||
8819 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8820 trap '{ (exit 1); exit 1; }' 1 2 13 15
8823 # Create a (secure) tmp directory for tmp files.
8826 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8827 test -n "$tmp" && test -d "$tmp"
8828 } ||
8830 tmp=./confstat$$-$RANDOM
8831 (umask 077 && mkdir $tmp)
8832 } ||
8834 echo "$me: cannot create a temporary directory in ." >&2
8835 { (exit 1); exit 1; }
8838 _ACEOF
8840 cat >>$CONFIG_STATUS <<_ACEOF
8843 # CONFIG_FILES section.
8846 # No need to generate the scripts if there are no CONFIG_FILES.
8847 # This happens for instance when ./config.status config.h
8848 if test -n "\$CONFIG_FILES"; then
8849 # Protect against being on the right side of a sed subst in config.status.
8850 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8851 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8852 s,@SHELL@,$SHELL,;t t
8853 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8854 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8855 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8856 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8857 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8858 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8859 s,@exec_prefix@,$exec_prefix,;t t
8860 s,@prefix@,$prefix,;t t
8861 s,@program_transform_name@,$program_transform_name,;t t
8862 s,@bindir@,$bindir,;t t
8863 s,@sbindir@,$sbindir,;t t
8864 s,@libexecdir@,$libexecdir,;t t
8865 s,@datadir@,$datadir,;t t
8866 s,@sysconfdir@,$sysconfdir,;t t
8867 s,@sharedstatedir@,$sharedstatedir,;t t
8868 s,@localstatedir@,$localstatedir,;t t
8869 s,@libdir@,$libdir,;t t
8870 s,@includedir@,$includedir,;t t
8871 s,@oldincludedir@,$oldincludedir,;t t
8872 s,@infodir@,$infodir,;t t
8873 s,@mandir@,$mandir,;t t
8874 s,@build_alias@,$build_alias,;t t
8875 s,@host_alias@,$host_alias,;t t
8876 s,@target_alias@,$target_alias,;t t
8877 s,@DEFS@,$DEFS,;t t
8878 s,@ECHO_C@,$ECHO_C,;t t
8879 s,@ECHO_N@,$ECHO_N,;t t
8880 s,@ECHO_T@,$ECHO_T,;t t
8881 s,@LIBS@,$LIBS,;t t
8882 s,@build@,$build,;t t
8883 s,@build_cpu@,$build_cpu,;t t
8884 s,@build_vendor@,$build_vendor,;t t
8885 s,@build_os@,$build_os,;t t
8886 s,@host@,$host,;t t
8887 s,@host_cpu@,$host_cpu,;t t
8888 s,@host_vendor@,$host_vendor,;t t
8889 s,@host_os@,$host_os,;t t
8890 s,@target@,$target,;t t
8891 s,@target_cpu@,$target_cpu,;t t
8892 s,@target_vendor@,$target_vendor,;t t
8893 s,@target_os@,$target_os,;t t
8894 s,@SET_MAKE@,$SET_MAKE,;t t
8895 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8896 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8897 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8898 s,@CC@,$CC,;t t
8899 s,@CFLAGS@,$CFLAGS,;t t
8900 s,@LDFLAGS@,$LDFLAGS,;t t
8901 s,@CPPFLAGS@,$CPPFLAGS,;t t
8902 s,@ac_ct_CC@,$ac_ct_CC,;t t
8903 s,@EXEEXT@,$EXEEXT,;t t
8904 s,@OBJEXT@,$OBJEXT,;t t
8905 s,@RANLIB@,$RANLIB,;t t
8906 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8907 s,@ACLOCAL@,$ACLOCAL,;t t
8908 s,@AUTOCONF@,$AUTOCONF,;t t
8909 s,@AUTOHEADER@,$AUTOHEADER,;t t
8910 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
8911 s,@WARN_PEDANTIC@,$WARN_PEDANTIC,;t t
8912 s,@WERROR@,$WERROR,;t t
8913 s,@am__leading_dot@,$am__leading_dot,;t t
8914 s,@DEPDIR@,$DEPDIR,;t t
8915 s,@CCDEPMODE@,$CCDEPMODE,;t t
8916 s,@CPP@,$CPP,;t t
8917 s,@EGREP@,$EGREP,;t t
8918 s,@LIBOBJS@,$LIBOBJS,;t t
8919 s,@ALLOCA@,$ALLOCA,;t t
8920 s,@USE_NLS@,$USE_NLS,;t t
8921 s,@LIBINTL@,$LIBINTL,;t t
8922 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
8923 s,@INCINTL@,$INCINTL,;t t
8924 s,@XGETTEXT@,$XGETTEXT,;t t
8925 s,@GMSGFMT@,$GMSGFMT,;t t
8926 s,@POSUB@,$POSUB,;t t
8927 s,@CATALOGS@,$CATALOGS,;t t
8928 s,@LIBICONV@,$LIBICONV,;t t
8929 s,@LTLIBICONV@,$LTLIBICONV,;t t
8930 s,@PACKAGE@,$PACKAGE,;t t
8931 s,@USED_CATALOGS@,$USED_CATALOGS,;t t
8932 s,@MAINT@,$MAINT,;t t
8933 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8934 CEOF
8936 _ACEOF
8938 cat >>$CONFIG_STATUS <<\_ACEOF
8939 # Split the substitutions into bite-sized pieces for seds with
8940 # small command number limits, like on Digital OSF/1 and HP-UX.
8941 ac_max_sed_lines=48
8942 ac_sed_frag=1 # Number of current file.
8943 ac_beg=1 # First line for current file.
8944 ac_end=$ac_max_sed_lines # Line after last line for current file.
8945 ac_more_lines=:
8946 ac_sed_cmds=
8947 while $ac_more_lines; do
8948 if test $ac_beg -gt 1; then
8949 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8950 else
8951 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8953 if test ! -s $tmp/subs.frag; then
8954 ac_more_lines=false
8955 else
8956 # The purpose of the label and of the branching condition is to
8957 # speed up the sed processing (if there are no `@' at all, there
8958 # is no need to browse any of the substitutions).
8959 # These are the two extra sed commands mentioned above.
8960 (echo ':t
8961 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8962 if test -z "$ac_sed_cmds"; then
8963 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8964 else
8965 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8967 ac_sed_frag=`expr $ac_sed_frag + 1`
8968 ac_beg=$ac_end
8969 ac_end=`expr $ac_end + $ac_max_sed_lines`
8971 done
8972 if test -z "$ac_sed_cmds"; then
8973 ac_sed_cmds=cat
8975 fi # test -n "$CONFIG_FILES"
8977 _ACEOF
8978 cat >>$CONFIG_STATUS <<\_ACEOF
8979 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8980 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8981 case $ac_file in
8982 - | *:- | *:-:* ) # input from stdin
8983 cat >$tmp/stdin
8984 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8985 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8986 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8987 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8988 * ) ac_file_in=$ac_file.in ;;
8989 esac
8991 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8992 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8993 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8994 X"$ac_file" : 'X\(//\)[^/]' \| \
8995 X"$ac_file" : 'X\(//\)$' \| \
8996 X"$ac_file" : 'X\(/\)' \| \
8997 . : '\(.\)' 2>/dev/null ||
8998 echo X"$ac_file" |
8999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9000 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9001 /^X\(\/\/\)$/{ s//\1/; q; }
9002 /^X\(\/\).*/{ s//\1/; q; }
9003 s/.*/./; q'`
9004 { if $as_mkdir_p; then
9005 mkdir -p "$ac_dir"
9006 else
9007 as_dir="$ac_dir"
9008 as_dirs=
9009 while test ! -d "$as_dir"; do
9010 as_dirs="$as_dir $as_dirs"
9011 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9012 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9013 X"$as_dir" : 'X\(//\)[^/]' \| \
9014 X"$as_dir" : 'X\(//\)$' \| \
9015 X"$as_dir" : 'X\(/\)' \| \
9016 . : '\(.\)' 2>/dev/null ||
9017 echo X"$as_dir" |
9018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9019 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9020 /^X\(\/\/\)$/{ s//\1/; q; }
9021 /^X\(\/\).*/{ s//\1/; q; }
9022 s/.*/./; q'`
9023 done
9024 test ! -n "$as_dirs" || mkdir $as_dirs
9025 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9026 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9027 { (exit 1); exit 1; }; }; }
9029 ac_builddir=.
9031 if test "$ac_dir" != .; then
9032 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9033 # A "../" for each directory in $ac_dir_suffix.
9034 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9035 else
9036 ac_dir_suffix= ac_top_builddir=
9039 case $srcdir in
9040 .) # No --srcdir option. We are building in place.
9041 ac_srcdir=.
9042 if test -z "$ac_top_builddir"; then
9043 ac_top_srcdir=.
9044 else
9045 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9046 fi ;;
9047 [\\/]* | ?:[\\/]* ) # Absolute path.
9048 ac_srcdir=$srcdir$ac_dir_suffix;
9049 ac_top_srcdir=$srcdir ;;
9050 *) # Relative path.
9051 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9052 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9053 esac
9055 # Do not use `cd foo && pwd` to compute absolute paths, because
9056 # the directories may not exist.
9057 case `pwd` in
9058 .) ac_abs_builddir="$ac_dir";;
9060 case "$ac_dir" in
9061 .) ac_abs_builddir=`pwd`;;
9062 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9063 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9064 esac;;
9065 esac
9066 case $ac_abs_builddir in
9067 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9069 case ${ac_top_builddir}. in
9070 .) ac_abs_top_builddir=$ac_abs_builddir;;
9071 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9072 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9073 esac;;
9074 esac
9075 case $ac_abs_builddir in
9076 .) ac_abs_srcdir=$ac_srcdir;;
9078 case $ac_srcdir in
9079 .) ac_abs_srcdir=$ac_abs_builddir;;
9080 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9081 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9082 esac;;
9083 esac
9084 case $ac_abs_builddir in
9085 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9087 case $ac_top_srcdir in
9088 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9089 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9090 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9091 esac;;
9092 esac
9095 case $INSTALL in
9096 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9097 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9098 esac
9100 if test x"$ac_file" != x-; then
9101 { echo "$as_me:$LINENO: creating $ac_file" >&5
9102 echo "$as_me: creating $ac_file" >&6;}
9103 rm -f "$ac_file"
9105 # Let's still pretend it is `configure' which instantiates (i.e., don't
9106 # use $as_me), people would be surprised to read:
9107 # /* config.h. Generated by config.status. */
9108 if test x"$ac_file" = x-; then
9109 configure_input=
9110 else
9111 configure_input="$ac_file. "
9113 configure_input=$configure_input"Generated from `echo $ac_file_in |
9114 sed 's,.*/,,'` by configure."
9116 # First look for the input files in the build tree, otherwise in the
9117 # src tree.
9118 ac_file_inputs=`IFS=:
9119 for f in $ac_file_in; do
9120 case $f in
9121 -) echo $tmp/stdin ;;
9122 [\\/$]*)
9123 # Absolute (can't be DOS-style, as IFS=:)
9124 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9125 echo "$as_me: error: cannot find input file: $f" >&2;}
9126 { (exit 1); exit 1; }; }
9127 echo "$f";;
9128 *) # Relative
9129 if test -f "$f"; then
9130 # Build tree
9131 echo "$f"
9132 elif test -f "$srcdir/$f"; then
9133 # Source tree
9134 echo "$srcdir/$f"
9135 else
9136 # /dev/null tree
9137 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9138 echo "$as_me: error: cannot find input file: $f" >&2;}
9139 { (exit 1); exit 1; }; }
9140 fi;;
9141 esac
9142 done` || { (exit 1); exit 1; }
9143 _ACEOF
9144 cat >>$CONFIG_STATUS <<_ACEOF
9145 sed "$ac_vpsub
9146 $extrasub
9147 _ACEOF
9148 cat >>$CONFIG_STATUS <<\_ACEOF
9150 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9151 s,@configure_input@,$configure_input,;t t
9152 s,@srcdir@,$ac_srcdir,;t t
9153 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9154 s,@top_srcdir@,$ac_top_srcdir,;t t
9155 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9156 s,@builddir@,$ac_builddir,;t t
9157 s,@abs_builddir@,$ac_abs_builddir,;t t
9158 s,@top_builddir@,$ac_top_builddir,;t t
9159 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9160 s,@INSTALL@,$ac_INSTALL,;t t
9161 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9162 rm -f $tmp/stdin
9163 if test x"$ac_file" != x-; then
9164 mv $tmp/out $ac_file
9165 else
9166 cat $tmp/out
9167 rm -f $tmp/out
9170 done
9171 _ACEOF
9172 cat >>$CONFIG_STATUS <<\_ACEOF
9175 # CONFIG_HEADER section.
9178 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9179 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9181 # ac_d sets the value in "#define NAME VALUE" lines.
9182 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9183 ac_dB='[ ].*$,\1#\2'
9184 ac_dC=' '
9185 ac_dD=',;t'
9186 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9187 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9188 ac_uB='$,\1#\2define\3'
9189 ac_uC=' '
9190 ac_uD=',;t'
9192 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9193 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9194 case $ac_file in
9195 - | *:- | *:-:* ) # input from stdin
9196 cat >$tmp/stdin
9197 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9198 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9199 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9200 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9201 * ) ac_file_in=$ac_file.in ;;
9202 esac
9204 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9205 echo "$as_me: creating $ac_file" >&6;}
9207 # First look for the input files in the build tree, otherwise in the
9208 # src tree.
9209 ac_file_inputs=`IFS=:
9210 for f in $ac_file_in; do
9211 case $f in
9212 -) echo $tmp/stdin ;;
9213 [\\/$]*)
9214 # Absolute (can't be DOS-style, as IFS=:)
9215 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9216 echo "$as_me: error: cannot find input file: $f" >&2;}
9217 { (exit 1); exit 1; }; }
9218 # Do quote $f, to prevent DOS paths from being IFS'd.
9219 echo "$f";;
9220 *) # Relative
9221 if test -f "$f"; then
9222 # Build tree
9223 echo "$f"
9224 elif test -f "$srcdir/$f"; then
9225 # Source tree
9226 echo "$srcdir/$f"
9227 else
9228 # /dev/null tree
9229 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9230 echo "$as_me: error: cannot find input file: $f" >&2;}
9231 { (exit 1); exit 1; }; }
9232 fi;;
9233 esac
9234 done` || { (exit 1); exit 1; }
9235 # Remove the trailing spaces.
9236 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9238 _ACEOF
9240 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9241 # `conftest.undefs', that substitutes the proper values into
9242 # config.h.in to produce config.h. The first handles `#define'
9243 # templates, and the second `#undef' templates.
9244 # And first: Protect against being on the right side of a sed subst in
9245 # config.status. Protect against being in an unquoted here document
9246 # in config.status.
9247 rm -f conftest.defines conftest.undefs
9248 # Using a here document instead of a string reduces the quoting nightmare.
9249 # Putting comments in sed scripts is not portable.
9251 # `end' is used to avoid that the second main sed command (meant for
9252 # 0-ary CPP macros) applies to n-ary macro definitions.
9253 # See the Autoconf documentation for `clear'.
9254 cat >confdef2sed.sed <<\_ACEOF
9255 s/[\\&,]/\\&/g
9256 s,[\\$`],\\&,g
9257 t clear
9258 : clear
9259 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9260 t end
9261 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9262 : end
9263 _ACEOF
9264 # If some macros were called several times there might be several times
9265 # the same #defines, which is useless. Nevertheless, we may not want to
9266 # sort them, since we want the *last* AC-DEFINE to be honored.
9267 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9268 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9269 rm -f confdef2sed.sed
9271 # This sed command replaces #undef with comments. This is necessary, for
9272 # example, in the case of _POSIX_SOURCE, which is predefined and required
9273 # on some systems where configure will not decide to define it.
9274 cat >>conftest.undefs <<\_ACEOF
9275 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9276 _ACEOF
9278 # Break up conftest.defines because some shells have a limit on the size
9279 # of here documents, and old seds have small limits too (100 cmds).
9280 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9281 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9282 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9283 echo ' :' >>$CONFIG_STATUS
9284 rm -f conftest.tail
9285 while grep . conftest.defines >/dev/null
9287 # Write a limited-size here document to $tmp/defines.sed.
9288 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9289 # Speed up: don't consider the non `#define' lines.
9290 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9291 # Work around the forget-to-reset-the-flag bug.
9292 echo 't clr' >>$CONFIG_STATUS
9293 echo ': clr' >>$CONFIG_STATUS
9294 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9295 echo 'CEOF
9296 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9297 rm -f $tmp/in
9298 mv $tmp/out $tmp/in
9299 ' >>$CONFIG_STATUS
9300 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9301 rm -f conftest.defines
9302 mv conftest.tail conftest.defines
9303 done
9304 rm -f conftest.defines
9305 echo ' fi # grep' >>$CONFIG_STATUS
9306 echo >>$CONFIG_STATUS
9308 # Break up conftest.undefs because some shells have a limit on the size
9309 # of here documents, and old seds have small limits too (100 cmds).
9310 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9311 rm -f conftest.tail
9312 while grep . conftest.undefs >/dev/null
9314 # Write a limited-size here document to $tmp/undefs.sed.
9315 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9316 # Speed up: don't consider the non `#undef'
9317 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9318 # Work around the forget-to-reset-the-flag bug.
9319 echo 't clr' >>$CONFIG_STATUS
9320 echo ': clr' >>$CONFIG_STATUS
9321 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9322 echo 'CEOF
9323 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9324 rm -f $tmp/in
9325 mv $tmp/out $tmp/in
9326 ' >>$CONFIG_STATUS
9327 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9328 rm -f conftest.undefs
9329 mv conftest.tail conftest.undefs
9330 done
9331 rm -f conftest.undefs
9333 cat >>$CONFIG_STATUS <<\_ACEOF
9334 # Let's still pretend it is `configure' which instantiates (i.e., don't
9335 # use $as_me), people would be surprised to read:
9336 # /* config.h. Generated by config.status. */
9337 if test x"$ac_file" = x-; then
9338 echo "/* Generated by configure. */" >$tmp/config.h
9339 else
9340 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9342 cat $tmp/in >>$tmp/config.h
9343 rm -f $tmp/in
9344 if test x"$ac_file" != x-; then
9345 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9346 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9347 echo "$as_me: $ac_file is unchanged" >&6;}
9348 else
9349 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9350 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9351 X"$ac_file" : 'X\(//\)[^/]' \| \
9352 X"$ac_file" : 'X\(//\)$' \| \
9353 X"$ac_file" : 'X\(/\)' \| \
9354 . : '\(.\)' 2>/dev/null ||
9355 echo X"$ac_file" |
9356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9357 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9358 /^X\(\/\/\)$/{ s//\1/; q; }
9359 /^X\(\/\).*/{ s//\1/; q; }
9360 s/.*/./; q'`
9361 { if $as_mkdir_p; then
9362 mkdir -p "$ac_dir"
9363 else
9364 as_dir="$ac_dir"
9365 as_dirs=
9366 while test ! -d "$as_dir"; do
9367 as_dirs="$as_dir $as_dirs"
9368 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9369 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9370 X"$as_dir" : 'X\(//\)[^/]' \| \
9371 X"$as_dir" : 'X\(//\)$' \| \
9372 X"$as_dir" : 'X\(/\)' \| \
9373 . : '\(.\)' 2>/dev/null ||
9374 echo X"$as_dir" |
9375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9376 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9377 /^X\(\/\/\)$/{ s//\1/; q; }
9378 /^X\(\/\).*/{ s//\1/; q; }
9379 s/.*/./; q'`
9380 done
9381 test ! -n "$as_dirs" || mkdir $as_dirs
9382 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9383 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9384 { (exit 1); exit 1; }; }; }
9386 rm -f $ac_file
9387 mv $tmp/config.h $ac_file
9389 else
9390 cat $tmp/config.h
9391 rm -f $tmp/config.h
9393 # Run the commands associated with the file.
9394 case $ac_file in
9395 config.h ) echo timestamp > stamp-h1 ;;
9396 esac
9397 done
9398 _ACEOF
9399 cat >>$CONFIG_STATUS <<\_ACEOF
9402 # CONFIG_COMMANDS section.
9404 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9405 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9406 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9407 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9408 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9409 X"$ac_dest" : 'X\(//\)[^/]' \| \
9410 X"$ac_dest" : 'X\(//\)$' \| \
9411 X"$ac_dest" : 'X\(/\)' \| \
9412 . : '\(.\)' 2>/dev/null ||
9413 echo X"$ac_dest" |
9414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9415 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9416 /^X\(\/\/\)$/{ s//\1/; q; }
9417 /^X\(\/\).*/{ s//\1/; q; }
9418 s/.*/./; q'`
9419 { if $as_mkdir_p; then
9420 mkdir -p "$ac_dir"
9421 else
9422 as_dir="$ac_dir"
9423 as_dirs=
9424 while test ! -d "$as_dir"; do
9425 as_dirs="$as_dir $as_dirs"
9426 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9427 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9428 X"$as_dir" : 'X\(//\)[^/]' \| \
9429 X"$as_dir" : 'X\(//\)$' \| \
9430 X"$as_dir" : 'X\(/\)' \| \
9431 . : '\(.\)' 2>/dev/null ||
9432 echo X"$as_dir" |
9433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9434 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9435 /^X\(\/\/\)$/{ s//\1/; q; }
9436 /^X\(\/\).*/{ s//\1/; q; }
9437 s/.*/./; q'`
9438 done
9439 test ! -n "$as_dirs" || mkdir $as_dirs
9440 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9441 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9442 { (exit 1); exit 1; }; }; }
9444 ac_builddir=.
9446 if test "$ac_dir" != .; then
9447 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9448 # A "../" for each directory in $ac_dir_suffix.
9449 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9450 else
9451 ac_dir_suffix= ac_top_builddir=
9454 case $srcdir in
9455 .) # No --srcdir option. We are building in place.
9456 ac_srcdir=.
9457 if test -z "$ac_top_builddir"; then
9458 ac_top_srcdir=.
9459 else
9460 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9461 fi ;;
9462 [\\/]* | ?:[\\/]* ) # Absolute path.
9463 ac_srcdir=$srcdir$ac_dir_suffix;
9464 ac_top_srcdir=$srcdir ;;
9465 *) # Relative path.
9466 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9467 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9468 esac
9470 # Do not use `cd foo && pwd` to compute absolute paths, because
9471 # the directories may not exist.
9472 case `pwd` in
9473 .) ac_abs_builddir="$ac_dir";;
9475 case "$ac_dir" in
9476 .) ac_abs_builddir=`pwd`;;
9477 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9478 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9479 esac;;
9480 esac
9481 case $ac_abs_builddir in
9482 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9484 case ${ac_top_builddir}. in
9485 .) ac_abs_top_builddir=$ac_abs_builddir;;
9486 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9487 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9488 esac;;
9489 esac
9490 case $ac_abs_builddir in
9491 .) ac_abs_srcdir=$ac_srcdir;;
9493 case $ac_srcdir in
9494 .) ac_abs_srcdir=$ac_abs_builddir;;
9495 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9496 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9497 esac;;
9498 esac
9499 case $ac_abs_builddir in
9500 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9502 case $ac_top_srcdir in
9503 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9504 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9505 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9506 esac;;
9507 esac
9510 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9511 echo "$as_me: executing $ac_dest commands" >&6;}
9512 case $ac_dest in
9513 depdir ) mkdir $DEPDIR ;;
9514 esac
9515 done
9516 _ACEOF
9518 cat >>$CONFIG_STATUS <<\_ACEOF
9520 { (exit 0); exit 0; }
9521 _ACEOF
9522 chmod +x $CONFIG_STATUS
9523 ac_clean_files=$ac_clean_files_save
9526 # configure is writing to config.log, and then calls config.status.
9527 # config.status does its own redirection, appending to config.log.
9528 # Unfortunately, on DOS this fails, as config.log is still kept open
9529 # by configure, so config.status won't be able to write to it; its
9530 # output is simply discarded. So we exec the FD to /dev/null,
9531 # effectively closing config.log, so it can be properly (re)opened and
9532 # appended to by config.status. When coming back to configure, we
9533 # need to make the FD available again.
9534 if test "$no_create" != yes; then
9535 ac_cs_success=:
9536 ac_config_status_args=
9537 test "$silent" = yes &&
9538 ac_config_status_args="$ac_config_status_args --quiet"
9539 exec 5>/dev/null
9540 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9541 exec 5>>config.log
9542 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9543 # would make configure fail if this is the last instruction.
9544 $ac_cs_success || { (exit 1); exit 1; }