Revert r135493 & r135463
[official-gcc.git] / libcpp / configure
blob6f5877221491e012eb37928bd1cf93ab97889f51
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 DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT 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 # differences in whitespace do not lead to failure.
1261 ac_old_val_w=`echo x $ac_old_val`
1262 ac_new_val_w=`echo x $ac_new_val`
1263 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1264 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1265 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1266 ac_cache_corrupted=:
1267 else
1268 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1269 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1270 eval $ac_var=\$ac_old_val
1272 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1273 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1274 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1275 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1276 fi;;
1277 esac
1278 # Pass precious variables to config.status.
1279 if test "$ac_new_set" = set; then
1280 case $ac_new_val in
1281 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1282 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1283 *) ac_arg=$ac_var=$ac_new_val ;;
1284 esac
1285 case " $ac_configure_args " in
1286 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1287 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1288 esac
1290 done
1291 if $ac_cache_corrupted; then
1292 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1293 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1294 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1295 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1296 { (exit 1); exit 1; }; }
1299 ac_ext=c
1300 ac_cpp='$CPP $CPPFLAGS'
1301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1332 case ../config in
1333 [\\/]* | ?:[\\/]* ) ac_macro_dir=../config ;;
1334 *) ac_macro_dir=$srcdir/../config ;;
1335 esac
1336 if test -d "$ac_macro_dir"; then :
1337 else
1338 { { echo "$as_me:$LINENO: error: cannot find macro directory \`../config'" >&5
1339 echo "$as_me: error: cannot find macro directory \`../config'" >&2;}
1340 { (exit 1); exit 1; }; }
1343 ac_aux_dir=
1344 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1345 if test -f $ac_dir/install-sh; then
1346 ac_aux_dir=$ac_dir
1347 ac_install_sh="$ac_aux_dir/install-sh -c"
1348 break
1349 elif test -f $ac_dir/install.sh; then
1350 ac_aux_dir=$ac_dir
1351 ac_install_sh="$ac_aux_dir/install.sh -c"
1352 break
1353 elif test -f $ac_dir/shtool; then
1354 ac_aux_dir=$ac_dir
1355 ac_install_sh="$ac_aux_dir/shtool install -c"
1356 break
1358 done
1359 if test -z "$ac_aux_dir"; then
1360 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1361 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1362 { (exit 1); exit 1; }; }
1364 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1365 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1366 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1368 # Make sure we can run config.sub.
1369 $ac_config_sub sun4 >/dev/null 2>&1 ||
1370 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1371 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1372 { (exit 1); exit 1; }; }
1374 echo "$as_me:$LINENO: checking build system type" >&5
1375 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1376 if test "${ac_cv_build+set}" = set; then
1377 echo $ECHO_N "(cached) $ECHO_C" >&6
1378 else
1379 ac_cv_build_alias=$build_alias
1380 test -z "$ac_cv_build_alias" &&
1381 ac_cv_build_alias=`$ac_config_guess`
1382 test -z "$ac_cv_build_alias" &&
1383 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1384 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1385 { (exit 1); exit 1; }; }
1386 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1387 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1388 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1389 { (exit 1); exit 1; }; }
1392 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1393 echo "${ECHO_T}$ac_cv_build" >&6
1394 build=$ac_cv_build
1395 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1396 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1397 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1400 echo "$as_me:$LINENO: checking host system type" >&5
1401 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1402 if test "${ac_cv_host+set}" = set; then
1403 echo $ECHO_N "(cached) $ECHO_C" >&6
1404 else
1405 ac_cv_host_alias=$host_alias
1406 test -z "$ac_cv_host_alias" &&
1407 ac_cv_host_alias=$ac_cv_build_alias
1408 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1409 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1410 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1411 { (exit 1); exit 1; }; }
1414 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1415 echo "${ECHO_T}$ac_cv_host" >&6
1416 host=$ac_cv_host
1417 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1418 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1419 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1422 echo "$as_me:$LINENO: checking target system type" >&5
1423 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1424 if test "${ac_cv_target+set}" = set; then
1425 echo $ECHO_N "(cached) $ECHO_C" >&6
1426 else
1427 ac_cv_target_alias=$target_alias
1428 test "x$ac_cv_target_alias" = "x" &&
1429 ac_cv_target_alias=$ac_cv_host_alias
1430 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1431 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1432 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1433 { (exit 1); exit 1; }; }
1436 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1437 echo "${ECHO_T}$ac_cv_target" >&6
1438 target=$ac_cv_target
1439 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1440 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1441 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1444 # The aliases save the names the user supplied, while $host etc.
1445 # will get canonicalized.
1446 test -n "$target_alias" &&
1447 test "$program_prefix$program_suffix$program_transform_name" = \
1448 NONENONEs,x,x, &&
1449 program_prefix=${target_alias}-
1451 # Checks for programs.
1452 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1453 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1454 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1455 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1456 echo $ECHO_N "(cached) $ECHO_C" >&6
1457 else
1458 cat >conftest.make <<\_ACEOF
1459 all:
1460 @echo 'ac_maketemp="$(MAKE)"'
1461 _ACEOF
1462 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1463 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1464 if test -n "$ac_maketemp"; then
1465 eval ac_cv_prog_make_${ac_make}_set=yes
1466 else
1467 eval ac_cv_prog_make_${ac_make}_set=no
1469 rm -f conftest.make
1471 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1472 echo "$as_me:$LINENO: result: yes" >&5
1473 echo "${ECHO_T}yes" >&6
1474 SET_MAKE=
1475 else
1476 echo "$as_me:$LINENO: result: no" >&5
1477 echo "${ECHO_T}no" >&6
1478 SET_MAKE="MAKE=${MAKE-make}"
1481 # Find a good install program. We prefer a C program (faster),
1482 # so one script is as good as another. But avoid the broken or
1483 # incompatible versions:
1484 # SysV /etc/install, /usr/sbin/install
1485 # SunOS /usr/etc/install
1486 # IRIX /sbin/install
1487 # AIX /bin/install
1488 # AmigaOS /C/install, which installs bootblocks on floppy discs
1489 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1490 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1491 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1492 # OS/2's system install, which has a completely different semantic
1493 # ./install, which can be erroneously created by make from ./install.sh.
1494 # Reject install programs that cannot install multiple files.
1495 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1496 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1497 if test -z "$INSTALL"; then
1498 if test "${ac_cv_path_install+set}" = set; then
1499 echo $ECHO_N "(cached) $ECHO_C" >&6
1500 else
1501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1502 for as_dir in $PATH
1504 IFS=$as_save_IFS
1505 test -z "$as_dir" && as_dir=.
1506 # Account for people who put trailing slashes in PATH elements.
1507 case $as_dir/ in
1508 ./ | .// | /cC/* | \
1509 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1510 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1511 /usr/ucb/* ) ;;
1513 # OSF1 and SCO ODT 3.0 have their own names for install.
1514 # Don't use installbsd from OSF since it installs stuff as root
1515 # by default.
1516 for ac_prog in ginstall scoinst install; do
1517 for ac_exec_ext in '' $ac_executable_extensions; do
1518 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1519 if test $ac_prog = install &&
1520 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1521 # AIX install. It has an incompatible calling convention.
1523 elif test $ac_prog = install &&
1524 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1525 # program-specific install script used by HP pwplus--don't use.
1527 else
1528 rm -rf conftest.one conftest.two conftest.dir
1529 echo one > conftest.one
1530 echo two > conftest.two
1531 mkdir conftest.dir
1532 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1533 test -s conftest.one && test -s conftest.two &&
1534 test -s conftest.dir/conftest.one &&
1535 test -s conftest.dir/conftest.two
1536 then
1537 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1538 break 3
1542 done
1543 done
1545 esac
1546 done
1548 rm -rf conftest.one conftest.two conftest.dir
1551 if test "${ac_cv_path_install+set}" = set; then
1552 INSTALL=$ac_cv_path_install
1553 else
1554 # As a last resort, use the slow shell script. Don't cache a
1555 # value for INSTALL within a source directory, because that will
1556 # break other packages using the cache if that directory is
1557 # removed, or if the value is a relative name.
1558 INSTALL=$ac_install_sh
1561 echo "$as_me:$LINENO: result: $INSTALL" >&5
1562 echo "${ECHO_T}$INSTALL" >&6
1564 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1565 # It thinks the first close brace ends the variable substitution.
1566 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1568 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1570 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1572 ac_ext=c
1573 ac_cpp='$CPP $CPPFLAGS'
1574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1577 if test -n "$ac_tool_prefix"; then
1578 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1579 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1580 echo "$as_me:$LINENO: checking for $ac_word" >&5
1581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1582 if test "${ac_cv_prog_CC+set}" = set; then
1583 echo $ECHO_N "(cached) $ECHO_C" >&6
1584 else
1585 if test -n "$CC"; then
1586 ac_cv_prog_CC="$CC" # Let the user override the test.
1587 else
1588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1589 for as_dir in $PATH
1591 IFS=$as_save_IFS
1592 test -z "$as_dir" && as_dir=.
1593 for ac_exec_ext in '' $ac_executable_extensions; do
1594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1595 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1597 break 2
1599 done
1600 done
1604 CC=$ac_cv_prog_CC
1605 if test -n "$CC"; then
1606 echo "$as_me:$LINENO: result: $CC" >&5
1607 echo "${ECHO_T}$CC" >&6
1608 else
1609 echo "$as_me:$LINENO: result: no" >&5
1610 echo "${ECHO_T}no" >&6
1614 if test -z "$ac_cv_prog_CC"; then
1615 ac_ct_CC=$CC
1616 # Extract the first word of "gcc", so it can be a program name with args.
1617 set dummy gcc; ac_word=$2
1618 echo "$as_me:$LINENO: checking for $ac_word" >&5
1619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1620 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1622 else
1623 if test -n "$ac_ct_CC"; then
1624 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1625 else
1626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1627 for as_dir in $PATH
1629 IFS=$as_save_IFS
1630 test -z "$as_dir" && as_dir=.
1631 for ac_exec_ext in '' $ac_executable_extensions; do
1632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1633 ac_cv_prog_ac_ct_CC="gcc"
1634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1635 break 2
1637 done
1638 done
1642 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1643 if test -n "$ac_ct_CC"; then
1644 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1645 echo "${ECHO_T}$ac_ct_CC" >&6
1646 else
1647 echo "$as_me:$LINENO: result: no" >&5
1648 echo "${ECHO_T}no" >&6
1651 CC=$ac_ct_CC
1652 else
1653 CC="$ac_cv_prog_CC"
1656 if test -z "$CC"; then
1657 if test -n "$ac_tool_prefix"; then
1658 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1659 set dummy ${ac_tool_prefix}cc; ac_word=$2
1660 echo "$as_me:$LINENO: checking for $ac_word" >&5
1661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1662 if test "${ac_cv_prog_CC+set}" = set; then
1663 echo $ECHO_N "(cached) $ECHO_C" >&6
1664 else
1665 if test -n "$CC"; then
1666 ac_cv_prog_CC="$CC" # Let the user override the test.
1667 else
1668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669 for as_dir in $PATH
1671 IFS=$as_save_IFS
1672 test -z "$as_dir" && as_dir=.
1673 for ac_exec_ext in '' $ac_executable_extensions; do
1674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1675 ac_cv_prog_CC="${ac_tool_prefix}cc"
1676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1677 break 2
1679 done
1680 done
1684 CC=$ac_cv_prog_CC
1685 if test -n "$CC"; then
1686 echo "$as_me:$LINENO: result: $CC" >&5
1687 echo "${ECHO_T}$CC" >&6
1688 else
1689 echo "$as_me:$LINENO: result: no" >&5
1690 echo "${ECHO_T}no" >&6
1694 if test -z "$ac_cv_prog_CC"; then
1695 ac_ct_CC=$CC
1696 # Extract the first word of "cc", so it can be a program name with args.
1697 set dummy cc; ac_word=$2
1698 echo "$as_me:$LINENO: checking for $ac_word" >&5
1699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1700 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1701 echo $ECHO_N "(cached) $ECHO_C" >&6
1702 else
1703 if test -n "$ac_ct_CC"; then
1704 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1705 else
1706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707 for as_dir in $PATH
1709 IFS=$as_save_IFS
1710 test -z "$as_dir" && as_dir=.
1711 for ac_exec_ext in '' $ac_executable_extensions; do
1712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1713 ac_cv_prog_ac_ct_CC="cc"
1714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1715 break 2
1717 done
1718 done
1722 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1723 if test -n "$ac_ct_CC"; then
1724 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1725 echo "${ECHO_T}$ac_ct_CC" >&6
1726 else
1727 echo "$as_me:$LINENO: result: no" >&5
1728 echo "${ECHO_T}no" >&6
1731 CC=$ac_ct_CC
1732 else
1733 CC="$ac_cv_prog_CC"
1737 if test -z "$CC"; then
1738 # Extract the first word of "cc", so it can be a program name with args.
1739 set dummy cc; ac_word=$2
1740 echo "$as_me:$LINENO: checking for $ac_word" >&5
1741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1742 if test "${ac_cv_prog_CC+set}" = set; then
1743 echo $ECHO_N "(cached) $ECHO_C" >&6
1744 else
1745 if test -n "$CC"; then
1746 ac_cv_prog_CC="$CC" # Let the user override the test.
1747 else
1748 ac_prog_rejected=no
1749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1750 for as_dir in $PATH
1752 IFS=$as_save_IFS
1753 test -z "$as_dir" && as_dir=.
1754 for ac_exec_ext in '' $ac_executable_extensions; do
1755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1756 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1757 ac_prog_rejected=yes
1758 continue
1760 ac_cv_prog_CC="cc"
1761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1762 break 2
1764 done
1765 done
1767 if test $ac_prog_rejected = yes; then
1768 # We found a bogon in the path, so make sure we never use it.
1769 set dummy $ac_cv_prog_CC
1770 shift
1771 if test $# != 0; then
1772 # We chose a different compiler from the bogus one.
1773 # However, it has the same basename, so the bogon will be chosen
1774 # first if we set CC to just the basename; use the full file name.
1775 shift
1776 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1781 CC=$ac_cv_prog_CC
1782 if test -n "$CC"; then
1783 echo "$as_me:$LINENO: result: $CC" >&5
1784 echo "${ECHO_T}$CC" >&6
1785 else
1786 echo "$as_me:$LINENO: result: no" >&5
1787 echo "${ECHO_T}no" >&6
1791 if test -z "$CC"; then
1792 if test -n "$ac_tool_prefix"; then
1793 for ac_prog in cl
1795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1796 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1797 echo "$as_me:$LINENO: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799 if test "${ac_cv_prog_CC+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1801 else
1802 if test -n "$CC"; then
1803 ac_cv_prog_CC="$CC" # Let the user override the test.
1804 else
1805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1806 for as_dir in $PATH
1808 IFS=$as_save_IFS
1809 test -z "$as_dir" && as_dir=.
1810 for ac_exec_ext in '' $ac_executable_extensions; do
1811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1812 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1814 break 2
1816 done
1817 done
1821 CC=$ac_cv_prog_CC
1822 if test -n "$CC"; then
1823 echo "$as_me:$LINENO: result: $CC" >&5
1824 echo "${ECHO_T}$CC" >&6
1825 else
1826 echo "$as_me:$LINENO: result: no" >&5
1827 echo "${ECHO_T}no" >&6
1830 test -n "$CC" && break
1831 done
1833 if test -z "$CC"; then
1834 ac_ct_CC=$CC
1835 for ac_prog in cl
1837 # Extract the first word of "$ac_prog", so it can be a program name with args.
1838 set dummy $ac_prog; ac_word=$2
1839 echo "$as_me:$LINENO: checking for $ac_word" >&5
1840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1841 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1842 echo $ECHO_N "(cached) $ECHO_C" >&6
1843 else
1844 if test -n "$ac_ct_CC"; then
1845 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1846 else
1847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1848 for as_dir in $PATH
1850 IFS=$as_save_IFS
1851 test -z "$as_dir" && as_dir=.
1852 for ac_exec_ext in '' $ac_executable_extensions; do
1853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1854 ac_cv_prog_ac_ct_CC="$ac_prog"
1855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1856 break 2
1858 done
1859 done
1863 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1864 if test -n "$ac_ct_CC"; then
1865 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1866 echo "${ECHO_T}$ac_ct_CC" >&6
1867 else
1868 echo "$as_me:$LINENO: result: no" >&5
1869 echo "${ECHO_T}no" >&6
1872 test -n "$ac_ct_CC" && break
1873 done
1875 CC=$ac_ct_CC
1881 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1882 See \`config.log' for more details." >&5
1883 echo "$as_me: error: no acceptable C compiler found in \$PATH
1884 See \`config.log' for more details." >&2;}
1885 { (exit 1); exit 1; }; }
1887 # Provide some information about the compiler.
1888 echo "$as_me:$LINENO:" \
1889 "checking for C compiler version" >&5
1890 ac_compiler=`set X $ac_compile; echo $2`
1891 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1892 (eval $ac_compiler --version </dev/null >&5) 2>&5
1893 ac_status=$?
1894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895 (exit $ac_status); }
1896 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1897 (eval $ac_compiler -v </dev/null >&5) 2>&5
1898 ac_status=$?
1899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1900 (exit $ac_status); }
1901 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1902 (eval $ac_compiler -V </dev/null >&5) 2>&5
1903 ac_status=$?
1904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1905 (exit $ac_status); }
1907 cat >conftest.$ac_ext <<_ACEOF
1908 /* confdefs.h. */
1909 _ACEOF
1910 cat confdefs.h >>conftest.$ac_ext
1911 cat >>conftest.$ac_ext <<_ACEOF
1912 /* end confdefs.h. */
1915 main ()
1919 return 0;
1921 _ACEOF
1922 ac_clean_files_save=$ac_clean_files
1923 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1924 # Try to create an executable without -o first, disregard a.out.
1925 # It will help us diagnose broken compilers, and finding out an intuition
1926 # of exeext.
1927 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1928 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1929 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1930 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1931 (eval $ac_link_default) 2>&5
1932 ac_status=$?
1933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934 (exit $ac_status); }; then
1935 # Find the output, starting from the most likely. This scheme is
1936 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1937 # resort.
1939 # Be careful to initialize this variable, since it used to be cached.
1940 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1941 ac_cv_exeext=
1942 # b.out is created by i960 compilers.
1943 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1945 test -f "$ac_file" || continue
1946 case $ac_file in
1947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1949 conftest.$ac_ext )
1950 # This is the source file.
1952 [ab].out )
1953 # We found the default executable, but exeext='' is most
1954 # certainly right.
1955 break;;
1956 *.* )
1957 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1958 # FIXME: I believe we export ac_cv_exeext for Libtool,
1959 # but it would be cool to find out if it's true. Does anybody
1960 # maintain Libtool? --akim.
1961 export ac_cv_exeext
1962 break;;
1964 break;;
1965 esac
1966 done
1967 else
1968 echo "$as_me: failed program was:" >&5
1969 sed 's/^/| /' conftest.$ac_ext >&5
1971 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1972 See \`config.log' for more details." >&5
1973 echo "$as_me: error: C compiler cannot create executables
1974 See \`config.log' for more details." >&2;}
1975 { (exit 77); exit 77; }; }
1978 ac_exeext=$ac_cv_exeext
1979 echo "$as_me:$LINENO: result: $ac_file" >&5
1980 echo "${ECHO_T}$ac_file" >&6
1982 # Check the compiler produces executables we can run. If not, either
1983 # the compiler is broken, or we cross compile.
1984 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1985 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1986 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1987 # If not cross compiling, check that we can run a simple program.
1988 if test "$cross_compiling" != yes; then
1989 if { ac_try='./$ac_file'
1990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1991 (eval $ac_try) 2>&5
1992 ac_status=$?
1993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1994 (exit $ac_status); }; }; then
1995 cross_compiling=no
1996 else
1997 if test "$cross_compiling" = maybe; then
1998 cross_compiling=yes
1999 else
2000 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2001 If you meant to cross compile, use \`--host'.
2002 See \`config.log' for more details." >&5
2003 echo "$as_me: error: cannot run C compiled programs.
2004 If you meant to cross compile, use \`--host'.
2005 See \`config.log' for more details." >&2;}
2006 { (exit 1); exit 1; }; }
2010 echo "$as_me:$LINENO: result: yes" >&5
2011 echo "${ECHO_T}yes" >&6
2013 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2014 ac_clean_files=$ac_clean_files_save
2015 # Check the compiler produces executables we can run. If not, either
2016 # the compiler is broken, or we cross compile.
2017 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2018 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2019 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2020 echo "${ECHO_T}$cross_compiling" >&6
2022 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2023 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2025 (eval $ac_link) 2>&5
2026 ac_status=$?
2027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028 (exit $ac_status); }; then
2029 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2030 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2031 # work properly (i.e., refer to `conftest.exe'), while it won't with
2032 # `rm'.
2033 for ac_file in conftest.exe conftest conftest.*; do
2034 test -f "$ac_file" || continue
2035 case $ac_file in
2036 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2037 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2038 export ac_cv_exeext
2039 break;;
2040 * ) break;;
2041 esac
2042 done
2043 else
2044 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2045 See \`config.log' for more details." >&5
2046 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2047 See \`config.log' for more details." >&2;}
2048 { (exit 1); exit 1; }; }
2051 rm -f conftest$ac_cv_exeext
2052 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2053 echo "${ECHO_T}$ac_cv_exeext" >&6
2055 rm -f conftest.$ac_ext
2056 EXEEXT=$ac_cv_exeext
2057 ac_exeext=$EXEEXT
2058 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2059 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2060 if test "${ac_cv_objext+set}" = set; then
2061 echo $ECHO_N "(cached) $ECHO_C" >&6
2062 else
2063 cat >conftest.$ac_ext <<_ACEOF
2064 /* confdefs.h. */
2065 _ACEOF
2066 cat confdefs.h >>conftest.$ac_ext
2067 cat >>conftest.$ac_ext <<_ACEOF
2068 /* end confdefs.h. */
2071 main ()
2075 return 0;
2077 _ACEOF
2078 rm -f conftest.o conftest.obj
2079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2080 (eval $ac_compile) 2>&5
2081 ac_status=$?
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); }; then
2084 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2085 case $ac_file in
2086 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2087 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2088 break;;
2089 esac
2090 done
2091 else
2092 echo "$as_me: failed program was:" >&5
2093 sed 's/^/| /' conftest.$ac_ext >&5
2095 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2096 See \`config.log' for more details." >&5
2097 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2098 See \`config.log' for more details." >&2;}
2099 { (exit 1); exit 1; }; }
2102 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2104 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2105 echo "${ECHO_T}$ac_cv_objext" >&6
2106 OBJEXT=$ac_cv_objext
2107 ac_objext=$OBJEXT
2108 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2109 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2110 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2112 else
2113 cat >conftest.$ac_ext <<_ACEOF
2114 /* confdefs.h. */
2115 _ACEOF
2116 cat confdefs.h >>conftest.$ac_ext
2117 cat >>conftest.$ac_ext <<_ACEOF
2118 /* end confdefs.h. */
2121 main ()
2123 #ifndef __GNUC__
2124 choke me
2125 #endif
2128 return 0;
2130 _ACEOF
2131 rm -f conftest.$ac_objext
2132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2133 (eval $ac_compile) 2>conftest.er1
2134 ac_status=$?
2135 grep -v '^ *+' conftest.er1 >conftest.err
2136 rm -f conftest.er1
2137 cat conftest.err >&5
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); } &&
2140 { ac_try='test -z "$ac_c_werror_flag"
2141 || test ! -s conftest.err'
2142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2143 (eval $ac_try) 2>&5
2144 ac_status=$?
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); }; } &&
2147 { ac_try='test -s conftest.$ac_objext'
2148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2149 (eval $ac_try) 2>&5
2150 ac_status=$?
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }; }; then
2153 ac_compiler_gnu=yes
2154 else
2155 echo "$as_me: failed program was:" >&5
2156 sed 's/^/| /' conftest.$ac_ext >&5
2158 ac_compiler_gnu=no
2160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2161 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2164 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2165 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2166 GCC=`test $ac_compiler_gnu = yes && echo yes`
2167 ac_test_CFLAGS=${CFLAGS+set}
2168 ac_save_CFLAGS=$CFLAGS
2169 CFLAGS="-g"
2170 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2171 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2172 if test "${ac_cv_prog_cc_g+set}" = set; then
2173 echo $ECHO_N "(cached) $ECHO_C" >&6
2174 else
2175 cat >conftest.$ac_ext <<_ACEOF
2176 /* confdefs.h. */
2177 _ACEOF
2178 cat confdefs.h >>conftest.$ac_ext
2179 cat >>conftest.$ac_ext <<_ACEOF
2180 /* end confdefs.h. */
2183 main ()
2187 return 0;
2189 _ACEOF
2190 rm -f conftest.$ac_objext
2191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2192 (eval $ac_compile) 2>conftest.er1
2193 ac_status=$?
2194 grep -v '^ *+' conftest.er1 >conftest.err
2195 rm -f conftest.er1
2196 cat conftest.err >&5
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); } &&
2199 { ac_try='test -z "$ac_c_werror_flag"
2200 || test ! -s conftest.err'
2201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202 (eval $ac_try) 2>&5
2203 ac_status=$?
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); }; } &&
2206 { ac_try='test -s conftest.$ac_objext'
2207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2208 (eval $ac_try) 2>&5
2209 ac_status=$?
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); }; }; then
2212 ac_cv_prog_cc_g=yes
2213 else
2214 echo "$as_me: failed program was:" >&5
2215 sed 's/^/| /' conftest.$ac_ext >&5
2217 ac_cv_prog_cc_g=no
2219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2221 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2222 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2223 if test "$ac_test_CFLAGS" = set; then
2224 CFLAGS=$ac_save_CFLAGS
2225 elif test $ac_cv_prog_cc_g = yes; then
2226 if test "$GCC" = yes; then
2227 CFLAGS="-g -O2"
2228 else
2229 CFLAGS="-g"
2231 else
2232 if test "$GCC" = yes; then
2233 CFLAGS="-O2"
2234 else
2235 CFLAGS=
2238 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2239 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2240 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2242 else
2243 ac_cv_prog_cc_stdc=no
2244 ac_save_CC=$CC
2245 cat >conftest.$ac_ext <<_ACEOF
2246 /* confdefs.h. */
2247 _ACEOF
2248 cat confdefs.h >>conftest.$ac_ext
2249 cat >>conftest.$ac_ext <<_ACEOF
2250 /* end confdefs.h. */
2251 #include <stdarg.h>
2252 #include <stdio.h>
2253 #include <sys/types.h>
2254 #include <sys/stat.h>
2255 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2256 struct buf { int x; };
2257 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2258 static char *e (p, i)
2259 char **p;
2260 int i;
2262 return p[i];
2264 static char *f (char * (*g) (char **, int), char **p, ...)
2266 char *s;
2267 va_list v;
2268 va_start (v,p);
2269 s = g (p, va_arg (v,int));
2270 va_end (v);
2271 return s;
2274 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2275 function prototypes and stuff, but not '\xHH' hex character constants.
2276 These don't provoke an error unfortunately, instead are silently treated
2277 as 'x'. The following induces an error, until -std1 is added to get
2278 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2279 array size at least. It's necessary to write '\x00'==0 to get something
2280 that's true only with -std1. */
2281 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2283 int test (int i, double x);
2284 struct s1 {int (*f) (int a);};
2285 struct s2 {int (*f) (double a);};
2286 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2287 int argc;
2288 char **argv;
2290 main ()
2292 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2294 return 0;
2296 _ACEOF
2297 # Don't try gcc -ansi; that turns off useful extensions and
2298 # breaks some systems' header files.
2299 # AIX -qlanglvl=ansi
2300 # Ultrix and OSF/1 -std1
2301 # HP-UX 10.20 and later -Ae
2302 # HP-UX older versions -Aa -D_HPUX_SOURCE
2303 # SVR4 -Xc -D__EXTENSIONS__
2304 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2306 CC="$ac_save_CC $ac_arg"
2307 rm -f conftest.$ac_objext
2308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2309 (eval $ac_compile) 2>conftest.er1
2310 ac_status=$?
2311 grep -v '^ *+' conftest.er1 >conftest.err
2312 rm -f conftest.er1
2313 cat conftest.err >&5
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); } &&
2316 { ac_try='test -z "$ac_c_werror_flag"
2317 || test ! -s conftest.err'
2318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319 (eval $ac_try) 2>&5
2320 ac_status=$?
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; } &&
2323 { ac_try='test -s conftest.$ac_objext'
2324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 (eval $ac_try) 2>&5
2326 ac_status=$?
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; }; then
2329 ac_cv_prog_cc_stdc=$ac_arg
2330 break
2331 else
2332 echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.$ac_ext >&5
2336 rm -f conftest.err conftest.$ac_objext
2337 done
2338 rm -f conftest.$ac_ext conftest.$ac_objext
2339 CC=$ac_save_CC
2343 case "x$ac_cv_prog_cc_stdc" in
2344 x|xno)
2345 echo "$as_me:$LINENO: result: none needed" >&5
2346 echo "${ECHO_T}none needed" >&6 ;;
2348 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2349 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2350 CC="$CC $ac_cv_prog_cc_stdc" ;;
2351 esac
2353 # Some people use a C++ compiler to compile C. Since we use `exit',
2354 # in C++ we need to declare it. In case someone uses the same compiler
2355 # for both compiling C and C++ we need to have the C++ compiler decide
2356 # the declaration of exit, since it's the most demanding environment.
2357 cat >conftest.$ac_ext <<_ACEOF
2358 #ifndef __cplusplus
2359 choke me
2360 #endif
2361 _ACEOF
2362 rm -f conftest.$ac_objext
2363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2364 (eval $ac_compile) 2>conftest.er1
2365 ac_status=$?
2366 grep -v '^ *+' conftest.er1 >conftest.err
2367 rm -f conftest.er1
2368 cat conftest.err >&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); } &&
2371 { ac_try='test -z "$ac_c_werror_flag"
2372 || test ! -s conftest.err'
2373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2374 (eval $ac_try) 2>&5
2375 ac_status=$?
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }; } &&
2378 { ac_try='test -s conftest.$ac_objext'
2379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380 (eval $ac_try) 2>&5
2381 ac_status=$?
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); }; }; then
2384 for ac_declaration in \
2385 '' \
2386 'extern "C" void std::exit (int) throw (); using std::exit;' \
2387 'extern "C" void std::exit (int); using std::exit;' \
2388 'extern "C" void exit (int) throw ();' \
2389 'extern "C" void exit (int);' \
2390 'void exit (int);'
2392 cat >conftest.$ac_ext <<_ACEOF
2393 /* confdefs.h. */
2394 _ACEOF
2395 cat confdefs.h >>conftest.$ac_ext
2396 cat >>conftest.$ac_ext <<_ACEOF
2397 /* end confdefs.h. */
2398 $ac_declaration
2399 #include <stdlib.h>
2401 main ()
2403 exit (42);
2405 return 0;
2407 _ACEOF
2408 rm -f conftest.$ac_objext
2409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2410 (eval $ac_compile) 2>conftest.er1
2411 ac_status=$?
2412 grep -v '^ *+' conftest.er1 >conftest.err
2413 rm -f conftest.er1
2414 cat conftest.err >&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); } &&
2417 { ac_try='test -z "$ac_c_werror_flag"
2418 || test ! -s conftest.err'
2419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420 (eval $ac_try) 2>&5
2421 ac_status=$?
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; } &&
2424 { ac_try='test -s conftest.$ac_objext'
2425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426 (eval $ac_try) 2>&5
2427 ac_status=$?
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; }; then
2431 else
2432 echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2435 continue
2437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2438 cat >conftest.$ac_ext <<_ACEOF
2439 /* confdefs.h. */
2440 _ACEOF
2441 cat confdefs.h >>conftest.$ac_ext
2442 cat >>conftest.$ac_ext <<_ACEOF
2443 /* end confdefs.h. */
2444 $ac_declaration
2446 main ()
2448 exit (42);
2450 return 0;
2452 _ACEOF
2453 rm -f conftest.$ac_objext
2454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2455 (eval $ac_compile) 2>conftest.er1
2456 ac_status=$?
2457 grep -v '^ *+' conftest.er1 >conftest.err
2458 rm -f conftest.er1
2459 cat conftest.err >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); } &&
2462 { ac_try='test -z "$ac_c_werror_flag"
2463 || test ! -s conftest.err'
2464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 (eval $ac_try) 2>&5
2466 ac_status=$?
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; } &&
2469 { ac_try='test -s conftest.$ac_objext'
2470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471 (eval $ac_try) 2>&5
2472 ac_status=$?
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; }; then
2475 break
2476 else
2477 echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.$ac_ext >&5
2481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2482 done
2483 rm -f conftest*
2484 if test -n "$ac_declaration"; then
2485 echo '#ifdef __cplusplus' >>confdefs.h
2486 echo $ac_declaration >>confdefs.h
2487 echo '#endif' >>confdefs.h
2490 else
2491 echo "$as_me: failed program was:" >&5
2492 sed 's/^/| /' conftest.$ac_ext >&5
2495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2496 ac_ext=c
2497 ac_cpp='$CPP $CPPFLAGS'
2498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2502 if test -n "$ac_tool_prefix"; then
2503 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2504 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2505 echo "$as_me:$LINENO: checking for $ac_word" >&5
2506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2507 if test "${ac_cv_prog_RANLIB+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2509 else
2510 if test -n "$RANLIB"; then
2511 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2512 else
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH
2516 IFS=$as_save_IFS
2517 test -z "$as_dir" && as_dir=.
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2520 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522 break 2
2524 done
2525 done
2529 RANLIB=$ac_cv_prog_RANLIB
2530 if test -n "$RANLIB"; then
2531 echo "$as_me:$LINENO: result: $RANLIB" >&5
2532 echo "${ECHO_T}$RANLIB" >&6
2533 else
2534 echo "$as_me:$LINENO: result: no" >&5
2535 echo "${ECHO_T}no" >&6
2539 if test -z "$ac_cv_prog_RANLIB"; then
2540 ac_ct_RANLIB=$RANLIB
2541 # Extract the first word of "ranlib", so it can be a program name with args.
2542 set dummy ranlib; ac_word=$2
2543 echo "$as_me:$LINENO: checking for $ac_word" >&5
2544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2545 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2546 echo $ECHO_N "(cached) $ECHO_C" >&6
2547 else
2548 if test -n "$ac_ct_RANLIB"; then
2549 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2550 else
2551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552 for as_dir in $PATH
2554 IFS=$as_save_IFS
2555 test -z "$as_dir" && as_dir=.
2556 for ac_exec_ext in '' $ac_executable_extensions; do
2557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2558 ac_cv_prog_ac_ct_RANLIB="ranlib"
2559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2560 break 2
2562 done
2563 done
2565 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2568 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2569 if test -n "$ac_ct_RANLIB"; then
2570 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2571 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2572 else
2573 echo "$as_me:$LINENO: result: no" >&5
2574 echo "${ECHO_T}no" >&6
2577 RANLIB=$ac_ct_RANLIB
2578 else
2579 RANLIB="$ac_cv_prog_RANLIB"
2583 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2584 for ac_prog in aclocal
2586 # Extract the first word of "$ac_prog", so it can be a program name with args.
2587 set dummy $ac_prog; ac_word=$2
2588 echo "$as_me:$LINENO: checking for $ac_word" >&5
2589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2590 if test "${ac_cv_prog_ACLOCAL+set}" = set; then
2591 echo $ECHO_N "(cached) $ECHO_C" >&6
2592 else
2593 if test -n "$ACLOCAL"; then
2594 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
2595 else
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 for as_dir in $PATH
2599 IFS=$as_save_IFS
2600 test -z "$as_dir" && as_dir=.
2601 for ac_exec_ext in '' $ac_executable_extensions; do
2602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2603 ac_cv_prog_ACLOCAL="$ac_prog"
2604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2605 break 2
2607 done
2608 done
2612 ACLOCAL=$ac_cv_prog_ACLOCAL
2613 if test -n "$ACLOCAL"; then
2614 echo "$as_me:$LINENO: result: $ACLOCAL" >&5
2615 echo "${ECHO_T}$ACLOCAL" >&6
2616 else
2617 echo "$as_me:$LINENO: result: no" >&5
2618 echo "${ECHO_T}no" >&6
2621 test -n "$ACLOCAL" && break
2622 done
2623 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
2625 for ac_prog in autoconf
2627 # Extract the first word of "$ac_prog", so it can be a program name with args.
2628 set dummy $ac_prog; ac_word=$2
2629 echo "$as_me:$LINENO: checking for $ac_word" >&5
2630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2631 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
2632 echo $ECHO_N "(cached) $ECHO_C" >&6
2633 else
2634 if test -n "$AUTOCONF"; then
2635 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
2636 else
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 for as_dir in $PATH
2640 IFS=$as_save_IFS
2641 test -z "$as_dir" && as_dir=.
2642 for ac_exec_ext in '' $ac_executable_extensions; do
2643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2644 ac_cv_prog_AUTOCONF="$ac_prog"
2645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2646 break 2
2648 done
2649 done
2653 AUTOCONF=$ac_cv_prog_AUTOCONF
2654 if test -n "$AUTOCONF"; then
2655 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
2656 echo "${ECHO_T}$AUTOCONF" >&6
2657 else
2658 echo "$as_me:$LINENO: result: no" >&5
2659 echo "${ECHO_T}no" >&6
2662 test -n "$AUTOCONF" && break
2663 done
2664 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
2666 for ac_prog in autoheader
2668 # Extract the first word of "$ac_prog", so it can be a program name with args.
2669 set dummy $ac_prog; ac_word=$2
2670 echo "$as_me:$LINENO: checking for $ac_word" >&5
2671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2672 if test "${ac_cv_prog_AUTOHEADER+set}" = set; then
2673 echo $ECHO_N "(cached) $ECHO_C" >&6
2674 else
2675 if test -n "$AUTOHEADER"; then
2676 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
2677 else
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 for as_dir in $PATH
2681 IFS=$as_save_IFS
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2685 ac_cv_prog_AUTOHEADER="$ac_prog"
2686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2687 break 2
2689 done
2690 done
2694 AUTOHEADER=$ac_cv_prog_AUTOHEADER
2695 if test -n "$AUTOHEADER"; then
2696 echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
2697 echo "${ECHO_T}$AUTOHEADER" >&6
2698 else
2699 echo "$as_me:$LINENO: result: no" >&5
2700 echo "${ECHO_T}no" >&6
2703 test -n "$AUTOHEADER" && break
2704 done
2705 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
2708 # Figure out what compiler warnings we can enable.
2709 # See config/warnings.m4 for details.
2712 WARN_CFLAGS=
2713 save_CFLAGS="$CFLAGS"
2714 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
2715 -Wmissing-prototypes -Wold-style-definition \
2716 -Wmissing-format-attribute; do
2717 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
2719 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
2720 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
2721 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
2722 echo $ECHO_N "(cached) $ECHO_C" >&6
2723 else
2724 CFLAGS="$option"
2725 cat >conftest.$ac_ext <<_ACEOF
2726 /* confdefs.h. */
2727 _ACEOF
2728 cat confdefs.h >>conftest.$ac_ext
2729 cat >>conftest.$ac_ext <<_ACEOF
2730 /* end confdefs.h. */
2733 main ()
2737 return 0;
2739 _ACEOF
2740 rm -f conftest.$ac_objext
2741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2742 (eval $ac_compile) 2>conftest.er1
2743 ac_status=$?
2744 grep -v '^ *+' conftest.er1 >conftest.err
2745 rm -f conftest.er1
2746 cat conftest.err >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); } &&
2749 { ac_try='test -z "$ac_c_werror_flag"
2750 || test ! -s conftest.err'
2751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752 (eval $ac_try) 2>&5
2753 ac_status=$?
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }; } &&
2756 { ac_try='test -s conftest.$ac_objext'
2757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758 (eval $ac_try) 2>&5
2759 ac_status=$?
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }; }; then
2762 eval "$as_acx_Woption=yes"
2763 else
2764 echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2767 eval "$as_acx_Woption=no"
2769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2772 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
2773 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
2774 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
2775 WARN_CFLAGS="$WARN_CFLAGS${WARN_CFLAGS:+ }$option"
2778 done
2779 CFLAGS="$save_CFLAGS"
2781 WARN_PEDANTIC=
2782 if test "$GCC" = yes; then
2783 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long" >&5
2784 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long... $ECHO_C" >&6
2785 if test "${acx_cv_prog_cc_pedantic__Wno_long_long+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2787 else
2788 save_CFLAGS="$CFLAGS"
2789 CFLAGS="-pedantic -Wno-long-long"
2790 cat >conftest.$ac_ext <<_ACEOF
2791 /* confdefs.h. */
2792 _ACEOF
2793 cat confdefs.h >>conftest.$ac_ext
2794 cat >>conftest.$ac_ext <<_ACEOF
2795 /* end confdefs.h. */
2798 main ()
2802 return 0;
2804 _ACEOF
2805 rm -f conftest.$ac_objext
2806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2807 (eval $ac_compile) 2>conftest.er1
2808 ac_status=$?
2809 grep -v '^ *+' conftest.er1 >conftest.err
2810 rm -f conftest.er1
2811 cat conftest.err >&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); } &&
2814 { ac_try='test -z "$ac_c_werror_flag"
2815 || test ! -s conftest.err'
2816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817 (eval $ac_try) 2>&5
2818 ac_status=$?
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; } &&
2821 { ac_try='test -s conftest.$ac_objext'
2822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823 (eval $ac_try) 2>&5
2824 ac_status=$?
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; }; then
2827 acx_cv_prog_cc_pedantic__Wno_long_long=yes
2828 else
2829 echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2832 acx_cv_prog_cc_pedantic__Wno_long_long=no
2834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2835 CFLAGS="$save_CFLAGS"
2837 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long" >&5
2838 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long" >&6
2839 if test $acx_cv_prog_cc_pedantic__Wno_long_long = yes; then
2840 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
2848 # Only enable with --enable-werror-always until existing warnings are
2849 # corrected.
2850 WERROR=
2851 # Check whether --enable-werror-always or --disable-werror-always was given.
2852 if test "${enable_werror_always+set}" = set; then
2853 enableval="$enable_werror_always"
2855 else
2856 enable_werror_always=no
2858 if test $enable_werror_always = yes; then
2859 WERROR="$WERROR${WERROR:+ }-Werror"
2865 # Dependency checking.
2866 rm -rf .tst 2>/dev/null
2867 mkdir .tst 2>/dev/null
2868 if test -d .tst; then
2869 am__leading_dot=.
2870 else
2871 am__leading_dot=_
2873 rmdir .tst 2>/dev/null
2875 DEPDIR="${am__leading_dot}deps"
2877 ac_config_commands="$ac_config_commands depdir"
2880 depcc="$CC" am_compiler_list=
2882 am_depcomp=$ac_aux_dir/depcomp
2883 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2884 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2885 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2886 echo $ECHO_N "(cached) $ECHO_C" >&6
2887 else
2888 if test -f "$am_depcomp"; then
2889 # We make a subdir and do the tests there. Otherwise we can end up
2890 # making bogus files that we don't know about and never remove. For
2891 # instance it was reported that on HP-UX the gcc test will end up
2892 # making a dummy file named `D' -- because `-MD' means `put the output
2893 # in D'.
2894 mkdir conftest.dir
2895 # Copy depcomp to subdir because otherwise we won't find it if we're
2896 # using a relative directory.
2897 cp "$am_depcomp" conftest.dir
2898 cd conftest.dir
2899 # We will build objects and dependencies in a subdirectory because
2900 # it helps to detect inapplicable dependency modes. For instance
2901 # both Tru64's cc and ICC support -MD to output dependencies as a
2902 # side effect of compilation, but ICC will put the dependencies in
2903 # the current directory while Tru64 will put them in the object
2904 # directory.
2905 mkdir sub
2907 am_cv_CC_dependencies_compiler_type=none
2908 if test "$am_compiler_list" = ""; then
2909 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2911 for depmode in $am_compiler_list; do
2912 if test $depmode = none; then break; fi
2914 echo "$as_me:$LINENO: trying $depmode" >&5
2915 # Setup a source with many dependencies, because some compilers
2916 # like to wrap large dependency lists on column 80 (with \), and
2917 # we should not choose a depcomp mode which is confused by this.
2919 # We need to recreate these files for each test, as the compiler may
2920 # overwrite some of them when testing with obscure command lines.
2921 # This happens at least with the AIX C compiler.
2922 : > sub/conftest.c
2923 for i in 1 2 3 4 5 6; do
2924 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2925 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2926 # Solaris 8's {/usr,}/bin/sh.
2927 touch sub/conftst$i.h
2928 done
2929 echo "include sub/conftest.Po" > confmf
2931 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2932 # mode. It turns out that the SunPro C++ compiler does not properly
2933 # handle `-M -o', and we need to detect this.
2934 depcmd="depmode=$depmode \
2935 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2936 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2937 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
2938 echo "| $depcmd" | sed -e 's/ */ /g' >&5
2939 if env $depcmd > conftest.err 2>&1 &&
2940 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
2941 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
2942 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
2943 # icc doesn't choke on unknown options, it will just issue warnings
2944 # or remarks (even with -Werror). So we grep stderr for any message
2945 # that says an option was ignored or not supported.
2946 # When given -MP, icc 7.0 and 7.1 complain thusly:
2947 # icc: Command line warning: ignoring option '-M'; no argument required
2948 # The diagnosis changed in icc 8.0:
2949 # icc: Command line remark: option '-MP' not supported
2950 if (grep 'ignoring option' conftest.err ||
2951 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2952 am_cv_CC_dependencies_compiler_type=$depmode
2953 echo "$as_me:$LINENO: success" >&5
2954 break
2957 echo "$as_me:$LINENO: failure, diagnostics are:" >&5
2958 sed -e 's/^/| /' < conftest.err >&5
2959 done
2961 cd ..
2962 rm -rf conftest.dir
2963 else
2964 am_cv_CC_dependencies_compiler_type=none
2968 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2969 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2970 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
2971 then { { echo "$as_me:$LINENO: error: no usable dependency style found" >&5
2972 echo "$as_me: error: no usable dependency style found" >&2;}
2973 { (exit 1); exit 1; }; }
2974 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2979 # Checks for header files.
2980 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
2981 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
2982 if test "${ac_cv_header_time+set}" = set; then
2983 echo $ECHO_N "(cached) $ECHO_C" >&6
2984 else
2985 cat >conftest.$ac_ext <<_ACEOF
2986 /* confdefs.h. */
2987 _ACEOF
2988 cat confdefs.h >>conftest.$ac_ext
2989 cat >>conftest.$ac_ext <<_ACEOF
2990 /* end confdefs.h. */
2991 #include <sys/types.h>
2992 #include <sys/time.h>
2993 #include <time.h>
2996 main ()
2998 if ((struct tm *) 0)
2999 return 0;
3001 return 0;
3003 _ACEOF
3004 rm -f conftest.$ac_objext
3005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3006 (eval $ac_compile) 2>conftest.er1
3007 ac_status=$?
3008 grep -v '^ *+' conftest.er1 >conftest.err
3009 rm -f conftest.er1
3010 cat conftest.err >&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); } &&
3013 { ac_try='test -z "$ac_c_werror_flag"
3014 || test ! -s conftest.err'
3015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3016 (eval $ac_try) 2>&5
3017 ac_status=$?
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); }; } &&
3020 { ac_try='test -s conftest.$ac_objext'
3021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022 (eval $ac_try) 2>&5
3023 ac_status=$?
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; }; then
3026 ac_cv_header_time=yes
3027 else
3028 echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.$ac_ext >&5
3031 ac_cv_header_time=no
3033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3035 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3036 echo "${ECHO_T}$ac_cv_header_time" >&6
3037 if test $ac_cv_header_time = yes; then
3039 cat >>confdefs.h <<\_ACEOF
3040 #define TIME_WITH_SYS_TIME 1
3041 _ACEOF
3045 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
3046 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
3047 if test "${gcc_cv_header_string+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
3049 else
3050 cat >conftest.$ac_ext <<_ACEOF
3051 /* confdefs.h. */
3052 _ACEOF
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h. */
3056 #include <string.h>
3057 #include <strings.h>
3059 main ()
3063 return 0;
3065 _ACEOF
3066 rm -f conftest.$ac_objext
3067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3068 (eval $ac_compile) 2>conftest.er1
3069 ac_status=$?
3070 grep -v '^ *+' conftest.er1 >conftest.err
3071 rm -f conftest.er1
3072 cat conftest.err >&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); } &&
3075 { ac_try='test -z "$ac_c_werror_flag"
3076 || test ! -s conftest.err'
3077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3078 (eval $ac_try) 2>&5
3079 ac_status=$?
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; } &&
3082 { ac_try='test -s conftest.$ac_objext'
3083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084 (eval $ac_try) 2>&5
3085 ac_status=$?
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; }; then
3088 gcc_cv_header_string=yes
3089 else
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3093 gcc_cv_header_string=no
3095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3097 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
3098 echo "${ECHO_T}$gcc_cv_header_string" >&6
3099 if test $gcc_cv_header_string = yes; then
3101 cat >>confdefs.h <<\_ACEOF
3102 #define STRING_WITH_STRINGS 1
3103 _ACEOF
3107 ac_ext=c
3108 ac_cpp='$CPP $CPPFLAGS'
3109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3112 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3113 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3114 # On Suns, sometimes $CPP names a directory.
3115 if test -n "$CPP" && test -d "$CPP"; then
3116 CPP=
3118 if test -z "$CPP"; then
3119 if test "${ac_cv_prog_CPP+set}" = set; then
3120 echo $ECHO_N "(cached) $ECHO_C" >&6
3121 else
3122 # Double quotes because CPP needs to be expanded
3123 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3125 ac_preproc_ok=false
3126 for ac_c_preproc_warn_flag in '' yes
3128 # Use a header file that comes with gcc, so configuring glibc
3129 # with a fresh cross-compiler works.
3130 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3131 # <limits.h> exists even on freestanding compilers.
3132 # On the NeXT, cc -E runs the code through the compiler's parser,
3133 # not just through cpp. "Syntax error" is here to catch this case.
3134 cat >conftest.$ac_ext <<_ACEOF
3135 /* confdefs.h. */
3136 _ACEOF
3137 cat confdefs.h >>conftest.$ac_ext
3138 cat >>conftest.$ac_ext <<_ACEOF
3139 /* end confdefs.h. */
3140 #ifdef __STDC__
3141 # include <limits.h>
3142 #else
3143 # include <assert.h>
3144 #endif
3145 Syntax error
3146 _ACEOF
3147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3149 ac_status=$?
3150 grep -v '^ *+' conftest.er1 >conftest.err
3151 rm -f conftest.er1
3152 cat conftest.err >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); } >/dev/null; then
3155 if test -s conftest.err; then
3156 ac_cpp_err=$ac_c_preproc_warn_flag
3157 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3158 else
3159 ac_cpp_err=
3161 else
3162 ac_cpp_err=yes
3164 if test -z "$ac_cpp_err"; then
3166 else
3167 echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3170 # Broken: fails on valid input.
3171 continue
3173 rm -f conftest.err conftest.$ac_ext
3175 # OK, works on sane cases. Now check whether non-existent headers
3176 # can be detected and how.
3177 cat >conftest.$ac_ext <<_ACEOF
3178 /* confdefs.h. */
3179 _ACEOF
3180 cat confdefs.h >>conftest.$ac_ext
3181 cat >>conftest.$ac_ext <<_ACEOF
3182 /* end confdefs.h. */
3183 #include <ac_nonexistent.h>
3184 _ACEOF
3185 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3186 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3187 ac_status=$?
3188 grep -v '^ *+' conftest.er1 >conftest.err
3189 rm -f conftest.er1
3190 cat conftest.err >&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); } >/dev/null; then
3193 if test -s conftest.err; then
3194 ac_cpp_err=$ac_c_preproc_warn_flag
3195 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3196 else
3197 ac_cpp_err=
3199 else
3200 ac_cpp_err=yes
3202 if test -z "$ac_cpp_err"; then
3203 # Broken: success on invalid input.
3204 continue
3205 else
3206 echo "$as_me: failed program was:" >&5
3207 sed 's/^/| /' conftest.$ac_ext >&5
3209 # Passes both tests.
3210 ac_preproc_ok=:
3211 break
3213 rm -f conftest.err conftest.$ac_ext
3215 done
3216 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3217 rm -f conftest.err conftest.$ac_ext
3218 if $ac_preproc_ok; then
3219 break
3222 done
3223 ac_cv_prog_CPP=$CPP
3226 CPP=$ac_cv_prog_CPP
3227 else
3228 ac_cv_prog_CPP=$CPP
3230 echo "$as_me:$LINENO: result: $CPP" >&5
3231 echo "${ECHO_T}$CPP" >&6
3232 ac_preproc_ok=false
3233 for ac_c_preproc_warn_flag in '' yes
3235 # Use a header file that comes with gcc, so configuring glibc
3236 # with a fresh cross-compiler works.
3237 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3238 # <limits.h> exists even on freestanding compilers.
3239 # On the NeXT, cc -E runs the code through the compiler's parser,
3240 # not just through cpp. "Syntax error" is here to catch this case.
3241 cat >conftest.$ac_ext <<_ACEOF
3242 /* confdefs.h. */
3243 _ACEOF
3244 cat confdefs.h >>conftest.$ac_ext
3245 cat >>conftest.$ac_ext <<_ACEOF
3246 /* end confdefs.h. */
3247 #ifdef __STDC__
3248 # include <limits.h>
3249 #else
3250 # include <assert.h>
3251 #endif
3252 Syntax error
3253 _ACEOF
3254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3256 ac_status=$?
3257 grep -v '^ *+' conftest.er1 >conftest.err
3258 rm -f conftest.er1
3259 cat conftest.err >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } >/dev/null; then
3262 if test -s conftest.err; then
3263 ac_cpp_err=$ac_c_preproc_warn_flag
3264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3265 else
3266 ac_cpp_err=
3268 else
3269 ac_cpp_err=yes
3271 if test -z "$ac_cpp_err"; then
3273 else
3274 echo "$as_me: failed program was:" >&5
3275 sed 's/^/| /' conftest.$ac_ext >&5
3277 # Broken: fails on valid input.
3278 continue
3280 rm -f conftest.err conftest.$ac_ext
3282 # OK, works on sane cases. Now check whether non-existent headers
3283 # can be detected and how.
3284 cat >conftest.$ac_ext <<_ACEOF
3285 /* confdefs.h. */
3286 _ACEOF
3287 cat confdefs.h >>conftest.$ac_ext
3288 cat >>conftest.$ac_ext <<_ACEOF
3289 /* end confdefs.h. */
3290 #include <ac_nonexistent.h>
3291 _ACEOF
3292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3294 ac_status=$?
3295 grep -v '^ *+' conftest.er1 >conftest.err
3296 rm -f conftest.er1
3297 cat conftest.err >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); } >/dev/null; then
3300 if test -s conftest.err; then
3301 ac_cpp_err=$ac_c_preproc_warn_flag
3302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3303 else
3304 ac_cpp_err=
3306 else
3307 ac_cpp_err=yes
3309 if test -z "$ac_cpp_err"; then
3310 # Broken: success on invalid input.
3311 continue
3312 else
3313 echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3316 # Passes both tests.
3317 ac_preproc_ok=:
3318 break
3320 rm -f conftest.err conftest.$ac_ext
3322 done
3323 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3324 rm -f conftest.err conftest.$ac_ext
3325 if $ac_preproc_ok; then
3327 else
3328 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3329 See \`config.log' for more details." >&5
3330 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3331 See \`config.log' for more details." >&2;}
3332 { (exit 1); exit 1; }; }
3335 ac_ext=c
3336 ac_cpp='$CPP $CPPFLAGS'
3337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3342 echo "$as_me:$LINENO: checking for egrep" >&5
3343 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3344 if test "${ac_cv_prog_egrep+set}" = set; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3346 else
3347 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3348 then ac_cv_prog_egrep='grep -E'
3349 else ac_cv_prog_egrep='egrep'
3352 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3353 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3354 EGREP=$ac_cv_prog_egrep
3357 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3358 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3359 if test "${ac_cv_header_stdc+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 else
3362 cat >conftest.$ac_ext <<_ACEOF
3363 /* confdefs.h. */
3364 _ACEOF
3365 cat confdefs.h >>conftest.$ac_ext
3366 cat >>conftest.$ac_ext <<_ACEOF
3367 /* end confdefs.h. */
3368 #include <stdlib.h>
3369 #include <stdarg.h>
3370 #include <string.h>
3371 #include <float.h>
3374 main ()
3378 return 0;
3380 _ACEOF
3381 rm -f conftest.$ac_objext
3382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3383 (eval $ac_compile) 2>conftest.er1
3384 ac_status=$?
3385 grep -v '^ *+' conftest.er1 >conftest.err
3386 rm -f conftest.er1
3387 cat conftest.err >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } &&
3390 { ac_try='test -z "$ac_c_werror_flag"
3391 || test ! -s conftest.err'
3392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3393 (eval $ac_try) 2>&5
3394 ac_status=$?
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }; } &&
3397 { ac_try='test -s conftest.$ac_objext'
3398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399 (eval $ac_try) 2>&5
3400 ac_status=$?
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }; }; then
3403 ac_cv_header_stdc=yes
3404 else
3405 echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3408 ac_cv_header_stdc=no
3410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3412 if test $ac_cv_header_stdc = yes; then
3413 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3414 cat >conftest.$ac_ext <<_ACEOF
3415 /* confdefs.h. */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3420 #include <string.h>
3422 _ACEOF
3423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3424 $EGREP "memchr" >/dev/null 2>&1; then
3426 else
3427 ac_cv_header_stdc=no
3429 rm -f conftest*
3433 if test $ac_cv_header_stdc = yes; then
3434 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3435 cat >conftest.$ac_ext <<_ACEOF
3436 /* confdefs.h. */
3437 _ACEOF
3438 cat confdefs.h >>conftest.$ac_ext
3439 cat >>conftest.$ac_ext <<_ACEOF
3440 /* end confdefs.h. */
3441 #include <stdlib.h>
3443 _ACEOF
3444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3445 $EGREP "free" >/dev/null 2>&1; then
3447 else
3448 ac_cv_header_stdc=no
3450 rm -f conftest*
3454 if test $ac_cv_header_stdc = yes; then
3455 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3456 if test "$cross_compiling" = yes; then
3458 else
3459 cat >conftest.$ac_ext <<_ACEOF
3460 /* confdefs.h. */
3461 _ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h. */
3465 #include <ctype.h>
3466 #if ((' ' & 0x0FF) == 0x020)
3467 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3468 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3469 #else
3470 # define ISLOWER(c) \
3471 (('a' <= (c) && (c) <= 'i') \
3472 || ('j' <= (c) && (c) <= 'r') \
3473 || ('s' <= (c) && (c) <= 'z'))
3474 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3475 #endif
3477 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3479 main ()
3481 int i;
3482 for (i = 0; i < 256; i++)
3483 if (XOR (islower (i), ISLOWER (i))
3484 || toupper (i) != TOUPPER (i))
3485 exit(2);
3486 exit (0);
3488 _ACEOF
3489 rm -f conftest$ac_exeext
3490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3491 (eval $ac_link) 2>&5
3492 ac_status=$?
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496 (eval $ac_try) 2>&5
3497 ac_status=$?
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; }; then
3501 else
3502 echo "$as_me: program exited with status $ac_status" >&5
3503 echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3506 ( exit $ac_status )
3507 ac_cv_header_stdc=no
3509 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3513 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3514 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3515 if test $ac_cv_header_stdc = yes; then
3517 cat >>confdefs.h <<\_ACEOF
3518 #define STDC_HEADERS 1
3519 _ACEOF
3523 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3533 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3534 inttypes.h stdint.h unistd.h
3536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3537 echo "$as_me:$LINENO: checking for $ac_header" >&5
3538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3541 else
3542 cat >conftest.$ac_ext <<_ACEOF
3543 /* confdefs.h. */
3544 _ACEOF
3545 cat confdefs.h >>conftest.$ac_ext
3546 cat >>conftest.$ac_ext <<_ACEOF
3547 /* end confdefs.h. */
3548 $ac_includes_default
3550 #include <$ac_header>
3551 _ACEOF
3552 rm -f conftest.$ac_objext
3553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3554 (eval $ac_compile) 2>conftest.er1
3555 ac_status=$?
3556 grep -v '^ *+' conftest.er1 >conftest.err
3557 rm -f conftest.er1
3558 cat conftest.err >&5
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); } &&
3561 { ac_try='test -z "$ac_c_werror_flag"
3562 || test ! -s conftest.err'
3563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564 (eval $ac_try) 2>&5
3565 ac_status=$?
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); }; } &&
3568 { ac_try='test -s conftest.$ac_objext'
3569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570 (eval $ac_try) 2>&5
3571 ac_status=$?
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); }; }; then
3574 eval "$as_ac_Header=yes"
3575 else
3576 echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3579 eval "$as_ac_Header=no"
3581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3584 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3586 cat >>confdefs.h <<_ACEOF
3587 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3588 _ACEOF
3592 done
3605 for ac_header in iconv.h locale.h fcntl.h limits.h stddef.h \
3606 stdlib.h strings.h string.h sys/file.h unistd.h
3608 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3610 echo "$as_me:$LINENO: checking for $ac_header" >&5
3611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3613 echo $ECHO_N "(cached) $ECHO_C" >&6
3615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3616 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3617 else
3618 # Is the header compilable?
3619 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3620 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3621 cat >conftest.$ac_ext <<_ACEOF
3622 /* confdefs.h. */
3623 _ACEOF
3624 cat confdefs.h >>conftest.$ac_ext
3625 cat >>conftest.$ac_ext <<_ACEOF
3626 /* end confdefs.h. */
3627 $ac_includes_default
3628 #include <$ac_header>
3629 _ACEOF
3630 rm -f conftest.$ac_objext
3631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3632 (eval $ac_compile) 2>conftest.er1
3633 ac_status=$?
3634 grep -v '^ *+' conftest.er1 >conftest.err
3635 rm -f conftest.er1
3636 cat conftest.err >&5
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); } &&
3639 { ac_try='test -z "$ac_c_werror_flag"
3640 || test ! -s conftest.err'
3641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642 (eval $ac_try) 2>&5
3643 ac_status=$?
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; } &&
3646 { ac_try='test -s conftest.$ac_objext'
3647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3648 (eval $ac_try) 2>&5
3649 ac_status=$?
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); }; }; then
3652 ac_header_compiler=yes
3653 else
3654 echo "$as_me: failed program was:" >&5
3655 sed 's/^/| /' conftest.$ac_ext >&5
3657 ac_header_compiler=no
3659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3660 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3661 echo "${ECHO_T}$ac_header_compiler" >&6
3663 # Is the header present?
3664 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3665 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3666 cat >conftest.$ac_ext <<_ACEOF
3667 /* confdefs.h. */
3668 _ACEOF
3669 cat confdefs.h >>conftest.$ac_ext
3670 cat >>conftest.$ac_ext <<_ACEOF
3671 /* end confdefs.h. */
3672 #include <$ac_header>
3673 _ACEOF
3674 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3675 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3676 ac_status=$?
3677 grep -v '^ *+' conftest.er1 >conftest.err
3678 rm -f conftest.er1
3679 cat conftest.err >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); } >/dev/null; then
3682 if test -s conftest.err; then
3683 ac_cpp_err=$ac_c_preproc_warn_flag
3684 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3685 else
3686 ac_cpp_err=
3688 else
3689 ac_cpp_err=yes
3691 if test -z "$ac_cpp_err"; then
3692 ac_header_preproc=yes
3693 else
3694 echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3697 ac_header_preproc=no
3699 rm -f conftest.err conftest.$ac_ext
3700 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3701 echo "${ECHO_T}$ac_header_preproc" >&6
3703 # So? What about this header?
3704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3705 yes:no: )
3706 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3707 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3709 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3710 ac_header_preproc=yes
3712 no:yes:* )
3713 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3714 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3715 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3716 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3717 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3718 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3719 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3720 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3723 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3724 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3726 cat <<\_ASBOX
3727 ## ----------------------------------- ##
3728 ## Report this to gcc-bugs@gcc.gnu.org ##
3729 ## ----------------------------------- ##
3730 _ASBOX
3732 sed "s/^/$as_me: WARNING: /" >&2
3734 esac
3735 echo "$as_me:$LINENO: checking for $ac_header" >&5
3736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 else
3740 eval "$as_ac_Header=\$ac_header_preproc"
3742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3747 cat >>confdefs.h <<_ACEOF
3748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3749 _ACEOF
3753 done
3756 # Checks for typedefs, structures, and compiler characteristics.
3757 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3758 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3759 if test "${ac_cv_c_const+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 else
3762 cat >conftest.$ac_ext <<_ACEOF
3763 /* confdefs.h. */
3764 _ACEOF
3765 cat confdefs.h >>conftest.$ac_ext
3766 cat >>conftest.$ac_ext <<_ACEOF
3767 /* end confdefs.h. */
3770 main ()
3772 /* FIXME: Include the comments suggested by Paul. */
3773 #ifndef __cplusplus
3774 /* Ultrix mips cc rejects this. */
3775 typedef int charset[2];
3776 const charset x;
3777 /* SunOS 4.1.1 cc rejects this. */
3778 char const *const *ccp;
3779 char **p;
3780 /* NEC SVR4.0.2 mips cc rejects this. */
3781 struct point {int x, y;};
3782 static struct point const zero = {0,0};
3783 /* AIX XL C 1.02.0.0 rejects this.
3784 It does not let you subtract one const X* pointer from another in
3785 an arm of an if-expression whose if-part is not a constant
3786 expression */
3787 const char *g = "string";
3788 ccp = &g + (g ? g-g : 0);
3789 /* HPUX 7.0 cc rejects these. */
3790 ++ccp;
3791 p = (char**) ccp;
3792 ccp = (char const *const *) p;
3793 { /* SCO 3.2v4 cc rejects this. */
3794 char *t;
3795 char const *s = 0 ? (char *) 0 : (char const *) 0;
3797 *t++ = 0;
3799 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3800 int x[] = {25, 17};
3801 const int *foo = &x[0];
3802 ++foo;
3804 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3805 typedef const int *iptr;
3806 iptr p = 0;
3807 ++p;
3809 { /* AIX XL C 1.02.0.0 rejects this saying
3810 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3811 struct s { int j; const int *ap[3]; };
3812 struct s *b; b->j = 5;
3814 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3815 const int foo = 10;
3817 #endif
3820 return 0;
3822 _ACEOF
3823 rm -f conftest.$ac_objext
3824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3825 (eval $ac_compile) 2>conftest.er1
3826 ac_status=$?
3827 grep -v '^ *+' conftest.er1 >conftest.err
3828 rm -f conftest.er1
3829 cat conftest.err >&5
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); } &&
3832 { ac_try='test -z "$ac_c_werror_flag"
3833 || test ! -s conftest.err'
3834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3835 (eval $ac_try) 2>&5
3836 ac_status=$?
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); }; } &&
3839 { ac_try='test -s conftest.$ac_objext'
3840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841 (eval $ac_try) 2>&5
3842 ac_status=$?
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); }; }; then
3845 ac_cv_c_const=yes
3846 else
3847 echo "$as_me: failed program was:" >&5
3848 sed 's/^/| /' conftest.$ac_ext >&5
3850 ac_cv_c_const=no
3852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3854 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3855 echo "${ECHO_T}$ac_cv_c_const" >&6
3856 if test $ac_cv_c_const = no; then
3858 cat >>confdefs.h <<\_ACEOF
3859 #define const
3860 _ACEOF
3864 echo "$as_me:$LINENO: checking for inline" >&5
3865 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3866 if test "${ac_cv_c_inline+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 else
3869 ac_cv_c_inline=no
3870 for ac_kw in inline __inline__ __inline; do
3871 cat >conftest.$ac_ext <<_ACEOF
3872 /* confdefs.h. */
3873 _ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h. */
3877 #ifndef __cplusplus
3878 typedef int foo_t;
3879 static $ac_kw foo_t static_foo () {return 0; }
3880 $ac_kw foo_t foo () {return 0; }
3881 #endif
3883 _ACEOF
3884 rm -f conftest.$ac_objext
3885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3886 (eval $ac_compile) 2>conftest.er1
3887 ac_status=$?
3888 grep -v '^ *+' conftest.er1 >conftest.err
3889 rm -f conftest.er1
3890 cat conftest.err >&5
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); } &&
3893 { ac_try='test -z "$ac_c_werror_flag"
3894 || test ! -s conftest.err'
3895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3896 (eval $ac_try) 2>&5
3897 ac_status=$?
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }; } &&
3900 { ac_try='test -s conftest.$ac_objext'
3901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3902 (eval $ac_try) 2>&5
3903 ac_status=$?
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); }; }; then
3906 ac_cv_c_inline=$ac_kw; break
3907 else
3908 echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3913 done
3916 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3917 echo "${ECHO_T}$ac_cv_c_inline" >&6
3920 case $ac_cv_c_inline in
3921 inline | yes) ;;
3923 case $ac_cv_c_inline in
3924 no) ac_val=;;
3925 *) ac_val=$ac_cv_c_inline;;
3926 esac
3927 cat >>confdefs.h <<_ACEOF
3928 #ifndef __cplusplus
3929 #define inline $ac_val
3930 #endif
3931 _ACEOF
3933 esac
3935 echo "$as_me:$LINENO: checking for obstacks" >&5
3936 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
3937 if test "${ac_cv_func_obstack+set}" = set; then
3938 echo $ECHO_N "(cached) $ECHO_C" >&6
3939 else
3940 cat >conftest.$ac_ext <<_ACEOF
3941 /* confdefs.h. */
3942 _ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h. */
3946 #include "obstack.h"
3948 main ()
3950 struct obstack *mem; obstack_free(mem,(char *) 0)
3952 return 0;
3954 _ACEOF
3955 rm -f conftest.$ac_objext conftest$ac_exeext
3956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3957 (eval $ac_link) 2>conftest.er1
3958 ac_status=$?
3959 grep -v '^ *+' conftest.er1 >conftest.err
3960 rm -f conftest.er1
3961 cat conftest.err >&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } &&
3964 { ac_try='test -z "$ac_c_werror_flag"
3965 || test ! -s conftest.err'
3966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3967 (eval $ac_try) 2>&5
3968 ac_status=$?
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); }; } &&
3971 { ac_try='test -s conftest$ac_exeext'
3972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3973 (eval $ac_try) 2>&5
3974 ac_status=$?
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); }; }; then
3977 ac_cv_func_obstack=yes
3978 else
3979 echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3982 ac_cv_func_obstack=no
3984 rm -f conftest.err conftest.$ac_objext \
3985 conftest$ac_exeext conftest.$ac_ext
3987 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
3988 echo "${ECHO_T}$ac_cv_func_obstack" >&6
3989 if test $ac_cv_func_obstack = yes; then
3991 cat >>confdefs.h <<\_ACEOF
3992 #define HAVE_OBSTACK 1
3993 _ACEOF
3995 else
3996 case $LIBOBJS in
3997 "obstack.$ac_objext" | \
3998 *" obstack.$ac_objext" | \
3999 "obstack.$ac_objext "* | \
4000 *" obstack.$ac_objext "* ) ;;
4001 *) LIBOBJS="$LIBOBJS obstack.$ac_objext" ;;
4002 esac
4006 echo "$as_me:$LINENO: checking for off_t" >&5
4007 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4008 if test "${ac_cv_type_off_t+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4010 else
4011 cat >conftest.$ac_ext <<_ACEOF
4012 /* confdefs.h. */
4013 _ACEOF
4014 cat confdefs.h >>conftest.$ac_ext
4015 cat >>conftest.$ac_ext <<_ACEOF
4016 /* end confdefs.h. */
4017 $ac_includes_default
4019 main ()
4021 if ((off_t *) 0)
4022 return 0;
4023 if (sizeof (off_t))
4024 return 0;
4026 return 0;
4028 _ACEOF
4029 rm -f conftest.$ac_objext
4030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4031 (eval $ac_compile) 2>conftest.er1
4032 ac_status=$?
4033 grep -v '^ *+' conftest.er1 >conftest.err
4034 rm -f conftest.er1
4035 cat conftest.err >&5
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); } &&
4038 { ac_try='test -z "$ac_c_werror_flag"
4039 || test ! -s conftest.err'
4040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4041 (eval $ac_try) 2>&5
4042 ac_status=$?
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; } &&
4045 { ac_try='test -s conftest.$ac_objext'
4046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4047 (eval $ac_try) 2>&5
4048 ac_status=$?
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); }; }; then
4051 ac_cv_type_off_t=yes
4052 else
4053 echo "$as_me: failed program was:" >&5
4054 sed 's/^/| /' conftest.$ac_ext >&5
4056 ac_cv_type_off_t=no
4058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4060 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4061 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4062 if test $ac_cv_type_off_t = yes; then
4064 else
4066 cat >>confdefs.h <<_ACEOF
4067 #define off_t long
4068 _ACEOF
4072 echo "$as_me:$LINENO: checking for size_t" >&5
4073 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4074 if test "${ac_cv_type_size_t+set}" = set; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 else
4077 cat >conftest.$ac_ext <<_ACEOF
4078 /* confdefs.h. */
4079 _ACEOF
4080 cat confdefs.h >>conftest.$ac_ext
4081 cat >>conftest.$ac_ext <<_ACEOF
4082 /* end confdefs.h. */
4083 $ac_includes_default
4085 main ()
4087 if ((size_t *) 0)
4088 return 0;
4089 if (sizeof (size_t))
4090 return 0;
4092 return 0;
4094 _ACEOF
4095 rm -f conftest.$ac_objext
4096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4097 (eval $ac_compile) 2>conftest.er1
4098 ac_status=$?
4099 grep -v '^ *+' conftest.er1 >conftest.err
4100 rm -f conftest.er1
4101 cat conftest.err >&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); } &&
4104 { ac_try='test -z "$ac_c_werror_flag"
4105 || test ! -s conftest.err'
4106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107 (eval $ac_try) 2>&5
4108 ac_status=$?
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); }; } &&
4111 { ac_try='test -s conftest.$ac_objext'
4112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113 (eval $ac_try) 2>&5
4114 ac_status=$?
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); }; }; then
4117 ac_cv_type_size_t=yes
4118 else
4119 echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.$ac_ext >&5
4122 ac_cv_type_size_t=no
4124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4126 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4127 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4128 if test $ac_cv_type_size_t = yes; then
4130 else
4132 cat >>confdefs.h <<_ACEOF
4133 #define size_t unsigned
4134 _ACEOF
4138 echo "$as_me:$LINENO: checking for ssize_t" >&5
4139 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
4140 if test "${ac_cv_type_ssize_t+set}" = set; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
4142 else
4143 cat >conftest.$ac_ext <<_ACEOF
4144 /* confdefs.h. */
4145 _ACEOF
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h. */
4149 $ac_includes_default
4151 main ()
4153 if ((ssize_t *) 0)
4154 return 0;
4155 if (sizeof (ssize_t))
4156 return 0;
4158 return 0;
4160 _ACEOF
4161 rm -f conftest.$ac_objext
4162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4163 (eval $ac_compile) 2>conftest.er1
4164 ac_status=$?
4165 grep -v '^ *+' conftest.er1 >conftest.err
4166 rm -f conftest.er1
4167 cat conftest.err >&5
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); } &&
4170 { ac_try='test -z "$ac_c_werror_flag"
4171 || test ! -s conftest.err'
4172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4173 (eval $ac_try) 2>&5
4174 ac_status=$?
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); }; } &&
4177 { ac_try='test -s conftest.$ac_objext'
4178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179 (eval $ac_try) 2>&5
4180 ac_status=$?
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; }; then
4183 ac_cv_type_ssize_t=yes
4184 else
4185 echo "$as_me: failed program was:" >&5
4186 sed 's/^/| /' conftest.$ac_ext >&5
4188 ac_cv_type_ssize_t=no
4190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4192 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
4193 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
4194 if test $ac_cv_type_ssize_t = yes; then
4196 else
4198 cat >>confdefs.h <<_ACEOF
4199 #define ssize_t int
4200 _ACEOF
4204 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4205 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4206 if test "${ac_cv_struct_tm+set}" = set; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4208 else
4209 cat >conftest.$ac_ext <<_ACEOF
4210 /* confdefs.h. */
4211 _ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4215 #include <sys/types.h>
4216 #include <time.h>
4219 main ()
4221 struct tm *tp; tp->tm_sec;
4223 return 0;
4225 _ACEOF
4226 rm -f conftest.$ac_objext
4227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4228 (eval $ac_compile) 2>conftest.er1
4229 ac_status=$?
4230 grep -v '^ *+' conftest.er1 >conftest.err
4231 rm -f conftest.er1
4232 cat conftest.err >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); } &&
4235 { ac_try='test -z "$ac_c_werror_flag"
4236 || test ! -s conftest.err'
4237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238 (eval $ac_try) 2>&5
4239 ac_status=$?
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); }; } &&
4242 { ac_try='test -s conftest.$ac_objext'
4243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4244 (eval $ac_try) 2>&5
4245 ac_status=$?
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); }; }; then
4248 ac_cv_struct_tm=time.h
4249 else
4250 echo "$as_me: failed program was:" >&5
4251 sed 's/^/| /' conftest.$ac_ext >&5
4253 ac_cv_struct_tm=sys/time.h
4255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4257 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4258 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4259 if test $ac_cv_struct_tm = sys/time.h; then
4261 cat >>confdefs.h <<\_ACEOF
4262 #define TM_IN_SYS_TIME 1
4263 _ACEOF
4267 echo "$as_me:$LINENO: checking for int" >&5
4268 echo $ECHO_N "checking for int... $ECHO_C" >&6
4269 if test "${ac_cv_type_int+set}" = set; then
4270 echo $ECHO_N "(cached) $ECHO_C" >&6
4271 else
4272 cat >conftest.$ac_ext <<_ACEOF
4273 /* confdefs.h. */
4274 _ACEOF
4275 cat confdefs.h >>conftest.$ac_ext
4276 cat >>conftest.$ac_ext <<_ACEOF
4277 /* end confdefs.h. */
4278 $ac_includes_default
4280 main ()
4282 if ((int *) 0)
4283 return 0;
4284 if (sizeof (int))
4285 return 0;
4287 return 0;
4289 _ACEOF
4290 rm -f conftest.$ac_objext
4291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4292 (eval $ac_compile) 2>conftest.er1
4293 ac_status=$?
4294 grep -v '^ *+' conftest.er1 >conftest.err
4295 rm -f conftest.er1
4296 cat conftest.err >&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); } &&
4299 { ac_try='test -z "$ac_c_werror_flag"
4300 || test ! -s conftest.err'
4301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302 (eval $ac_try) 2>&5
4303 ac_status=$?
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; } &&
4306 { ac_try='test -s conftest.$ac_objext'
4307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4308 (eval $ac_try) 2>&5
4309 ac_status=$?
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }; }; then
4312 ac_cv_type_int=yes
4313 else
4314 echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4317 ac_cv_type_int=no
4319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4321 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4322 echo "${ECHO_T}$ac_cv_type_int" >&6
4324 echo "$as_me:$LINENO: checking size of int" >&5
4325 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4326 if test "${ac_cv_sizeof_int+set}" = set; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4328 else
4329 if test "$ac_cv_type_int" = yes; then
4330 # The cast to unsigned long works around a bug in the HP C Compiler
4331 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4332 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4333 # This bug is HP SR number 8606223364.
4334 if test "$cross_compiling" = yes; then
4335 # Depending upon the size, compute the lo and hi bounds.
4336 cat >conftest.$ac_ext <<_ACEOF
4337 /* confdefs.h. */
4338 _ACEOF
4339 cat confdefs.h >>conftest.$ac_ext
4340 cat >>conftest.$ac_ext <<_ACEOF
4341 /* end confdefs.h. */
4342 $ac_includes_default
4344 main ()
4346 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4347 test_array [0] = 0
4350 return 0;
4352 _ACEOF
4353 rm -f conftest.$ac_objext
4354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4355 (eval $ac_compile) 2>conftest.er1
4356 ac_status=$?
4357 grep -v '^ *+' conftest.er1 >conftest.err
4358 rm -f conftest.er1
4359 cat conftest.err >&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); } &&
4362 { ac_try='test -z "$ac_c_werror_flag"
4363 || test ! -s conftest.err'
4364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4365 (eval $ac_try) 2>&5
4366 ac_status=$?
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); }; } &&
4369 { ac_try='test -s conftest.$ac_objext'
4370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4371 (eval $ac_try) 2>&5
4372 ac_status=$?
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); }; }; then
4375 ac_lo=0 ac_mid=0
4376 while :; do
4377 cat >conftest.$ac_ext <<_ACEOF
4378 /* confdefs.h. */
4379 _ACEOF
4380 cat confdefs.h >>conftest.$ac_ext
4381 cat >>conftest.$ac_ext <<_ACEOF
4382 /* end confdefs.h. */
4383 $ac_includes_default
4385 main ()
4387 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4388 test_array [0] = 0
4391 return 0;
4393 _ACEOF
4394 rm -f conftest.$ac_objext
4395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4396 (eval $ac_compile) 2>conftest.er1
4397 ac_status=$?
4398 grep -v '^ *+' conftest.er1 >conftest.err
4399 rm -f conftest.er1
4400 cat conftest.err >&5
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); } &&
4403 { ac_try='test -z "$ac_c_werror_flag"
4404 || test ! -s conftest.err'
4405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406 (eval $ac_try) 2>&5
4407 ac_status=$?
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; } &&
4410 { ac_try='test -s conftest.$ac_objext'
4411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412 (eval $ac_try) 2>&5
4413 ac_status=$?
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }; }; then
4416 ac_hi=$ac_mid; break
4417 else
4418 echo "$as_me: failed program was:" >&5
4419 sed 's/^/| /' conftest.$ac_ext >&5
4421 ac_lo=`expr $ac_mid + 1`
4422 if test $ac_lo -le $ac_mid; then
4423 ac_lo= ac_hi=
4424 break
4426 ac_mid=`expr 2 '*' $ac_mid + 1`
4428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4429 done
4430 else
4431 echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4434 cat >conftest.$ac_ext <<_ACEOF
4435 /* confdefs.h. */
4436 _ACEOF
4437 cat confdefs.h >>conftest.$ac_ext
4438 cat >>conftest.$ac_ext <<_ACEOF
4439 /* end confdefs.h. */
4440 $ac_includes_default
4442 main ()
4444 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4445 test_array [0] = 0
4448 return 0;
4450 _ACEOF
4451 rm -f conftest.$ac_objext
4452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4453 (eval $ac_compile) 2>conftest.er1
4454 ac_status=$?
4455 grep -v '^ *+' conftest.er1 >conftest.err
4456 rm -f conftest.er1
4457 cat conftest.err >&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); } &&
4460 { ac_try='test -z "$ac_c_werror_flag"
4461 || test ! -s conftest.err'
4462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4463 (eval $ac_try) 2>&5
4464 ac_status=$?
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); }; } &&
4467 { ac_try='test -s conftest.$ac_objext'
4468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469 (eval $ac_try) 2>&5
4470 ac_status=$?
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; }; then
4473 ac_hi=-1 ac_mid=-1
4474 while :; do
4475 cat >conftest.$ac_ext <<_ACEOF
4476 /* confdefs.h. */
4477 _ACEOF
4478 cat confdefs.h >>conftest.$ac_ext
4479 cat >>conftest.$ac_ext <<_ACEOF
4480 /* end confdefs.h. */
4481 $ac_includes_default
4483 main ()
4485 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4486 test_array [0] = 0
4489 return 0;
4491 _ACEOF
4492 rm -f conftest.$ac_objext
4493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4494 (eval $ac_compile) 2>conftest.er1
4495 ac_status=$?
4496 grep -v '^ *+' conftest.er1 >conftest.err
4497 rm -f conftest.er1
4498 cat conftest.err >&5
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); } &&
4501 { ac_try='test -z "$ac_c_werror_flag"
4502 || test ! -s conftest.err'
4503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4504 (eval $ac_try) 2>&5
4505 ac_status=$?
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }; } &&
4508 { ac_try='test -s conftest.$ac_objext'
4509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4510 (eval $ac_try) 2>&5
4511 ac_status=$?
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); }; }; then
4514 ac_lo=$ac_mid; break
4515 else
4516 echo "$as_me: failed program was:" >&5
4517 sed 's/^/| /' conftest.$ac_ext >&5
4519 ac_hi=`expr '(' $ac_mid ')' - 1`
4520 if test $ac_mid -le $ac_hi; then
4521 ac_lo= ac_hi=
4522 break
4524 ac_mid=`expr 2 '*' $ac_mid`
4526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4527 done
4528 else
4529 echo "$as_me: failed program was:" >&5
4530 sed 's/^/| /' conftest.$ac_ext >&5
4532 ac_lo= ac_hi=
4534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4537 # Binary search between lo and hi bounds.
4538 while test "x$ac_lo" != "x$ac_hi"; do
4539 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4540 cat >conftest.$ac_ext <<_ACEOF
4541 /* confdefs.h. */
4542 _ACEOF
4543 cat confdefs.h >>conftest.$ac_ext
4544 cat >>conftest.$ac_ext <<_ACEOF
4545 /* end confdefs.h. */
4546 $ac_includes_default
4548 main ()
4550 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4551 test_array [0] = 0
4554 return 0;
4556 _ACEOF
4557 rm -f conftest.$ac_objext
4558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4559 (eval $ac_compile) 2>conftest.er1
4560 ac_status=$?
4561 grep -v '^ *+' conftest.er1 >conftest.err
4562 rm -f conftest.er1
4563 cat conftest.err >&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); } &&
4566 { ac_try='test -z "$ac_c_werror_flag"
4567 || test ! -s conftest.err'
4568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4569 (eval $ac_try) 2>&5
4570 ac_status=$?
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; } &&
4573 { ac_try='test -s conftest.$ac_objext'
4574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 (eval $ac_try) 2>&5
4576 ac_status=$?
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; }; then
4579 ac_hi=$ac_mid
4580 else
4581 echo "$as_me: failed program was:" >&5
4582 sed 's/^/| /' conftest.$ac_ext >&5
4584 ac_lo=`expr '(' $ac_mid ')' + 1`
4586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4587 done
4588 case $ac_lo in
4589 ?*) ac_cv_sizeof_int=$ac_lo;;
4590 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4591 See \`config.log' for more details." >&5
4592 echo "$as_me: error: cannot compute sizeof (int), 77
4593 See \`config.log' for more details." >&2;}
4594 { (exit 1); exit 1; }; } ;;
4595 esac
4596 else
4597 if test "$cross_compiling" = yes; then
4598 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4599 See \`config.log' for more details." >&5
4600 echo "$as_me: error: cannot run test program while cross compiling
4601 See \`config.log' for more details." >&2;}
4602 { (exit 1); exit 1; }; }
4603 else
4604 cat >conftest.$ac_ext <<_ACEOF
4605 /* confdefs.h. */
4606 _ACEOF
4607 cat confdefs.h >>conftest.$ac_ext
4608 cat >>conftest.$ac_ext <<_ACEOF
4609 /* end confdefs.h. */
4610 $ac_includes_default
4611 long longval () { return (long) (sizeof (int)); }
4612 unsigned long ulongval () { return (long) (sizeof (int)); }
4613 #include <stdio.h>
4614 #include <stdlib.h>
4616 main ()
4619 FILE *f = fopen ("conftest.val", "w");
4620 if (! f)
4621 exit (1);
4622 if (((long) (sizeof (int))) < 0)
4624 long i = longval ();
4625 if (i != ((long) (sizeof (int))))
4626 exit (1);
4627 fprintf (f, "%ld\n", i);
4629 else
4631 unsigned long i = ulongval ();
4632 if (i != ((long) (sizeof (int))))
4633 exit (1);
4634 fprintf (f, "%lu\n", i);
4636 exit (ferror (f) || fclose (f) != 0);
4639 return 0;
4641 _ACEOF
4642 rm -f conftest$ac_exeext
4643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4644 (eval $ac_link) 2>&5
4645 ac_status=$?
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649 (eval $ac_try) 2>&5
4650 ac_status=$?
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); }; }; then
4653 ac_cv_sizeof_int=`cat conftest.val`
4654 else
4655 echo "$as_me: program exited with status $ac_status" >&5
4656 echo "$as_me: failed program was:" >&5
4657 sed 's/^/| /' conftest.$ac_ext >&5
4659 ( exit $ac_status )
4660 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4661 See \`config.log' for more details." >&5
4662 echo "$as_me: error: cannot compute sizeof (int), 77
4663 See \`config.log' for more details." >&2;}
4664 { (exit 1); exit 1; }; }
4666 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4669 rm -f conftest.val
4670 else
4671 ac_cv_sizeof_int=0
4674 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4675 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4676 cat >>confdefs.h <<_ACEOF
4677 #define SIZEOF_INT $ac_cv_sizeof_int
4678 _ACEOF
4681 echo "$as_me:$LINENO: checking for long" >&5
4682 echo $ECHO_N "checking for long... $ECHO_C" >&6
4683 if test "${ac_cv_type_long+set}" = set; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4685 else
4686 cat >conftest.$ac_ext <<_ACEOF
4687 /* confdefs.h. */
4688 _ACEOF
4689 cat confdefs.h >>conftest.$ac_ext
4690 cat >>conftest.$ac_ext <<_ACEOF
4691 /* end confdefs.h. */
4692 $ac_includes_default
4694 main ()
4696 if ((long *) 0)
4697 return 0;
4698 if (sizeof (long))
4699 return 0;
4701 return 0;
4703 _ACEOF
4704 rm -f conftest.$ac_objext
4705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4706 (eval $ac_compile) 2>conftest.er1
4707 ac_status=$?
4708 grep -v '^ *+' conftest.er1 >conftest.err
4709 rm -f conftest.er1
4710 cat conftest.err >&5
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); } &&
4713 { ac_try='test -z "$ac_c_werror_flag"
4714 || test ! -s conftest.err'
4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4716 (eval $ac_try) 2>&5
4717 ac_status=$?
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; } &&
4720 { ac_try='test -s conftest.$ac_objext'
4721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4722 (eval $ac_try) 2>&5
4723 ac_status=$?
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); }; }; then
4726 ac_cv_type_long=yes
4727 else
4728 echo "$as_me: failed program was:" >&5
4729 sed 's/^/| /' conftest.$ac_ext >&5
4731 ac_cv_type_long=no
4733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4735 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4736 echo "${ECHO_T}$ac_cv_type_long" >&6
4738 echo "$as_me:$LINENO: checking size of long" >&5
4739 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4740 if test "${ac_cv_sizeof_long+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 else
4743 if test "$ac_cv_type_long" = yes; then
4744 # The cast to unsigned long works around a bug in the HP C Compiler
4745 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4746 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4747 # This bug is HP SR number 8606223364.
4748 if test "$cross_compiling" = yes; then
4749 # Depending upon the size, compute the lo and hi bounds.
4750 cat >conftest.$ac_ext <<_ACEOF
4751 /* confdefs.h. */
4752 _ACEOF
4753 cat confdefs.h >>conftest.$ac_ext
4754 cat >>conftest.$ac_ext <<_ACEOF
4755 /* end confdefs.h. */
4756 $ac_includes_default
4758 main ()
4760 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4761 test_array [0] = 0
4764 return 0;
4766 _ACEOF
4767 rm -f conftest.$ac_objext
4768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4769 (eval $ac_compile) 2>conftest.er1
4770 ac_status=$?
4771 grep -v '^ *+' conftest.er1 >conftest.err
4772 rm -f conftest.er1
4773 cat conftest.err >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } &&
4776 { ac_try='test -z "$ac_c_werror_flag"
4777 || test ! -s conftest.err'
4778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779 (eval $ac_try) 2>&5
4780 ac_status=$?
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); }; } &&
4783 { ac_try='test -s conftest.$ac_objext'
4784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785 (eval $ac_try) 2>&5
4786 ac_status=$?
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); }; }; then
4789 ac_lo=0 ac_mid=0
4790 while :; do
4791 cat >conftest.$ac_ext <<_ACEOF
4792 /* confdefs.h. */
4793 _ACEOF
4794 cat confdefs.h >>conftest.$ac_ext
4795 cat >>conftest.$ac_ext <<_ACEOF
4796 /* end confdefs.h. */
4797 $ac_includes_default
4799 main ()
4801 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4802 test_array [0] = 0
4805 return 0;
4807 _ACEOF
4808 rm -f conftest.$ac_objext
4809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4810 (eval $ac_compile) 2>conftest.er1
4811 ac_status=$?
4812 grep -v '^ *+' conftest.er1 >conftest.err
4813 rm -f conftest.er1
4814 cat conftest.err >&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); } &&
4817 { ac_try='test -z "$ac_c_werror_flag"
4818 || test ! -s conftest.err'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820 (eval $ac_try) 2>&5
4821 ac_status=$?
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; } &&
4824 { ac_try='test -s conftest.$ac_objext'
4825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826 (eval $ac_try) 2>&5
4827 ac_status=$?
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); }; }; then
4830 ac_hi=$ac_mid; break
4831 else
4832 echo "$as_me: failed program was:" >&5
4833 sed 's/^/| /' conftest.$ac_ext >&5
4835 ac_lo=`expr $ac_mid + 1`
4836 if test $ac_lo -le $ac_mid; then
4837 ac_lo= ac_hi=
4838 break
4840 ac_mid=`expr 2 '*' $ac_mid + 1`
4842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4843 done
4844 else
4845 echo "$as_me: failed program was:" >&5
4846 sed 's/^/| /' conftest.$ac_ext >&5
4848 cat >conftest.$ac_ext <<_ACEOF
4849 /* confdefs.h. */
4850 _ACEOF
4851 cat confdefs.h >>conftest.$ac_ext
4852 cat >>conftest.$ac_ext <<_ACEOF
4853 /* end confdefs.h. */
4854 $ac_includes_default
4856 main ()
4858 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4859 test_array [0] = 0
4862 return 0;
4864 _ACEOF
4865 rm -f conftest.$ac_objext
4866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4867 (eval $ac_compile) 2>conftest.er1
4868 ac_status=$?
4869 grep -v '^ *+' conftest.er1 >conftest.err
4870 rm -f conftest.er1
4871 cat conftest.err >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } &&
4874 { ac_try='test -z "$ac_c_werror_flag"
4875 || test ! -s conftest.err'
4876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877 (eval $ac_try) 2>&5
4878 ac_status=$?
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; } &&
4881 { ac_try='test -s conftest.$ac_objext'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883 (eval $ac_try) 2>&5
4884 ac_status=$?
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; }; then
4887 ac_hi=-1 ac_mid=-1
4888 while :; do
4889 cat >conftest.$ac_ext <<_ACEOF
4890 /* confdefs.h. */
4891 _ACEOF
4892 cat confdefs.h >>conftest.$ac_ext
4893 cat >>conftest.$ac_ext <<_ACEOF
4894 /* end confdefs.h. */
4895 $ac_includes_default
4897 main ()
4899 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4900 test_array [0] = 0
4903 return 0;
4905 _ACEOF
4906 rm -f conftest.$ac_objext
4907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4908 (eval $ac_compile) 2>conftest.er1
4909 ac_status=$?
4910 grep -v '^ *+' conftest.er1 >conftest.err
4911 rm -f conftest.er1
4912 cat conftest.err >&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); } &&
4915 { ac_try='test -z "$ac_c_werror_flag"
4916 || test ! -s conftest.err'
4917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918 (eval $ac_try) 2>&5
4919 ac_status=$?
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }; } &&
4922 { ac_try='test -s conftest.$ac_objext'
4923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924 (eval $ac_try) 2>&5
4925 ac_status=$?
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); }; }; then
4928 ac_lo=$ac_mid; break
4929 else
4930 echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4933 ac_hi=`expr '(' $ac_mid ')' - 1`
4934 if test $ac_mid -le $ac_hi; then
4935 ac_lo= ac_hi=
4936 break
4938 ac_mid=`expr 2 '*' $ac_mid`
4940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4941 done
4942 else
4943 echo "$as_me: failed program was:" >&5
4944 sed 's/^/| /' conftest.$ac_ext >&5
4946 ac_lo= ac_hi=
4948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4951 # Binary search between lo and hi bounds.
4952 while test "x$ac_lo" != "x$ac_hi"; do
4953 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4954 cat >conftest.$ac_ext <<_ACEOF
4955 /* confdefs.h. */
4956 _ACEOF
4957 cat confdefs.h >>conftest.$ac_ext
4958 cat >>conftest.$ac_ext <<_ACEOF
4959 /* end confdefs.h. */
4960 $ac_includes_default
4962 main ()
4964 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4965 test_array [0] = 0
4968 return 0;
4970 _ACEOF
4971 rm -f conftest.$ac_objext
4972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4973 (eval $ac_compile) 2>conftest.er1
4974 ac_status=$?
4975 grep -v '^ *+' conftest.er1 >conftest.err
4976 rm -f conftest.er1
4977 cat conftest.err >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); } &&
4980 { ac_try='test -z "$ac_c_werror_flag"
4981 || test ! -s conftest.err'
4982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4983 (eval $ac_try) 2>&5
4984 ac_status=$?
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); }; } &&
4987 { ac_try='test -s conftest.$ac_objext'
4988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4989 (eval $ac_try) 2>&5
4990 ac_status=$?
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); }; }; then
4993 ac_hi=$ac_mid
4994 else
4995 echo "$as_me: failed program was:" >&5
4996 sed 's/^/| /' conftest.$ac_ext >&5
4998 ac_lo=`expr '(' $ac_mid ')' + 1`
5000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5001 done
5002 case $ac_lo in
5003 ?*) ac_cv_sizeof_long=$ac_lo;;
5004 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5005 See \`config.log' for more details." >&5
5006 echo "$as_me: error: cannot compute sizeof (long), 77
5007 See \`config.log' for more details." >&2;}
5008 { (exit 1); exit 1; }; } ;;
5009 esac
5010 else
5011 if test "$cross_compiling" = yes; then
5012 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5013 See \`config.log' for more details." >&5
5014 echo "$as_me: error: cannot run test program while cross compiling
5015 See \`config.log' for more details." >&2;}
5016 { (exit 1); exit 1; }; }
5017 else
5018 cat >conftest.$ac_ext <<_ACEOF
5019 /* confdefs.h. */
5020 _ACEOF
5021 cat confdefs.h >>conftest.$ac_ext
5022 cat >>conftest.$ac_ext <<_ACEOF
5023 /* end confdefs.h. */
5024 $ac_includes_default
5025 long longval () { return (long) (sizeof (long)); }
5026 unsigned long ulongval () { return (long) (sizeof (long)); }
5027 #include <stdio.h>
5028 #include <stdlib.h>
5030 main ()
5033 FILE *f = fopen ("conftest.val", "w");
5034 if (! f)
5035 exit (1);
5036 if (((long) (sizeof (long))) < 0)
5038 long i = longval ();
5039 if (i != ((long) (sizeof (long))))
5040 exit (1);
5041 fprintf (f, "%ld\n", i);
5043 else
5045 unsigned long i = ulongval ();
5046 if (i != ((long) (sizeof (long))))
5047 exit (1);
5048 fprintf (f, "%lu\n", i);
5050 exit (ferror (f) || fclose (f) != 0);
5053 return 0;
5055 _ACEOF
5056 rm -f conftest$ac_exeext
5057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5058 (eval $ac_link) 2>&5
5059 ac_status=$?
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5063 (eval $ac_try) 2>&5
5064 ac_status=$?
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); }; }; then
5067 ac_cv_sizeof_long=`cat conftest.val`
5068 else
5069 echo "$as_me: program exited with status $ac_status" >&5
5070 echo "$as_me: failed program was:" >&5
5071 sed 's/^/| /' conftest.$ac_ext >&5
5073 ( exit $ac_status )
5074 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5075 See \`config.log' for more details." >&5
5076 echo "$as_me: error: cannot compute sizeof (long), 77
5077 See \`config.log' for more details." >&2;}
5078 { (exit 1); exit 1; }; }
5080 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5083 rm -f conftest.val
5084 else
5085 ac_cv_sizeof_long=0
5088 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5089 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5090 cat >>confdefs.h <<_ACEOF
5091 #define SIZEOF_LONG $ac_cv_sizeof_long
5092 _ACEOF
5112 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
5114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5115 echo "$as_me:$LINENO: checking for $ac_func" >&5
5116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5117 if eval "test \"\${$as_ac_var+set}\" = set"; then
5118 echo $ECHO_N "(cached) $ECHO_C" >&6
5119 else
5120 cat >conftest.$ac_ext <<_ACEOF
5121 /* confdefs.h. */
5122 _ACEOF
5123 cat confdefs.h >>conftest.$ac_ext
5124 cat >>conftest.$ac_ext <<_ACEOF
5125 /* end confdefs.h. */
5126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5128 #define $ac_func innocuous_$ac_func
5130 /* System header to define __stub macros and hopefully few prototypes,
5131 which can conflict with char $ac_func (); below.
5132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5133 <limits.h> exists even on freestanding compilers. */
5135 #ifdef __STDC__
5136 # include <limits.h>
5137 #else
5138 # include <assert.h>
5139 #endif
5141 #undef $ac_func
5143 /* Override any gcc2 internal prototype to avoid an error. */
5144 #ifdef __cplusplus
5145 extern "C"
5147 #endif
5148 /* We use char because int might match the return type of a gcc2
5149 builtin and then its argument prototype would still apply. */
5150 char $ac_func ();
5151 /* The GNU C library defines this for functions which it implements
5152 to always fail with ENOSYS. Some functions are actually named
5153 something starting with __ and the normal name is an alias. */
5154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5155 choke me
5156 #else
5157 char (*f) () = $ac_func;
5158 #endif
5159 #ifdef __cplusplus
5161 #endif
5164 main ()
5166 return f != $ac_func;
5168 return 0;
5170 _ACEOF
5171 rm -f conftest.$ac_objext conftest$ac_exeext
5172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5173 (eval $ac_link) 2>conftest.er1
5174 ac_status=$?
5175 grep -v '^ *+' conftest.er1 >conftest.err
5176 rm -f conftest.er1
5177 cat conftest.err >&5
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); } &&
5180 { ac_try='test -z "$ac_c_werror_flag"
5181 || test ! -s conftest.err'
5182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5183 (eval $ac_try) 2>&5
5184 ac_status=$?
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); }; } &&
5187 { ac_try='test -s conftest$ac_exeext'
5188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5189 (eval $ac_try) 2>&5
5190 ac_status=$?
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); }; }; then
5193 eval "$as_ac_var=yes"
5194 else
5195 echo "$as_me: failed program was:" >&5
5196 sed 's/^/| /' conftest.$ac_ext >&5
5198 eval "$as_ac_var=no"
5200 rm -f conftest.err conftest.$ac_objext \
5201 conftest$ac_exeext conftest.$ac_ext
5203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5205 if test `eval echo '${'$as_ac_var'}'` = yes; then
5206 cat >>confdefs.h <<_ACEOF
5207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5208 _ACEOF
5211 done
5213 echo "$as_me:$LINENO: checking whether abort is declared" >&5
5214 echo $ECHO_N "checking whether abort is declared... $ECHO_C" >&6
5215 if test "${ac_cv_have_decl_abort+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 else
5218 cat >conftest.$ac_ext <<_ACEOF
5219 /* confdefs.h. */
5220 _ACEOF
5221 cat confdefs.h >>conftest.$ac_ext
5222 cat >>conftest.$ac_ext <<_ACEOF
5223 /* end confdefs.h. */
5224 $ac_includes_default
5226 main ()
5228 #ifndef abort
5229 char *p = (char *) abort;
5230 #endif
5233 return 0;
5235 _ACEOF
5236 rm -f conftest.$ac_objext
5237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5238 (eval $ac_compile) 2>conftest.er1
5239 ac_status=$?
5240 grep -v '^ *+' conftest.er1 >conftest.err
5241 rm -f conftest.er1
5242 cat conftest.err >&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); } &&
5245 { ac_try='test -z "$ac_c_werror_flag"
5246 || test ! -s conftest.err'
5247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5248 (eval $ac_try) 2>&5
5249 ac_status=$?
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); }; } &&
5252 { ac_try='test -s conftest.$ac_objext'
5253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5254 (eval $ac_try) 2>&5
5255 ac_status=$?
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); }; }; then
5258 ac_cv_have_decl_abort=yes
5259 else
5260 echo "$as_me: failed program was:" >&5
5261 sed 's/^/| /' conftest.$ac_ext >&5
5263 ac_cv_have_decl_abort=no
5265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5267 echo "$as_me:$LINENO: result: $ac_cv_have_decl_abort" >&5
5268 echo "${ECHO_T}$ac_cv_have_decl_abort" >&6
5269 if test $ac_cv_have_decl_abort = yes; then
5271 cat >>confdefs.h <<_ACEOF
5272 #define HAVE_DECL_ABORT 1
5273 _ACEOF
5276 else
5277 cat >>confdefs.h <<_ACEOF
5278 #define HAVE_DECL_ABORT 0
5279 _ACEOF
5283 echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
5284 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
5285 if test "${ac_cv_have_decl_asprintf+set}" = set; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5287 else
5288 cat >conftest.$ac_ext <<_ACEOF
5289 /* confdefs.h. */
5290 _ACEOF
5291 cat confdefs.h >>conftest.$ac_ext
5292 cat >>conftest.$ac_ext <<_ACEOF
5293 /* end confdefs.h. */
5294 $ac_includes_default
5296 main ()
5298 #ifndef asprintf
5299 char *p = (char *) asprintf;
5300 #endif
5303 return 0;
5305 _ACEOF
5306 rm -f conftest.$ac_objext
5307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5308 (eval $ac_compile) 2>conftest.er1
5309 ac_status=$?
5310 grep -v '^ *+' conftest.er1 >conftest.err
5311 rm -f conftest.er1
5312 cat conftest.err >&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); } &&
5315 { ac_try='test -z "$ac_c_werror_flag"
5316 || test ! -s conftest.err'
5317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318 (eval $ac_try) 2>&5
5319 ac_status=$?
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); }; } &&
5322 { ac_try='test -s conftest.$ac_objext'
5323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5324 (eval $ac_try) 2>&5
5325 ac_status=$?
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); }; }; then
5328 ac_cv_have_decl_asprintf=yes
5329 else
5330 echo "$as_me: failed program was:" >&5
5331 sed 's/^/| /' conftest.$ac_ext >&5
5333 ac_cv_have_decl_asprintf=no
5335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5337 echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
5338 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
5339 if test $ac_cv_have_decl_asprintf = yes; then
5341 cat >>confdefs.h <<_ACEOF
5342 #define HAVE_DECL_ASPRINTF 1
5343 _ACEOF
5346 else
5347 cat >>confdefs.h <<_ACEOF
5348 #define HAVE_DECL_ASPRINTF 0
5349 _ACEOF
5353 echo "$as_me:$LINENO: checking whether basename is declared" >&5
5354 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
5355 if test "${ac_cv_have_decl_basename+set}" = set; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
5357 else
5358 cat >conftest.$ac_ext <<_ACEOF
5359 /* confdefs.h. */
5360 _ACEOF
5361 cat confdefs.h >>conftest.$ac_ext
5362 cat >>conftest.$ac_ext <<_ACEOF
5363 /* end confdefs.h. */
5364 $ac_includes_default
5366 main ()
5368 #ifndef basename
5369 char *p = (char *) basename;
5370 #endif
5373 return 0;
5375 _ACEOF
5376 rm -f conftest.$ac_objext
5377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5378 (eval $ac_compile) 2>conftest.er1
5379 ac_status=$?
5380 grep -v '^ *+' conftest.er1 >conftest.err
5381 rm -f conftest.er1
5382 cat conftest.err >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } &&
5385 { ac_try='test -z "$ac_c_werror_flag"
5386 || test ! -s conftest.err'
5387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5388 (eval $ac_try) 2>&5
5389 ac_status=$?
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); }; } &&
5392 { ac_try='test -s conftest.$ac_objext'
5393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5394 (eval $ac_try) 2>&5
5395 ac_status=$?
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); }; }; then
5398 ac_cv_have_decl_basename=yes
5399 else
5400 echo "$as_me: failed program was:" >&5
5401 sed 's/^/| /' conftest.$ac_ext >&5
5403 ac_cv_have_decl_basename=no
5405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5407 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
5408 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
5409 if test $ac_cv_have_decl_basename = yes; then
5411 cat >>confdefs.h <<_ACEOF
5412 #define HAVE_DECL_BASENAME 1
5413 _ACEOF
5416 else
5417 cat >>confdefs.h <<_ACEOF
5418 #define HAVE_DECL_BASENAME 0
5419 _ACEOF
5423 echo "$as_me:$LINENO: checking whether errno is declared" >&5
5424 echo $ECHO_N "checking whether errno is declared... $ECHO_C" >&6
5425 if test "${ac_cv_have_decl_errno+set}" = set; then
5426 echo $ECHO_N "(cached) $ECHO_C" >&6
5427 else
5428 cat >conftest.$ac_ext <<_ACEOF
5429 /* confdefs.h. */
5430 _ACEOF
5431 cat confdefs.h >>conftest.$ac_ext
5432 cat >>conftest.$ac_ext <<_ACEOF
5433 /* end confdefs.h. */
5434 $ac_includes_default
5436 main ()
5438 #ifndef errno
5439 char *p = (char *) errno;
5440 #endif
5443 return 0;
5445 _ACEOF
5446 rm -f conftest.$ac_objext
5447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5448 (eval $ac_compile) 2>conftest.er1
5449 ac_status=$?
5450 grep -v '^ *+' conftest.er1 >conftest.err
5451 rm -f conftest.er1
5452 cat conftest.err >&5
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); } &&
5455 { ac_try='test -z "$ac_c_werror_flag"
5456 || test ! -s conftest.err'
5457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5458 (eval $ac_try) 2>&5
5459 ac_status=$?
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); }; } &&
5462 { ac_try='test -s conftest.$ac_objext'
5463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5464 (eval $ac_try) 2>&5
5465 ac_status=$?
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }; }; then
5468 ac_cv_have_decl_errno=yes
5469 else
5470 echo "$as_me: failed program was:" >&5
5471 sed 's/^/| /' conftest.$ac_ext >&5
5473 ac_cv_have_decl_errno=no
5475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5477 echo "$as_me:$LINENO: result: $ac_cv_have_decl_errno" >&5
5478 echo "${ECHO_T}$ac_cv_have_decl_errno" >&6
5479 if test $ac_cv_have_decl_errno = yes; then
5481 cat >>confdefs.h <<_ACEOF
5482 #define HAVE_DECL_ERRNO 1
5483 _ACEOF
5486 else
5487 cat >>confdefs.h <<_ACEOF
5488 #define HAVE_DECL_ERRNO 0
5489 _ACEOF
5493 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
5494 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
5495 if test "${ac_cv_have_decl_getopt+set}" = set; then
5496 echo $ECHO_N "(cached) $ECHO_C" >&6
5497 else
5498 cat >conftest.$ac_ext <<_ACEOF
5499 /* confdefs.h. */
5500 _ACEOF
5501 cat confdefs.h >>conftest.$ac_ext
5502 cat >>conftest.$ac_ext <<_ACEOF
5503 /* end confdefs.h. */
5504 $ac_includes_default
5506 main ()
5508 #ifndef getopt
5509 char *p = (char *) getopt;
5510 #endif
5513 return 0;
5515 _ACEOF
5516 rm -f conftest.$ac_objext
5517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5518 (eval $ac_compile) 2>conftest.er1
5519 ac_status=$?
5520 grep -v '^ *+' conftest.er1 >conftest.err
5521 rm -f conftest.er1
5522 cat conftest.err >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } &&
5525 { ac_try='test -z "$ac_c_werror_flag"
5526 || test ! -s conftest.err'
5527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5528 (eval $ac_try) 2>&5
5529 ac_status=$?
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); }; } &&
5532 { ac_try='test -s conftest.$ac_objext'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534 (eval $ac_try) 2>&5
5535 ac_status=$?
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; }; then
5538 ac_cv_have_decl_getopt=yes
5539 else
5540 echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5543 ac_cv_have_decl_getopt=no
5545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5547 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
5548 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
5549 if test $ac_cv_have_decl_getopt = yes; then
5551 cat >>confdefs.h <<_ACEOF
5552 #define HAVE_DECL_GETOPT 1
5553 _ACEOF
5556 else
5557 cat >>confdefs.h <<_ACEOF
5558 #define HAVE_DECL_GETOPT 0
5559 _ACEOF
5563 echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
5564 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
5565 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
5566 echo $ECHO_N "(cached) $ECHO_C" >&6
5567 else
5568 cat >conftest.$ac_ext <<_ACEOF
5569 /* confdefs.h. */
5570 _ACEOF
5571 cat confdefs.h >>conftest.$ac_ext
5572 cat >>conftest.$ac_ext <<_ACEOF
5573 /* end confdefs.h. */
5574 $ac_includes_default
5576 main ()
5578 #ifndef clearerr_unlocked
5579 char *p = (char *) clearerr_unlocked;
5580 #endif
5583 return 0;
5585 _ACEOF
5586 rm -f conftest.$ac_objext
5587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5588 (eval $ac_compile) 2>conftest.er1
5589 ac_status=$?
5590 grep -v '^ *+' conftest.er1 >conftest.err
5591 rm -f conftest.er1
5592 cat conftest.err >&5
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); } &&
5595 { ac_try='test -z "$ac_c_werror_flag"
5596 || test ! -s conftest.err'
5597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5598 (eval $ac_try) 2>&5
5599 ac_status=$?
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); }; } &&
5602 { ac_try='test -s conftest.$ac_objext'
5603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5604 (eval $ac_try) 2>&5
5605 ac_status=$?
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); }; }; then
5608 ac_cv_have_decl_clearerr_unlocked=yes
5609 else
5610 echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5613 ac_cv_have_decl_clearerr_unlocked=no
5615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5617 echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
5618 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
5619 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
5621 cat >>confdefs.h <<_ACEOF
5622 #define HAVE_DECL_CLEARERR_UNLOCKED 1
5623 _ACEOF
5626 else
5627 cat >>confdefs.h <<_ACEOF
5628 #define HAVE_DECL_CLEARERR_UNLOCKED 0
5629 _ACEOF
5633 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
5634 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
5635 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5637 else
5638 cat >conftest.$ac_ext <<_ACEOF
5639 /* confdefs.h. */
5640 _ACEOF
5641 cat confdefs.h >>conftest.$ac_ext
5642 cat >>conftest.$ac_ext <<_ACEOF
5643 /* end confdefs.h. */
5644 $ac_includes_default
5646 main ()
5648 #ifndef feof_unlocked
5649 char *p = (char *) feof_unlocked;
5650 #endif
5653 return 0;
5655 _ACEOF
5656 rm -f conftest.$ac_objext
5657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5658 (eval $ac_compile) 2>conftest.er1
5659 ac_status=$?
5660 grep -v '^ *+' conftest.er1 >conftest.err
5661 rm -f conftest.er1
5662 cat conftest.err >&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); } &&
5665 { ac_try='test -z "$ac_c_werror_flag"
5666 || test ! -s conftest.err'
5667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668 (eval $ac_try) 2>&5
5669 ac_status=$?
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); }; } &&
5672 { ac_try='test -s conftest.$ac_objext'
5673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674 (eval $ac_try) 2>&5
5675 ac_status=$?
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; }; then
5678 ac_cv_have_decl_feof_unlocked=yes
5679 else
5680 echo "$as_me: failed program was:" >&5
5681 sed 's/^/| /' conftest.$ac_ext >&5
5683 ac_cv_have_decl_feof_unlocked=no
5685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5687 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
5688 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
5689 if test $ac_cv_have_decl_feof_unlocked = yes; then
5691 cat >>confdefs.h <<_ACEOF
5692 #define HAVE_DECL_FEOF_UNLOCKED 1
5693 _ACEOF
5696 else
5697 cat >>confdefs.h <<_ACEOF
5698 #define HAVE_DECL_FEOF_UNLOCKED 0
5699 _ACEOF
5703 echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
5704 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
5705 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
5706 echo $ECHO_N "(cached) $ECHO_C" >&6
5707 else
5708 cat >conftest.$ac_ext <<_ACEOF
5709 /* confdefs.h. */
5710 _ACEOF
5711 cat confdefs.h >>conftest.$ac_ext
5712 cat >>conftest.$ac_ext <<_ACEOF
5713 /* end confdefs.h. */
5714 $ac_includes_default
5716 main ()
5718 #ifndef ferror_unlocked
5719 char *p = (char *) ferror_unlocked;
5720 #endif
5723 return 0;
5725 _ACEOF
5726 rm -f conftest.$ac_objext
5727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5728 (eval $ac_compile) 2>conftest.er1
5729 ac_status=$?
5730 grep -v '^ *+' conftest.er1 >conftest.err
5731 rm -f conftest.er1
5732 cat conftest.err >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } &&
5735 { ac_try='test -z "$ac_c_werror_flag"
5736 || test ! -s conftest.err'
5737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5738 (eval $ac_try) 2>&5
5739 ac_status=$?
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); }; } &&
5742 { ac_try='test -s conftest.$ac_objext'
5743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744 (eval $ac_try) 2>&5
5745 ac_status=$?
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; }; then
5748 ac_cv_have_decl_ferror_unlocked=yes
5749 else
5750 echo "$as_me: failed program was:" >&5
5751 sed 's/^/| /' conftest.$ac_ext >&5
5753 ac_cv_have_decl_ferror_unlocked=no
5755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5757 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
5758 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
5759 if test $ac_cv_have_decl_ferror_unlocked = yes; then
5761 cat >>confdefs.h <<_ACEOF
5762 #define HAVE_DECL_FERROR_UNLOCKED 1
5763 _ACEOF
5766 else
5767 cat >>confdefs.h <<_ACEOF
5768 #define HAVE_DECL_FERROR_UNLOCKED 0
5769 _ACEOF
5773 echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
5774 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
5775 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5777 else
5778 cat >conftest.$ac_ext <<_ACEOF
5779 /* confdefs.h. */
5780 _ACEOF
5781 cat confdefs.h >>conftest.$ac_ext
5782 cat >>conftest.$ac_ext <<_ACEOF
5783 /* end confdefs.h. */
5784 $ac_includes_default
5786 main ()
5788 #ifndef fflush_unlocked
5789 char *p = (char *) fflush_unlocked;
5790 #endif
5793 return 0;
5795 _ACEOF
5796 rm -f conftest.$ac_objext
5797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5798 (eval $ac_compile) 2>conftest.er1
5799 ac_status=$?
5800 grep -v '^ *+' conftest.er1 >conftest.err
5801 rm -f conftest.er1
5802 cat conftest.err >&5
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); } &&
5805 { ac_try='test -z "$ac_c_werror_flag"
5806 || test ! -s conftest.err'
5807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5808 (eval $ac_try) 2>&5
5809 ac_status=$?
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); }; } &&
5812 { ac_try='test -s conftest.$ac_objext'
5813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814 (eval $ac_try) 2>&5
5815 ac_status=$?
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); }; }; then
5818 ac_cv_have_decl_fflush_unlocked=yes
5819 else
5820 echo "$as_me: failed program was:" >&5
5821 sed 's/^/| /' conftest.$ac_ext >&5
5823 ac_cv_have_decl_fflush_unlocked=no
5825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5827 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
5828 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
5829 if test $ac_cv_have_decl_fflush_unlocked = yes; then
5831 cat >>confdefs.h <<_ACEOF
5832 #define HAVE_DECL_FFLUSH_UNLOCKED 1
5833 _ACEOF
5836 else
5837 cat >>confdefs.h <<_ACEOF
5838 #define HAVE_DECL_FFLUSH_UNLOCKED 0
5839 _ACEOF
5843 echo "$as_me:$LINENO: checking whether fgetc_unlocked is declared" >&5
5844 echo $ECHO_N "checking whether fgetc_unlocked is declared... $ECHO_C" >&6
5845 if test "${ac_cv_have_decl_fgetc_unlocked+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5847 else
5848 cat >conftest.$ac_ext <<_ACEOF
5849 /* confdefs.h. */
5850 _ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5854 $ac_includes_default
5856 main ()
5858 #ifndef fgetc_unlocked
5859 char *p = (char *) fgetc_unlocked;
5860 #endif
5863 return 0;
5865 _ACEOF
5866 rm -f conftest.$ac_objext
5867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5868 (eval $ac_compile) 2>conftest.er1
5869 ac_status=$?
5870 grep -v '^ *+' conftest.er1 >conftest.err
5871 rm -f conftest.er1
5872 cat conftest.err >&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); } &&
5875 { ac_try='test -z "$ac_c_werror_flag"
5876 || test ! -s conftest.err'
5877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 (eval $ac_try) 2>&5
5879 ac_status=$?
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; } &&
5882 { ac_try='test -s conftest.$ac_objext'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884 (eval $ac_try) 2>&5
5885 ac_status=$?
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; }; then
5888 ac_cv_have_decl_fgetc_unlocked=yes
5889 else
5890 echo "$as_me: failed program was:" >&5
5891 sed 's/^/| /' conftest.$ac_ext >&5
5893 ac_cv_have_decl_fgetc_unlocked=no
5895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5897 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgetc_unlocked" >&5
5898 echo "${ECHO_T}$ac_cv_have_decl_fgetc_unlocked" >&6
5899 if test $ac_cv_have_decl_fgetc_unlocked = yes; then
5901 cat >>confdefs.h <<_ACEOF
5902 #define HAVE_DECL_FGETC_UNLOCKED 1
5903 _ACEOF
5906 else
5907 cat >>confdefs.h <<_ACEOF
5908 #define HAVE_DECL_FGETC_UNLOCKED 0
5909 _ACEOF
5913 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
5914 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
5915 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
5916 echo $ECHO_N "(cached) $ECHO_C" >&6
5917 else
5918 cat >conftest.$ac_ext <<_ACEOF
5919 /* confdefs.h. */
5920 _ACEOF
5921 cat confdefs.h >>conftest.$ac_ext
5922 cat >>conftest.$ac_ext <<_ACEOF
5923 /* end confdefs.h. */
5924 $ac_includes_default
5926 main ()
5928 #ifndef fgets_unlocked
5929 char *p = (char *) fgets_unlocked;
5930 #endif
5933 return 0;
5935 _ACEOF
5936 rm -f conftest.$ac_objext
5937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5938 (eval $ac_compile) 2>conftest.er1
5939 ac_status=$?
5940 grep -v '^ *+' conftest.er1 >conftest.err
5941 rm -f conftest.er1
5942 cat conftest.err >&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); } &&
5945 { ac_try='test -z "$ac_c_werror_flag"
5946 || test ! -s conftest.err'
5947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948 (eval $ac_try) 2>&5
5949 ac_status=$?
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }; } &&
5952 { ac_try='test -s conftest.$ac_objext'
5953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5954 (eval $ac_try) 2>&5
5955 ac_status=$?
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); }; }; then
5958 ac_cv_have_decl_fgets_unlocked=yes
5959 else
5960 echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.$ac_ext >&5
5963 ac_cv_have_decl_fgets_unlocked=no
5965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5967 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
5968 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
5969 if test $ac_cv_have_decl_fgets_unlocked = yes; then
5971 cat >>confdefs.h <<_ACEOF
5972 #define HAVE_DECL_FGETS_UNLOCKED 1
5973 _ACEOF
5976 else
5977 cat >>confdefs.h <<_ACEOF
5978 #define HAVE_DECL_FGETS_UNLOCKED 0
5979 _ACEOF
5983 echo "$as_me:$LINENO: checking whether fileno_unlocked is declared" >&5
5984 echo $ECHO_N "checking whether fileno_unlocked is declared... $ECHO_C" >&6
5985 if test "${ac_cv_have_decl_fileno_unlocked+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988 cat >conftest.$ac_ext <<_ACEOF
5989 /* confdefs.h. */
5990 _ACEOF
5991 cat confdefs.h >>conftest.$ac_ext
5992 cat >>conftest.$ac_ext <<_ACEOF
5993 /* end confdefs.h. */
5994 $ac_includes_default
5996 main ()
5998 #ifndef fileno_unlocked
5999 char *p = (char *) fileno_unlocked;
6000 #endif
6003 return 0;
6005 _ACEOF
6006 rm -f conftest.$ac_objext
6007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6008 (eval $ac_compile) 2>conftest.er1
6009 ac_status=$?
6010 grep -v '^ *+' conftest.er1 >conftest.err
6011 rm -f conftest.er1
6012 cat conftest.err >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } &&
6015 { ac_try='test -z "$ac_c_werror_flag"
6016 || test ! -s conftest.err'
6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018 (eval $ac_try) 2>&5
6019 ac_status=$?
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; } &&
6022 { ac_try='test -s conftest.$ac_objext'
6023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024 (eval $ac_try) 2>&5
6025 ac_status=$?
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); }; }; then
6028 ac_cv_have_decl_fileno_unlocked=yes
6029 else
6030 echo "$as_me: failed program was:" >&5
6031 sed 's/^/| /' conftest.$ac_ext >&5
6033 ac_cv_have_decl_fileno_unlocked=no
6035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6037 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fileno_unlocked" >&5
6038 echo "${ECHO_T}$ac_cv_have_decl_fileno_unlocked" >&6
6039 if test $ac_cv_have_decl_fileno_unlocked = yes; then
6041 cat >>confdefs.h <<_ACEOF
6042 #define HAVE_DECL_FILENO_UNLOCKED 1
6043 _ACEOF
6046 else
6047 cat >>confdefs.h <<_ACEOF
6048 #define HAVE_DECL_FILENO_UNLOCKED 0
6049 _ACEOF
6053 echo "$as_me:$LINENO: checking whether fprintf_unlocked is declared" >&5
6054 echo $ECHO_N "checking whether fprintf_unlocked is declared... $ECHO_C" >&6
6055 if test "${ac_cv_have_decl_fprintf_unlocked+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 else
6058 cat >conftest.$ac_ext <<_ACEOF
6059 /* confdefs.h. */
6060 _ACEOF
6061 cat confdefs.h >>conftest.$ac_ext
6062 cat >>conftest.$ac_ext <<_ACEOF
6063 /* end confdefs.h. */
6064 $ac_includes_default
6066 main ()
6068 #ifndef fprintf_unlocked
6069 char *p = (char *) fprintf_unlocked;
6070 #endif
6073 return 0;
6075 _ACEOF
6076 rm -f conftest.$ac_objext
6077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6078 (eval $ac_compile) 2>conftest.er1
6079 ac_status=$?
6080 grep -v '^ *+' conftest.er1 >conftest.err
6081 rm -f conftest.er1
6082 cat conftest.err >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } &&
6085 { ac_try='test -z "$ac_c_werror_flag"
6086 || test ! -s conftest.err'
6087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088 (eval $ac_try) 2>&5
6089 ac_status=$?
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }; } &&
6092 { ac_try='test -s conftest.$ac_objext'
6093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 (eval $ac_try) 2>&5
6095 ac_status=$?
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; }; then
6098 ac_cv_have_decl_fprintf_unlocked=yes
6099 else
6100 echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6103 ac_cv_have_decl_fprintf_unlocked=no
6105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6107 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf_unlocked" >&5
6108 echo "${ECHO_T}$ac_cv_have_decl_fprintf_unlocked" >&6
6109 if test $ac_cv_have_decl_fprintf_unlocked = yes; then
6111 cat >>confdefs.h <<_ACEOF
6112 #define HAVE_DECL_FPRINTF_UNLOCKED 1
6113 _ACEOF
6116 else
6117 cat >>confdefs.h <<_ACEOF
6118 #define HAVE_DECL_FPRINTF_UNLOCKED 0
6119 _ACEOF
6123 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
6124 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
6125 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
6126 echo $ECHO_N "(cached) $ECHO_C" >&6
6127 else
6128 cat >conftest.$ac_ext <<_ACEOF
6129 /* confdefs.h. */
6130 _ACEOF
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h. */
6134 $ac_includes_default
6136 main ()
6138 #ifndef fputc_unlocked
6139 char *p = (char *) fputc_unlocked;
6140 #endif
6143 return 0;
6145 _ACEOF
6146 rm -f conftest.$ac_objext
6147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6148 (eval $ac_compile) 2>conftest.er1
6149 ac_status=$?
6150 grep -v '^ *+' conftest.er1 >conftest.err
6151 rm -f conftest.er1
6152 cat conftest.err >&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); } &&
6155 { ac_try='test -z "$ac_c_werror_flag"
6156 || test ! -s conftest.err'
6157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158 (eval $ac_try) 2>&5
6159 ac_status=$?
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; } &&
6162 { ac_try='test -s conftest.$ac_objext'
6163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6164 (eval $ac_try) 2>&5
6165 ac_status=$?
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); }; }; then
6168 ac_cv_have_decl_fputc_unlocked=yes
6169 else
6170 echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.$ac_ext >&5
6173 ac_cv_have_decl_fputc_unlocked=no
6175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6177 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
6178 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
6179 if test $ac_cv_have_decl_fputc_unlocked = yes; then
6181 cat >>confdefs.h <<_ACEOF
6182 #define HAVE_DECL_FPUTC_UNLOCKED 1
6183 _ACEOF
6186 else
6187 cat >>confdefs.h <<_ACEOF
6188 #define HAVE_DECL_FPUTC_UNLOCKED 0
6189 _ACEOF
6193 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
6194 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
6195 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
6196 echo $ECHO_N "(cached) $ECHO_C" >&6
6197 else
6198 cat >conftest.$ac_ext <<_ACEOF
6199 /* confdefs.h. */
6200 _ACEOF
6201 cat confdefs.h >>conftest.$ac_ext
6202 cat >>conftest.$ac_ext <<_ACEOF
6203 /* end confdefs.h. */
6204 $ac_includes_default
6206 main ()
6208 #ifndef fputs_unlocked
6209 char *p = (char *) fputs_unlocked;
6210 #endif
6213 return 0;
6215 _ACEOF
6216 rm -f conftest.$ac_objext
6217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6218 (eval $ac_compile) 2>conftest.er1
6219 ac_status=$?
6220 grep -v '^ *+' conftest.er1 >conftest.err
6221 rm -f conftest.er1
6222 cat conftest.err >&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); } &&
6225 { ac_try='test -z "$ac_c_werror_flag"
6226 || test ! -s conftest.err'
6227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6228 (eval $ac_try) 2>&5
6229 ac_status=$?
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; } &&
6232 { ac_try='test -s conftest.$ac_objext'
6233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6234 (eval $ac_try) 2>&5
6235 ac_status=$?
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); }; }; then
6238 ac_cv_have_decl_fputs_unlocked=yes
6239 else
6240 echo "$as_me: failed program was:" >&5
6241 sed 's/^/| /' conftest.$ac_ext >&5
6243 ac_cv_have_decl_fputs_unlocked=no
6245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6247 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
6248 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
6249 if test $ac_cv_have_decl_fputs_unlocked = yes; then
6251 cat >>confdefs.h <<_ACEOF
6252 #define HAVE_DECL_FPUTS_UNLOCKED 1
6253 _ACEOF
6256 else
6257 cat >>confdefs.h <<_ACEOF
6258 #define HAVE_DECL_FPUTS_UNLOCKED 0
6259 _ACEOF
6263 echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
6264 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
6265 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
6266 echo $ECHO_N "(cached) $ECHO_C" >&6
6267 else
6268 cat >conftest.$ac_ext <<_ACEOF
6269 /* confdefs.h. */
6270 _ACEOF
6271 cat confdefs.h >>conftest.$ac_ext
6272 cat >>conftest.$ac_ext <<_ACEOF
6273 /* end confdefs.h. */
6274 $ac_includes_default
6276 main ()
6278 #ifndef fread_unlocked
6279 char *p = (char *) fread_unlocked;
6280 #endif
6283 return 0;
6285 _ACEOF
6286 rm -f conftest.$ac_objext
6287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6288 (eval $ac_compile) 2>conftest.er1
6289 ac_status=$?
6290 grep -v '^ *+' conftest.er1 >conftest.err
6291 rm -f conftest.er1
6292 cat conftest.err >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); } &&
6295 { ac_try='test -z "$ac_c_werror_flag"
6296 || test ! -s conftest.err'
6297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298 (eval $ac_try) 2>&5
6299 ac_status=$?
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); }; } &&
6302 { ac_try='test -s conftest.$ac_objext'
6303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6304 (eval $ac_try) 2>&5
6305 ac_status=$?
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); }; }; then
6308 ac_cv_have_decl_fread_unlocked=yes
6309 else
6310 echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.$ac_ext >&5
6313 ac_cv_have_decl_fread_unlocked=no
6315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6317 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
6318 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
6319 if test $ac_cv_have_decl_fread_unlocked = yes; then
6321 cat >>confdefs.h <<_ACEOF
6322 #define HAVE_DECL_FREAD_UNLOCKED 1
6323 _ACEOF
6326 else
6327 cat >>confdefs.h <<_ACEOF
6328 #define HAVE_DECL_FREAD_UNLOCKED 0
6329 _ACEOF
6333 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
6334 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
6335 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
6336 echo $ECHO_N "(cached) $ECHO_C" >&6
6337 else
6338 cat >conftest.$ac_ext <<_ACEOF
6339 /* confdefs.h. */
6340 _ACEOF
6341 cat confdefs.h >>conftest.$ac_ext
6342 cat >>conftest.$ac_ext <<_ACEOF
6343 /* end confdefs.h. */
6344 $ac_includes_default
6346 main ()
6348 #ifndef fwrite_unlocked
6349 char *p = (char *) fwrite_unlocked;
6350 #endif
6353 return 0;
6355 _ACEOF
6356 rm -f conftest.$ac_objext
6357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6358 (eval $ac_compile) 2>conftest.er1
6359 ac_status=$?
6360 grep -v '^ *+' conftest.er1 >conftest.err
6361 rm -f conftest.er1
6362 cat conftest.err >&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } &&
6365 { ac_try='test -z "$ac_c_werror_flag"
6366 || test ! -s conftest.err'
6367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368 (eval $ac_try) 2>&5
6369 ac_status=$?
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); }; } &&
6372 { ac_try='test -s conftest.$ac_objext'
6373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374 (eval $ac_try) 2>&5
6375 ac_status=$?
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); }; }; then
6378 ac_cv_have_decl_fwrite_unlocked=yes
6379 else
6380 echo "$as_me: failed program was:" >&5
6381 sed 's/^/| /' conftest.$ac_ext >&5
6383 ac_cv_have_decl_fwrite_unlocked=no
6385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6387 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
6388 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
6389 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
6391 cat >>confdefs.h <<_ACEOF
6392 #define HAVE_DECL_FWRITE_UNLOCKED 1
6393 _ACEOF
6396 else
6397 cat >>confdefs.h <<_ACEOF
6398 #define HAVE_DECL_FWRITE_UNLOCKED 0
6399 _ACEOF
6403 echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
6404 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
6405 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
6406 echo $ECHO_N "(cached) $ECHO_C" >&6
6407 else
6408 cat >conftest.$ac_ext <<_ACEOF
6409 /* confdefs.h. */
6410 _ACEOF
6411 cat confdefs.h >>conftest.$ac_ext
6412 cat >>conftest.$ac_ext <<_ACEOF
6413 /* end confdefs.h. */
6414 $ac_includes_default
6416 main ()
6418 #ifndef getchar_unlocked
6419 char *p = (char *) getchar_unlocked;
6420 #endif
6423 return 0;
6425 _ACEOF
6426 rm -f conftest.$ac_objext
6427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6428 (eval $ac_compile) 2>conftest.er1
6429 ac_status=$?
6430 grep -v '^ *+' conftest.er1 >conftest.err
6431 rm -f conftest.er1
6432 cat conftest.err >&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); } &&
6435 { ac_try='test -z "$ac_c_werror_flag"
6436 || test ! -s conftest.err'
6437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438 (eval $ac_try) 2>&5
6439 ac_status=$?
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); }; } &&
6442 { ac_try='test -s conftest.$ac_objext'
6443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444 (eval $ac_try) 2>&5
6445 ac_status=$?
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); }; }; then
6448 ac_cv_have_decl_getchar_unlocked=yes
6449 else
6450 echo "$as_me: failed program was:" >&5
6451 sed 's/^/| /' conftest.$ac_ext >&5
6453 ac_cv_have_decl_getchar_unlocked=no
6455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6457 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
6458 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
6459 if test $ac_cv_have_decl_getchar_unlocked = yes; then
6461 cat >>confdefs.h <<_ACEOF
6462 #define HAVE_DECL_GETCHAR_UNLOCKED 1
6463 _ACEOF
6466 else
6467 cat >>confdefs.h <<_ACEOF
6468 #define HAVE_DECL_GETCHAR_UNLOCKED 0
6469 _ACEOF
6473 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
6474 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
6475 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
6477 else
6478 cat >conftest.$ac_ext <<_ACEOF
6479 /* confdefs.h. */
6480 _ACEOF
6481 cat confdefs.h >>conftest.$ac_ext
6482 cat >>conftest.$ac_ext <<_ACEOF
6483 /* end confdefs.h. */
6484 $ac_includes_default
6486 main ()
6488 #ifndef getc_unlocked
6489 char *p = (char *) getc_unlocked;
6490 #endif
6493 return 0;
6495 _ACEOF
6496 rm -f conftest.$ac_objext
6497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6498 (eval $ac_compile) 2>conftest.er1
6499 ac_status=$?
6500 grep -v '^ *+' conftest.er1 >conftest.err
6501 rm -f conftest.er1
6502 cat conftest.err >&5
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); } &&
6505 { ac_try='test -z "$ac_c_werror_flag"
6506 || test ! -s conftest.err'
6507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6508 (eval $ac_try) 2>&5
6509 ac_status=$?
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); }; } &&
6512 { ac_try='test -s conftest.$ac_objext'
6513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6514 (eval $ac_try) 2>&5
6515 ac_status=$?
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); }; }; then
6518 ac_cv_have_decl_getc_unlocked=yes
6519 else
6520 echo "$as_me: failed program was:" >&5
6521 sed 's/^/| /' conftest.$ac_ext >&5
6523 ac_cv_have_decl_getc_unlocked=no
6525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6527 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
6528 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
6529 if test $ac_cv_have_decl_getc_unlocked = yes; then
6531 cat >>confdefs.h <<_ACEOF
6532 #define HAVE_DECL_GETC_UNLOCKED 1
6533 _ACEOF
6536 else
6537 cat >>confdefs.h <<_ACEOF
6538 #define HAVE_DECL_GETC_UNLOCKED 0
6539 _ACEOF
6543 echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
6544 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
6545 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
6546 echo $ECHO_N "(cached) $ECHO_C" >&6
6547 else
6548 cat >conftest.$ac_ext <<_ACEOF
6549 /* confdefs.h. */
6550 _ACEOF
6551 cat confdefs.h >>conftest.$ac_ext
6552 cat >>conftest.$ac_ext <<_ACEOF
6553 /* end confdefs.h. */
6554 $ac_includes_default
6556 main ()
6558 #ifndef putchar_unlocked
6559 char *p = (char *) putchar_unlocked;
6560 #endif
6563 return 0;
6565 _ACEOF
6566 rm -f conftest.$ac_objext
6567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6568 (eval $ac_compile) 2>conftest.er1
6569 ac_status=$?
6570 grep -v '^ *+' conftest.er1 >conftest.err
6571 rm -f conftest.er1
6572 cat conftest.err >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } &&
6575 { ac_try='test -z "$ac_c_werror_flag"
6576 || test ! -s conftest.err'
6577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578 (eval $ac_try) 2>&5
6579 ac_status=$?
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); }; } &&
6582 { ac_try='test -s conftest.$ac_objext'
6583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584 (eval $ac_try) 2>&5
6585 ac_status=$?
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }; }; then
6588 ac_cv_have_decl_putchar_unlocked=yes
6589 else
6590 echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.$ac_ext >&5
6593 ac_cv_have_decl_putchar_unlocked=no
6595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6597 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
6598 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
6599 if test $ac_cv_have_decl_putchar_unlocked = yes; then
6601 cat >>confdefs.h <<_ACEOF
6602 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
6603 _ACEOF
6606 else
6607 cat >>confdefs.h <<_ACEOF
6608 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
6609 _ACEOF
6613 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
6614 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
6615 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 else
6618 cat >conftest.$ac_ext <<_ACEOF
6619 /* confdefs.h. */
6620 _ACEOF
6621 cat confdefs.h >>conftest.$ac_ext
6622 cat >>conftest.$ac_ext <<_ACEOF
6623 /* end confdefs.h. */
6624 $ac_includes_default
6626 main ()
6628 #ifndef putc_unlocked
6629 char *p = (char *) putc_unlocked;
6630 #endif
6633 return 0;
6635 _ACEOF
6636 rm -f conftest.$ac_objext
6637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6638 (eval $ac_compile) 2>conftest.er1
6639 ac_status=$?
6640 grep -v '^ *+' conftest.er1 >conftest.err
6641 rm -f conftest.er1
6642 cat conftest.err >&5
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); } &&
6645 { ac_try='test -z "$ac_c_werror_flag"
6646 || test ! -s conftest.err'
6647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6648 (eval $ac_try) 2>&5
6649 ac_status=$?
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); }; } &&
6652 { ac_try='test -s conftest.$ac_objext'
6653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6654 (eval $ac_try) 2>&5
6655 ac_status=$?
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); }; }; then
6658 ac_cv_have_decl_putc_unlocked=yes
6659 else
6660 echo "$as_me: failed program was:" >&5
6661 sed 's/^/| /' conftest.$ac_ext >&5
6663 ac_cv_have_decl_putc_unlocked=no
6665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6667 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
6668 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
6669 if test $ac_cv_have_decl_putc_unlocked = yes; then
6671 cat >>confdefs.h <<_ACEOF
6672 #define HAVE_DECL_PUTC_UNLOCKED 1
6673 _ACEOF
6676 else
6677 cat >>confdefs.h <<_ACEOF
6678 #define HAVE_DECL_PUTC_UNLOCKED 0
6679 _ACEOF
6683 echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
6684 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
6685 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
6686 echo $ECHO_N "(cached) $ECHO_C" >&6
6687 else
6688 cat >conftest.$ac_ext <<_ACEOF
6689 /* confdefs.h. */
6690 _ACEOF
6691 cat confdefs.h >>conftest.$ac_ext
6692 cat >>conftest.$ac_ext <<_ACEOF
6693 /* end confdefs.h. */
6694 $ac_includes_default
6696 main ()
6698 #ifndef vasprintf
6699 char *p = (char *) vasprintf;
6700 #endif
6703 return 0;
6705 _ACEOF
6706 rm -f conftest.$ac_objext
6707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6708 (eval $ac_compile) 2>conftest.er1
6709 ac_status=$?
6710 grep -v '^ *+' conftest.er1 >conftest.err
6711 rm -f conftest.er1
6712 cat conftest.err >&5
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); } &&
6715 { ac_try='test -z "$ac_c_werror_flag"
6716 || test ! -s conftest.err'
6717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6718 (eval $ac_try) 2>&5
6719 ac_status=$?
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); }; } &&
6722 { ac_try='test -s conftest.$ac_objext'
6723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6724 (eval $ac_try) 2>&5
6725 ac_status=$?
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); }; }; then
6728 ac_cv_have_decl_vasprintf=yes
6729 else
6730 echo "$as_me: failed program was:" >&5
6731 sed 's/^/| /' conftest.$ac_ext >&5
6733 ac_cv_have_decl_vasprintf=no
6735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6737 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
6738 echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
6739 if test $ac_cv_have_decl_vasprintf = yes; then
6741 cat >>confdefs.h <<_ACEOF
6742 #define HAVE_DECL_VASPRINTF 1
6743 _ACEOF
6746 else
6747 cat >>confdefs.h <<_ACEOF
6748 #define HAVE_DECL_VASPRINTF 0
6749 _ACEOF
6756 # Checks for library functions.
6757 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6758 # for constant arguments. Useless!
6759 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6760 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6761 if test "${ac_cv_working_alloca_h+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6763 else
6764 cat >conftest.$ac_ext <<_ACEOF
6765 /* confdefs.h. */
6766 _ACEOF
6767 cat confdefs.h >>conftest.$ac_ext
6768 cat >>conftest.$ac_ext <<_ACEOF
6769 /* end confdefs.h. */
6770 #include <alloca.h>
6772 main ()
6774 char *p = (char *) alloca (2 * sizeof (int));
6776 return 0;
6778 _ACEOF
6779 rm -f conftest.$ac_objext conftest$ac_exeext
6780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6781 (eval $ac_link) 2>conftest.er1
6782 ac_status=$?
6783 grep -v '^ *+' conftest.er1 >conftest.err
6784 rm -f conftest.er1
6785 cat conftest.err >&5
6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787 (exit $ac_status); } &&
6788 { ac_try='test -z "$ac_c_werror_flag"
6789 || test ! -s conftest.err'
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); }; } &&
6795 { ac_try='test -s conftest$ac_exeext'
6796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6797 (eval $ac_try) 2>&5
6798 ac_status=$?
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); }; }; then
6801 ac_cv_working_alloca_h=yes
6802 else
6803 echo "$as_me: failed program was:" >&5
6804 sed 's/^/| /' conftest.$ac_ext >&5
6806 ac_cv_working_alloca_h=no
6808 rm -f conftest.err conftest.$ac_objext \
6809 conftest$ac_exeext conftest.$ac_ext
6811 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6812 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6813 if test $ac_cv_working_alloca_h = yes; then
6815 cat >>confdefs.h <<\_ACEOF
6816 #define HAVE_ALLOCA_H 1
6817 _ACEOF
6821 echo "$as_me:$LINENO: checking for alloca" >&5
6822 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6823 if test "${ac_cv_func_alloca_works+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6825 else
6826 cat >conftest.$ac_ext <<_ACEOF
6827 /* confdefs.h. */
6828 _ACEOF
6829 cat confdefs.h >>conftest.$ac_ext
6830 cat >>conftest.$ac_ext <<_ACEOF
6831 /* end confdefs.h. */
6832 #ifdef __GNUC__
6833 # define alloca __builtin_alloca
6834 #else
6835 # ifdef _MSC_VER
6836 # include <malloc.h>
6837 # define alloca _alloca
6838 # else
6839 # if HAVE_ALLOCA_H
6840 # include <alloca.h>
6841 # else
6842 # ifdef _AIX
6843 #pragma alloca
6844 # else
6845 # ifndef alloca /* predefined by HP cc +Olibcalls */
6846 char *alloca ();
6847 # endif
6848 # endif
6849 # endif
6850 # endif
6851 #endif
6854 main ()
6856 char *p = (char *) alloca (1);
6858 return 0;
6860 _ACEOF
6861 rm -f conftest.$ac_objext conftest$ac_exeext
6862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6863 (eval $ac_link) 2>conftest.er1
6864 ac_status=$?
6865 grep -v '^ *+' conftest.er1 >conftest.err
6866 rm -f conftest.er1
6867 cat conftest.err >&5
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); } &&
6870 { ac_try='test -z "$ac_c_werror_flag"
6871 || test ! -s conftest.err'
6872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6873 (eval $ac_try) 2>&5
6874 ac_status=$?
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); }; } &&
6877 { ac_try='test -s conftest$ac_exeext'
6878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6879 (eval $ac_try) 2>&5
6880 ac_status=$?
6881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); }; }; then
6883 ac_cv_func_alloca_works=yes
6884 else
6885 echo "$as_me: failed program was:" >&5
6886 sed 's/^/| /' conftest.$ac_ext >&5
6888 ac_cv_func_alloca_works=no
6890 rm -f conftest.err conftest.$ac_objext \
6891 conftest$ac_exeext conftest.$ac_ext
6893 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6894 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6896 if test $ac_cv_func_alloca_works = yes; then
6898 cat >>confdefs.h <<\_ACEOF
6899 #define HAVE_ALLOCA 1
6900 _ACEOF
6902 else
6903 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6904 # that cause trouble. Some versions do not even contain alloca or
6905 # contain a buggy version. If you still want to use their alloca,
6906 # use ar to extract alloca.o from them instead of compiling alloca.c.
6908 ALLOCA=alloca.$ac_objext
6910 cat >>confdefs.h <<\_ACEOF
6911 #define C_ALLOCA 1
6912 _ACEOF
6915 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6916 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6917 if test "${ac_cv_os_cray+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6919 else
6920 cat >conftest.$ac_ext <<_ACEOF
6921 /* confdefs.h. */
6922 _ACEOF
6923 cat confdefs.h >>conftest.$ac_ext
6924 cat >>conftest.$ac_ext <<_ACEOF
6925 /* end confdefs.h. */
6926 #if defined(CRAY) && ! defined(CRAY2)
6927 webecray
6928 #else
6929 wenotbecray
6930 #endif
6932 _ACEOF
6933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6934 $EGREP "webecray" >/dev/null 2>&1; then
6935 ac_cv_os_cray=yes
6936 else
6937 ac_cv_os_cray=no
6939 rm -f conftest*
6942 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6943 echo "${ECHO_T}$ac_cv_os_cray" >&6
6944 if test $ac_cv_os_cray = yes; then
6945 for ac_func in _getb67 GETB67 getb67; do
6946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6947 echo "$as_me:$LINENO: checking for $ac_func" >&5
6948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6949 if eval "test \"\${$as_ac_var+set}\" = set"; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
6951 else
6952 cat >conftest.$ac_ext <<_ACEOF
6953 /* confdefs.h. */
6954 _ACEOF
6955 cat confdefs.h >>conftest.$ac_ext
6956 cat >>conftest.$ac_ext <<_ACEOF
6957 /* end confdefs.h. */
6958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6960 #define $ac_func innocuous_$ac_func
6962 /* System header to define __stub macros and hopefully few prototypes,
6963 which can conflict with char $ac_func (); below.
6964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6965 <limits.h> exists even on freestanding compilers. */
6967 #ifdef __STDC__
6968 # include <limits.h>
6969 #else
6970 # include <assert.h>
6971 #endif
6973 #undef $ac_func
6975 /* Override any gcc2 internal prototype to avoid an error. */
6976 #ifdef __cplusplus
6977 extern "C"
6979 #endif
6980 /* We use char because int might match the return type of a gcc2
6981 builtin and then its argument prototype would still apply. */
6982 char $ac_func ();
6983 /* The GNU C library defines this for functions which it implements
6984 to always fail with ENOSYS. Some functions are actually named
6985 something starting with __ and the normal name is an alias. */
6986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6987 choke me
6988 #else
6989 char (*f) () = $ac_func;
6990 #endif
6991 #ifdef __cplusplus
6993 #endif
6996 main ()
6998 return f != $ac_func;
7000 return 0;
7002 _ACEOF
7003 rm -f conftest.$ac_objext conftest$ac_exeext
7004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7005 (eval $ac_link) 2>conftest.er1
7006 ac_status=$?
7007 grep -v '^ *+' conftest.er1 >conftest.err
7008 rm -f conftest.er1
7009 cat conftest.err >&5
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); } &&
7012 { ac_try='test -z "$ac_c_werror_flag"
7013 || test ! -s conftest.err'
7014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015 (eval $ac_try) 2>&5
7016 ac_status=$?
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); }; } &&
7019 { ac_try='test -s conftest$ac_exeext'
7020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021 (eval $ac_try) 2>&5
7022 ac_status=$?
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); }; }; then
7025 eval "$as_ac_var=yes"
7026 else
7027 echo "$as_me: failed program was:" >&5
7028 sed 's/^/| /' conftest.$ac_ext >&5
7030 eval "$as_ac_var=no"
7032 rm -f conftest.err conftest.$ac_objext \
7033 conftest$ac_exeext conftest.$ac_ext
7035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7037 if test `eval echo '${'$as_ac_var'}'` = yes; then
7039 cat >>confdefs.h <<_ACEOF
7040 #define CRAY_STACKSEG_END $ac_func
7041 _ACEOF
7043 break
7046 done
7049 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7050 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7051 if test "${ac_cv_c_stack_direction+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7053 else
7054 if test "$cross_compiling" = yes; then
7055 ac_cv_c_stack_direction=0
7056 else
7057 cat >conftest.$ac_ext <<_ACEOF
7058 /* confdefs.h. */
7059 _ACEOF
7060 cat confdefs.h >>conftest.$ac_ext
7061 cat >>conftest.$ac_ext <<_ACEOF
7062 /* end confdefs.h. */
7064 find_stack_direction ()
7066 static char *addr = 0;
7067 auto char dummy;
7068 if (addr == 0)
7070 addr = &dummy;
7071 return find_stack_direction ();
7073 else
7074 return (&dummy > addr) ? 1 : -1;
7078 main ()
7080 exit (find_stack_direction () < 0);
7082 _ACEOF
7083 rm -f conftest$ac_exeext
7084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7085 (eval $ac_link) 2>&5
7086 ac_status=$?
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7090 (eval $ac_try) 2>&5
7091 ac_status=$?
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); }; }; then
7094 ac_cv_c_stack_direction=1
7095 else
7096 echo "$as_me: program exited with status $ac_status" >&5
7097 echo "$as_me: failed program was:" >&5
7098 sed 's/^/| /' conftest.$ac_ext >&5
7100 ( exit $ac_status )
7101 ac_cv_c_stack_direction=-1
7103 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7106 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7107 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7109 cat >>confdefs.h <<_ACEOF
7110 #define STACK_DIRECTION $ac_cv_c_stack_direction
7111 _ACEOF
7116 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7117 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7118 if test "${ac_cv_header_stdc+set}" = set; then
7119 echo $ECHO_N "(cached) $ECHO_C" >&6
7120 else
7121 cat >conftest.$ac_ext <<_ACEOF
7122 /* confdefs.h. */
7123 _ACEOF
7124 cat confdefs.h >>conftest.$ac_ext
7125 cat >>conftest.$ac_ext <<_ACEOF
7126 /* end confdefs.h. */
7127 #include <stdlib.h>
7128 #include <stdarg.h>
7129 #include <string.h>
7130 #include <float.h>
7133 main ()
7137 return 0;
7139 _ACEOF
7140 rm -f conftest.$ac_objext
7141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7142 (eval $ac_compile) 2>conftest.er1
7143 ac_status=$?
7144 grep -v '^ *+' conftest.er1 >conftest.err
7145 rm -f conftest.er1
7146 cat conftest.err >&5
7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); } &&
7149 { ac_try='test -z "$ac_c_werror_flag"
7150 || test ! -s conftest.err'
7151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152 (eval $ac_try) 2>&5
7153 ac_status=$?
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); }; } &&
7156 { ac_try='test -s conftest.$ac_objext'
7157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7158 (eval $ac_try) 2>&5
7159 ac_status=$?
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); }; }; then
7162 ac_cv_header_stdc=yes
7163 else
7164 echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.$ac_ext >&5
7167 ac_cv_header_stdc=no
7169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7171 if test $ac_cv_header_stdc = yes; then
7172 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7173 cat >conftest.$ac_ext <<_ACEOF
7174 /* confdefs.h. */
7175 _ACEOF
7176 cat confdefs.h >>conftest.$ac_ext
7177 cat >>conftest.$ac_ext <<_ACEOF
7178 /* end confdefs.h. */
7179 #include <string.h>
7181 _ACEOF
7182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7183 $EGREP "memchr" >/dev/null 2>&1; then
7185 else
7186 ac_cv_header_stdc=no
7188 rm -f conftest*
7192 if test $ac_cv_header_stdc = yes; then
7193 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7194 cat >conftest.$ac_ext <<_ACEOF
7195 /* confdefs.h. */
7196 _ACEOF
7197 cat confdefs.h >>conftest.$ac_ext
7198 cat >>conftest.$ac_ext <<_ACEOF
7199 /* end confdefs.h. */
7200 #include <stdlib.h>
7202 _ACEOF
7203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7204 $EGREP "free" >/dev/null 2>&1; then
7206 else
7207 ac_cv_header_stdc=no
7209 rm -f conftest*
7213 if test $ac_cv_header_stdc = yes; then
7214 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7215 if test "$cross_compiling" = yes; then
7217 else
7218 cat >conftest.$ac_ext <<_ACEOF
7219 /* confdefs.h. */
7220 _ACEOF
7221 cat confdefs.h >>conftest.$ac_ext
7222 cat >>conftest.$ac_ext <<_ACEOF
7223 /* end confdefs.h. */
7224 #include <ctype.h>
7225 #if ((' ' & 0x0FF) == 0x020)
7226 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7227 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7228 #else
7229 # define ISLOWER(c) \
7230 (('a' <= (c) && (c) <= 'i') \
7231 || ('j' <= (c) && (c) <= 'r') \
7232 || ('s' <= (c) && (c) <= 'z'))
7233 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7234 #endif
7236 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7238 main ()
7240 int i;
7241 for (i = 0; i < 256; i++)
7242 if (XOR (islower (i), ISLOWER (i))
7243 || toupper (i) != TOUPPER (i))
7244 exit(2);
7245 exit (0);
7247 _ACEOF
7248 rm -f conftest$ac_exeext
7249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7250 (eval $ac_link) 2>&5
7251 ac_status=$?
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7255 (eval $ac_try) 2>&5
7256 ac_status=$?
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); }; }; then
7260 else
7261 echo "$as_me: program exited with status $ac_status" >&5
7262 echo "$as_me: failed program was:" >&5
7263 sed 's/^/| /' conftest.$ac_ext >&5
7265 ( exit $ac_status )
7266 ac_cv_header_stdc=no
7268 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7272 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7273 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7274 if test $ac_cv_header_stdc = yes; then
7276 cat >>confdefs.h <<\_ACEOF
7277 #define STDC_HEADERS 1
7278 _ACEOF
7283 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
7284 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7285 if test "${am_cv_langinfo_codeset+set}" = set; then
7286 echo $ECHO_N "(cached) $ECHO_C" >&6
7287 else
7288 cat >conftest.$ac_ext <<_ACEOF
7289 /* confdefs.h. */
7290 _ACEOF
7291 cat confdefs.h >>conftest.$ac_ext
7292 cat >>conftest.$ac_ext <<_ACEOF
7293 /* end confdefs.h. */
7294 #include <langinfo.h>
7296 main ()
7298 char* cs = nl_langinfo(CODESET);
7300 return 0;
7302 _ACEOF
7303 rm -f conftest.$ac_objext conftest$ac_exeext
7304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7305 (eval $ac_link) 2>conftest.er1
7306 ac_status=$?
7307 grep -v '^ *+' conftest.er1 >conftest.err
7308 rm -f conftest.er1
7309 cat conftest.err >&5
7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); } &&
7312 { ac_try='test -z "$ac_c_werror_flag"
7313 || test ! -s conftest.err'
7314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7315 (eval $ac_try) 2>&5
7316 ac_status=$?
7317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318 (exit $ac_status); }; } &&
7319 { ac_try='test -s conftest$ac_exeext'
7320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7321 (eval $ac_try) 2>&5
7322 ac_status=$?
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); }; }; then
7325 am_cv_langinfo_codeset=yes
7326 else
7327 echo "$as_me: failed program was:" >&5
7328 sed 's/^/| /' conftest.$ac_ext >&5
7330 am_cv_langinfo_codeset=no
7332 rm -f conftest.err conftest.$ac_objext \
7333 conftest$ac_exeext conftest.$ac_ext
7336 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
7337 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7338 if test $am_cv_langinfo_codeset = yes; then
7340 cat >>confdefs.h <<\_ACEOF
7341 #define HAVE_LANGINFO_CODESET 1
7342 _ACEOF
7346 # If we haven't got the data from the intl directory,
7347 # assume NLS is disabled.
7348 USE_NLS=no
7349 LIBINTL=
7350 LIBINTL_DEP=
7351 INCINTL=
7352 XGETTEXT=
7353 GMSGFMT=
7354 POSUB=
7356 if test -f ../intl/config.intl; then
7357 . ../intl/config.intl
7359 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7360 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7361 if test x"$USE_NLS" != xyes; then
7362 echo "$as_me:$LINENO: result: no" >&5
7363 echo "${ECHO_T}no" >&6
7364 else
7365 echo "$as_me:$LINENO: result: yes" >&5
7366 echo "${ECHO_T}yes" >&6
7368 cat >>confdefs.h <<\_ACEOF
7369 #define ENABLE_NLS 1
7370 _ACEOF
7373 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7374 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
7375 # Look for .po and .gmo files in the source directory.
7376 CATALOGS=
7377 XLINGUAS=
7378 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
7379 # If there aren't any .gmo files the shell will give us the
7380 # literal string "../path/to/srcdir/po/*.gmo" which has to be
7381 # weeded out.
7382 case "$cat" in *\**)
7383 continue;;
7384 esac
7385 # The quadruple backslash is collapsed to a double backslash
7386 # by the backticks, then collapsed again by the double quotes,
7387 # leaving us with one backslash in the sed expression (right
7388 # before the dot that mustn't act as a wildcard).
7389 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
7390 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
7391 # The user is allowed to set LINGUAS to a list of languages to
7392 # install catalogs for. If it's empty that means "all of them."
7393 if test "x$LINGUAS" = x; then
7394 CATALOGS="$CATALOGS $cat"
7395 XLINGUAS="$XLINGUAS $lang"
7396 else
7397 case "$LINGUAS" in *$lang*)
7398 CATALOGS="$CATALOGS $cat"
7399 XLINGUAS="$XLINGUAS $lang"
7401 esac
7403 done
7404 LINGUAS="$XLINGUAS"
7405 echo "$as_me:$LINENO: result: $LINGUAS" >&5
7406 echo "${ECHO_T}$LINGUAS" >&6
7409 DATADIRNAME=share
7411 INSTOBJEXT=.mo
7413 GENCAT=gencat
7415 CATOBJEXT=.gmo
7419 echo "$as_me:$LINENO: checking for uchar" >&5
7420 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
7421 if test "${gcc_cv_type_uchar+set}" = set; then
7422 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 else
7424 cat >conftest.$ac_ext <<_ACEOF
7425 /* confdefs.h. */
7426 _ACEOF
7427 cat confdefs.h >>conftest.$ac_ext
7428 cat >>conftest.$ac_ext <<_ACEOF
7429 /* end confdefs.h. */
7431 #include <sys/types.h>
7434 main ()
7436 if ((uchar *)0) return 0;
7437 if (sizeof(uchar)) return 0;
7439 return 0;
7441 _ACEOF
7442 rm -f conftest.$ac_objext
7443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7444 (eval $ac_compile) 2>conftest.er1
7445 ac_status=$?
7446 grep -v '^ *+' conftest.er1 >conftest.err
7447 rm -f conftest.er1
7448 cat conftest.err >&5
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); } &&
7451 { ac_try='test -z "$ac_c_werror_flag"
7452 || test ! -s conftest.err'
7453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454 (eval $ac_try) 2>&5
7455 ac_status=$?
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; } &&
7458 { ac_try='test -s conftest.$ac_objext'
7459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460 (eval $ac_try) 2>&5
7461 ac_status=$?
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); }; }; then
7464 ac_cv_type_uchar=yes
7465 else
7466 echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7469 ac_cv_type_uchar=no
7471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7473 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
7474 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
7475 if test $ac_cv_type_uchar = yes; then
7477 cat >>confdefs.h <<\_ACEOF
7478 #define HAVE_UCHAR 1
7479 _ACEOF
7484 if test "X$prefix" = "XNONE"; then
7485 acl_final_prefix="$ac_default_prefix"
7486 else
7487 acl_final_prefix="$prefix"
7489 if test "X$exec_prefix" = "XNONE"; then
7490 acl_final_exec_prefix='${prefix}'
7491 else
7492 acl_final_exec_prefix="$exec_prefix"
7494 acl_save_prefix="$prefix"
7495 prefix="$acl_final_prefix"
7496 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7497 prefix="$acl_save_prefix"
7500 # Check whether --with-gnu-ld or --without-gnu-ld was given.
7501 if test "${with_gnu_ld+set}" = set; then
7502 withval="$with_gnu_ld"
7503 test "$withval" = no || with_gnu_ld=yes
7504 else
7505 with_gnu_ld=no
7507 # Prepare PATH_SEPARATOR.
7508 # The user is always right.
7509 if test "${PATH_SEPARATOR+set}" != set; then
7510 echo "#! /bin/sh" >conf$$.sh
7511 echo "exit 0" >>conf$$.sh
7512 chmod +x conf$$.sh
7513 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7514 PATH_SEPARATOR=';'
7515 else
7516 PATH_SEPARATOR=:
7518 rm -f conf$$.sh
7520 ac_prog=ld
7521 if test "$GCC" = yes; then
7522 # Check if gcc -print-prog-name=ld gives a path.
7523 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7524 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7525 case $host in
7526 *-*-mingw*)
7527 # gcc leaves a trailing carriage return which upsets mingw
7528 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7530 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7531 esac
7532 case $ac_prog in
7533 # Accept absolute paths.
7534 [\\/]* | [A-Za-z]:[\\/]*)
7535 re_direlt='/[^/][^/]*/\.\./'
7536 # Canonicalize the path of ld
7537 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7538 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7539 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7540 done
7541 test -z "$LD" && LD="$ac_prog"
7544 # If it fails, then pretend we aren't using GCC.
7545 ac_prog=ld
7548 # If it is relative, then search for the first ld in PATH.
7549 with_gnu_ld=unknown
7551 esac
7552 elif test "$with_gnu_ld" = yes; then
7553 echo "$as_me:$LINENO: checking for GNU ld" >&5
7554 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7555 else
7556 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7557 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7559 if test "${acl_cv_path_LD+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7561 else
7562 if test -z "$LD"; then
7563 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7564 for ac_dir in $PATH; do
7565 test -z "$ac_dir" && ac_dir=.
7566 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7567 acl_cv_path_LD="$ac_dir/$ac_prog"
7568 # Check to see if the program is GNU ld. I'd rather use --version,
7569 # but apparently some GNU ld's only accept -v.
7570 # Break only if it was the GNU/non-GNU ld that we prefer.
7571 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7572 test "$with_gnu_ld" != no && break
7573 else
7574 test "$with_gnu_ld" != yes && break
7577 done
7578 IFS="$ac_save_ifs"
7579 else
7580 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7584 LD="$acl_cv_path_LD"
7585 if test -n "$LD"; then
7586 echo "$as_me:$LINENO: result: $LD" >&5
7587 echo "${ECHO_T}$LD" >&6
7588 else
7589 echo "$as_me:$LINENO: result: no" >&5
7590 echo "${ECHO_T}no" >&6
7592 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7593 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7594 { (exit 1); exit 1; }; }
7595 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7596 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7597 if test "${acl_cv_prog_gnu_ld+set}" = set; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7599 else
7600 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7601 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7602 acl_cv_prog_gnu_ld=yes
7603 else
7604 acl_cv_prog_gnu_ld=no
7607 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7608 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7609 with_gnu_ld=$acl_cv_prog_gnu_ld
7613 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7614 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7615 if test "${acl_cv_rpath+set}" = set; then
7616 echo $ECHO_N "(cached) $ECHO_C" >&6
7617 else
7619 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7620 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7621 . ./conftest.sh
7622 rm -f ./conftest.sh
7623 acl_cv_rpath=done
7626 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7627 echo "${ECHO_T}$acl_cv_rpath" >&6
7628 wl="$acl_cv_wl"
7629 libext="$acl_cv_libext"
7630 shlibext="$acl_cv_shlibext"
7631 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7632 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7633 hardcode_direct="$acl_cv_hardcode_direct"
7634 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7635 # Check whether --enable-rpath or --disable-rpath was given.
7636 if test "${enable_rpath+set}" = set; then
7637 enableval="$enable_rpath"
7639 else
7640 enable_rpath=yes
7649 use_additional=yes
7651 acl_save_prefix="$prefix"
7652 prefix="$acl_final_prefix"
7653 acl_save_exec_prefix="$exec_prefix"
7654 exec_prefix="$acl_final_exec_prefix"
7656 eval additional_includedir=\"$includedir\"
7657 eval additional_libdir=\"$libdir\"
7659 exec_prefix="$acl_save_exec_prefix"
7660 prefix="$acl_save_prefix"
7663 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7664 if test "${with_libiconv_prefix+set}" = set; then
7665 withval="$with_libiconv_prefix"
7667 if test "X$withval" = "Xno"; then
7668 use_additional=no
7669 else
7670 if test "X$withval" = "X"; then
7672 acl_save_prefix="$prefix"
7673 prefix="$acl_final_prefix"
7674 acl_save_exec_prefix="$exec_prefix"
7675 exec_prefix="$acl_final_exec_prefix"
7677 eval additional_includedir=\"$includedir\"
7678 eval additional_libdir=\"$libdir\"
7680 exec_prefix="$acl_save_exec_prefix"
7681 prefix="$acl_save_prefix"
7683 else
7684 additional_includedir="$withval/include"
7685 additional_libdir="$withval/lib"
7690 LIBICONV=
7691 LTLIBICONV=
7692 INCICONV=
7693 rpathdirs=
7694 ltrpathdirs=
7695 names_already_handled=
7696 names_next_round='iconv '
7697 while test -n "$names_next_round"; do
7698 names_this_round="$names_next_round"
7699 names_next_round=
7700 for name in $names_this_round; do
7701 already_handled=
7702 for n in $names_already_handled; do
7703 if test "$n" = "$name"; then
7704 already_handled=yes
7705 break
7707 done
7708 if test -z "$already_handled"; then
7709 names_already_handled="$names_already_handled $name"
7710 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7711 eval value=\"\$HAVE_LIB$uppername\"
7712 if test -n "$value"; then
7713 if test "$value" = yes; then
7714 eval value=\"\$LIB$uppername\"
7715 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7716 eval value=\"\$LTLIB$uppername\"
7717 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7718 else
7721 else
7722 found_dir=
7723 found_la=
7724 found_so=
7725 found_a=
7726 if test $use_additional = yes; then
7727 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7728 found_dir="$additional_libdir"
7729 found_so="$additional_libdir/lib$name.$shlibext"
7730 if test -f "$additional_libdir/lib$name.la"; then
7731 found_la="$additional_libdir/lib$name.la"
7733 else
7734 if test -f "$additional_libdir/lib$name.$libext"; then
7735 found_dir="$additional_libdir"
7736 found_a="$additional_libdir/lib$name.$libext"
7737 if test -f "$additional_libdir/lib$name.la"; then
7738 found_la="$additional_libdir/lib$name.la"
7743 if test "X$found_dir" = "X"; then
7744 for x in $LDFLAGS $LTLIBICONV; do
7746 acl_save_prefix="$prefix"
7747 prefix="$acl_final_prefix"
7748 acl_save_exec_prefix="$exec_prefix"
7749 exec_prefix="$acl_final_exec_prefix"
7750 eval x=\"$x\"
7751 exec_prefix="$acl_save_exec_prefix"
7752 prefix="$acl_save_prefix"
7754 case "$x" in
7755 -L*)
7756 dir=`echo "X$x" | sed -e 's/^X-L//'`
7757 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7758 found_dir="$dir"
7759 found_so="$dir/lib$name.$shlibext"
7760 if test -f "$dir/lib$name.la"; then
7761 found_la="$dir/lib$name.la"
7763 else
7764 if test -f "$dir/lib$name.$libext"; then
7765 found_dir="$dir"
7766 found_a="$dir/lib$name.$libext"
7767 if test -f "$dir/lib$name.la"; then
7768 found_la="$dir/lib$name.la"
7773 esac
7774 if test "X$found_dir" != "X"; then
7775 break
7777 done
7779 if test "X$found_dir" != "X"; then
7780 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7781 if test "X$found_so" != "X"; then
7782 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7783 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7784 else
7785 haveit=
7786 for x in $ltrpathdirs; do
7787 if test "X$x" = "X$found_dir"; then
7788 haveit=yes
7789 break
7791 done
7792 if test -z "$haveit"; then
7793 ltrpathdirs="$ltrpathdirs $found_dir"
7795 if test "$hardcode_direct" = yes; then
7796 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7797 else
7798 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7799 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7800 haveit=
7801 for x in $rpathdirs; do
7802 if test "X$x" = "X$found_dir"; then
7803 haveit=yes
7804 break
7806 done
7807 if test -z "$haveit"; then
7808 rpathdirs="$rpathdirs $found_dir"
7810 else
7811 haveit=
7812 for x in $LDFLAGS $LIBICONV; do
7814 acl_save_prefix="$prefix"
7815 prefix="$acl_final_prefix"
7816 acl_save_exec_prefix="$exec_prefix"
7817 exec_prefix="$acl_final_exec_prefix"
7818 eval x=\"$x\"
7819 exec_prefix="$acl_save_exec_prefix"
7820 prefix="$acl_save_prefix"
7822 if test "X$x" = "X-L$found_dir"; then
7823 haveit=yes
7824 break
7826 done
7827 if test -z "$haveit"; then
7828 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7830 if test "$hardcode_minus_L" != no; then
7831 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7832 else
7833 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7838 else
7839 if test "X$found_a" != "X"; then
7840 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7841 else
7842 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7845 additional_includedir=
7846 case "$found_dir" in
7847 */lib | */lib/)
7848 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7849 additional_includedir="$basedir/include"
7851 esac
7852 if test "X$additional_includedir" != "X"; then
7853 if test "X$additional_includedir" != "X/usr/include"; then
7854 haveit=
7855 if test "X$additional_includedir" = "X/usr/local/include"; then
7856 if test -n "$GCC"; then
7857 case $host_os in
7858 linux*) haveit=yes;;
7859 esac
7862 if test -z "$haveit"; then
7863 for x in $CPPFLAGS $INCICONV; do
7865 acl_save_prefix="$prefix"
7866 prefix="$acl_final_prefix"
7867 acl_save_exec_prefix="$exec_prefix"
7868 exec_prefix="$acl_final_exec_prefix"
7869 eval x=\"$x\"
7870 exec_prefix="$acl_save_exec_prefix"
7871 prefix="$acl_save_prefix"
7873 if test "X$x" = "X-I$additional_includedir"; then
7874 haveit=yes
7875 break
7877 done
7878 if test -z "$haveit"; then
7879 if test -d "$additional_includedir"; then
7880 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7886 if test -n "$found_la"; then
7887 save_libdir="$libdir"
7888 case "$found_la" in
7889 */* | *\\*) . "$found_la" ;;
7890 *) . "./$found_la" ;;
7891 esac
7892 libdir="$save_libdir"
7893 for dep in $dependency_libs; do
7894 case "$dep" in
7895 -L*)
7896 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7897 if test "X$additional_libdir" != "X/usr/lib"; then
7898 haveit=
7899 if test "X$additional_libdir" = "X/usr/local/lib"; then
7900 if test -n "$GCC"; then
7901 case $host_os in
7902 linux*) haveit=yes;;
7903 esac
7906 if test -z "$haveit"; then
7907 haveit=
7908 for x in $LDFLAGS $LIBICONV; do
7910 acl_save_prefix="$prefix"
7911 prefix="$acl_final_prefix"
7912 acl_save_exec_prefix="$exec_prefix"
7913 exec_prefix="$acl_final_exec_prefix"
7914 eval x=\"$x\"
7915 exec_prefix="$acl_save_exec_prefix"
7916 prefix="$acl_save_prefix"
7918 if test "X$x" = "X-L$additional_libdir"; then
7919 haveit=yes
7920 break
7922 done
7923 if test -z "$haveit"; then
7924 if test -d "$additional_libdir"; then
7925 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7928 haveit=
7929 for x in $LDFLAGS $LTLIBICONV; do
7931 acl_save_prefix="$prefix"
7932 prefix="$acl_final_prefix"
7933 acl_save_exec_prefix="$exec_prefix"
7934 exec_prefix="$acl_final_exec_prefix"
7935 eval x=\"$x\"
7936 exec_prefix="$acl_save_exec_prefix"
7937 prefix="$acl_save_prefix"
7939 if test "X$x" = "X-L$additional_libdir"; then
7940 haveit=yes
7941 break
7943 done
7944 if test -z "$haveit"; then
7945 if test -d "$additional_libdir"; then
7946 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7952 -R*)
7953 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7954 if test "$enable_rpath" != no; then
7955 haveit=
7956 for x in $rpathdirs; do
7957 if test "X$x" = "X$dir"; then
7958 haveit=yes
7959 break
7961 done
7962 if test -z "$haveit"; then
7963 rpathdirs="$rpathdirs $dir"
7965 haveit=
7966 for x in $ltrpathdirs; do
7967 if test "X$x" = "X$dir"; then
7968 haveit=yes
7969 break
7971 done
7972 if test -z "$haveit"; then
7973 ltrpathdirs="$ltrpathdirs $dir"
7977 -l*)
7978 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7980 *.la)
7981 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7984 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7985 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7987 esac
7988 done
7990 else
7991 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7992 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7996 done
7997 done
7998 if test "X$rpathdirs" != "X"; then
7999 if test -n "$hardcode_libdir_separator"; then
8000 alldirs=
8001 for found_dir in $rpathdirs; do
8002 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8003 done
8004 acl_save_libdir="$libdir"
8005 libdir="$alldirs"
8006 eval flag=\"$hardcode_libdir_flag_spec\"
8007 libdir="$acl_save_libdir"
8008 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8009 else
8010 for found_dir in $rpathdirs; do
8011 acl_save_libdir="$libdir"
8012 libdir="$found_dir"
8013 eval flag=\"$hardcode_libdir_flag_spec\"
8014 libdir="$acl_save_libdir"
8015 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8016 done
8019 if test "X$ltrpathdirs" != "X"; then
8020 for found_dir in $ltrpathdirs; do
8021 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8022 done
8031 am_save_CPPFLAGS="$CPPFLAGS"
8033 for element in $INCICONV; do
8034 haveit=
8035 for x in $CPPFLAGS; do
8037 acl_save_prefix="$prefix"
8038 prefix="$acl_final_prefix"
8039 acl_save_exec_prefix="$exec_prefix"
8040 exec_prefix="$acl_final_exec_prefix"
8041 eval x=\"$x\"
8042 exec_prefix="$acl_save_exec_prefix"
8043 prefix="$acl_save_prefix"
8045 if test "X$x" = "X$element"; then
8046 haveit=yes
8047 break
8049 done
8050 if test -z "$haveit"; then
8051 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8053 done
8056 echo "$as_me:$LINENO: checking for iconv" >&5
8057 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8058 if test "${am_cv_func_iconv+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
8060 else
8062 am_cv_func_iconv="no, consider installing GNU libiconv"
8063 am_cv_lib_iconv=no
8064 cat >conftest.$ac_ext <<_ACEOF
8065 /* confdefs.h. */
8066 _ACEOF
8067 cat confdefs.h >>conftest.$ac_ext
8068 cat >>conftest.$ac_ext <<_ACEOF
8069 /* end confdefs.h. */
8070 #include <stdlib.h>
8071 #include <iconv.h>
8073 main ()
8075 iconv_t cd = iconv_open("","");
8076 iconv(cd,NULL,NULL,NULL,NULL);
8077 iconv_close(cd);
8079 return 0;
8081 _ACEOF
8082 rm -f conftest.$ac_objext conftest$ac_exeext
8083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8084 (eval $ac_link) 2>conftest.er1
8085 ac_status=$?
8086 grep -v '^ *+' conftest.er1 >conftest.err
8087 rm -f conftest.er1
8088 cat conftest.err >&5
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); } &&
8091 { ac_try='test -z "$ac_c_werror_flag"
8092 || test ! -s conftest.err'
8093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8094 (eval $ac_try) 2>&5
8095 ac_status=$?
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); }; } &&
8098 { ac_try='test -s conftest$ac_exeext'
8099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8100 (eval $ac_try) 2>&5
8101 ac_status=$?
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); }; }; then
8104 am_cv_func_iconv=yes
8105 else
8106 echo "$as_me: failed program was:" >&5
8107 sed 's/^/| /' conftest.$ac_ext >&5
8110 rm -f conftest.err conftest.$ac_objext \
8111 conftest$ac_exeext conftest.$ac_ext
8112 if test "$am_cv_func_iconv" != yes; then
8113 am_save_LIBS="$LIBS"
8114 LIBS="$LIBS $LIBICONV"
8115 cat >conftest.$ac_ext <<_ACEOF
8116 /* confdefs.h. */
8117 _ACEOF
8118 cat confdefs.h >>conftest.$ac_ext
8119 cat >>conftest.$ac_ext <<_ACEOF
8120 /* end confdefs.h. */
8121 #include <stdlib.h>
8122 #include <iconv.h>
8124 main ()
8126 iconv_t cd = iconv_open("","");
8127 iconv(cd,NULL,NULL,NULL,NULL);
8128 iconv_close(cd);
8130 return 0;
8132 _ACEOF
8133 rm -f conftest.$ac_objext conftest$ac_exeext
8134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8135 (eval $ac_link) 2>conftest.er1
8136 ac_status=$?
8137 grep -v '^ *+' conftest.er1 >conftest.err
8138 rm -f conftest.er1
8139 cat conftest.err >&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); } &&
8142 { ac_try='test -z "$ac_c_werror_flag"
8143 || test ! -s conftest.err'
8144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8145 (eval $ac_try) 2>&5
8146 ac_status=$?
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); }; } &&
8149 { ac_try='test -s conftest$ac_exeext'
8150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151 (eval $ac_try) 2>&5
8152 ac_status=$?
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); }; }; then
8155 am_cv_lib_iconv=yes
8156 am_cv_func_iconv=yes
8157 else
8158 echo "$as_me: failed program was:" >&5
8159 sed 's/^/| /' conftest.$ac_ext >&5
8162 rm -f conftest.err conftest.$ac_objext \
8163 conftest$ac_exeext conftest.$ac_ext
8164 LIBS="$am_save_LIBS"
8168 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8169 echo "${ECHO_T}$am_cv_func_iconv" >&6
8170 if test "$am_cv_func_iconv" = yes; then
8172 cat >>confdefs.h <<\_ACEOF
8173 #define HAVE_ICONV 1
8174 _ACEOF
8177 if test "$am_cv_lib_iconv" = yes; then
8178 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8179 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
8180 echo "$as_me:$LINENO: result: $LIBICONV" >&5
8181 echo "${ECHO_T}$LIBICONV" >&6
8182 else
8183 CPPFLAGS="$am_save_CPPFLAGS"
8184 LIBICONV=
8185 LTLIBICONV=
8190 if test "$am_cv_func_iconv" = yes; then
8191 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8192 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8193 if test "${am_cv_proto_iconv+set}" = set; then
8194 echo $ECHO_N "(cached) $ECHO_C" >&6
8195 else
8197 cat >conftest.$ac_ext <<_ACEOF
8198 /* confdefs.h. */
8199 _ACEOF
8200 cat confdefs.h >>conftest.$ac_ext
8201 cat >>conftest.$ac_ext <<_ACEOF
8202 /* end confdefs.h. */
8204 #include <stdlib.h>
8205 #include <iconv.h>
8206 extern
8207 #ifdef __cplusplus
8209 #endif
8210 #if defined(__STDC__) || defined(__cplusplus)
8211 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8212 #else
8213 size_t iconv();
8214 #endif
8217 main ()
8221 return 0;
8223 _ACEOF
8224 rm -f conftest.$ac_objext
8225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8226 (eval $ac_compile) 2>conftest.er1
8227 ac_status=$?
8228 grep -v '^ *+' conftest.er1 >conftest.err
8229 rm -f conftest.er1
8230 cat conftest.err >&5
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); } &&
8233 { ac_try='test -z "$ac_c_werror_flag"
8234 || test ! -s conftest.err'
8235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8236 (eval $ac_try) 2>&5
8237 ac_status=$?
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); }; } &&
8240 { ac_try='test -s conftest.$ac_objext'
8241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8242 (eval $ac_try) 2>&5
8243 ac_status=$?
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); }; }; then
8246 am_cv_proto_iconv_arg1=""
8247 else
8248 echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.$ac_ext >&5
8251 am_cv_proto_iconv_arg1="const"
8253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8254 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);"
8257 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8258 echo "$as_me:$LINENO: result: ${ac_t:-
8259 }$am_cv_proto_iconv" >&5
8260 echo "${ECHO_T}${ac_t:-
8261 }$am_cv_proto_iconv" >&6
8263 cat >>confdefs.h <<_ACEOF
8264 #define ICONV_CONST $am_cv_proto_iconv_arg1
8265 _ACEOF
8270 # More defines and substitutions.
8271 PACKAGE="$PACKAGE_TARNAME"
8273 cat >>confdefs.h <<_ACEOF
8274 #define PACKAGE "$PACKAGE"
8275 _ACEOF
8279 if test "x$enable_nls" != xno; then
8280 USED_CATALOGS='$(CATALOGS)'
8281 else
8282 USED_CATALOGS=
8286 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8287 if test "${enable_maintainer_mode+set}" = set; then
8288 enableval="$enable_maintainer_mode"
8290 else
8291 enable_maintainer_mode=no
8294 if test "x$enable_maintainer_mode" = xno; then
8295 MAINT='#'
8296 else
8297 MAINT=
8301 # Check whether --enable-checking or --disable-checking was given.
8302 if test "${enable_checking+set}" = set; then
8303 enableval="$enable_checking"
8305 else
8306 enable_checking=no
8309 if test $enable_checking != no ; then
8311 cat >>confdefs.h <<\_ACEOF
8312 #define ENABLE_CHECKING 1
8313 _ACEOF
8318 case $target in
8319 alpha*-*-* | \
8320 arm*-*-*eabi* | \
8321 arm*-*-symbianelf* | \
8322 x86_64-*-* | \
8323 ia64-*-* | \
8324 hppa*64*-*-* | parisc*64*-*-* | \
8325 i[34567]86-*-darwin* | \
8326 i[34567]86-*-solaris2.1[0-9]* | \
8327 mips*-*-* | \
8328 mmix-*-* | \
8329 powerpc*-*-* | \
8330 rs6000*-*-* | \
8331 s390*-*-* | \
8332 sparc*-*-* | \
8333 spu-*-* | \
8334 sh[123456789lbe]*-*-* | sh-*-*)
8335 need_64bit_hwint=yes ;;
8336 i[34567]86-*-linux*)
8337 if test "x$enable_targets" = xall; then
8338 need_64bit_hwint=yes
8339 else
8340 need_64bit_hwint=no
8344 need_64bit_hwint=no ;;
8345 esac
8347 case $need_64bit_hwint:$ac_cv_sizeof_long in
8348 *:8 | no:*) host_wide_int=long ;;
8349 *) host_wide_int='long long' ;;
8350 esac
8354 cat >>confdefs.h <<_ACEOF
8355 #define HOST_WIDE_INT $host_wide_int
8356 _ACEOF
8359 # Output.
8361 ac_config_headers="$ac_config_headers config.h:config.in"
8363 ac_config_files="$ac_config_files Makefile"
8365 cat >confcache <<\_ACEOF
8366 # This file is a shell script that caches the results of configure
8367 # tests run on this system so they can be shared between configure
8368 # scripts and configure runs, see configure's option --config-cache.
8369 # It is not useful on other systems. If it contains results you don't
8370 # want to keep, you may remove or edit it.
8372 # config.status only pays attention to the cache file if you give it
8373 # the --recheck option to rerun configure.
8375 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8376 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8377 # following values.
8379 _ACEOF
8381 # The following way of writing the cache mishandles newlines in values,
8382 # but we know of no workaround that is simple, portable, and efficient.
8383 # So, don't put newlines in cache variables' values.
8384 # Ultrix sh set writes to stderr and can't be redirected directly,
8385 # and sets the high bit in the cache file unless we assign to the vars.
8387 (set) 2>&1 |
8388 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8389 *ac_space=\ *)
8390 # `set' does not quote correctly, so add quotes (double-quote
8391 # substitution turns \\\\ into \\, and sed turns \\ into \).
8392 sed -n \
8393 "s/'/'\\\\''/g;
8394 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8397 # `set' quotes correctly as required by POSIX, so do not add quotes.
8398 sed -n \
8399 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8401 esac;
8403 sed '
8404 t clear
8405 : clear
8406 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8407 t end
8408 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8409 : end' >>confcache
8410 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8411 if test -w $cache_file; then
8412 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8413 cat confcache >$cache_file
8414 else
8415 echo "not updating unwritable cache $cache_file"
8418 rm -f confcache
8420 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8421 # Let make expand exec_prefix.
8422 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8424 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8425 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8426 # trailing colons and then remove the whole line if VPATH becomes empty
8427 # (actually we leave an empty line to preserve line numbers).
8428 if test "x$srcdir" = x.; then
8429 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8430 s/:*\$(srcdir):*/:/;
8431 s/:*\${srcdir}:*/:/;
8432 s/:*@srcdir@:*/:/;
8433 s/^\([^=]*=[ ]*\):*/\1/;
8434 s/:*$//;
8435 s/^[^=]*=[ ]*$//;
8439 DEFS=-DHAVE_CONFIG_H
8441 ac_libobjs=
8442 ac_ltlibobjs=
8443 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8444 # 1. Remove the extension, and $U if already installed.
8445 ac_i=`echo "$ac_i" |
8446 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8447 # 2. Add them.
8448 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8449 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8450 done
8451 LIBOBJS=$ac_libobjs
8453 LTLIBOBJS=$ac_ltlibobjs
8457 : ${CONFIG_STATUS=./config.status}
8458 ac_clean_files_save=$ac_clean_files
8459 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8460 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8461 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8462 cat >$CONFIG_STATUS <<_ACEOF
8463 #! $SHELL
8464 # Generated by $as_me.
8465 # Run this file to recreate the current configuration.
8466 # Compiler output produced by configure, useful for debugging
8467 # configure, is in config.log if it exists.
8469 debug=false
8470 ac_cs_recheck=false
8471 ac_cs_silent=false
8472 SHELL=\${CONFIG_SHELL-$SHELL}
8473 _ACEOF
8475 cat >>$CONFIG_STATUS <<\_ACEOF
8476 ## --------------------- ##
8477 ## M4sh Initialization. ##
8478 ## --------------------- ##
8480 # Be Bourne compatible
8481 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8482 emulate sh
8483 NULLCMD=:
8484 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8485 # is contrary to our usage. Disable this feature.
8486 alias -g '${1+"$@"}'='"$@"'
8487 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8488 set -o posix
8490 DUALCASE=1; export DUALCASE # for MKS sh
8492 # Support unset when possible.
8493 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8494 as_unset=unset
8495 else
8496 as_unset=false
8500 # Work around bugs in pre-3.0 UWIN ksh.
8501 $as_unset ENV MAIL MAILPATH
8502 PS1='$ '
8503 PS2='> '
8504 PS4='+ '
8506 # NLS nuisances.
8507 for as_var in \
8508 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8509 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8510 LC_TELEPHONE LC_TIME
8512 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8513 eval $as_var=C; export $as_var
8514 else
8515 $as_unset $as_var
8517 done
8519 # Required to use basename.
8520 if expr a : '\(a\)' >/dev/null 2>&1; then
8521 as_expr=expr
8522 else
8523 as_expr=false
8526 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8527 as_basename=basename
8528 else
8529 as_basename=false
8533 # Name of the executable.
8534 as_me=`$as_basename "$0" ||
8535 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8536 X"$0" : 'X\(//\)$' \| \
8537 X"$0" : 'X\(/\)$' \| \
8538 . : '\(.\)' 2>/dev/null ||
8539 echo X/"$0" |
8540 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8541 /^X\/\(\/\/\)$/{ s//\1/; q; }
8542 /^X\/\(\/\).*/{ s//\1/; q; }
8543 s/.*/./; q'`
8546 # PATH needs CR, and LINENO needs CR and PATH.
8547 # Avoid depending upon Character Ranges.
8548 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8549 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8550 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8551 as_cr_digits='0123456789'
8552 as_cr_alnum=$as_cr_Letters$as_cr_digits
8554 # The user is always right.
8555 if test "${PATH_SEPARATOR+set}" != set; then
8556 echo "#! /bin/sh" >conf$$.sh
8557 echo "exit 0" >>conf$$.sh
8558 chmod +x conf$$.sh
8559 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8560 PATH_SEPARATOR=';'
8561 else
8562 PATH_SEPARATOR=:
8564 rm -f conf$$.sh
8568 as_lineno_1=$LINENO
8569 as_lineno_2=$LINENO
8570 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8571 test "x$as_lineno_1" != "x$as_lineno_2" &&
8572 test "x$as_lineno_3" = "x$as_lineno_2" || {
8573 # Find who we are. Look in the path if we contain no path at all
8574 # relative or not.
8575 case $0 in
8576 *[\\/]* ) as_myself=$0 ;;
8577 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8578 for as_dir in $PATH
8580 IFS=$as_save_IFS
8581 test -z "$as_dir" && as_dir=.
8582 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8583 done
8586 esac
8587 # We did not find ourselves, most probably we were run as `sh COMMAND'
8588 # in which case we are not to be found in the path.
8589 if test "x$as_myself" = x; then
8590 as_myself=$0
8592 if test ! -f "$as_myself"; then
8593 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8594 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8595 { (exit 1); exit 1; }; }
8597 case $CONFIG_SHELL in
8599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8600 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8602 IFS=$as_save_IFS
8603 test -z "$as_dir" && as_dir=.
8604 for as_base in sh bash ksh sh5; do
8605 case $as_dir in
8607 if ("$as_dir/$as_base" -c '
8608 as_lineno_1=$LINENO
8609 as_lineno_2=$LINENO
8610 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8611 test "x$as_lineno_1" != "x$as_lineno_2" &&
8612 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8613 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8614 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8615 CONFIG_SHELL=$as_dir/$as_base
8616 export CONFIG_SHELL
8617 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8618 fi;;
8619 esac
8620 done
8621 done
8623 esac
8625 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8626 # uniformly replaced by the line number. The first 'sed' inserts a
8627 # line-number line before each line; the second 'sed' does the real
8628 # work. The second script uses 'N' to pair each line-number line
8629 # with the numbered line, and appends trailing '-' during
8630 # substitution so that $LINENO is not a special case at line end.
8631 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8632 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8633 sed '=' <$as_myself |
8634 sed '
8636 s,$,-,
8637 : loop
8638 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8639 t loop
8640 s,-$,,
8641 s,^['$as_cr_digits']*\n,,
8642 ' >$as_me.lineno &&
8643 chmod +x $as_me.lineno ||
8644 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8645 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8646 { (exit 1); exit 1; }; }
8648 # Don't try to exec as it changes $[0], causing all sort of problems
8649 # (the dirname of $[0] is not the place where we might find the
8650 # original and so on. Autoconf is especially sensible to this).
8651 . ./$as_me.lineno
8652 # Exit status is that of the last command.
8653 exit
8657 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8658 *c*,-n*) ECHO_N= ECHO_C='
8659 ' ECHO_T=' ' ;;
8660 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8661 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8662 esac
8664 if expr a : '\(a\)' >/dev/null 2>&1; then
8665 as_expr=expr
8666 else
8667 as_expr=false
8670 rm -f conf$$ conf$$.exe conf$$.file
8671 echo >conf$$.file
8672 if ln -s conf$$.file conf$$ 2>/dev/null; then
8673 # We could just check for DJGPP; but this test a) works b) is more generic
8674 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8675 if test -f conf$$.exe; then
8676 # Don't use ln at all; we don't have any links
8677 as_ln_s='cp -p'
8678 else
8679 as_ln_s='ln -s'
8681 elif ln conf$$.file conf$$ 2>/dev/null; then
8682 as_ln_s=ln
8683 else
8684 as_ln_s='cp -p'
8686 rm -f conf$$ conf$$.exe conf$$.file
8688 if mkdir -p . 2>/dev/null; then
8689 as_mkdir_p=:
8690 else
8691 test -d ./-p && rmdir ./-p
8692 as_mkdir_p=false
8695 as_executable_p="test -f"
8697 # Sed expression to map a string onto a valid CPP name.
8698 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8700 # Sed expression to map a string onto a valid variable name.
8701 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8704 # IFS
8705 # We need space, tab and new line, in precisely that order.
8706 as_nl='
8708 IFS=" $as_nl"
8710 # CDPATH.
8711 $as_unset CDPATH
8713 exec 6>&1
8715 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8716 # report actual input values of CONFIG_FILES etc. instead of their
8717 # values after options handling. Logging --version etc. is OK.
8718 exec 5>>config.log
8720 echo
8721 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8722 ## Running $as_me. ##
8723 _ASBOX
8724 } >&5
8725 cat >&5 <<_CSEOF
8727 This file was extended by cpplib $as_me , which was
8728 generated by GNU Autoconf 2.59. Invocation command line was
8730 CONFIG_FILES = $CONFIG_FILES
8731 CONFIG_HEADERS = $CONFIG_HEADERS
8732 CONFIG_LINKS = $CONFIG_LINKS
8733 CONFIG_COMMANDS = $CONFIG_COMMANDS
8734 $ $0 $@
8736 _CSEOF
8737 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8738 echo >&5
8739 _ACEOF
8741 # Files that config.status was made for.
8742 if test -n "$ac_config_files"; then
8743 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8746 if test -n "$ac_config_headers"; then
8747 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8750 if test -n "$ac_config_links"; then
8751 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8754 if test -n "$ac_config_commands"; then
8755 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8758 cat >>$CONFIG_STATUS <<\_ACEOF
8760 ac_cs_usage="\
8761 \`$as_me' instantiates files from templates according to the
8762 current configuration.
8764 Usage: $0 [OPTIONS] [FILE]...
8766 -h, --help print this help, then exit
8767 -V, --version print version number, then exit
8768 -q, --quiet do not print progress messages
8769 -d, --debug don't remove temporary files
8770 --recheck update $as_me by reconfiguring in the same conditions
8771 --file=FILE[:TEMPLATE]
8772 instantiate the configuration file FILE
8773 --header=FILE[:TEMPLATE]
8774 instantiate the configuration header FILE
8776 Configuration files:
8777 $config_files
8779 Configuration headers:
8780 $config_headers
8782 Configuration commands:
8783 $config_commands
8785 Report bugs to <bug-autoconf@gnu.org>."
8786 _ACEOF
8788 cat >>$CONFIG_STATUS <<_ACEOF
8789 ac_cs_version="\\
8790 cpplib config.status
8791 configured by $0, generated by GNU Autoconf 2.59,
8792 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8794 Copyright (C) 2003 Free Software Foundation, Inc.
8795 This config.status script is free software; the Free Software Foundation
8796 gives unlimited permission to copy, distribute and modify it."
8797 srcdir=$srcdir
8798 INSTALL="$INSTALL"
8799 _ACEOF
8801 cat >>$CONFIG_STATUS <<\_ACEOF
8802 # If no file are specified by the user, then we need to provide default
8803 # value. By we need to know if files were specified by the user.
8804 ac_need_defaults=:
8805 while test $# != 0
8807 case $1 in
8808 --*=*)
8809 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8810 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8811 ac_shift=:
8814 ac_option=$1
8815 ac_optarg=$2
8816 ac_shift=shift
8818 *) # This is not an option, so the user has probably given explicit
8819 # arguments.
8820 ac_option=$1
8821 ac_need_defaults=false;;
8822 esac
8824 case $ac_option in
8825 # Handling of the options.
8826 _ACEOF
8827 cat >>$CONFIG_STATUS <<\_ACEOF
8828 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8829 ac_cs_recheck=: ;;
8830 --version | --vers* | -V )
8831 echo "$ac_cs_version"; exit 0 ;;
8832 --he | --h)
8833 # Conflict between --help and --header
8834 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8835 Try \`$0 --help' for more information." >&5
8836 echo "$as_me: error: ambiguous option: $1
8837 Try \`$0 --help' for more information." >&2;}
8838 { (exit 1); exit 1; }; };;
8839 --help | --hel | -h )
8840 echo "$ac_cs_usage"; exit 0 ;;
8841 --debug | --d* | -d )
8842 debug=: ;;
8843 --file | --fil | --fi | --f )
8844 $ac_shift
8845 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8846 ac_need_defaults=false;;
8847 --header | --heade | --head | --hea )
8848 $ac_shift
8849 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8850 ac_need_defaults=false;;
8851 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8852 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8853 ac_cs_silent=: ;;
8855 # This is an error.
8856 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8857 Try \`$0 --help' for more information." >&5
8858 echo "$as_me: error: unrecognized option: $1
8859 Try \`$0 --help' for more information." >&2;}
8860 { (exit 1); exit 1; }; } ;;
8862 *) ac_config_targets="$ac_config_targets $1" ;;
8864 esac
8865 shift
8866 done
8868 ac_configure_extra_args=
8870 if $ac_cs_silent; then
8871 exec 6>/dev/null
8872 ac_configure_extra_args="$ac_configure_extra_args --silent"
8875 _ACEOF
8876 cat >>$CONFIG_STATUS <<_ACEOF
8877 if \$ac_cs_recheck; then
8878 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8879 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8882 _ACEOF
8884 cat >>$CONFIG_STATUS <<_ACEOF
8886 # INIT-COMMANDS section.
8889 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
8891 _ACEOF
8895 cat >>$CONFIG_STATUS <<\_ACEOF
8896 for ac_config_target in $ac_config_targets
8898 case "$ac_config_target" in
8899 # Handling of arguments.
8900 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8901 "depdir" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
8902 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8903 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8904 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8905 { (exit 1); exit 1; }; };;
8906 esac
8907 done
8909 # If the user did not use the arguments to specify the items to instantiate,
8910 # then the envvar interface is used. Set only those that are not.
8911 # We use the long form for the default assignment because of an extremely
8912 # bizarre bug on SunOS 4.1.3.
8913 if $ac_need_defaults; then
8914 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8915 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8916 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8919 # Have a temporary directory for convenience. Make it in the build tree
8920 # simply because there is no reason to put it here, and in addition,
8921 # creating and moving files from /tmp can sometimes cause problems.
8922 # Create a temporary directory, and hook for its removal unless debugging.
8923 $debug ||
8925 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8926 trap '{ (exit 1); exit 1; }' 1 2 13 15
8929 # Create a (secure) tmp directory for tmp files.
8932 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8933 test -n "$tmp" && test -d "$tmp"
8934 } ||
8936 tmp=./confstat$$-$RANDOM
8937 (umask 077 && mkdir $tmp)
8938 } ||
8940 echo "$me: cannot create a temporary directory in ." >&2
8941 { (exit 1); exit 1; }
8944 _ACEOF
8946 cat >>$CONFIG_STATUS <<_ACEOF
8949 # CONFIG_FILES section.
8952 # No need to generate the scripts if there are no CONFIG_FILES.
8953 # This happens for instance when ./config.status config.h
8954 if test -n "\$CONFIG_FILES"; then
8955 # Protect against being on the right side of a sed subst in config.status.
8956 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8957 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8958 s,@SHELL@,$SHELL,;t t
8959 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8960 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8961 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8962 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8963 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8964 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8965 s,@exec_prefix@,$exec_prefix,;t t
8966 s,@prefix@,$prefix,;t t
8967 s,@program_transform_name@,$program_transform_name,;t t
8968 s,@bindir@,$bindir,;t t
8969 s,@sbindir@,$sbindir,;t t
8970 s,@libexecdir@,$libexecdir,;t t
8971 s,@datadir@,$datadir,;t t
8972 s,@sysconfdir@,$sysconfdir,;t t
8973 s,@sharedstatedir@,$sharedstatedir,;t t
8974 s,@localstatedir@,$localstatedir,;t t
8975 s,@libdir@,$libdir,;t t
8976 s,@includedir@,$includedir,;t t
8977 s,@oldincludedir@,$oldincludedir,;t t
8978 s,@infodir@,$infodir,;t t
8979 s,@mandir@,$mandir,;t t
8980 s,@build_alias@,$build_alias,;t t
8981 s,@host_alias@,$host_alias,;t t
8982 s,@target_alias@,$target_alias,;t t
8983 s,@DEFS@,$DEFS,;t t
8984 s,@ECHO_C@,$ECHO_C,;t t
8985 s,@ECHO_N@,$ECHO_N,;t t
8986 s,@ECHO_T@,$ECHO_T,;t t
8987 s,@LIBS@,$LIBS,;t t
8988 s,@build@,$build,;t t
8989 s,@build_cpu@,$build_cpu,;t t
8990 s,@build_vendor@,$build_vendor,;t t
8991 s,@build_os@,$build_os,;t t
8992 s,@host@,$host,;t t
8993 s,@host_cpu@,$host_cpu,;t t
8994 s,@host_vendor@,$host_vendor,;t t
8995 s,@host_os@,$host_os,;t t
8996 s,@target@,$target,;t t
8997 s,@target_cpu@,$target_cpu,;t t
8998 s,@target_vendor@,$target_vendor,;t t
8999 s,@target_os@,$target_os,;t t
9000 s,@SET_MAKE@,$SET_MAKE,;t t
9001 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9002 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9003 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9004 s,@CC@,$CC,;t t
9005 s,@CFLAGS@,$CFLAGS,;t t
9006 s,@LDFLAGS@,$LDFLAGS,;t t
9007 s,@CPPFLAGS@,$CPPFLAGS,;t t
9008 s,@ac_ct_CC@,$ac_ct_CC,;t t
9009 s,@EXEEXT@,$EXEEXT,;t t
9010 s,@OBJEXT@,$OBJEXT,;t t
9011 s,@RANLIB@,$RANLIB,;t t
9012 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9013 s,@ACLOCAL@,$ACLOCAL,;t t
9014 s,@AUTOCONF@,$AUTOCONF,;t t
9015 s,@AUTOHEADER@,$AUTOHEADER,;t t
9016 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9017 s,@WARN_PEDANTIC@,$WARN_PEDANTIC,;t t
9018 s,@WERROR@,$WERROR,;t t
9019 s,@am__leading_dot@,$am__leading_dot,;t t
9020 s,@DEPDIR@,$DEPDIR,;t t
9021 s,@CCDEPMODE@,$CCDEPMODE,;t t
9022 s,@CPP@,$CPP,;t t
9023 s,@EGREP@,$EGREP,;t t
9024 s,@LIBOBJS@,$LIBOBJS,;t t
9025 s,@ALLOCA@,$ALLOCA,;t t
9026 s,@USE_NLS@,$USE_NLS,;t t
9027 s,@LIBINTL@,$LIBINTL,;t t
9028 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
9029 s,@INCINTL@,$INCINTL,;t t
9030 s,@XGETTEXT@,$XGETTEXT,;t t
9031 s,@GMSGFMT@,$GMSGFMT,;t t
9032 s,@POSUB@,$POSUB,;t t
9033 s,@CATALOGS@,$CATALOGS,;t t
9034 s,@DATADIRNAME@,$DATADIRNAME,;t t
9035 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9036 s,@GENCAT@,$GENCAT,;t t
9037 s,@CATOBJEXT@,$CATOBJEXT,;t t
9038 s,@LIBICONV@,$LIBICONV,;t t
9039 s,@LTLIBICONV@,$LTLIBICONV,;t t
9040 s,@PACKAGE@,$PACKAGE,;t t
9041 s,@USED_CATALOGS@,$USED_CATALOGS,;t t
9042 s,@MAINT@,$MAINT,;t t
9043 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9044 CEOF
9046 _ACEOF
9048 cat >>$CONFIG_STATUS <<\_ACEOF
9049 # Split the substitutions into bite-sized pieces for seds with
9050 # small command number limits, like on Digital OSF/1 and HP-UX.
9051 ac_max_sed_lines=48
9052 ac_sed_frag=1 # Number of current file.
9053 ac_beg=1 # First line for current file.
9054 ac_end=$ac_max_sed_lines # Line after last line for current file.
9055 ac_more_lines=:
9056 ac_sed_cmds=
9057 while $ac_more_lines; do
9058 if test $ac_beg -gt 1; then
9059 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9060 else
9061 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9063 if test ! -s $tmp/subs.frag; then
9064 ac_more_lines=false
9065 else
9066 # The purpose of the label and of the branching condition is to
9067 # speed up the sed processing (if there are no `@' at all, there
9068 # is no need to browse any of the substitutions).
9069 # These are the two extra sed commands mentioned above.
9070 (echo ':t
9071 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9072 if test -z "$ac_sed_cmds"; then
9073 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9074 else
9075 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9077 ac_sed_frag=`expr $ac_sed_frag + 1`
9078 ac_beg=$ac_end
9079 ac_end=`expr $ac_end + $ac_max_sed_lines`
9081 done
9082 if test -z "$ac_sed_cmds"; then
9083 ac_sed_cmds=cat
9085 fi # test -n "$CONFIG_FILES"
9087 _ACEOF
9088 cat >>$CONFIG_STATUS <<\_ACEOF
9089 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9090 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9091 case $ac_file in
9092 - | *:- | *:-:* ) # input from stdin
9093 cat >$tmp/stdin
9094 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9095 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9096 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9097 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9098 * ) ac_file_in=$ac_file.in ;;
9099 esac
9101 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9102 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9103 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9104 X"$ac_file" : 'X\(//\)[^/]' \| \
9105 X"$ac_file" : 'X\(//\)$' \| \
9106 X"$ac_file" : 'X\(/\)' \| \
9107 . : '\(.\)' 2>/dev/null ||
9108 echo X"$ac_file" |
9109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9110 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9111 /^X\(\/\/\)$/{ s//\1/; q; }
9112 /^X\(\/\).*/{ s//\1/; q; }
9113 s/.*/./; q'`
9114 { if $as_mkdir_p; then
9115 mkdir -p "$ac_dir"
9116 else
9117 as_dir="$ac_dir"
9118 as_dirs=
9119 while test ! -d "$as_dir"; do
9120 as_dirs="$as_dir $as_dirs"
9121 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9122 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9123 X"$as_dir" : 'X\(//\)[^/]' \| \
9124 X"$as_dir" : 'X\(//\)$' \| \
9125 X"$as_dir" : 'X\(/\)' \| \
9126 . : '\(.\)' 2>/dev/null ||
9127 echo X"$as_dir" |
9128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9129 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9130 /^X\(\/\/\)$/{ s//\1/; q; }
9131 /^X\(\/\).*/{ s//\1/; q; }
9132 s/.*/./; q'`
9133 done
9134 test ! -n "$as_dirs" || mkdir $as_dirs
9135 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9136 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9137 { (exit 1); exit 1; }; }; }
9139 ac_builddir=.
9141 if test "$ac_dir" != .; then
9142 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9143 # A "../" for each directory in $ac_dir_suffix.
9144 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9145 else
9146 ac_dir_suffix= ac_top_builddir=
9149 case $srcdir in
9150 .) # No --srcdir option. We are building in place.
9151 ac_srcdir=.
9152 if test -z "$ac_top_builddir"; then
9153 ac_top_srcdir=.
9154 else
9155 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9156 fi ;;
9157 [\\/]* | ?:[\\/]* ) # Absolute path.
9158 ac_srcdir=$srcdir$ac_dir_suffix;
9159 ac_top_srcdir=$srcdir ;;
9160 *) # Relative path.
9161 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9162 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9163 esac
9165 # Do not use `cd foo && pwd` to compute absolute paths, because
9166 # the directories may not exist.
9167 case `pwd` in
9168 .) ac_abs_builddir="$ac_dir";;
9170 case "$ac_dir" in
9171 .) ac_abs_builddir=`pwd`;;
9172 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9173 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9174 esac;;
9175 esac
9176 case $ac_abs_builddir in
9177 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9179 case ${ac_top_builddir}. in
9180 .) ac_abs_top_builddir=$ac_abs_builddir;;
9181 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9182 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9183 esac;;
9184 esac
9185 case $ac_abs_builddir in
9186 .) ac_abs_srcdir=$ac_srcdir;;
9188 case $ac_srcdir in
9189 .) ac_abs_srcdir=$ac_abs_builddir;;
9190 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9191 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9192 esac;;
9193 esac
9194 case $ac_abs_builddir in
9195 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9197 case $ac_top_srcdir in
9198 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9199 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9200 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9201 esac;;
9202 esac
9205 case $INSTALL in
9206 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9207 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9208 esac
9210 if test x"$ac_file" != x-; then
9211 { echo "$as_me:$LINENO: creating $ac_file" >&5
9212 echo "$as_me: creating $ac_file" >&6;}
9213 rm -f "$ac_file"
9215 # Let's still pretend it is `configure' which instantiates (i.e., don't
9216 # use $as_me), people would be surprised to read:
9217 # /* config.h. Generated by config.status. */
9218 if test x"$ac_file" = x-; then
9219 configure_input=
9220 else
9221 configure_input="$ac_file. "
9223 configure_input=$configure_input"Generated from `echo $ac_file_in |
9224 sed 's,.*/,,'` by configure."
9226 # First look for the input files in the build tree, otherwise in the
9227 # src tree.
9228 ac_file_inputs=`IFS=:
9229 for f in $ac_file_in; do
9230 case $f in
9231 -) echo $tmp/stdin ;;
9232 [\\/$]*)
9233 # Absolute (can't be DOS-style, as IFS=:)
9234 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9235 echo "$as_me: error: cannot find input file: $f" >&2;}
9236 { (exit 1); exit 1; }; }
9237 echo "$f";;
9238 *) # Relative
9239 if test -f "$f"; then
9240 # Build tree
9241 echo "$f"
9242 elif test -f "$srcdir/$f"; then
9243 # Source tree
9244 echo "$srcdir/$f"
9245 else
9246 # /dev/null tree
9247 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9248 echo "$as_me: error: cannot find input file: $f" >&2;}
9249 { (exit 1); exit 1; }; }
9250 fi;;
9251 esac
9252 done` || { (exit 1); exit 1; }
9253 _ACEOF
9254 cat >>$CONFIG_STATUS <<_ACEOF
9255 sed "$ac_vpsub
9256 $extrasub
9257 _ACEOF
9258 cat >>$CONFIG_STATUS <<\_ACEOF
9260 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9261 s,@configure_input@,$configure_input,;t t
9262 s,@srcdir@,$ac_srcdir,;t t
9263 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9264 s,@top_srcdir@,$ac_top_srcdir,;t t
9265 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9266 s,@builddir@,$ac_builddir,;t t
9267 s,@abs_builddir@,$ac_abs_builddir,;t t
9268 s,@top_builddir@,$ac_top_builddir,;t t
9269 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9270 s,@INSTALL@,$ac_INSTALL,;t t
9271 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9272 rm -f $tmp/stdin
9273 if test x"$ac_file" != x-; then
9274 mv $tmp/out $ac_file
9275 else
9276 cat $tmp/out
9277 rm -f $tmp/out
9280 done
9281 _ACEOF
9282 cat >>$CONFIG_STATUS <<\_ACEOF
9285 # CONFIG_HEADER section.
9288 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9289 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9291 # ac_d sets the value in "#define NAME VALUE" lines.
9292 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9293 ac_dB='[ ].*$,\1#\2'
9294 ac_dC=' '
9295 ac_dD=',;t'
9296 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9297 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9298 ac_uB='$,\1#\2define\3'
9299 ac_uC=' '
9300 ac_uD=',;t'
9302 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9303 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9304 case $ac_file in
9305 - | *:- | *:-:* ) # input from stdin
9306 cat >$tmp/stdin
9307 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9308 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9309 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9310 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9311 * ) ac_file_in=$ac_file.in ;;
9312 esac
9314 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9315 echo "$as_me: creating $ac_file" >&6;}
9317 # First look for the input files in the build tree, otherwise in the
9318 # src tree.
9319 ac_file_inputs=`IFS=:
9320 for f in $ac_file_in; do
9321 case $f in
9322 -) echo $tmp/stdin ;;
9323 [\\/$]*)
9324 # Absolute (can't be DOS-style, as IFS=:)
9325 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9326 echo "$as_me: error: cannot find input file: $f" >&2;}
9327 { (exit 1); exit 1; }; }
9328 # Do quote $f, to prevent DOS paths from being IFS'd.
9329 echo "$f";;
9330 *) # Relative
9331 if test -f "$f"; then
9332 # Build tree
9333 echo "$f"
9334 elif test -f "$srcdir/$f"; then
9335 # Source tree
9336 echo "$srcdir/$f"
9337 else
9338 # /dev/null tree
9339 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9340 echo "$as_me: error: cannot find input file: $f" >&2;}
9341 { (exit 1); exit 1; }; }
9342 fi;;
9343 esac
9344 done` || { (exit 1); exit 1; }
9345 # Remove the trailing spaces.
9346 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9348 _ACEOF
9350 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9351 # `conftest.undefs', that substitutes the proper values into
9352 # config.h.in to produce config.h. The first handles `#define'
9353 # templates, and the second `#undef' templates.
9354 # And first: Protect against being on the right side of a sed subst in
9355 # config.status. Protect against being in an unquoted here document
9356 # in config.status.
9357 rm -f conftest.defines conftest.undefs
9358 # Using a here document instead of a string reduces the quoting nightmare.
9359 # Putting comments in sed scripts is not portable.
9361 # `end' is used to avoid that the second main sed command (meant for
9362 # 0-ary CPP macros) applies to n-ary macro definitions.
9363 # See the Autoconf documentation for `clear'.
9364 cat >confdef2sed.sed <<\_ACEOF
9365 s/[\\&,]/\\&/g
9366 s,[\\$`],\\&,g
9367 t clear
9368 : clear
9369 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9370 t end
9371 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9372 : end
9373 _ACEOF
9374 # If some macros were called several times there might be several times
9375 # the same #defines, which is useless. Nevertheless, we may not want to
9376 # sort them, since we want the *last* AC-DEFINE to be honored.
9377 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9378 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9379 rm -f confdef2sed.sed
9381 # This sed command replaces #undef with comments. This is necessary, for
9382 # example, in the case of _POSIX_SOURCE, which is predefined and required
9383 # on some systems where configure will not decide to define it.
9384 cat >>conftest.undefs <<\_ACEOF
9385 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9386 _ACEOF
9388 # Break up conftest.defines because some shells have a limit on the size
9389 # of here documents, and old seds have small limits too (100 cmds).
9390 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9391 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9392 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9393 echo ' :' >>$CONFIG_STATUS
9394 rm -f conftest.tail
9395 while grep . conftest.defines >/dev/null
9397 # Write a limited-size here document to $tmp/defines.sed.
9398 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9399 # Speed up: don't consider the non `#define' lines.
9400 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9401 # Work around the forget-to-reset-the-flag bug.
9402 echo 't clr' >>$CONFIG_STATUS
9403 echo ': clr' >>$CONFIG_STATUS
9404 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9405 echo 'CEOF
9406 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9407 rm -f $tmp/in
9408 mv $tmp/out $tmp/in
9409 ' >>$CONFIG_STATUS
9410 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9411 rm -f conftest.defines
9412 mv conftest.tail conftest.defines
9413 done
9414 rm -f conftest.defines
9415 echo ' fi # grep' >>$CONFIG_STATUS
9416 echo >>$CONFIG_STATUS
9418 # Break up conftest.undefs because some shells have a limit on the size
9419 # of here documents, and old seds have small limits too (100 cmds).
9420 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9421 rm -f conftest.tail
9422 while grep . conftest.undefs >/dev/null
9424 # Write a limited-size here document to $tmp/undefs.sed.
9425 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9426 # Speed up: don't consider the non `#undef'
9427 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9428 # Work around the forget-to-reset-the-flag bug.
9429 echo 't clr' >>$CONFIG_STATUS
9430 echo ': clr' >>$CONFIG_STATUS
9431 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9432 echo 'CEOF
9433 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9434 rm -f $tmp/in
9435 mv $tmp/out $tmp/in
9436 ' >>$CONFIG_STATUS
9437 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9438 rm -f conftest.undefs
9439 mv conftest.tail conftest.undefs
9440 done
9441 rm -f conftest.undefs
9443 cat >>$CONFIG_STATUS <<\_ACEOF
9444 # Let's still pretend it is `configure' which instantiates (i.e., don't
9445 # use $as_me), people would be surprised to read:
9446 # /* config.h. Generated by config.status. */
9447 if test x"$ac_file" = x-; then
9448 echo "/* Generated by configure. */" >$tmp/config.h
9449 else
9450 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9452 cat $tmp/in >>$tmp/config.h
9453 rm -f $tmp/in
9454 if test x"$ac_file" != x-; then
9455 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9456 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9457 echo "$as_me: $ac_file is unchanged" >&6;}
9458 else
9459 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9460 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9461 X"$ac_file" : 'X\(//\)[^/]' \| \
9462 X"$ac_file" : 'X\(//\)$' \| \
9463 X"$ac_file" : 'X\(/\)' \| \
9464 . : '\(.\)' 2>/dev/null ||
9465 echo X"$ac_file" |
9466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9467 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9468 /^X\(\/\/\)$/{ s//\1/; q; }
9469 /^X\(\/\).*/{ s//\1/; q; }
9470 s/.*/./; q'`
9471 { if $as_mkdir_p; then
9472 mkdir -p "$ac_dir"
9473 else
9474 as_dir="$ac_dir"
9475 as_dirs=
9476 while test ! -d "$as_dir"; do
9477 as_dirs="$as_dir $as_dirs"
9478 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9479 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9480 X"$as_dir" : 'X\(//\)[^/]' \| \
9481 X"$as_dir" : 'X\(//\)$' \| \
9482 X"$as_dir" : 'X\(/\)' \| \
9483 . : '\(.\)' 2>/dev/null ||
9484 echo X"$as_dir" |
9485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9486 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9487 /^X\(\/\/\)$/{ s//\1/; q; }
9488 /^X\(\/\).*/{ s//\1/; q; }
9489 s/.*/./; q'`
9490 done
9491 test ! -n "$as_dirs" || mkdir $as_dirs
9492 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9493 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9494 { (exit 1); exit 1; }; }; }
9496 rm -f $ac_file
9497 mv $tmp/config.h $ac_file
9499 else
9500 cat $tmp/config.h
9501 rm -f $tmp/config.h
9503 # Run the commands associated with the file.
9504 case $ac_file in
9505 config.h ) echo timestamp > stamp-h1 ;;
9506 esac
9507 done
9508 _ACEOF
9509 cat >>$CONFIG_STATUS <<\_ACEOF
9512 # CONFIG_COMMANDS section.
9514 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9515 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9516 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9517 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9518 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9519 X"$ac_dest" : 'X\(//\)[^/]' \| \
9520 X"$ac_dest" : 'X\(//\)$' \| \
9521 X"$ac_dest" : 'X\(/\)' \| \
9522 . : '\(.\)' 2>/dev/null ||
9523 echo X"$ac_dest" |
9524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9525 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9526 /^X\(\/\/\)$/{ s//\1/; q; }
9527 /^X\(\/\).*/{ s//\1/; q; }
9528 s/.*/./; q'`
9529 { if $as_mkdir_p; then
9530 mkdir -p "$ac_dir"
9531 else
9532 as_dir="$ac_dir"
9533 as_dirs=
9534 while test ! -d "$as_dir"; do
9535 as_dirs="$as_dir $as_dirs"
9536 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9537 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9538 X"$as_dir" : 'X\(//\)[^/]' \| \
9539 X"$as_dir" : 'X\(//\)$' \| \
9540 X"$as_dir" : 'X\(/\)' \| \
9541 . : '\(.\)' 2>/dev/null ||
9542 echo X"$as_dir" |
9543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9544 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9545 /^X\(\/\/\)$/{ s//\1/; q; }
9546 /^X\(\/\).*/{ s//\1/; q; }
9547 s/.*/./; q'`
9548 done
9549 test ! -n "$as_dirs" || mkdir $as_dirs
9550 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9551 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9552 { (exit 1); exit 1; }; }; }
9554 ac_builddir=.
9556 if test "$ac_dir" != .; then
9557 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9558 # A "../" for each directory in $ac_dir_suffix.
9559 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9560 else
9561 ac_dir_suffix= ac_top_builddir=
9564 case $srcdir in
9565 .) # No --srcdir option. We are building in place.
9566 ac_srcdir=.
9567 if test -z "$ac_top_builddir"; then
9568 ac_top_srcdir=.
9569 else
9570 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9571 fi ;;
9572 [\\/]* | ?:[\\/]* ) # Absolute path.
9573 ac_srcdir=$srcdir$ac_dir_suffix;
9574 ac_top_srcdir=$srcdir ;;
9575 *) # Relative path.
9576 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9577 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9578 esac
9580 # Do not use `cd foo && pwd` to compute absolute paths, because
9581 # the directories may not exist.
9582 case `pwd` in
9583 .) ac_abs_builddir="$ac_dir";;
9585 case "$ac_dir" in
9586 .) ac_abs_builddir=`pwd`;;
9587 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9588 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9589 esac;;
9590 esac
9591 case $ac_abs_builddir in
9592 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9594 case ${ac_top_builddir}. in
9595 .) ac_abs_top_builddir=$ac_abs_builddir;;
9596 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9597 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9598 esac;;
9599 esac
9600 case $ac_abs_builddir in
9601 .) ac_abs_srcdir=$ac_srcdir;;
9603 case $ac_srcdir in
9604 .) ac_abs_srcdir=$ac_abs_builddir;;
9605 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9606 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9607 esac;;
9608 esac
9609 case $ac_abs_builddir in
9610 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9612 case $ac_top_srcdir in
9613 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9614 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9615 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9616 esac;;
9617 esac
9620 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9621 echo "$as_me: executing $ac_dest commands" >&6;}
9622 case $ac_dest in
9623 depdir ) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
9624 esac
9625 done
9626 _ACEOF
9628 cat >>$CONFIG_STATUS <<\_ACEOF
9630 { (exit 0); exit 0; }
9631 _ACEOF
9632 chmod +x $CONFIG_STATUS
9633 ac_clean_files=$ac_clean_files_save
9636 # configure is writing to config.log, and then calls config.status.
9637 # config.status does its own redirection, appending to config.log.
9638 # Unfortunately, on DOS this fails, as config.log is still kept open
9639 # by configure, so config.status won't be able to write to it; its
9640 # output is simply discarded. So we exec the FD to /dev/null,
9641 # effectively closing config.log, so it can be properly (re)opened and
9642 # appended to by config.status. When coming back to configure, we
9643 # need to make the FD available again.
9644 if test "$no_create" != yes; then
9645 ac_cs_success=:
9646 ac_config_status_args=
9647 test "$silent" = yes &&
9648 ac_config_status_args="$ac_config_status_args --quiet"
9649 exec 5>/dev/null
9650 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9651 exec 5>>config.log
9652 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9653 # would make configure fail if this is the last instruction.
9654 $ac_cs_success || { (exit 1); exit 1; }