PR fortran/38718
[official-gcc.git] / libcpp / configure
blob9a4f30ddfc01f5440d3f07873bc4dc7b984ef957
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=''
316 ac_pwd=`pwd`
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_libraries=NONE
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
356 ac_prev=
357 for ac_option
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
370 case $ac_option in
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 bindir=$ac_optarg ;;
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
389 --config-cache | -C)
390 cache_file=config.cache ;;
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
396 datadir=$ac_optarg ;;
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 *) ac_optarg=yes ;;
417 esac
418 eval "enable_$ac_feature='$ac_optarg'" ;;
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 libdir=$ac_optarg ;;
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 mandir=$ac_optarg ;;
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
489 no_create=yes ;;
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 prefix=$ac_optarg ;;
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
548 sbindir=$ac_optarg ;;
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
559 sharedstatedir=$ac_optarg ;;
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
564 site=$ac_optarg ;;
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 srcdir=$ac_optarg ;;
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
589 -with-* | --with-*)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 *) ac_optarg=yes ;;
599 esac
600 eval "with_$ac_package='$ac_optarg'" ;;
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 esac
653 done
655 if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670 done
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
681 esac
682 done
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705 test "$silent" = yes && exec 6>/dev/null
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718 echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
728 else
729 ac_srcdir_defaulted=no
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
735 else
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
757 ac_env_CC_value=$CC
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CPP_set=${CPP+set}
773 ac_env_CPP_value=$CPP
774 ac_cv_env_CPP_set=${CPP+set}
775 ac_cv_env_CPP_value=$CPP
778 # Report the --help message.
780 if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
783 cat <<_ACEOF
784 \`configure' configures cpplib to adapt to many kinds of systems.
786 Usage: $0 [OPTION]... [VAR=VALUE]...
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE. See below for descriptions of some of the useful variables.
791 Defaults for the options are specified in brackets.
793 Configuration:
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 _ACEOF
806 cat <<_ACEOF
807 Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
809 [$ac_default_prefix]
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 [PREFIX]
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
818 For better control, use the options below.
820 Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
833 _ACEOF
835 cat <<\_ACEOF
837 System types:
838 --build=BUILD configure for building on BUILD [guessed]
839 --host=HOST cross-compile to build programs to run on HOST [BUILD]
840 --target=TARGET configure for building compilers for TARGET [HOST]
841 _ACEOF
844 if test -n "$ac_init_help"; then
845 case $ac_init_help in
846 short | recursive ) echo "Configuration of cpplib :";;
847 esac
848 cat <<\_ACEOF
850 Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --enable-werror-always enable -Werror despite compiler version
854 --disable-rpath do not hardcode runtime library paths
855 --enable-maintainer-mode enable rules only needed by maintainers
856 --enable-checking enable expensive run-time checks
858 Optional Packages:
859 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
860 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
861 --with-gnu-ld assume the C compiler uses GNU ld default=no
862 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
863 --without-libiconv-prefix don't search for libiconv in includedir and libdir
865 Some influential environment variables:
866 CC C compiler command
867 CFLAGS C compiler flags
868 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
869 nonstandard directory <lib dir>
870 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
871 headers in a nonstandard directory <include dir>
872 CPP C preprocessor
874 Use these variables to override the choices made by `configure' or to help
875 it to find libraries and programs with nonstandard names/locations.
877 Report bugs to <gcc-bugs@gcc.gnu.org>.
878 _ACEOF
881 if test "$ac_init_help" = "recursive"; then
882 # If there are subdirs, report their specific --help.
883 ac_popdir=`pwd`
884 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
885 test -d $ac_dir || continue
886 ac_builddir=.
888 if test "$ac_dir" != .; then
889 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
890 # A "../" for each directory in $ac_dir_suffix.
891 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
892 else
893 ac_dir_suffix= ac_top_builddir=
896 case $srcdir in
897 .) # No --srcdir option. We are building in place.
898 ac_srcdir=.
899 if test -z "$ac_top_builddir"; then
900 ac_top_srcdir=.
901 else
902 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
903 fi ;;
904 [\\/]* | ?:[\\/]* ) # Absolute path.
905 ac_srcdir=$srcdir$ac_dir_suffix;
906 ac_top_srcdir=$srcdir ;;
907 *) # Relative path.
908 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
909 ac_top_srcdir=$ac_top_builddir$srcdir ;;
910 esac
912 # Do not use `cd foo && pwd` to compute absolute paths, because
913 # the directories may not exist.
914 case `pwd` in
915 .) ac_abs_builddir="$ac_dir";;
917 case "$ac_dir" in
918 .) ac_abs_builddir=`pwd`;;
919 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
920 *) ac_abs_builddir=`pwd`/"$ac_dir";;
921 esac;;
922 esac
923 case $ac_abs_builddir in
924 .) ac_abs_top_builddir=${ac_top_builddir}.;;
926 case ${ac_top_builddir}. in
927 .) ac_abs_top_builddir=$ac_abs_builddir;;
928 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
929 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
930 esac;;
931 esac
932 case $ac_abs_builddir in
933 .) ac_abs_srcdir=$ac_srcdir;;
935 case $ac_srcdir in
936 .) ac_abs_srcdir=$ac_abs_builddir;;
937 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
938 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
939 esac;;
940 esac
941 case $ac_abs_builddir in
942 .) ac_abs_top_srcdir=$ac_top_srcdir;;
944 case $ac_top_srcdir in
945 .) ac_abs_top_srcdir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
947 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
948 esac;;
949 esac
951 cd $ac_dir
952 # Check for guested configure; otherwise get Cygnus style configure.
953 if test -f $ac_srcdir/configure.gnu; then
954 echo
955 $SHELL $ac_srcdir/configure.gnu --help=recursive
956 elif test -f $ac_srcdir/configure; then
957 echo
958 $SHELL $ac_srcdir/configure --help=recursive
959 elif test -f $ac_srcdir/configure.ac ||
960 test -f $ac_srcdir/configure.in; then
961 echo
962 $ac_configure --help
963 else
964 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
966 cd $ac_popdir
967 done
970 test -n "$ac_init_help" && exit 0
971 if $ac_init_version; then
972 cat <<\_ACEOF
973 cpplib configure
974 generated by GNU Autoconf 2.59
976 Copyright (C) 2003 Free Software Foundation, Inc.
977 This configure script is free software; the Free Software Foundation
978 gives unlimited permission to copy, distribute and modify it.
979 _ACEOF
980 exit 0
982 exec 5>config.log
983 cat >&5 <<_ACEOF
984 This file contains any messages produced by compilers while
985 running configure, to aid debugging if configure makes a mistake.
987 It was created by cpplib $as_me , which was
988 generated by GNU Autoconf 2.59. Invocation command line was
990 $ $0 $@
992 _ACEOF
994 cat <<_ASUNAME
995 ## --------- ##
996 ## Platform. ##
997 ## --------- ##
999 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1000 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1001 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1002 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1003 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1005 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1006 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1008 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1009 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1010 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1011 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1012 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1013 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1014 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1016 _ASUNAME
1018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1019 for as_dir in $PATH
1021 IFS=$as_save_IFS
1022 test -z "$as_dir" && as_dir=.
1023 echo "PATH: $as_dir"
1024 done
1026 } >&5
1028 cat >&5 <<_ACEOF
1031 ## ----------- ##
1032 ## Core tests. ##
1033 ## ----------- ##
1035 _ACEOF
1038 # Keep a trace of the command line.
1039 # Strip out --no-create and --no-recursion so they do not pile up.
1040 # Strip out --silent because we don't want to record it for future runs.
1041 # Also quote any args containing shell meta-characters.
1042 # Make two passes to allow for proper duplicate-argument suppression.
1043 ac_configure_args=
1044 ac_configure_args0=
1045 ac_configure_args1=
1046 ac_sep=
1047 ac_must_keep_next=false
1048 for ac_pass in 1 2
1050 for ac_arg
1052 case $ac_arg in
1053 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1055 | -silent | --silent | --silen | --sile | --sil)
1056 continue ;;
1057 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1058 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1059 esac
1060 case $ac_pass in
1061 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1063 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1064 if test $ac_must_keep_next = true; then
1065 ac_must_keep_next=false # Got value, back to normal.
1066 else
1067 case $ac_arg in
1068 *=* | --config-cache | -C | -disable-* | --disable-* \
1069 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1070 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1071 | -with-* | --with-* | -without-* | --without-* | --x)
1072 case "$ac_configure_args0 " in
1073 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1074 esac
1076 -* ) ac_must_keep_next=true ;;
1077 esac
1079 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1080 # Get rid of the leading space.
1081 ac_sep=" "
1083 esac
1084 done
1085 done
1086 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1087 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1089 # When interrupted or exit'd, cleanup temporary files, and complete
1090 # config.log. We remove comments because anyway the quotes in there
1091 # would cause problems or look ugly.
1092 # WARNING: Be sure not to use single quotes in there, as some shells,
1093 # such as our DU 5.0 friend, will then `close' the trap.
1094 trap 'exit_status=$?
1095 # Save into config.log some information that might help in debugging.
1097 echo
1099 cat <<\_ASBOX
1100 ## ---------------- ##
1101 ## Cache variables. ##
1102 ## ---------------- ##
1103 _ASBOX
1104 echo
1105 # The following way of writing the cache mishandles newlines in values,
1107 (set) 2>&1 |
1108 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1109 *ac_space=\ *)
1110 sed -n \
1111 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1115 sed -n \
1116 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1118 esac;
1120 echo
1122 cat <<\_ASBOX
1123 ## ----------------- ##
1124 ## Output variables. ##
1125 ## ----------------- ##
1126 _ASBOX
1127 echo
1128 for ac_var in $ac_subst_vars
1130 eval ac_val=$`echo $ac_var`
1131 echo "$ac_var='"'"'$ac_val'"'"'"
1132 done | sort
1133 echo
1135 if test -n "$ac_subst_files"; then
1136 cat <<\_ASBOX
1137 ## ------------- ##
1138 ## Output files. ##
1139 ## ------------- ##
1140 _ASBOX
1141 echo
1142 for ac_var in $ac_subst_files
1144 eval ac_val=$`echo $ac_var`
1145 echo "$ac_var='"'"'$ac_val'"'"'"
1146 done | sort
1147 echo
1150 if test -s confdefs.h; then
1151 cat <<\_ASBOX
1152 ## ----------- ##
1153 ## confdefs.h. ##
1154 ## ----------- ##
1155 _ASBOX
1156 echo
1157 sed "/^$/d" confdefs.h | sort
1158 echo
1160 test "$ac_signal" != 0 &&
1161 echo "$as_me: caught signal $ac_signal"
1162 echo "$as_me: exit $exit_status"
1163 } >&5
1164 rm -f core *.core &&
1165 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1166 exit $exit_status
1168 for ac_signal in 1 2 13 15; do
1169 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1170 done
1171 ac_signal=0
1173 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1174 rm -rf conftest* confdefs.h
1175 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1176 echo >confdefs.h
1178 # Predefined preprocessor variables.
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_NAME "$PACKAGE_NAME"
1182 _ACEOF
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1187 _ACEOF
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1192 _ACEOF
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_STRING "$PACKAGE_STRING"
1197 _ACEOF
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1202 _ACEOF
1205 # Let the site file select an alternate cache file if it wants to.
1206 # Prefer explicitly selected file to automatically selected ones.
1207 if test -z "$CONFIG_SITE"; then
1208 if test "x$prefix" != xNONE; then
1209 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1210 else
1211 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1214 for ac_site_file in $CONFIG_SITE; do
1215 if test -r "$ac_site_file"; then
1216 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1217 echo "$as_me: loading site script $ac_site_file" >&6;}
1218 sed 's/^/| /' "$ac_site_file" >&5
1219 . "$ac_site_file"
1221 done
1223 if test -r "$cache_file"; then
1224 # Some versions of bash will fail to source /dev/null (special
1225 # files actually), so we avoid doing that.
1226 if test -f "$cache_file"; then
1227 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1228 echo "$as_me: loading cache $cache_file" >&6;}
1229 case $cache_file in
1230 [\\/]* | ?:[\\/]* ) . $cache_file;;
1231 *) . ./$cache_file;;
1232 esac
1234 else
1235 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1236 echo "$as_me: creating cache $cache_file" >&6;}
1237 >$cache_file
1240 # Check that the precious variables saved in the cache have kept the same
1241 # value.
1242 ac_cache_corrupted=false
1243 for ac_var in `(set) 2>&1 |
1244 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1245 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1246 eval ac_new_set=\$ac_env_${ac_var}_set
1247 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1248 eval ac_new_val="\$ac_env_${ac_var}_value"
1249 case $ac_old_set,$ac_new_set in
1250 set,)
1251 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1252 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1253 ac_cache_corrupted=: ;;
1254 ,set)
1255 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1256 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1257 ac_cache_corrupted=: ;;
1258 ,);;
1260 if test "x$ac_old_val" != "x$ac_new_val"; then
1261 # differences in whitespace do not lead to failure.
1262 ac_old_val_w=`echo x $ac_old_val`
1263 ac_new_val_w=`echo x $ac_new_val`
1264 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1265 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1266 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1267 ac_cache_corrupted=:
1268 else
1269 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1270 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1271 eval $ac_var=\$ac_old_val
1273 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1274 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1275 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1276 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1277 fi;;
1278 esac
1279 # Pass precious variables to config.status.
1280 if test "$ac_new_set" = set; then
1281 case $ac_new_val in
1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1284 *) ac_arg=$ac_var=$ac_new_val ;;
1285 esac
1286 case " $ac_configure_args " in
1287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1288 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1289 esac
1291 done
1292 if $ac_cache_corrupted; then
1293 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1294 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1295 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1296 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1297 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1298 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1299 { (exit 1); exit 1; }; }
1302 ac_ext=c
1303 ac_cpp='$CPP $CPPFLAGS'
1304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1338 case ../config in
1339 [\\/]* | ?:[\\/]* ) ac_macro_dir=../config ;;
1340 *) ac_macro_dir=$srcdir/../config ;;
1341 esac
1342 if test -d "$ac_macro_dir"; then :
1343 else
1344 { { echo "$as_me:$LINENO: error: cannot find macro directory \`../config'" >&5
1345 echo "$as_me: error: cannot find macro directory \`../config'" >&2;}
1346 { (exit 1); exit 1; }; }
1349 ac_aux_dir=
1350 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1351 if test -f $ac_dir/install-sh; then
1352 ac_aux_dir=$ac_dir
1353 ac_install_sh="$ac_aux_dir/install-sh -c"
1354 break
1355 elif test -f $ac_dir/install.sh; then
1356 ac_aux_dir=$ac_dir
1357 ac_install_sh="$ac_aux_dir/install.sh -c"
1358 break
1359 elif test -f $ac_dir/shtool; then
1360 ac_aux_dir=$ac_dir
1361 ac_install_sh="$ac_aux_dir/shtool install -c"
1362 break
1364 done
1365 if test -z "$ac_aux_dir"; then
1366 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1367 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1368 { (exit 1); exit 1; }; }
1370 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1371 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1372 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1374 # Make sure we can run config.sub.
1375 $ac_config_sub sun4 >/dev/null 2>&1 ||
1376 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1377 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1378 { (exit 1); exit 1; }; }
1380 echo "$as_me:$LINENO: checking build system type" >&5
1381 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1382 if test "${ac_cv_build+set}" = set; then
1383 echo $ECHO_N "(cached) $ECHO_C" >&6
1384 else
1385 ac_cv_build_alias=$build_alias
1386 test -z "$ac_cv_build_alias" &&
1387 ac_cv_build_alias=`$ac_config_guess`
1388 test -z "$ac_cv_build_alias" &&
1389 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1390 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1391 { (exit 1); exit 1; }; }
1392 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1393 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1394 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1395 { (exit 1); exit 1; }; }
1398 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1399 echo "${ECHO_T}$ac_cv_build" >&6
1400 build=$ac_cv_build
1401 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1402 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1403 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1406 echo "$as_me:$LINENO: checking host system type" >&5
1407 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1408 if test "${ac_cv_host+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1410 else
1411 ac_cv_host_alias=$host_alias
1412 test -z "$ac_cv_host_alias" &&
1413 ac_cv_host_alias=$ac_cv_build_alias
1414 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1415 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1416 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1417 { (exit 1); exit 1; }; }
1420 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1421 echo "${ECHO_T}$ac_cv_host" >&6
1422 host=$ac_cv_host
1423 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1424 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1425 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1428 echo "$as_me:$LINENO: checking target system type" >&5
1429 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1430 if test "${ac_cv_target+set}" = set; then
1431 echo $ECHO_N "(cached) $ECHO_C" >&6
1432 else
1433 ac_cv_target_alias=$target_alias
1434 test "x$ac_cv_target_alias" = "x" &&
1435 ac_cv_target_alias=$ac_cv_host_alias
1436 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1437 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1438 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1439 { (exit 1); exit 1; }; }
1442 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1443 echo "${ECHO_T}$ac_cv_target" >&6
1444 target=$ac_cv_target
1445 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1446 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1447 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1450 # The aliases save the names the user supplied, while $host etc.
1451 # will get canonicalized.
1452 test -n "$target_alias" &&
1453 test "$program_prefix$program_suffix$program_transform_name" = \
1454 NONENONEs,x,x, &&
1455 program_prefix=${target_alias}-
1457 # Checks for programs.
1458 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1459 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1460 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1461 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1462 echo $ECHO_N "(cached) $ECHO_C" >&6
1463 else
1464 cat >conftest.make <<\_ACEOF
1465 all:
1466 @echo 'ac_maketemp="$(MAKE)"'
1467 _ACEOF
1468 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1469 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1470 if test -n "$ac_maketemp"; then
1471 eval ac_cv_prog_make_${ac_make}_set=yes
1472 else
1473 eval ac_cv_prog_make_${ac_make}_set=no
1475 rm -f conftest.make
1477 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1478 echo "$as_me:$LINENO: result: yes" >&5
1479 echo "${ECHO_T}yes" >&6
1480 SET_MAKE=
1481 else
1482 echo "$as_me:$LINENO: result: no" >&5
1483 echo "${ECHO_T}no" >&6
1484 SET_MAKE="MAKE=${MAKE-make}"
1487 # Find a good install program. We prefer a C program (faster),
1488 # so one script is as good as another. But avoid the broken or
1489 # incompatible versions:
1490 # SysV /etc/install, /usr/sbin/install
1491 # SunOS /usr/etc/install
1492 # IRIX /sbin/install
1493 # AIX /bin/install
1494 # AmigaOS /C/install, which installs bootblocks on floppy discs
1495 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1496 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1497 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1498 # OS/2's system install, which has a completely different semantic
1499 # ./install, which can be erroneously created by make from ./install.sh.
1500 # Reject install programs that cannot install multiple files.
1501 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1502 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1503 if test -z "$INSTALL"; then
1504 if test "${ac_cv_path_install+set}" = set; then
1505 echo $ECHO_N "(cached) $ECHO_C" >&6
1506 else
1507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1508 for as_dir in $PATH
1510 IFS=$as_save_IFS
1511 test -z "$as_dir" && as_dir=.
1512 # Account for people who put trailing slashes in PATH elements.
1513 case $as_dir/ in
1514 ./ | .// | /cC/* | \
1515 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1516 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1517 /usr/ucb/* ) ;;
1519 # OSF1 and SCO ODT 3.0 have their own names for install.
1520 # Don't use installbsd from OSF since it installs stuff as root
1521 # by default.
1522 for ac_prog in ginstall scoinst install; do
1523 for ac_exec_ext in '' $ac_executable_extensions; do
1524 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1525 if test $ac_prog = install &&
1526 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1527 # AIX install. It has an incompatible calling convention.
1529 elif test $ac_prog = install &&
1530 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1531 # program-specific install script used by HP pwplus--don't use.
1533 else
1534 rm -rf conftest.one conftest.two conftest.dir
1535 echo one > conftest.one
1536 echo two > conftest.two
1537 mkdir conftest.dir
1538 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1539 test -s conftest.one && test -s conftest.two &&
1540 test -s conftest.dir/conftest.one &&
1541 test -s conftest.dir/conftest.two
1542 then
1543 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1544 break 3
1548 done
1549 done
1551 esac
1552 done
1554 rm -rf conftest.one conftest.two conftest.dir
1557 if test "${ac_cv_path_install+set}" = set; then
1558 INSTALL=$ac_cv_path_install
1559 else
1560 # As a last resort, use the slow shell script. Don't cache a
1561 # value for INSTALL within a source directory, because that will
1562 # break other packages using the cache if that directory is
1563 # removed, or if the value is a relative name.
1564 INSTALL=$ac_install_sh
1567 echo "$as_me:$LINENO: result: $INSTALL" >&5
1568 echo "${ECHO_T}$INSTALL" >&6
1570 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1571 # It thinks the first close brace ends the variable substitution.
1572 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1574 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1576 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1578 ac_ext=c
1579 ac_cpp='$CPP $CPPFLAGS'
1580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1583 if test -n "$ac_tool_prefix"; then
1584 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1585 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1586 echo "$as_me:$LINENO: checking for $ac_word" >&5
1587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1588 if test "${ac_cv_prog_CC+set}" = set; then
1589 echo $ECHO_N "(cached) $ECHO_C" >&6
1590 else
1591 if test -n "$CC"; then
1592 ac_cv_prog_CC="$CC" # Let the user override the test.
1593 else
1594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1595 for as_dir in $PATH
1597 IFS=$as_save_IFS
1598 test -z "$as_dir" && as_dir=.
1599 for ac_exec_ext in '' $ac_executable_extensions; do
1600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1601 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1603 break 2
1605 done
1606 done
1610 CC=$ac_cv_prog_CC
1611 if test -n "$CC"; then
1612 echo "$as_me:$LINENO: result: $CC" >&5
1613 echo "${ECHO_T}$CC" >&6
1614 else
1615 echo "$as_me:$LINENO: result: no" >&5
1616 echo "${ECHO_T}no" >&6
1620 if test -z "$ac_cv_prog_CC"; then
1621 ac_ct_CC=$CC
1622 # Extract the first word of "gcc", so it can be a program name with args.
1623 set dummy gcc; ac_word=$2
1624 echo "$as_me:$LINENO: checking for $ac_word" >&5
1625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1626 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 else
1629 if test -n "$ac_ct_CC"; then
1630 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1631 else
1632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633 for as_dir in $PATH
1635 IFS=$as_save_IFS
1636 test -z "$as_dir" && as_dir=.
1637 for ac_exec_ext in '' $ac_executable_extensions; do
1638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1639 ac_cv_prog_ac_ct_CC="gcc"
1640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1641 break 2
1643 done
1644 done
1648 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1649 if test -n "$ac_ct_CC"; then
1650 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1651 echo "${ECHO_T}$ac_ct_CC" >&6
1652 else
1653 echo "$as_me:$LINENO: result: no" >&5
1654 echo "${ECHO_T}no" >&6
1657 CC=$ac_ct_CC
1658 else
1659 CC="$ac_cv_prog_CC"
1662 if test -z "$CC"; then
1663 if test -n "$ac_tool_prefix"; then
1664 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1665 set dummy ${ac_tool_prefix}cc; ac_word=$2
1666 echo "$as_me:$LINENO: checking for $ac_word" >&5
1667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1668 if test "${ac_cv_prog_CC+set}" = set; then
1669 echo $ECHO_N "(cached) $ECHO_C" >&6
1670 else
1671 if test -n "$CC"; then
1672 ac_cv_prog_CC="$CC" # Let the user override the test.
1673 else
1674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1675 for as_dir in $PATH
1677 IFS=$as_save_IFS
1678 test -z "$as_dir" && as_dir=.
1679 for ac_exec_ext in '' $ac_executable_extensions; do
1680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1681 ac_cv_prog_CC="${ac_tool_prefix}cc"
1682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1683 break 2
1685 done
1686 done
1690 CC=$ac_cv_prog_CC
1691 if test -n "$CC"; then
1692 echo "$as_me:$LINENO: result: $CC" >&5
1693 echo "${ECHO_T}$CC" >&6
1694 else
1695 echo "$as_me:$LINENO: result: no" >&5
1696 echo "${ECHO_T}no" >&6
1700 if test -z "$ac_cv_prog_CC"; then
1701 ac_ct_CC=$CC
1702 # Extract the first word of "cc", so it can be a program name with args.
1703 set dummy cc; ac_word=$2
1704 echo "$as_me:$LINENO: checking for $ac_word" >&5
1705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1706 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1707 echo $ECHO_N "(cached) $ECHO_C" >&6
1708 else
1709 if test -n "$ac_ct_CC"; then
1710 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1711 else
1712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713 for as_dir in $PATH
1715 IFS=$as_save_IFS
1716 test -z "$as_dir" && as_dir=.
1717 for ac_exec_ext in '' $ac_executable_extensions; do
1718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1719 ac_cv_prog_ac_ct_CC="cc"
1720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1721 break 2
1723 done
1724 done
1728 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1729 if test -n "$ac_ct_CC"; then
1730 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1731 echo "${ECHO_T}$ac_ct_CC" >&6
1732 else
1733 echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1737 CC=$ac_ct_CC
1738 else
1739 CC="$ac_cv_prog_CC"
1743 if test -z "$CC"; then
1744 # Extract the first word of "cc", so it can be a program name with args.
1745 set dummy cc; ac_word=$2
1746 echo "$as_me:$LINENO: checking for $ac_word" >&5
1747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1748 if test "${ac_cv_prog_CC+set}" = set; then
1749 echo $ECHO_N "(cached) $ECHO_C" >&6
1750 else
1751 if test -n "$CC"; then
1752 ac_cv_prog_CC="$CC" # Let the user override the test.
1753 else
1754 ac_prog_rejected=no
1755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756 for as_dir in $PATH
1758 IFS=$as_save_IFS
1759 test -z "$as_dir" && as_dir=.
1760 for ac_exec_ext in '' $ac_executable_extensions; do
1761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1762 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1763 ac_prog_rejected=yes
1764 continue
1766 ac_cv_prog_CC="cc"
1767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1768 break 2
1770 done
1771 done
1773 if test $ac_prog_rejected = yes; then
1774 # We found a bogon in the path, so make sure we never use it.
1775 set dummy $ac_cv_prog_CC
1776 shift
1777 if test $# != 0; then
1778 # We chose a different compiler from the bogus one.
1779 # However, it has the same basename, so the bogon will be chosen
1780 # first if we set CC to just the basename; use the full file name.
1781 shift
1782 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1787 CC=$ac_cv_prog_CC
1788 if test -n "$CC"; then
1789 echo "$as_me:$LINENO: result: $CC" >&5
1790 echo "${ECHO_T}$CC" >&6
1791 else
1792 echo "$as_me:$LINENO: result: no" >&5
1793 echo "${ECHO_T}no" >&6
1797 if test -z "$CC"; then
1798 if test -n "$ac_tool_prefix"; then
1799 for ac_prog in cl
1801 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1802 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1803 echo "$as_me:$LINENO: checking for $ac_word" >&5
1804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1805 if test "${ac_cv_prog_CC+set}" = set; then
1806 echo $ECHO_N "(cached) $ECHO_C" >&6
1807 else
1808 if test -n "$CC"; then
1809 ac_cv_prog_CC="$CC" # Let the user override the test.
1810 else
1811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1812 for as_dir in $PATH
1814 IFS=$as_save_IFS
1815 test -z "$as_dir" && as_dir=.
1816 for ac_exec_ext in '' $ac_executable_extensions; do
1817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1818 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1820 break 2
1822 done
1823 done
1827 CC=$ac_cv_prog_CC
1828 if test -n "$CC"; then
1829 echo "$as_me:$LINENO: result: $CC" >&5
1830 echo "${ECHO_T}$CC" >&6
1831 else
1832 echo "$as_me:$LINENO: result: no" >&5
1833 echo "${ECHO_T}no" >&6
1836 test -n "$CC" && break
1837 done
1839 if test -z "$CC"; then
1840 ac_ct_CC=$CC
1841 for ac_prog in cl
1843 # Extract the first word of "$ac_prog", so it can be a program name with args.
1844 set dummy $ac_prog; ac_word=$2
1845 echo "$as_me:$LINENO: checking for $ac_word" >&5
1846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1847 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1848 echo $ECHO_N "(cached) $ECHO_C" >&6
1849 else
1850 if test -n "$ac_ct_CC"; then
1851 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1852 else
1853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1854 for as_dir in $PATH
1856 IFS=$as_save_IFS
1857 test -z "$as_dir" && as_dir=.
1858 for ac_exec_ext in '' $ac_executable_extensions; do
1859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1860 ac_cv_prog_ac_ct_CC="$ac_prog"
1861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1862 break 2
1864 done
1865 done
1869 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1870 if test -n "$ac_ct_CC"; then
1871 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1872 echo "${ECHO_T}$ac_ct_CC" >&6
1873 else
1874 echo "$as_me:$LINENO: result: no" >&5
1875 echo "${ECHO_T}no" >&6
1878 test -n "$ac_ct_CC" && break
1879 done
1881 CC=$ac_ct_CC
1887 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1888 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1889 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1890 See \`config.log' for more details." >&5
1891 echo "$as_me: error: no acceptable C compiler found in \$PATH
1892 See \`config.log' for more details." >&2;}
1893 { (exit 1); exit 1; }; }; }
1895 # Provide some information about the compiler.
1896 echo "$as_me:$LINENO:" \
1897 "checking for C compiler version" >&5
1898 ac_compiler=`set X $ac_compile; echo $2`
1899 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1900 (eval $ac_compiler --version </dev/null >&5) 2>&5
1901 ac_status=$?
1902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903 (exit $ac_status); }
1904 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1905 (eval $ac_compiler -v </dev/null >&5) 2>&5
1906 ac_status=$?
1907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1908 (exit $ac_status); }
1909 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1910 (eval $ac_compiler -V </dev/null >&5) 2>&5
1911 ac_status=$?
1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913 (exit $ac_status); }
1915 cat >conftest.$ac_ext <<_ACEOF
1916 /* confdefs.h. */
1917 _ACEOF
1918 cat confdefs.h >>conftest.$ac_ext
1919 cat >>conftest.$ac_ext <<_ACEOF
1920 /* end confdefs.h. */
1923 main ()
1927 return 0;
1929 _ACEOF
1930 ac_clean_files_save=$ac_clean_files
1931 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1932 # Try to create an executable without -o first, disregard a.out.
1933 # It will help us diagnose broken compilers, and finding out an intuition
1934 # of exeext.
1935 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1936 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1937 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1938 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1939 (eval $ac_link_default) 2>&5
1940 ac_status=$?
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }; then
1943 # Find the output, starting from the most likely. This scheme is
1944 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1945 # resort.
1947 # Be careful to initialize this variable, since it used to be cached.
1948 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1949 ac_cv_exeext=
1950 # b.out is created by i960 compilers.
1951 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1953 test -f "$ac_file" || continue
1954 case $ac_file in
1955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1957 conftest.$ac_ext )
1958 # This is the source file.
1960 [ab].out )
1961 # We found the default executable, but exeext='' is most
1962 # certainly right.
1963 break;;
1964 *.* )
1965 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1966 # FIXME: I believe we export ac_cv_exeext for Libtool,
1967 # but it would be cool to find out if it's true. Does anybody
1968 # maintain Libtool? --akim.
1969 export ac_cv_exeext
1970 break;;
1972 break;;
1973 esac
1974 done
1975 else
1976 echo "$as_me: failed program was:" >&5
1977 sed 's/^/| /' conftest.$ac_ext >&5
1979 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1980 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1981 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1982 See \`config.log' for more details." >&5
1983 echo "$as_me: error: C compiler cannot create executables
1984 See \`config.log' for more details." >&2;}
1985 { (exit 77); exit 77; }; }; }
1988 ac_exeext=$ac_cv_exeext
1989 echo "$as_me:$LINENO: result: $ac_file" >&5
1990 echo "${ECHO_T}$ac_file" >&6
1992 # Check the compiler produces executables we can run. If not, either
1993 # the compiler is broken, or we cross compile.
1994 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1995 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1996 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1997 # If not cross compiling, check that we can run a simple program.
1998 if test "$cross_compiling" != yes; then
1999 if { ac_try='./$ac_file'
2000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2001 (eval $ac_try) 2>&5
2002 ac_status=$?
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); }; }; then
2005 cross_compiling=no
2006 else
2007 if test "$cross_compiling" = maybe; then
2008 cross_compiling=yes
2009 else
2010 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2011 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2012 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2013 If you meant to cross compile, use \`--host'.
2014 See \`config.log' for more details." >&5
2015 echo "$as_me: error: cannot run C compiled programs.
2016 If you meant to cross compile, use \`--host'.
2017 See \`config.log' for more details." >&2;}
2018 { (exit 1); exit 1; }; }; }
2022 echo "$as_me:$LINENO: result: yes" >&5
2023 echo "${ECHO_T}yes" >&6
2025 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2026 ac_clean_files=$ac_clean_files_save
2027 # Check the compiler produces executables we can run. If not, either
2028 # the compiler is broken, or we cross compile.
2029 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2030 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2031 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2032 echo "${ECHO_T}$cross_compiling" >&6
2034 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2035 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2037 (eval $ac_link) 2>&5
2038 ac_status=$?
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }; then
2041 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2042 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2043 # work properly (i.e., refer to `conftest.exe'), while it won't with
2044 # `rm'.
2045 for ac_file in conftest.exe conftest conftest.*; do
2046 test -f "$ac_file" || continue
2047 case $ac_file in
2048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2049 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2050 export ac_cv_exeext
2051 break;;
2052 * ) break;;
2053 esac
2054 done
2055 else
2056 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2057 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2058 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2059 See \`config.log' for more details." >&5
2060 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2061 See \`config.log' for more details." >&2;}
2062 { (exit 1); exit 1; }; }; }
2065 rm -f conftest$ac_cv_exeext
2066 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2067 echo "${ECHO_T}$ac_cv_exeext" >&6
2069 rm -f conftest.$ac_ext
2070 EXEEXT=$ac_cv_exeext
2071 ac_exeext=$EXEEXT
2072 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2073 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2074 if test "${ac_cv_objext+set}" = set; then
2075 echo $ECHO_N "(cached) $ECHO_C" >&6
2076 else
2077 cat >conftest.$ac_ext <<_ACEOF
2078 /* confdefs.h. */
2079 _ACEOF
2080 cat confdefs.h >>conftest.$ac_ext
2081 cat >>conftest.$ac_ext <<_ACEOF
2082 /* end confdefs.h. */
2085 main ()
2089 return 0;
2091 _ACEOF
2092 rm -f conftest.o conftest.obj
2093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2094 (eval $ac_compile) 2>&5
2095 ac_status=$?
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }; then
2098 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2099 case $ac_file in
2100 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2101 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2102 break;;
2103 esac
2104 done
2105 else
2106 echo "$as_me: failed program was:" >&5
2107 sed 's/^/| /' conftest.$ac_ext >&5
2109 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2110 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2111 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2112 See \`config.log' for more details." >&5
2113 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2114 See \`config.log' for more details." >&2;}
2115 { (exit 1); exit 1; }; }; }
2118 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2120 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2121 echo "${ECHO_T}$ac_cv_objext" >&6
2122 OBJEXT=$ac_cv_objext
2123 ac_objext=$OBJEXT
2124 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2125 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2126 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2128 else
2129 cat >conftest.$ac_ext <<_ACEOF
2130 /* confdefs.h. */
2131 _ACEOF
2132 cat confdefs.h >>conftest.$ac_ext
2133 cat >>conftest.$ac_ext <<_ACEOF
2134 /* end confdefs.h. */
2137 main ()
2139 #ifndef __GNUC__
2140 choke me
2141 #endif
2144 return 0;
2146 _ACEOF
2147 rm -f conftest.$ac_objext
2148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2149 (eval $ac_compile) 2>conftest.er1
2150 ac_status=$?
2151 grep -v '^ *+' conftest.er1 >conftest.err
2152 rm -f conftest.er1
2153 cat conftest.err >&5
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); } &&
2156 { ac_try='test -z "$ac_c_werror_flag"
2157 || test ! -s conftest.err'
2158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2159 (eval $ac_try) 2>&5
2160 ac_status=$?
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }; } &&
2163 { ac_try='test -s conftest.$ac_objext'
2164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2165 (eval $ac_try) 2>&5
2166 ac_status=$?
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); }; }; then
2169 ac_compiler_gnu=yes
2170 else
2171 echo "$as_me: failed program was:" >&5
2172 sed 's/^/| /' conftest.$ac_ext >&5
2174 ac_compiler_gnu=no
2176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2177 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2180 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2181 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2182 GCC=`test $ac_compiler_gnu = yes && echo yes`
2183 ac_test_CFLAGS=${CFLAGS+set}
2184 ac_save_CFLAGS=$CFLAGS
2185 CFLAGS="-g"
2186 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2187 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2188 if test "${ac_cv_prog_cc_g+set}" = set; then
2189 echo $ECHO_N "(cached) $ECHO_C" >&6
2190 else
2191 cat >conftest.$ac_ext <<_ACEOF
2192 /* confdefs.h. */
2193 _ACEOF
2194 cat confdefs.h >>conftest.$ac_ext
2195 cat >>conftest.$ac_ext <<_ACEOF
2196 /* end confdefs.h. */
2199 main ()
2203 return 0;
2205 _ACEOF
2206 rm -f conftest.$ac_objext
2207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2208 (eval $ac_compile) 2>conftest.er1
2209 ac_status=$?
2210 grep -v '^ *+' conftest.er1 >conftest.err
2211 rm -f conftest.er1
2212 cat conftest.err >&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); } &&
2215 { ac_try='test -z "$ac_c_werror_flag"
2216 || test ! -s conftest.err'
2217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218 (eval $ac_try) 2>&5
2219 ac_status=$?
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); }; } &&
2222 { ac_try='test -s conftest.$ac_objext'
2223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2224 (eval $ac_try) 2>&5
2225 ac_status=$?
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; }; then
2228 ac_cv_prog_cc_g=yes
2229 else
2230 echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2233 ac_cv_prog_cc_g=no
2235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2237 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2238 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2239 if test "$ac_test_CFLAGS" = set; then
2240 CFLAGS=$ac_save_CFLAGS
2241 elif test $ac_cv_prog_cc_g = yes; then
2242 if test "$GCC" = yes; then
2243 CFLAGS="-g -O2"
2244 else
2245 CFLAGS="-g"
2247 else
2248 if test "$GCC" = yes; then
2249 CFLAGS="-O2"
2250 else
2251 CFLAGS=
2254 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2255 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2256 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2258 else
2259 ac_cv_prog_cc_stdc=no
2260 ac_save_CC=$CC
2261 cat >conftest.$ac_ext <<_ACEOF
2262 /* confdefs.h. */
2263 _ACEOF
2264 cat confdefs.h >>conftest.$ac_ext
2265 cat >>conftest.$ac_ext <<_ACEOF
2266 /* end confdefs.h. */
2267 #include <stdarg.h>
2268 #include <stdio.h>
2269 #include <sys/types.h>
2270 #include <sys/stat.h>
2271 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2272 struct buf { int x; };
2273 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2274 static char *e (p, i)
2275 char **p;
2276 int i;
2278 return p[i];
2280 static char *f (char * (*g) (char **, int), char **p, ...)
2282 char *s;
2283 va_list v;
2284 va_start (v,p);
2285 s = g (p, va_arg (v,int));
2286 va_end (v);
2287 return s;
2290 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2291 function prototypes and stuff, but not '\xHH' hex character constants.
2292 These don't provoke an error unfortunately, instead are silently treated
2293 as 'x'. The following induces an error, until -std1 is added to get
2294 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2295 array size at least. It's necessary to write '\x00'==0 to get something
2296 that's true only with -std1. */
2297 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2299 int test (int i, double x);
2300 struct s1 {int (*f) (int a);};
2301 struct s2 {int (*f) (double a);};
2302 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2303 int argc;
2304 char **argv;
2306 main ()
2308 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2310 return 0;
2312 _ACEOF
2313 # Don't try gcc -ansi; that turns off useful extensions and
2314 # breaks some systems' header files.
2315 # AIX -qlanglvl=ansi
2316 # Ultrix and OSF/1 -std1
2317 # HP-UX 10.20 and later -Ae
2318 # HP-UX older versions -Aa -D_HPUX_SOURCE
2319 # SVR4 -Xc -D__EXTENSIONS__
2320 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2322 CC="$ac_save_CC $ac_arg"
2323 rm -f conftest.$ac_objext
2324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2325 (eval $ac_compile) 2>conftest.er1
2326 ac_status=$?
2327 grep -v '^ *+' conftest.er1 >conftest.err
2328 rm -f conftest.er1
2329 cat conftest.err >&5
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); } &&
2332 { ac_try='test -z "$ac_c_werror_flag"
2333 || test ! -s conftest.err'
2334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335 (eval $ac_try) 2>&5
2336 ac_status=$?
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }; } &&
2339 { ac_try='test -s conftest.$ac_objext'
2340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341 (eval $ac_try) 2>&5
2342 ac_status=$?
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }; }; then
2345 ac_cv_prog_cc_stdc=$ac_arg
2346 break
2347 else
2348 echo "$as_me: failed program was:" >&5
2349 sed 's/^/| /' conftest.$ac_ext >&5
2352 rm -f conftest.err conftest.$ac_objext
2353 done
2354 rm -f conftest.$ac_ext conftest.$ac_objext
2355 CC=$ac_save_CC
2359 case "x$ac_cv_prog_cc_stdc" in
2360 x|xno)
2361 echo "$as_me:$LINENO: result: none needed" >&5
2362 echo "${ECHO_T}none needed" >&6 ;;
2364 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2365 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2366 CC="$CC $ac_cv_prog_cc_stdc" ;;
2367 esac
2369 # Some people use a C++ compiler to compile C. Since we use `exit',
2370 # in C++ we need to declare it. In case someone uses the same compiler
2371 # for both compiling C and C++ we need to have the C++ compiler decide
2372 # the declaration of exit, since it's the most demanding environment.
2373 cat >conftest.$ac_ext <<_ACEOF
2374 #ifndef __cplusplus
2375 choke me
2376 #endif
2377 _ACEOF
2378 rm -f conftest.$ac_objext
2379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2380 (eval $ac_compile) 2>conftest.er1
2381 ac_status=$?
2382 grep -v '^ *+' conftest.er1 >conftest.err
2383 rm -f conftest.er1
2384 cat conftest.err >&5
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); } &&
2387 { ac_try='test -z "$ac_c_werror_flag"
2388 || test ! -s conftest.err'
2389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390 (eval $ac_try) 2>&5
2391 ac_status=$?
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); }; } &&
2394 { ac_try='test -s conftest.$ac_objext'
2395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 (eval $ac_try) 2>&5
2397 ac_status=$?
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; }; then
2400 for ac_declaration in \
2401 '' \
2402 'extern "C" void std::exit (int) throw (); using std::exit;' \
2403 'extern "C" void std::exit (int); using std::exit;' \
2404 'extern "C" void exit (int) throw ();' \
2405 'extern "C" void exit (int);' \
2406 'void exit (int);'
2408 cat >conftest.$ac_ext <<_ACEOF
2409 /* confdefs.h. */
2410 _ACEOF
2411 cat confdefs.h >>conftest.$ac_ext
2412 cat >>conftest.$ac_ext <<_ACEOF
2413 /* end confdefs.h. */
2414 $ac_declaration
2415 #include <stdlib.h>
2417 main ()
2419 exit (42);
2421 return 0;
2423 _ACEOF
2424 rm -f conftest.$ac_objext
2425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2426 (eval $ac_compile) 2>conftest.er1
2427 ac_status=$?
2428 grep -v '^ *+' conftest.er1 >conftest.err
2429 rm -f conftest.er1
2430 cat conftest.err >&5
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); } &&
2433 { ac_try='test -z "$ac_c_werror_flag"
2434 || test ! -s conftest.err'
2435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436 (eval $ac_try) 2>&5
2437 ac_status=$?
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }; } &&
2440 { ac_try='test -s conftest.$ac_objext'
2441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442 (eval $ac_try) 2>&5
2443 ac_status=$?
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); }; }; then
2447 else
2448 echo "$as_me: failed program was:" >&5
2449 sed 's/^/| /' conftest.$ac_ext >&5
2451 continue
2453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2454 cat >conftest.$ac_ext <<_ACEOF
2455 /* confdefs.h. */
2456 _ACEOF
2457 cat confdefs.h >>conftest.$ac_ext
2458 cat >>conftest.$ac_ext <<_ACEOF
2459 /* end confdefs.h. */
2460 $ac_declaration
2462 main ()
2464 exit (42);
2466 return 0;
2468 _ACEOF
2469 rm -f conftest.$ac_objext
2470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2471 (eval $ac_compile) 2>conftest.er1
2472 ac_status=$?
2473 grep -v '^ *+' conftest.er1 >conftest.err
2474 rm -f conftest.er1
2475 cat conftest.err >&5
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); } &&
2478 { ac_try='test -z "$ac_c_werror_flag"
2479 || test ! -s conftest.err'
2480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481 (eval $ac_try) 2>&5
2482 ac_status=$?
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }; } &&
2485 { ac_try='test -s conftest.$ac_objext'
2486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487 (eval $ac_try) 2>&5
2488 ac_status=$?
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }; }; then
2491 break
2492 else
2493 echo "$as_me: failed program was:" >&5
2494 sed 's/^/| /' conftest.$ac_ext >&5
2497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2498 done
2499 rm -f conftest*
2500 if test -n "$ac_declaration"; then
2501 echo '#ifdef __cplusplus' >>confdefs.h
2502 echo $ac_declaration >>confdefs.h
2503 echo '#endif' >>confdefs.h
2506 else
2507 echo "$as_me: failed program was:" >&5
2508 sed 's/^/| /' conftest.$ac_ext >&5
2511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2512 ac_ext=c
2513 ac_cpp='$CPP $CPPFLAGS'
2514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2518 if test -n "$ac_tool_prefix"; then
2519 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2520 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2521 echo "$as_me:$LINENO: checking for $ac_word" >&5
2522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2523 if test "${ac_cv_prog_RANLIB+set}" = set; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6
2525 else
2526 if test -n "$RANLIB"; then
2527 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2528 else
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 for as_dir in $PATH
2532 IFS=$as_save_IFS
2533 test -z "$as_dir" && as_dir=.
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2536 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2538 break 2
2540 done
2541 done
2545 RANLIB=$ac_cv_prog_RANLIB
2546 if test -n "$RANLIB"; then
2547 echo "$as_me:$LINENO: result: $RANLIB" >&5
2548 echo "${ECHO_T}$RANLIB" >&6
2549 else
2550 echo "$as_me:$LINENO: result: no" >&5
2551 echo "${ECHO_T}no" >&6
2555 if test -z "$ac_cv_prog_RANLIB"; then
2556 ac_ct_RANLIB=$RANLIB
2557 # Extract the first word of "ranlib", so it can be a program name with args.
2558 set dummy ranlib; ac_word=$2
2559 echo "$as_me:$LINENO: checking for $ac_word" >&5
2560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2561 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2562 echo $ECHO_N "(cached) $ECHO_C" >&6
2563 else
2564 if test -n "$ac_ct_RANLIB"; then
2565 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2566 else
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 for as_dir in $PATH
2570 IFS=$as_save_IFS
2571 test -z "$as_dir" && as_dir=.
2572 for ac_exec_ext in '' $ac_executable_extensions; do
2573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2574 ac_cv_prog_ac_ct_RANLIB="ranlib"
2575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2576 break 2
2578 done
2579 done
2581 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2584 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2585 if test -n "$ac_ct_RANLIB"; then
2586 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2587 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2588 else
2589 echo "$as_me:$LINENO: result: no" >&5
2590 echo "${ECHO_T}no" >&6
2593 RANLIB=$ac_ct_RANLIB
2594 else
2595 RANLIB="$ac_cv_prog_RANLIB"
2599 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2600 for ac_prog in aclocal
2602 # Extract the first word of "$ac_prog", so it can be a program name with args.
2603 set dummy $ac_prog; ac_word=$2
2604 echo "$as_me:$LINENO: checking for $ac_word" >&5
2605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2606 if test "${ac_cv_prog_ACLOCAL+set}" = set; then
2607 echo $ECHO_N "(cached) $ECHO_C" >&6
2608 else
2609 if test -n "$ACLOCAL"; then
2610 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
2611 else
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 for as_dir in $PATH
2615 IFS=$as_save_IFS
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2619 ac_cv_prog_ACLOCAL="$ac_prog"
2620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 break 2
2623 done
2624 done
2628 ACLOCAL=$ac_cv_prog_ACLOCAL
2629 if test -n "$ACLOCAL"; then
2630 echo "$as_me:$LINENO: result: $ACLOCAL" >&5
2631 echo "${ECHO_T}$ACLOCAL" >&6
2632 else
2633 echo "$as_me:$LINENO: result: no" >&5
2634 echo "${ECHO_T}no" >&6
2637 test -n "$ACLOCAL" && break
2638 done
2639 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
2641 for ac_prog in autoconf
2643 # Extract the first word of "$ac_prog", so it can be a program name with args.
2644 set dummy $ac_prog; ac_word=$2
2645 echo "$as_me:$LINENO: checking for $ac_word" >&5
2646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2647 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
2648 echo $ECHO_N "(cached) $ECHO_C" >&6
2649 else
2650 if test -n "$AUTOCONF"; then
2651 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
2652 else
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 for as_dir in $PATH
2656 IFS=$as_save_IFS
2657 test -z "$as_dir" && as_dir=.
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2660 ac_cv_prog_AUTOCONF="$ac_prog"
2661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2662 break 2
2664 done
2665 done
2669 AUTOCONF=$ac_cv_prog_AUTOCONF
2670 if test -n "$AUTOCONF"; then
2671 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
2672 echo "${ECHO_T}$AUTOCONF" >&6
2673 else
2674 echo "$as_me:$LINENO: result: no" >&5
2675 echo "${ECHO_T}no" >&6
2678 test -n "$AUTOCONF" && break
2679 done
2680 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
2682 for ac_prog in autoheader
2684 # Extract the first word of "$ac_prog", so it can be a program name with args.
2685 set dummy $ac_prog; ac_word=$2
2686 echo "$as_me:$LINENO: checking for $ac_word" >&5
2687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2688 if test "${ac_cv_prog_AUTOHEADER+set}" = set; then
2689 echo $ECHO_N "(cached) $ECHO_C" >&6
2690 else
2691 if test -n "$AUTOHEADER"; then
2692 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
2693 else
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 for as_dir in $PATH
2697 IFS=$as_save_IFS
2698 test -z "$as_dir" && as_dir=.
2699 for ac_exec_ext in '' $ac_executable_extensions; do
2700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2701 ac_cv_prog_AUTOHEADER="$ac_prog"
2702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2703 break 2
2705 done
2706 done
2710 AUTOHEADER=$ac_cv_prog_AUTOHEADER
2711 if test -n "$AUTOHEADER"; then
2712 echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
2713 echo "${ECHO_T}$AUTOHEADER" >&6
2714 else
2715 echo "$as_me:$LINENO: result: no" >&5
2716 echo "${ECHO_T}no" >&6
2719 test -n "$AUTOHEADER" && break
2720 done
2721 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
2724 # Figure out what compiler warnings we can enable.
2725 # See config/warnings.m4 for details.
2728 WARN_CFLAGS=
2729 save_CFLAGS="$CFLAGS"
2730 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
2731 -Wmissing-prototypes -Wold-style-definition \
2732 -Wmissing-format-attribute; do
2733 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
2735 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
2736 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
2737 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
2738 echo $ECHO_N "(cached) $ECHO_C" >&6
2739 else
2740 CFLAGS="$option"
2741 cat >conftest.$ac_ext <<_ACEOF
2742 /* confdefs.h. */
2743 _ACEOF
2744 cat confdefs.h >>conftest.$ac_ext
2745 cat >>conftest.$ac_ext <<_ACEOF
2746 /* end confdefs.h. */
2749 main ()
2753 return 0;
2755 _ACEOF
2756 rm -f conftest.$ac_objext
2757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2758 (eval $ac_compile) 2>conftest.er1
2759 ac_status=$?
2760 grep -v '^ *+' conftest.er1 >conftest.err
2761 rm -f conftest.er1
2762 cat conftest.err >&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); } &&
2765 { ac_try='test -z "$ac_c_werror_flag"
2766 || test ! -s conftest.err'
2767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768 (eval $ac_try) 2>&5
2769 ac_status=$?
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }; } &&
2772 { ac_try='test -s conftest.$ac_objext'
2773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774 (eval $ac_try) 2>&5
2775 ac_status=$?
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; }; then
2778 eval "$as_acx_Woption=yes"
2779 else
2780 echo "$as_me: failed program was:" >&5
2781 sed 's/^/| /' conftest.$ac_ext >&5
2783 eval "$as_acx_Woption=no"
2785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2788 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
2789 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
2790 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
2791 WARN_CFLAGS="$WARN_CFLAGS${WARN_CFLAGS:+ }$option"
2794 done
2795 CFLAGS="$save_CFLAGS"
2797 WARN_PEDANTIC=
2798 if test "$GCC" = yes; then
2799 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long" >&5
2800 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long... $ECHO_C" >&6
2801 if test "${acx_cv_prog_cc_pedantic__Wno_long_long+set}" = set; then
2802 echo $ECHO_N "(cached) $ECHO_C" >&6
2803 else
2804 save_CFLAGS="$CFLAGS"
2805 CFLAGS="-pedantic -Wno-long-long"
2806 cat >conftest.$ac_ext <<_ACEOF
2807 /* confdefs.h. */
2808 _ACEOF
2809 cat confdefs.h >>conftest.$ac_ext
2810 cat >>conftest.$ac_ext <<_ACEOF
2811 /* end confdefs.h. */
2814 main ()
2818 return 0;
2820 _ACEOF
2821 rm -f conftest.$ac_objext
2822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2823 (eval $ac_compile) 2>conftest.er1
2824 ac_status=$?
2825 grep -v '^ *+' conftest.er1 >conftest.err
2826 rm -f conftest.er1
2827 cat conftest.err >&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); } &&
2830 { ac_try='test -z "$ac_c_werror_flag"
2831 || test ! -s conftest.err'
2832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833 (eval $ac_try) 2>&5
2834 ac_status=$?
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }; } &&
2837 { ac_try='test -s conftest.$ac_objext'
2838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839 (eval $ac_try) 2>&5
2840 ac_status=$?
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; }; then
2843 acx_cv_prog_cc_pedantic__Wno_long_long=yes
2844 else
2845 echo "$as_me: failed program was:" >&5
2846 sed 's/^/| /' conftest.$ac_ext >&5
2848 acx_cv_prog_cc_pedantic__Wno_long_long=no
2850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2851 CFLAGS="$save_CFLAGS"
2853 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long" >&5
2854 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long" >&6
2855 if test $acx_cv_prog_cc_pedantic__Wno_long_long = yes; then
2856 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
2864 # Only enable with --enable-werror-always until existing warnings are
2865 # corrected.
2866 WERROR=
2867 # Check whether --enable-werror-always or --disable-werror-always was given.
2868 if test "${enable_werror_always+set}" = set; then
2869 enableval="$enable_werror_always"
2871 else
2872 enable_werror_always=no
2874 if test $enable_werror_always = yes; then
2875 WERROR="$WERROR${WERROR:+ }-Werror"
2881 # Dependency checking.
2882 rm -rf .tst 2>/dev/null
2883 mkdir .tst 2>/dev/null
2884 if test -d .tst; then
2885 am__leading_dot=.
2886 else
2887 am__leading_dot=_
2889 rmdir .tst 2>/dev/null
2891 DEPDIR="${am__leading_dot}deps"
2893 ac_config_commands="$ac_config_commands depdir"
2896 depcc="$CC" am_compiler_list=
2898 am_depcomp=$ac_aux_dir/depcomp
2899 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2900 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2901 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2902 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 else
2904 if test -f "$am_depcomp"; then
2905 # We make a subdir and do the tests there. Otherwise we can end up
2906 # making bogus files that we don't know about and never remove. For
2907 # instance it was reported that on HP-UX the gcc test will end up
2908 # making a dummy file named `D' -- because `-MD' means `put the output
2909 # in D'.
2910 mkdir conftest.dir
2911 # Copy depcomp to subdir because otherwise we won't find it if we're
2912 # using a relative directory.
2913 cp "$am_depcomp" conftest.dir
2914 cd conftest.dir
2915 # We will build objects and dependencies in a subdirectory because
2916 # it helps to detect inapplicable dependency modes. For instance
2917 # both Tru64's cc and ICC support -MD to output dependencies as a
2918 # side effect of compilation, but ICC will put the dependencies in
2919 # the current directory while Tru64 will put them in the object
2920 # directory.
2921 mkdir sub
2923 am_cv_CC_dependencies_compiler_type=none
2924 if test "$am_compiler_list" = ""; then
2925 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2927 for depmode in $am_compiler_list; do
2928 if test $depmode = none; then break; fi
2930 echo "$as_me:$LINENO: trying $depmode" >&5
2931 # Setup a source with many dependencies, because some compilers
2932 # like to wrap large dependency lists on column 80 (with \), and
2933 # we should not choose a depcomp mode which is confused by this.
2935 # We need to recreate these files for each test, as the compiler may
2936 # overwrite some of them when testing with obscure command lines.
2937 # This happens at least with the AIX C compiler.
2938 : > sub/conftest.c
2939 for i in 1 2 3 4 5 6; do
2940 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2941 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2942 # Solaris 8's {/usr,}/bin/sh.
2943 touch sub/conftst$i.h
2944 done
2945 echo "include sub/conftest.Po" > confmf
2947 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2948 # mode. It turns out that the SunPro C++ compiler does not properly
2949 # handle `-M -o', and we need to detect this.
2950 depcmd="depmode=$depmode \
2951 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2952 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2953 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
2954 echo "| $depcmd" | sed -e 's/ */ /g' >&5
2955 if env $depcmd > conftest.err 2>&1 &&
2956 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
2957 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
2958 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
2959 # icc doesn't choke on unknown options, it will just issue warnings
2960 # or remarks (even with -Werror). So we grep stderr for any message
2961 # that says an option was ignored or not supported.
2962 # When given -MP, icc 7.0 and 7.1 complain thusly:
2963 # icc: Command line warning: ignoring option '-M'; no argument required
2964 # The diagnosis changed in icc 8.0:
2965 # icc: Command line remark: option '-MP' not supported
2966 if (grep 'ignoring option' conftest.err ||
2967 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2968 am_cv_CC_dependencies_compiler_type=$depmode
2969 echo "$as_me:$LINENO: success" >&5
2970 break
2973 echo "$as_me:$LINENO: failure, diagnostics are:" >&5
2974 sed -e 's/^/| /' < conftest.err >&5
2975 done
2977 cd ..
2978 rm -rf conftest.dir
2979 else
2980 am_cv_CC_dependencies_compiler_type=none
2984 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2985 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2986 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
2987 then { { echo "$as_me:$LINENO: error: no usable dependency style found" >&5
2988 echo "$as_me: error: no usable dependency style found" >&2;}
2989 { (exit 1); exit 1; }; }
2990 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2995 # Checks for header files.
2996 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
2997 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
2998 if test "${ac_cv_header_time+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3000 else
3001 cat >conftest.$ac_ext <<_ACEOF
3002 /* confdefs.h. */
3003 _ACEOF
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h. */
3007 #include <sys/types.h>
3008 #include <sys/time.h>
3009 #include <time.h>
3012 main ()
3014 if ((struct tm *) 0)
3015 return 0;
3017 return 0;
3019 _ACEOF
3020 rm -f conftest.$ac_objext
3021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3022 (eval $ac_compile) 2>conftest.er1
3023 ac_status=$?
3024 grep -v '^ *+' conftest.er1 >conftest.err
3025 rm -f conftest.er1
3026 cat conftest.err >&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); } &&
3029 { ac_try='test -z "$ac_c_werror_flag"
3030 || test ! -s conftest.err'
3031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3032 (eval $ac_try) 2>&5
3033 ac_status=$?
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }; } &&
3036 { ac_try='test -s conftest.$ac_objext'
3037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3038 (eval $ac_try) 2>&5
3039 ac_status=$?
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }; }; then
3042 ac_cv_header_time=yes
3043 else
3044 echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3047 ac_cv_header_time=no
3049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3051 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3052 echo "${ECHO_T}$ac_cv_header_time" >&6
3053 if test $ac_cv_header_time = yes; then
3055 cat >>confdefs.h <<\_ACEOF
3056 #define TIME_WITH_SYS_TIME 1
3057 _ACEOF
3061 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
3062 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
3063 if test "${gcc_cv_header_string+set}" = set; then
3064 echo $ECHO_N "(cached) $ECHO_C" >&6
3065 else
3066 cat >conftest.$ac_ext <<_ACEOF
3067 /* confdefs.h. */
3068 _ACEOF
3069 cat confdefs.h >>conftest.$ac_ext
3070 cat >>conftest.$ac_ext <<_ACEOF
3071 /* end confdefs.h. */
3072 #include <string.h>
3073 #include <strings.h>
3075 main ()
3079 return 0;
3081 _ACEOF
3082 rm -f conftest.$ac_objext
3083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3084 (eval $ac_compile) 2>conftest.er1
3085 ac_status=$?
3086 grep -v '^ *+' conftest.er1 >conftest.err
3087 rm -f conftest.er1
3088 cat conftest.err >&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } &&
3091 { ac_try='test -z "$ac_c_werror_flag"
3092 || test ! -s conftest.err'
3093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3094 (eval $ac_try) 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; } &&
3098 { ac_try='test -s conftest.$ac_objext'
3099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100 (eval $ac_try) 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
3104 gcc_cv_header_string=yes
3105 else
3106 echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3109 gcc_cv_header_string=no
3111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3113 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
3114 echo "${ECHO_T}$gcc_cv_header_string" >&6
3115 if test $gcc_cv_header_string = yes; then
3117 cat >>confdefs.h <<\_ACEOF
3118 #define STRING_WITH_STRINGS 1
3119 _ACEOF
3123 ac_ext=c
3124 ac_cpp='$CPP $CPPFLAGS'
3125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3128 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3129 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3130 # On Suns, sometimes $CPP names a directory.
3131 if test -n "$CPP" && test -d "$CPP"; then
3132 CPP=
3134 if test -z "$CPP"; then
3135 if test "${ac_cv_prog_CPP+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3137 else
3138 # Double quotes because CPP needs to be expanded
3139 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3141 ac_preproc_ok=false
3142 for ac_c_preproc_warn_flag in '' yes
3144 # Use a header file that comes with gcc, so configuring glibc
3145 # with a fresh cross-compiler works.
3146 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3147 # <limits.h> exists even on freestanding compilers.
3148 # On the NeXT, cc -E runs the code through the compiler's parser,
3149 # not just through cpp. "Syntax error" is here to catch this case.
3150 cat >conftest.$ac_ext <<_ACEOF
3151 /* confdefs.h. */
3152 _ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h. */
3156 #ifdef __STDC__
3157 # include <limits.h>
3158 #else
3159 # include <assert.h>
3160 #endif
3161 Syntax error
3162 _ACEOF
3163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3165 ac_status=$?
3166 grep -v '^ *+' conftest.er1 >conftest.err
3167 rm -f conftest.er1
3168 cat conftest.err >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); } >/dev/null; then
3171 if test -s conftest.err; then
3172 ac_cpp_err=$ac_c_preproc_warn_flag
3173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3174 else
3175 ac_cpp_err=
3177 else
3178 ac_cpp_err=yes
3180 if test -z "$ac_cpp_err"; then
3182 else
3183 echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3186 # Broken: fails on valid input.
3187 continue
3189 rm -f conftest.err conftest.$ac_ext
3191 # OK, works on sane cases. Now check whether non-existent headers
3192 # can be detected and how.
3193 cat >conftest.$ac_ext <<_ACEOF
3194 /* confdefs.h. */
3195 _ACEOF
3196 cat confdefs.h >>conftest.$ac_ext
3197 cat >>conftest.$ac_ext <<_ACEOF
3198 /* end confdefs.h. */
3199 #include <ac_nonexistent.h>
3200 _ACEOF
3201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3203 ac_status=$?
3204 grep -v '^ *+' conftest.er1 >conftest.err
3205 rm -f conftest.er1
3206 cat conftest.err >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } >/dev/null; then
3209 if test -s conftest.err; then
3210 ac_cpp_err=$ac_c_preproc_warn_flag
3211 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3212 else
3213 ac_cpp_err=
3215 else
3216 ac_cpp_err=yes
3218 if test -z "$ac_cpp_err"; then
3219 # Broken: success on invalid input.
3220 continue
3221 else
3222 echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3225 # Passes both tests.
3226 ac_preproc_ok=:
3227 break
3229 rm -f conftest.err conftest.$ac_ext
3231 done
3232 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3233 rm -f conftest.err conftest.$ac_ext
3234 if $ac_preproc_ok; then
3235 break
3238 done
3239 ac_cv_prog_CPP=$CPP
3242 CPP=$ac_cv_prog_CPP
3243 else
3244 ac_cv_prog_CPP=$CPP
3246 echo "$as_me:$LINENO: result: $CPP" >&5
3247 echo "${ECHO_T}$CPP" >&6
3248 ac_preproc_ok=false
3249 for ac_c_preproc_warn_flag in '' yes
3251 # Use a header file that comes with gcc, so configuring glibc
3252 # with a fresh cross-compiler works.
3253 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3254 # <limits.h> exists even on freestanding compilers.
3255 # On the NeXT, cc -E runs the code through the compiler's parser,
3256 # not just through cpp. "Syntax error" is here to catch this case.
3257 cat >conftest.$ac_ext <<_ACEOF
3258 /* confdefs.h. */
3259 _ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h. */
3263 #ifdef __STDC__
3264 # include <limits.h>
3265 #else
3266 # include <assert.h>
3267 #endif
3268 Syntax error
3269 _ACEOF
3270 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3272 ac_status=$?
3273 grep -v '^ *+' conftest.er1 >conftest.err
3274 rm -f conftest.er1
3275 cat conftest.err >&5
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); } >/dev/null; then
3278 if test -s conftest.err; then
3279 ac_cpp_err=$ac_c_preproc_warn_flag
3280 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3281 else
3282 ac_cpp_err=
3284 else
3285 ac_cpp_err=yes
3287 if test -z "$ac_cpp_err"; then
3289 else
3290 echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3293 # Broken: fails on valid input.
3294 continue
3296 rm -f conftest.err conftest.$ac_ext
3298 # OK, works on sane cases. Now check whether non-existent headers
3299 # can be detected and how.
3300 cat >conftest.$ac_ext <<_ACEOF
3301 /* confdefs.h. */
3302 _ACEOF
3303 cat confdefs.h >>conftest.$ac_ext
3304 cat >>conftest.$ac_ext <<_ACEOF
3305 /* end confdefs.h. */
3306 #include <ac_nonexistent.h>
3307 _ACEOF
3308 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3309 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3310 ac_status=$?
3311 grep -v '^ *+' conftest.er1 >conftest.err
3312 rm -f conftest.er1
3313 cat conftest.err >&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } >/dev/null; then
3316 if test -s conftest.err; then
3317 ac_cpp_err=$ac_c_preproc_warn_flag
3318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3319 else
3320 ac_cpp_err=
3322 else
3323 ac_cpp_err=yes
3325 if test -z "$ac_cpp_err"; then
3326 # Broken: success on invalid input.
3327 continue
3328 else
3329 echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3332 # Passes both tests.
3333 ac_preproc_ok=:
3334 break
3336 rm -f conftest.err conftest.$ac_ext
3338 done
3339 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3340 rm -f conftest.err conftest.$ac_ext
3341 if $ac_preproc_ok; then
3343 else
3344 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3345 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3346 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3347 See \`config.log' for more details." >&5
3348 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3349 See \`config.log' for more details." >&2;}
3350 { (exit 1); exit 1; }; }; }
3353 ac_ext=c
3354 ac_cpp='$CPP $CPPFLAGS'
3355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3360 echo "$as_me:$LINENO: checking for egrep" >&5
3361 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3362 if test "${ac_cv_prog_egrep+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3364 else
3365 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3366 then ac_cv_prog_egrep='grep -E'
3367 else ac_cv_prog_egrep='egrep'
3370 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3371 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3372 EGREP=$ac_cv_prog_egrep
3375 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3376 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3377 if test "${ac_cv_header_stdc+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3379 else
3380 cat >conftest.$ac_ext <<_ACEOF
3381 /* confdefs.h. */
3382 _ACEOF
3383 cat confdefs.h >>conftest.$ac_ext
3384 cat >>conftest.$ac_ext <<_ACEOF
3385 /* end confdefs.h. */
3386 #include <stdlib.h>
3387 #include <stdarg.h>
3388 #include <string.h>
3389 #include <float.h>
3392 main ()
3396 return 0;
3398 _ACEOF
3399 rm -f conftest.$ac_objext
3400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3401 (eval $ac_compile) 2>conftest.er1
3402 ac_status=$?
3403 grep -v '^ *+' conftest.er1 >conftest.err
3404 rm -f conftest.er1
3405 cat conftest.err >&5
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); } &&
3408 { ac_try='test -z "$ac_c_werror_flag"
3409 || test ! -s conftest.err'
3410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411 (eval $ac_try) 2>&5
3412 ac_status=$?
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }; } &&
3415 { ac_try='test -s conftest.$ac_objext'
3416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417 (eval $ac_try) 2>&5
3418 ac_status=$?
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); }; }; then
3421 ac_cv_header_stdc=yes
3422 else
3423 echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3426 ac_cv_header_stdc=no
3428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3430 if test $ac_cv_header_stdc = yes; then
3431 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3432 cat >conftest.$ac_ext <<_ACEOF
3433 /* confdefs.h. */
3434 _ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h. */
3438 #include <string.h>
3440 _ACEOF
3441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3442 $EGREP "memchr" >/dev/null 2>&1; then
3444 else
3445 ac_cv_header_stdc=no
3447 rm -f conftest*
3451 if test $ac_cv_header_stdc = yes; then
3452 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3453 cat >conftest.$ac_ext <<_ACEOF
3454 /* confdefs.h. */
3455 _ACEOF
3456 cat confdefs.h >>conftest.$ac_ext
3457 cat >>conftest.$ac_ext <<_ACEOF
3458 /* end confdefs.h. */
3459 #include <stdlib.h>
3461 _ACEOF
3462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3463 $EGREP "free" >/dev/null 2>&1; then
3465 else
3466 ac_cv_header_stdc=no
3468 rm -f conftest*
3472 if test $ac_cv_header_stdc = yes; then
3473 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3474 if test "$cross_compiling" = yes; then
3476 else
3477 cat >conftest.$ac_ext <<_ACEOF
3478 /* confdefs.h. */
3479 _ACEOF
3480 cat confdefs.h >>conftest.$ac_ext
3481 cat >>conftest.$ac_ext <<_ACEOF
3482 /* end confdefs.h. */
3483 #include <ctype.h>
3484 #if ((' ' & 0x0FF) == 0x020)
3485 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3486 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3487 #else
3488 # define ISLOWER(c) \
3489 (('a' <= (c) && (c) <= 'i') \
3490 || ('j' <= (c) && (c) <= 'r') \
3491 || ('s' <= (c) && (c) <= 'z'))
3492 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3493 #endif
3495 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3497 main ()
3499 int i;
3500 for (i = 0; i < 256; i++)
3501 if (XOR (islower (i), ISLOWER (i))
3502 || toupper (i) != TOUPPER (i))
3503 exit(2);
3504 exit (0);
3506 _ACEOF
3507 rm -f conftest$ac_exeext
3508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3509 (eval $ac_link) 2>&5
3510 ac_status=$?
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3514 (eval $ac_try) 2>&5
3515 ac_status=$?
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); }; }; then
3519 else
3520 echo "$as_me: program exited with status $ac_status" >&5
3521 echo "$as_me: failed program was:" >&5
3522 sed 's/^/| /' conftest.$ac_ext >&5
3524 ( exit $ac_status )
3525 ac_cv_header_stdc=no
3527 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3531 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3532 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3533 if test $ac_cv_header_stdc = yes; then
3535 cat >>confdefs.h <<\_ACEOF
3536 #define STDC_HEADERS 1
3537 _ACEOF
3541 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3551 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3552 inttypes.h stdint.h unistd.h
3554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3555 echo "$as_me:$LINENO: checking for $ac_header" >&5
3556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 else
3560 cat >conftest.$ac_ext <<_ACEOF
3561 /* confdefs.h. */
3562 _ACEOF
3563 cat confdefs.h >>conftest.$ac_ext
3564 cat >>conftest.$ac_ext <<_ACEOF
3565 /* end confdefs.h. */
3566 $ac_includes_default
3568 #include <$ac_header>
3569 _ACEOF
3570 rm -f conftest.$ac_objext
3571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3572 (eval $ac_compile) 2>conftest.er1
3573 ac_status=$?
3574 grep -v '^ *+' conftest.er1 >conftest.err
3575 rm -f conftest.er1
3576 cat conftest.err >&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); } &&
3579 { ac_try='test -z "$ac_c_werror_flag"
3580 || test ! -s conftest.err'
3581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3582 (eval $ac_try) 2>&5
3583 ac_status=$?
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }; } &&
3586 { ac_try='test -s conftest.$ac_objext'
3587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3588 (eval $ac_try) 2>&5
3589 ac_status=$?
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); }; }; then
3592 eval "$as_ac_Header=yes"
3593 else
3594 echo "$as_me: failed program was:" >&5
3595 sed 's/^/| /' conftest.$ac_ext >&5
3597 eval "$as_ac_Header=no"
3599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3604 cat >>confdefs.h <<_ACEOF
3605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3606 _ACEOF
3610 done
3622 for ac_header in locale.h fcntl.h limits.h stddef.h \
3623 stdlib.h strings.h string.h sys/file.h unistd.h
3625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3627 echo "$as_me:$LINENO: checking for $ac_header" >&5
3628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3630 echo $ECHO_N "(cached) $ECHO_C" >&6
3632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3634 else
3635 # Is the header compilable?
3636 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3637 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3638 cat >conftest.$ac_ext <<_ACEOF
3639 /* confdefs.h. */
3640 _ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3644 $ac_includes_default
3645 #include <$ac_header>
3646 _ACEOF
3647 rm -f conftest.$ac_objext
3648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3649 (eval $ac_compile) 2>conftest.er1
3650 ac_status=$?
3651 grep -v '^ *+' conftest.er1 >conftest.err
3652 rm -f conftest.er1
3653 cat conftest.err >&5
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); } &&
3656 { ac_try='test -z "$ac_c_werror_flag"
3657 || test ! -s conftest.err'
3658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659 (eval $ac_try) 2>&5
3660 ac_status=$?
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }; } &&
3663 { ac_try='test -s conftest.$ac_objext'
3664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3665 (eval $ac_try) 2>&5
3666 ac_status=$?
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); }; }; then
3669 ac_header_compiler=yes
3670 else
3671 echo "$as_me: failed program was:" >&5
3672 sed 's/^/| /' conftest.$ac_ext >&5
3674 ac_header_compiler=no
3676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3677 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3678 echo "${ECHO_T}$ac_header_compiler" >&6
3680 # Is the header present?
3681 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3682 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3683 cat >conftest.$ac_ext <<_ACEOF
3684 /* confdefs.h. */
3685 _ACEOF
3686 cat confdefs.h >>conftest.$ac_ext
3687 cat >>conftest.$ac_ext <<_ACEOF
3688 /* end confdefs.h. */
3689 #include <$ac_header>
3690 _ACEOF
3691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3692 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3693 ac_status=$?
3694 grep -v '^ *+' conftest.er1 >conftest.err
3695 rm -f conftest.er1
3696 cat conftest.err >&5
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); } >/dev/null; then
3699 if test -s conftest.err; then
3700 ac_cpp_err=$ac_c_preproc_warn_flag
3701 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3702 else
3703 ac_cpp_err=
3705 else
3706 ac_cpp_err=yes
3708 if test -z "$ac_cpp_err"; then
3709 ac_header_preproc=yes
3710 else
3711 echo "$as_me: failed program was:" >&5
3712 sed 's/^/| /' conftest.$ac_ext >&5
3714 ac_header_preproc=no
3716 rm -f conftest.err conftest.$ac_ext
3717 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3718 echo "${ECHO_T}$ac_header_preproc" >&6
3720 # So? What about this header?
3721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3722 yes:no: )
3723 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3726 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3727 ac_header_preproc=yes
3729 no:yes:* )
3730 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3731 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3732 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3733 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3734 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3735 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3736 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3737 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3740 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3741 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3743 cat <<\_ASBOX
3744 ## ----------------------------------- ##
3745 ## Report this to gcc-bugs@gcc.gnu.org ##
3746 ## ----------------------------------- ##
3747 _ASBOX
3749 sed "s/^/$as_me: WARNING: /" >&2
3751 esac
3752 echo "$as_me:$LINENO: checking for $ac_header" >&5
3753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3756 else
3757 eval "$as_ac_Header=\$ac_header_preproc"
3759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3764 cat >>confdefs.h <<_ACEOF
3765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3766 _ACEOF
3770 done
3773 # Checks for typedefs, structures, and compiler characteristics.
3774 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3775 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3776 if test "${ac_cv_c_const+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 else
3779 cat >conftest.$ac_ext <<_ACEOF
3780 /* confdefs.h. */
3781 _ACEOF
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h. */
3787 main ()
3789 /* FIXME: Include the comments suggested by Paul. */
3790 #ifndef __cplusplus
3791 /* Ultrix mips cc rejects this. */
3792 typedef int charset[2];
3793 const charset x;
3794 /* SunOS 4.1.1 cc rejects this. */
3795 char const *const *ccp;
3796 char **p;
3797 /* NEC SVR4.0.2 mips cc rejects this. */
3798 struct point {int x, y;};
3799 static struct point const zero = {0,0};
3800 /* AIX XL C 1.02.0.0 rejects this.
3801 It does not let you subtract one const X* pointer from another in
3802 an arm of an if-expression whose if-part is not a constant
3803 expression */
3804 const char *g = "string";
3805 ccp = &g + (g ? g-g : 0);
3806 /* HPUX 7.0 cc rejects these. */
3807 ++ccp;
3808 p = (char**) ccp;
3809 ccp = (char const *const *) p;
3810 { /* SCO 3.2v4 cc rejects this. */
3811 char *t;
3812 char const *s = 0 ? (char *) 0 : (char const *) 0;
3814 *t++ = 0;
3816 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3817 int x[] = {25, 17};
3818 const int *foo = &x[0];
3819 ++foo;
3821 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3822 typedef const int *iptr;
3823 iptr p = 0;
3824 ++p;
3826 { /* AIX XL C 1.02.0.0 rejects this saying
3827 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3828 struct s { int j; const int *ap[3]; };
3829 struct s *b; b->j = 5;
3831 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3832 const int foo = 10;
3834 #endif
3837 return 0;
3839 _ACEOF
3840 rm -f conftest.$ac_objext
3841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3842 (eval $ac_compile) 2>conftest.er1
3843 ac_status=$?
3844 grep -v '^ *+' conftest.er1 >conftest.err
3845 rm -f conftest.er1
3846 cat conftest.err >&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); } &&
3849 { ac_try='test -z "$ac_c_werror_flag"
3850 || test ! -s conftest.err'
3851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3852 (eval $ac_try) 2>&5
3853 ac_status=$?
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }; } &&
3856 { ac_try='test -s conftest.$ac_objext'
3857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858 (eval $ac_try) 2>&5
3859 ac_status=$?
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }; }; then
3862 ac_cv_c_const=yes
3863 else
3864 echo "$as_me: failed program was:" >&5
3865 sed 's/^/| /' conftest.$ac_ext >&5
3867 ac_cv_c_const=no
3869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3871 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3872 echo "${ECHO_T}$ac_cv_c_const" >&6
3873 if test $ac_cv_c_const = no; then
3875 cat >>confdefs.h <<\_ACEOF
3876 #define const
3877 _ACEOF
3881 echo "$as_me:$LINENO: checking for inline" >&5
3882 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3883 if test "${ac_cv_c_inline+set}" = set; then
3884 echo $ECHO_N "(cached) $ECHO_C" >&6
3885 else
3886 ac_cv_c_inline=no
3887 for ac_kw in inline __inline__ __inline; do
3888 cat >conftest.$ac_ext <<_ACEOF
3889 /* confdefs.h. */
3890 _ACEOF
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h. */
3894 #ifndef __cplusplus
3895 typedef int foo_t;
3896 static $ac_kw foo_t static_foo () {return 0; }
3897 $ac_kw foo_t foo () {return 0; }
3898 #endif
3900 _ACEOF
3901 rm -f conftest.$ac_objext
3902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3903 (eval $ac_compile) 2>conftest.er1
3904 ac_status=$?
3905 grep -v '^ *+' conftest.er1 >conftest.err
3906 rm -f conftest.er1
3907 cat conftest.err >&5
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); } &&
3910 { ac_try='test -z "$ac_c_werror_flag"
3911 || test ! -s conftest.err'
3912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3913 (eval $ac_try) 2>&5
3914 ac_status=$?
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); }; } &&
3917 { ac_try='test -s conftest.$ac_objext'
3918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3919 (eval $ac_try) 2>&5
3920 ac_status=$?
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); }; }; then
3923 ac_cv_c_inline=$ac_kw; break
3924 else
3925 echo "$as_me: failed program was:" >&5
3926 sed 's/^/| /' conftest.$ac_ext >&5
3929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3930 done
3933 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3934 echo "${ECHO_T}$ac_cv_c_inline" >&6
3937 case $ac_cv_c_inline in
3938 inline | yes) ;;
3940 case $ac_cv_c_inline in
3941 no) ac_val=;;
3942 *) ac_val=$ac_cv_c_inline;;
3943 esac
3944 cat >>confdefs.h <<_ACEOF
3945 #ifndef __cplusplus
3946 #define inline $ac_val
3947 #endif
3948 _ACEOF
3950 esac
3952 echo "$as_me:$LINENO: checking for obstacks" >&5
3953 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
3954 if test "${ac_cv_func_obstack+set}" = set; then
3955 echo $ECHO_N "(cached) $ECHO_C" >&6
3956 else
3957 cat >conftest.$ac_ext <<_ACEOF
3958 /* confdefs.h. */
3959 _ACEOF
3960 cat confdefs.h >>conftest.$ac_ext
3961 cat >>conftest.$ac_ext <<_ACEOF
3962 /* end confdefs.h. */
3963 #include "obstack.h"
3965 main ()
3967 struct obstack *mem; obstack_free(mem,(char *) 0)
3969 return 0;
3971 _ACEOF
3972 rm -f conftest.$ac_objext conftest$ac_exeext
3973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3974 (eval $ac_link) 2>conftest.er1
3975 ac_status=$?
3976 grep -v '^ *+' conftest.er1 >conftest.err
3977 rm -f conftest.er1
3978 cat conftest.err >&5
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); } &&
3981 { ac_try='test -z "$ac_c_werror_flag"
3982 || test ! -s conftest.err'
3983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3984 (eval $ac_try) 2>&5
3985 ac_status=$?
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); }; } &&
3988 { ac_try='test -s conftest$ac_exeext'
3989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3990 (eval $ac_try) 2>&5
3991 ac_status=$?
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); }; }; then
3994 ac_cv_func_obstack=yes
3995 else
3996 echo "$as_me: failed program was:" >&5
3997 sed 's/^/| /' conftest.$ac_ext >&5
3999 ac_cv_func_obstack=no
4001 rm -f conftest.err conftest.$ac_objext \
4002 conftest$ac_exeext conftest.$ac_ext
4004 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
4005 echo "${ECHO_T}$ac_cv_func_obstack" >&6
4006 if test $ac_cv_func_obstack = yes; then
4008 cat >>confdefs.h <<\_ACEOF
4009 #define HAVE_OBSTACK 1
4010 _ACEOF
4012 else
4013 case $LIBOBJS in
4014 "obstack.$ac_objext" | \
4015 *" obstack.$ac_objext" | \
4016 "obstack.$ac_objext "* | \
4017 *" obstack.$ac_objext "* ) ;;
4018 *) LIBOBJS="$LIBOBJS obstack.$ac_objext" ;;
4019 esac
4023 echo "$as_me:$LINENO: checking for off_t" >&5
4024 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4025 if test "${ac_cv_type_off_t+set}" = set; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4027 else
4028 cat >conftest.$ac_ext <<_ACEOF
4029 /* confdefs.h. */
4030 _ACEOF
4031 cat confdefs.h >>conftest.$ac_ext
4032 cat >>conftest.$ac_ext <<_ACEOF
4033 /* end confdefs.h. */
4034 $ac_includes_default
4036 main ()
4038 if ((off_t *) 0)
4039 return 0;
4040 if (sizeof (off_t))
4041 return 0;
4043 return 0;
4045 _ACEOF
4046 rm -f conftest.$ac_objext
4047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4048 (eval $ac_compile) 2>conftest.er1
4049 ac_status=$?
4050 grep -v '^ *+' conftest.er1 >conftest.err
4051 rm -f conftest.er1
4052 cat conftest.err >&5
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); } &&
4055 { ac_try='test -z "$ac_c_werror_flag"
4056 || test ! -s conftest.err'
4057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058 (eval $ac_try) 2>&5
4059 ac_status=$?
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }; } &&
4062 { ac_try='test -s conftest.$ac_objext'
4063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4064 (eval $ac_try) 2>&5
4065 ac_status=$?
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); }; }; then
4068 ac_cv_type_off_t=yes
4069 else
4070 echo "$as_me: failed program was:" >&5
4071 sed 's/^/| /' conftest.$ac_ext >&5
4073 ac_cv_type_off_t=no
4075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4077 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4078 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4079 if test $ac_cv_type_off_t = yes; then
4081 else
4083 cat >>confdefs.h <<_ACEOF
4084 #define off_t long
4085 _ACEOF
4089 echo "$as_me:$LINENO: checking for size_t" >&5
4090 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4091 if test "${ac_cv_type_size_t+set}" = set; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4093 else
4094 cat >conftest.$ac_ext <<_ACEOF
4095 /* confdefs.h. */
4096 _ACEOF
4097 cat confdefs.h >>conftest.$ac_ext
4098 cat >>conftest.$ac_ext <<_ACEOF
4099 /* end confdefs.h. */
4100 $ac_includes_default
4102 main ()
4104 if ((size_t *) 0)
4105 return 0;
4106 if (sizeof (size_t))
4107 return 0;
4109 return 0;
4111 _ACEOF
4112 rm -f conftest.$ac_objext
4113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4114 (eval $ac_compile) 2>conftest.er1
4115 ac_status=$?
4116 grep -v '^ *+' conftest.er1 >conftest.err
4117 rm -f conftest.er1
4118 cat conftest.err >&5
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); } &&
4121 { ac_try='test -z "$ac_c_werror_flag"
4122 || test ! -s conftest.err'
4123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124 (eval $ac_try) 2>&5
4125 ac_status=$?
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; } &&
4128 { ac_try='test -s conftest.$ac_objext'
4129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4130 (eval $ac_try) 2>&5
4131 ac_status=$?
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); }; }; then
4134 ac_cv_type_size_t=yes
4135 else
4136 echo "$as_me: failed program was:" >&5
4137 sed 's/^/| /' conftest.$ac_ext >&5
4139 ac_cv_type_size_t=no
4141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4143 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4144 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4145 if test $ac_cv_type_size_t = yes; then
4147 else
4149 cat >>confdefs.h <<_ACEOF
4150 #define size_t unsigned
4151 _ACEOF
4155 echo "$as_me:$LINENO: checking for ssize_t" >&5
4156 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
4157 if test "${ac_cv_type_ssize_t+set}" = set; then
4158 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 else
4160 cat >conftest.$ac_ext <<_ACEOF
4161 /* confdefs.h. */
4162 _ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h. */
4166 $ac_includes_default
4168 main ()
4170 if ((ssize_t *) 0)
4171 return 0;
4172 if (sizeof (ssize_t))
4173 return 0;
4175 return 0;
4177 _ACEOF
4178 rm -f conftest.$ac_objext
4179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4180 (eval $ac_compile) 2>conftest.er1
4181 ac_status=$?
4182 grep -v '^ *+' conftest.er1 >conftest.err
4183 rm -f conftest.er1
4184 cat conftest.err >&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } &&
4187 { ac_try='test -z "$ac_c_werror_flag"
4188 || test ! -s conftest.err'
4189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4190 (eval $ac_try) 2>&5
4191 ac_status=$?
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); }; } &&
4194 { ac_try='test -s conftest.$ac_objext'
4195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4196 (eval $ac_try) 2>&5
4197 ac_status=$?
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; }; then
4200 ac_cv_type_ssize_t=yes
4201 else
4202 echo "$as_me: failed program was:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4205 ac_cv_type_ssize_t=no
4207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4209 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
4210 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
4211 if test $ac_cv_type_ssize_t = yes; then
4213 else
4215 cat >>confdefs.h <<_ACEOF
4216 #define ssize_t int
4217 _ACEOF
4221 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4222 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4223 if test "${ac_cv_struct_tm+set}" = set; then
4224 echo $ECHO_N "(cached) $ECHO_C" >&6
4225 else
4226 cat >conftest.$ac_ext <<_ACEOF
4227 /* confdefs.h. */
4228 _ACEOF
4229 cat confdefs.h >>conftest.$ac_ext
4230 cat >>conftest.$ac_ext <<_ACEOF
4231 /* end confdefs.h. */
4232 #include <sys/types.h>
4233 #include <time.h>
4236 main ()
4238 struct tm *tp; tp->tm_sec;
4240 return 0;
4242 _ACEOF
4243 rm -f conftest.$ac_objext
4244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4245 (eval $ac_compile) 2>conftest.er1
4246 ac_status=$?
4247 grep -v '^ *+' conftest.er1 >conftest.err
4248 rm -f conftest.er1
4249 cat conftest.err >&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } &&
4252 { ac_try='test -z "$ac_c_werror_flag"
4253 || test ! -s conftest.err'
4254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4255 (eval $ac_try) 2>&5
4256 ac_status=$?
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }; } &&
4259 { ac_try='test -s conftest.$ac_objext'
4260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4261 (eval $ac_try) 2>&5
4262 ac_status=$?
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); }; }; then
4265 ac_cv_struct_tm=time.h
4266 else
4267 echo "$as_me: failed program was:" >&5
4268 sed 's/^/| /' conftest.$ac_ext >&5
4270 ac_cv_struct_tm=sys/time.h
4272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4274 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4275 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4276 if test $ac_cv_struct_tm = sys/time.h; then
4278 cat >>confdefs.h <<\_ACEOF
4279 #define TM_IN_SYS_TIME 1
4280 _ACEOF
4284 echo "$as_me:$LINENO: checking for int" >&5
4285 echo $ECHO_N "checking for int... $ECHO_C" >&6
4286 if test "${ac_cv_type_int+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 else
4289 cat >conftest.$ac_ext <<_ACEOF
4290 /* confdefs.h. */
4291 _ACEOF
4292 cat confdefs.h >>conftest.$ac_ext
4293 cat >>conftest.$ac_ext <<_ACEOF
4294 /* end confdefs.h. */
4295 $ac_includes_default
4297 main ()
4299 if ((int *) 0)
4300 return 0;
4301 if (sizeof (int))
4302 return 0;
4304 return 0;
4306 _ACEOF
4307 rm -f conftest.$ac_objext
4308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4309 (eval $ac_compile) 2>conftest.er1
4310 ac_status=$?
4311 grep -v '^ *+' conftest.er1 >conftest.err
4312 rm -f conftest.er1
4313 cat conftest.err >&5
4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315 (exit $ac_status); } &&
4316 { ac_try='test -z "$ac_c_werror_flag"
4317 || test ! -s conftest.err'
4318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4319 (eval $ac_try) 2>&5
4320 ac_status=$?
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); }; } &&
4323 { ac_try='test -s conftest.$ac_objext'
4324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4325 (eval $ac_try) 2>&5
4326 ac_status=$?
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); }; }; then
4329 ac_cv_type_int=yes
4330 else
4331 echo "$as_me: failed program was:" >&5
4332 sed 's/^/| /' conftest.$ac_ext >&5
4334 ac_cv_type_int=no
4336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4338 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4339 echo "${ECHO_T}$ac_cv_type_int" >&6
4341 echo "$as_me:$LINENO: checking size of int" >&5
4342 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4343 if test "${ac_cv_sizeof_int+set}" = set; then
4344 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 else
4346 if test "$ac_cv_type_int" = yes; then
4347 # The cast to unsigned long works around a bug in the HP C Compiler
4348 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4349 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4350 # This bug is HP SR number 8606223364.
4351 if test "$cross_compiling" = yes; then
4352 # Depending upon the size, compute the lo and hi bounds.
4353 cat >conftest.$ac_ext <<_ACEOF
4354 /* confdefs.h. */
4355 _ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h. */
4359 $ac_includes_default
4361 main ()
4363 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4364 test_array [0] = 0
4367 return 0;
4369 _ACEOF
4370 rm -f conftest.$ac_objext
4371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4372 (eval $ac_compile) 2>conftest.er1
4373 ac_status=$?
4374 grep -v '^ *+' conftest.er1 >conftest.err
4375 rm -f conftest.er1
4376 cat conftest.err >&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); } &&
4379 { ac_try='test -z "$ac_c_werror_flag"
4380 || test ! -s conftest.err'
4381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4382 (eval $ac_try) 2>&5
4383 ac_status=$?
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); }; } &&
4386 { ac_try='test -s conftest.$ac_objext'
4387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4388 (eval $ac_try) 2>&5
4389 ac_status=$?
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); }; }; then
4392 ac_lo=0 ac_mid=0
4393 while :; do
4394 cat >conftest.$ac_ext <<_ACEOF
4395 /* confdefs.h. */
4396 _ACEOF
4397 cat confdefs.h >>conftest.$ac_ext
4398 cat >>conftest.$ac_ext <<_ACEOF
4399 /* end confdefs.h. */
4400 $ac_includes_default
4402 main ()
4404 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4405 test_array [0] = 0
4408 return 0;
4410 _ACEOF
4411 rm -f conftest.$ac_objext
4412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4413 (eval $ac_compile) 2>conftest.er1
4414 ac_status=$?
4415 grep -v '^ *+' conftest.er1 >conftest.err
4416 rm -f conftest.er1
4417 cat conftest.err >&5
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); } &&
4420 { ac_try='test -z "$ac_c_werror_flag"
4421 || test ! -s conftest.err'
4422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4423 (eval $ac_try) 2>&5
4424 ac_status=$?
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); }; } &&
4427 { ac_try='test -s conftest.$ac_objext'
4428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4429 (eval $ac_try) 2>&5
4430 ac_status=$?
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); }; }; then
4433 ac_hi=$ac_mid; break
4434 else
4435 echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4438 ac_lo=`expr $ac_mid + 1`
4439 if test $ac_lo -le $ac_mid; then
4440 ac_lo= ac_hi=
4441 break
4443 ac_mid=`expr 2 '*' $ac_mid + 1`
4445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4446 done
4447 else
4448 echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.$ac_ext >&5
4451 cat >conftest.$ac_ext <<_ACEOF
4452 /* confdefs.h. */
4453 _ACEOF
4454 cat confdefs.h >>conftest.$ac_ext
4455 cat >>conftest.$ac_ext <<_ACEOF
4456 /* end confdefs.h. */
4457 $ac_includes_default
4459 main ()
4461 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4462 test_array [0] = 0
4465 return 0;
4467 _ACEOF
4468 rm -f conftest.$ac_objext
4469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4470 (eval $ac_compile) 2>conftest.er1
4471 ac_status=$?
4472 grep -v '^ *+' conftest.er1 >conftest.err
4473 rm -f conftest.er1
4474 cat conftest.err >&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); } &&
4477 { ac_try='test -z "$ac_c_werror_flag"
4478 || test ! -s conftest.err'
4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480 (eval $ac_try) 2>&5
4481 ac_status=$?
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; } &&
4484 { ac_try='test -s conftest.$ac_objext'
4485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486 (eval $ac_try) 2>&5
4487 ac_status=$?
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); }; }; then
4490 ac_hi=-1 ac_mid=-1
4491 while :; do
4492 cat >conftest.$ac_ext <<_ACEOF
4493 /* confdefs.h. */
4494 _ACEOF
4495 cat confdefs.h >>conftest.$ac_ext
4496 cat >>conftest.$ac_ext <<_ACEOF
4497 /* end confdefs.h. */
4498 $ac_includes_default
4500 main ()
4502 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4503 test_array [0] = 0
4506 return 0;
4508 _ACEOF
4509 rm -f conftest.$ac_objext
4510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4511 (eval $ac_compile) 2>conftest.er1
4512 ac_status=$?
4513 grep -v '^ *+' conftest.er1 >conftest.err
4514 rm -f conftest.er1
4515 cat conftest.err >&5
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); } &&
4518 { ac_try='test -z "$ac_c_werror_flag"
4519 || test ! -s conftest.err'
4520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521 (eval $ac_try) 2>&5
4522 ac_status=$?
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }; } &&
4525 { ac_try='test -s conftest.$ac_objext'
4526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527 (eval $ac_try) 2>&5
4528 ac_status=$?
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }; }; then
4531 ac_lo=$ac_mid; break
4532 else
4533 echo "$as_me: failed program was:" >&5
4534 sed 's/^/| /' conftest.$ac_ext >&5
4536 ac_hi=`expr '(' $ac_mid ')' - 1`
4537 if test $ac_mid -le $ac_hi; then
4538 ac_lo= ac_hi=
4539 break
4541 ac_mid=`expr 2 '*' $ac_mid`
4543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4544 done
4545 else
4546 echo "$as_me: failed program was:" >&5
4547 sed 's/^/| /' conftest.$ac_ext >&5
4549 ac_lo= ac_hi=
4551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4554 # Binary search between lo and hi bounds.
4555 while test "x$ac_lo" != "x$ac_hi"; do
4556 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4557 cat >conftest.$ac_ext <<_ACEOF
4558 /* confdefs.h. */
4559 _ACEOF
4560 cat confdefs.h >>conftest.$ac_ext
4561 cat >>conftest.$ac_ext <<_ACEOF
4562 /* end confdefs.h. */
4563 $ac_includes_default
4565 main ()
4567 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4568 test_array [0] = 0
4571 return 0;
4573 _ACEOF
4574 rm -f conftest.$ac_objext
4575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4576 (eval $ac_compile) 2>conftest.er1
4577 ac_status=$?
4578 grep -v '^ *+' conftest.er1 >conftest.err
4579 rm -f conftest.er1
4580 cat conftest.err >&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); } &&
4583 { ac_try='test -z "$ac_c_werror_flag"
4584 || test ! -s conftest.err'
4585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4586 (eval $ac_try) 2>&5
4587 ac_status=$?
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); }; } &&
4590 { ac_try='test -s conftest.$ac_objext'
4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592 (eval $ac_try) 2>&5
4593 ac_status=$?
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }; }; then
4596 ac_hi=$ac_mid
4597 else
4598 echo "$as_me: failed program was:" >&5
4599 sed 's/^/| /' conftest.$ac_ext >&5
4601 ac_lo=`expr '(' $ac_mid ')' + 1`
4603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4604 done
4605 case $ac_lo in
4606 ?*) ac_cv_sizeof_int=$ac_lo;;
4607 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4608 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4609 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4610 See \`config.log' for more details." >&5
4611 echo "$as_me: error: cannot compute sizeof (int), 77
4612 See \`config.log' for more details." >&2;}
4613 { (exit 1); exit 1; }; }; } ;;
4614 esac
4615 else
4616 if test "$cross_compiling" = yes; then
4617 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4618 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4619 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4620 See \`config.log' for more details." >&5
4621 echo "$as_me: error: cannot run test program while cross compiling
4622 See \`config.log' for more details." >&2;}
4623 { (exit 1); exit 1; }; }; }
4624 else
4625 cat >conftest.$ac_ext <<_ACEOF
4626 /* confdefs.h. */
4627 _ACEOF
4628 cat confdefs.h >>conftest.$ac_ext
4629 cat >>conftest.$ac_ext <<_ACEOF
4630 /* end confdefs.h. */
4631 $ac_includes_default
4632 long longval () { return (long) (sizeof (int)); }
4633 unsigned long ulongval () { return (long) (sizeof (int)); }
4634 #include <stdio.h>
4635 #include <stdlib.h>
4637 main ()
4640 FILE *f = fopen ("conftest.val", "w");
4641 if (! f)
4642 exit (1);
4643 if (((long) (sizeof (int))) < 0)
4645 long i = longval ();
4646 if (i != ((long) (sizeof (int))))
4647 exit (1);
4648 fprintf (f, "%ld\n", i);
4650 else
4652 unsigned long i = ulongval ();
4653 if (i != ((long) (sizeof (int))))
4654 exit (1);
4655 fprintf (f, "%lu\n", i);
4657 exit (ferror (f) || fclose (f) != 0);
4660 return 0;
4662 _ACEOF
4663 rm -f conftest$ac_exeext
4664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4665 (eval $ac_link) 2>&5
4666 ac_status=$?
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4670 (eval $ac_try) 2>&5
4671 ac_status=$?
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); }; }; then
4674 ac_cv_sizeof_int=`cat conftest.val`
4675 else
4676 echo "$as_me: program exited with status $ac_status" >&5
4677 echo "$as_me: failed program was:" >&5
4678 sed 's/^/| /' conftest.$ac_ext >&5
4680 ( exit $ac_status )
4681 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4682 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4683 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4684 See \`config.log' for more details." >&5
4685 echo "$as_me: error: cannot compute sizeof (int), 77
4686 See \`config.log' for more details." >&2;}
4687 { (exit 1); exit 1; }; }; }
4689 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4692 rm -f conftest.val
4693 else
4694 ac_cv_sizeof_int=0
4697 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4698 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4699 cat >>confdefs.h <<_ACEOF
4700 #define SIZEOF_INT $ac_cv_sizeof_int
4701 _ACEOF
4704 echo "$as_me:$LINENO: checking for long" >&5
4705 echo $ECHO_N "checking for long... $ECHO_C" >&6
4706 if test "${ac_cv_type_long+set}" = set; then
4707 echo $ECHO_N "(cached) $ECHO_C" >&6
4708 else
4709 cat >conftest.$ac_ext <<_ACEOF
4710 /* confdefs.h. */
4711 _ACEOF
4712 cat confdefs.h >>conftest.$ac_ext
4713 cat >>conftest.$ac_ext <<_ACEOF
4714 /* end confdefs.h. */
4715 $ac_includes_default
4717 main ()
4719 if ((long *) 0)
4720 return 0;
4721 if (sizeof (long))
4722 return 0;
4724 return 0;
4726 _ACEOF
4727 rm -f conftest.$ac_objext
4728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4729 (eval $ac_compile) 2>conftest.er1
4730 ac_status=$?
4731 grep -v '^ *+' conftest.er1 >conftest.err
4732 rm -f conftest.er1
4733 cat conftest.err >&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); } &&
4736 { ac_try='test -z "$ac_c_werror_flag"
4737 || test ! -s conftest.err'
4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739 (eval $ac_try) 2>&5
4740 ac_status=$?
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; } &&
4743 { ac_try='test -s conftest.$ac_objext'
4744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745 (eval $ac_try) 2>&5
4746 ac_status=$?
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); }; }; then
4749 ac_cv_type_long=yes
4750 else
4751 echo "$as_me: failed program was:" >&5
4752 sed 's/^/| /' conftest.$ac_ext >&5
4754 ac_cv_type_long=no
4756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4758 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4759 echo "${ECHO_T}$ac_cv_type_long" >&6
4761 echo "$as_me:$LINENO: checking size of long" >&5
4762 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4763 if test "${ac_cv_sizeof_long+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 else
4766 if test "$ac_cv_type_long" = yes; then
4767 # The cast to unsigned long works around a bug in the HP C Compiler
4768 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4769 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4770 # This bug is HP SR number 8606223364.
4771 if test "$cross_compiling" = yes; then
4772 # Depending upon the size, compute the lo and hi bounds.
4773 cat >conftest.$ac_ext <<_ACEOF
4774 /* confdefs.h. */
4775 _ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h. */
4779 $ac_includes_default
4781 main ()
4783 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4784 test_array [0] = 0
4787 return 0;
4789 _ACEOF
4790 rm -f conftest.$ac_objext
4791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4792 (eval $ac_compile) 2>conftest.er1
4793 ac_status=$?
4794 grep -v '^ *+' conftest.er1 >conftest.err
4795 rm -f conftest.er1
4796 cat conftest.err >&5
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); } &&
4799 { ac_try='test -z "$ac_c_werror_flag"
4800 || test ! -s conftest.err'
4801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802 (eval $ac_try) 2>&5
4803 ac_status=$?
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); }; } &&
4806 { ac_try='test -s conftest.$ac_objext'
4807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 (eval $ac_try) 2>&5
4809 ac_status=$?
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); }; }; then
4812 ac_lo=0 ac_mid=0
4813 while :; do
4814 cat >conftest.$ac_ext <<_ACEOF
4815 /* confdefs.h. */
4816 _ACEOF
4817 cat confdefs.h >>conftest.$ac_ext
4818 cat >>conftest.$ac_ext <<_ACEOF
4819 /* end confdefs.h. */
4820 $ac_includes_default
4822 main ()
4824 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4825 test_array [0] = 0
4828 return 0;
4830 _ACEOF
4831 rm -f conftest.$ac_objext
4832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4833 (eval $ac_compile) 2>conftest.er1
4834 ac_status=$?
4835 grep -v '^ *+' conftest.er1 >conftest.err
4836 rm -f conftest.er1
4837 cat conftest.err >&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } &&
4840 { ac_try='test -z "$ac_c_werror_flag"
4841 || test ! -s conftest.err'
4842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843 (eval $ac_try) 2>&5
4844 ac_status=$?
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); }; } &&
4847 { ac_try='test -s conftest.$ac_objext'
4848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849 (eval $ac_try) 2>&5
4850 ac_status=$?
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); }; }; then
4853 ac_hi=$ac_mid; break
4854 else
4855 echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.$ac_ext >&5
4858 ac_lo=`expr $ac_mid + 1`
4859 if test $ac_lo -le $ac_mid; then
4860 ac_lo= ac_hi=
4861 break
4863 ac_mid=`expr 2 '*' $ac_mid + 1`
4865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4866 done
4867 else
4868 echo "$as_me: failed program was:" >&5
4869 sed 's/^/| /' conftest.$ac_ext >&5
4871 cat >conftest.$ac_ext <<_ACEOF
4872 /* confdefs.h. */
4873 _ACEOF
4874 cat confdefs.h >>conftest.$ac_ext
4875 cat >>conftest.$ac_ext <<_ACEOF
4876 /* end confdefs.h. */
4877 $ac_includes_default
4879 main ()
4881 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4882 test_array [0] = 0
4885 return 0;
4887 _ACEOF
4888 rm -f conftest.$ac_objext
4889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4890 (eval $ac_compile) 2>conftest.er1
4891 ac_status=$?
4892 grep -v '^ *+' conftest.er1 >conftest.err
4893 rm -f conftest.er1
4894 cat conftest.err >&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); } &&
4897 { ac_try='test -z "$ac_c_werror_flag"
4898 || test ! -s conftest.err'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 (eval $ac_try) 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; } &&
4904 { ac_try='test -s conftest.$ac_objext'
4905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4906 (eval $ac_try) 2>&5
4907 ac_status=$?
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); }; }; then
4910 ac_hi=-1 ac_mid=-1
4911 while :; do
4912 cat >conftest.$ac_ext <<_ACEOF
4913 /* confdefs.h. */
4914 _ACEOF
4915 cat confdefs.h >>conftest.$ac_ext
4916 cat >>conftest.$ac_ext <<_ACEOF
4917 /* end confdefs.h. */
4918 $ac_includes_default
4920 main ()
4922 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4923 test_array [0] = 0
4926 return 0;
4928 _ACEOF
4929 rm -f conftest.$ac_objext
4930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4931 (eval $ac_compile) 2>conftest.er1
4932 ac_status=$?
4933 grep -v '^ *+' conftest.er1 >conftest.err
4934 rm -f conftest.er1
4935 cat conftest.err >&5
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); } &&
4938 { ac_try='test -z "$ac_c_werror_flag"
4939 || test ! -s conftest.err'
4940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4941 (eval $ac_try) 2>&5
4942 ac_status=$?
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); }; } &&
4945 { ac_try='test -s conftest.$ac_objext'
4946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4947 (eval $ac_try) 2>&5
4948 ac_status=$?
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); }; }; then
4951 ac_lo=$ac_mid; break
4952 else
4953 echo "$as_me: failed program was:" >&5
4954 sed 's/^/| /' conftest.$ac_ext >&5
4956 ac_hi=`expr '(' $ac_mid ')' - 1`
4957 if test $ac_mid -le $ac_hi; then
4958 ac_lo= ac_hi=
4959 break
4961 ac_mid=`expr 2 '*' $ac_mid`
4963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4964 done
4965 else
4966 echo "$as_me: failed program was:" >&5
4967 sed 's/^/| /' conftest.$ac_ext >&5
4969 ac_lo= ac_hi=
4971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4974 # Binary search between lo and hi bounds.
4975 while test "x$ac_lo" != "x$ac_hi"; do
4976 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4977 cat >conftest.$ac_ext <<_ACEOF
4978 /* confdefs.h. */
4979 _ACEOF
4980 cat confdefs.h >>conftest.$ac_ext
4981 cat >>conftest.$ac_ext <<_ACEOF
4982 /* end confdefs.h. */
4983 $ac_includes_default
4985 main ()
4987 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4988 test_array [0] = 0
4991 return 0;
4993 _ACEOF
4994 rm -f conftest.$ac_objext
4995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4996 (eval $ac_compile) 2>conftest.er1
4997 ac_status=$?
4998 grep -v '^ *+' conftest.er1 >conftest.err
4999 rm -f conftest.er1
5000 cat conftest.err >&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); } &&
5003 { ac_try='test -z "$ac_c_werror_flag"
5004 || test ! -s conftest.err'
5005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006 (eval $ac_try) 2>&5
5007 ac_status=$?
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); }; } &&
5010 { ac_try='test -s conftest.$ac_objext'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 (eval $ac_try) 2>&5
5013 ac_status=$?
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; }; then
5016 ac_hi=$ac_mid
5017 else
5018 echo "$as_me: failed program was:" >&5
5019 sed 's/^/| /' conftest.$ac_ext >&5
5021 ac_lo=`expr '(' $ac_mid ')' + 1`
5023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5024 done
5025 case $ac_lo in
5026 ?*) ac_cv_sizeof_long=$ac_lo;;
5027 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5028 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5029 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5030 See \`config.log' for more details." >&5
5031 echo "$as_me: error: cannot compute sizeof (long), 77
5032 See \`config.log' for more details." >&2;}
5033 { (exit 1); exit 1; }; }; } ;;
5034 esac
5035 else
5036 if test "$cross_compiling" = yes; then
5037 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5038 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5039 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5040 See \`config.log' for more details." >&5
5041 echo "$as_me: error: cannot run test program while cross compiling
5042 See \`config.log' for more details." >&2;}
5043 { (exit 1); exit 1; }; }; }
5044 else
5045 cat >conftest.$ac_ext <<_ACEOF
5046 /* confdefs.h. */
5047 _ACEOF
5048 cat confdefs.h >>conftest.$ac_ext
5049 cat >>conftest.$ac_ext <<_ACEOF
5050 /* end confdefs.h. */
5051 $ac_includes_default
5052 long longval () { return (long) (sizeof (long)); }
5053 unsigned long ulongval () { return (long) (sizeof (long)); }
5054 #include <stdio.h>
5055 #include <stdlib.h>
5057 main ()
5060 FILE *f = fopen ("conftest.val", "w");
5061 if (! f)
5062 exit (1);
5063 if (((long) (sizeof (long))) < 0)
5065 long i = longval ();
5066 if (i != ((long) (sizeof (long))))
5067 exit (1);
5068 fprintf (f, "%ld\n", i);
5070 else
5072 unsigned long i = ulongval ();
5073 if (i != ((long) (sizeof (long))))
5074 exit (1);
5075 fprintf (f, "%lu\n", i);
5077 exit (ferror (f) || fclose (f) != 0);
5080 return 0;
5082 _ACEOF
5083 rm -f conftest$ac_exeext
5084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5085 (eval $ac_link) 2>&5
5086 ac_status=$?
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090 (eval $ac_try) 2>&5
5091 ac_status=$?
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); }; }; then
5094 ac_cv_sizeof_long=`cat conftest.val`
5095 else
5096 echo "$as_me: program exited with status $ac_status" >&5
5097 echo "$as_me: failed program was:" >&5
5098 sed 's/^/| /' conftest.$ac_ext >&5
5100 ( exit $ac_status )
5101 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5102 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5103 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5104 See \`config.log' for more details." >&5
5105 echo "$as_me: error: cannot compute sizeof (long), 77
5106 See \`config.log' for more details." >&2;}
5107 { (exit 1); exit 1; }; }; }
5109 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5112 rm -f conftest.val
5113 else
5114 ac_cv_sizeof_long=0
5117 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5118 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5119 cat >>confdefs.h <<_ACEOF
5120 #define SIZEOF_LONG $ac_cv_sizeof_long
5121 _ACEOF
5141 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
5143 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5144 echo "$as_me:$LINENO: checking for $ac_func" >&5
5145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5146 if eval "test \"\${$as_ac_var+set}\" = set"; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5148 else
5149 cat >conftest.$ac_ext <<_ACEOF
5150 /* confdefs.h. */
5151 _ACEOF
5152 cat confdefs.h >>conftest.$ac_ext
5153 cat >>conftest.$ac_ext <<_ACEOF
5154 /* end confdefs.h. */
5155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5157 #define $ac_func innocuous_$ac_func
5159 /* System header to define __stub macros and hopefully few prototypes,
5160 which can conflict with char $ac_func (); below.
5161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5162 <limits.h> exists even on freestanding compilers. */
5164 #ifdef __STDC__
5165 # include <limits.h>
5166 #else
5167 # include <assert.h>
5168 #endif
5170 #undef $ac_func
5172 /* Override any gcc2 internal prototype to avoid an error. */
5173 #ifdef __cplusplus
5174 extern "C"
5176 #endif
5177 /* We use char because int might match the return type of a gcc2
5178 builtin and then its argument prototype would still apply. */
5179 char $ac_func ();
5180 /* The GNU C library defines this for functions which it implements
5181 to always fail with ENOSYS. Some functions are actually named
5182 something starting with __ and the normal name is an alias. */
5183 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5184 choke me
5185 #else
5186 char (*f) () = $ac_func;
5187 #endif
5188 #ifdef __cplusplus
5190 #endif
5193 main ()
5195 return f != $ac_func;
5197 return 0;
5199 _ACEOF
5200 rm -f conftest.$ac_objext conftest$ac_exeext
5201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5202 (eval $ac_link) 2>conftest.er1
5203 ac_status=$?
5204 grep -v '^ *+' conftest.er1 >conftest.err
5205 rm -f conftest.er1
5206 cat conftest.err >&5
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); } &&
5209 { ac_try='test -z "$ac_c_werror_flag"
5210 || test ! -s conftest.err'
5211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5212 (eval $ac_try) 2>&5
5213 ac_status=$?
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); }; } &&
5216 { ac_try='test -s conftest$ac_exeext'
5217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218 (eval $ac_try) 2>&5
5219 ac_status=$?
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); }; }; then
5222 eval "$as_ac_var=yes"
5223 else
5224 echo "$as_me: failed program was:" >&5
5225 sed 's/^/| /' conftest.$ac_ext >&5
5227 eval "$as_ac_var=no"
5229 rm -f conftest.err conftest.$ac_objext \
5230 conftest$ac_exeext conftest.$ac_ext
5232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5233 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5234 if test `eval echo '${'$as_ac_var'}'` = yes; then
5235 cat >>confdefs.h <<_ACEOF
5236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5237 _ACEOF
5240 done
5242 echo "$as_me:$LINENO: checking whether abort is declared" >&5
5243 echo $ECHO_N "checking whether abort is declared... $ECHO_C" >&6
5244 if test "${ac_cv_have_decl_abort+set}" = set; then
5245 echo $ECHO_N "(cached) $ECHO_C" >&6
5246 else
5247 cat >conftest.$ac_ext <<_ACEOF
5248 /* confdefs.h. */
5249 _ACEOF
5250 cat confdefs.h >>conftest.$ac_ext
5251 cat >>conftest.$ac_ext <<_ACEOF
5252 /* end confdefs.h. */
5253 $ac_includes_default
5255 main ()
5257 #ifndef abort
5258 char *p = (char *) abort;
5259 #endif
5262 return 0;
5264 _ACEOF
5265 rm -f conftest.$ac_objext
5266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5267 (eval $ac_compile) 2>conftest.er1
5268 ac_status=$?
5269 grep -v '^ *+' conftest.er1 >conftest.err
5270 rm -f conftest.er1
5271 cat conftest.err >&5
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); } &&
5274 { ac_try='test -z "$ac_c_werror_flag"
5275 || test ! -s conftest.err'
5276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277 (eval $ac_try) 2>&5
5278 ac_status=$?
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); }; } &&
5281 { ac_try='test -s conftest.$ac_objext'
5282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5283 (eval $ac_try) 2>&5
5284 ac_status=$?
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); }; }; then
5287 ac_cv_have_decl_abort=yes
5288 else
5289 echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.$ac_ext >&5
5292 ac_cv_have_decl_abort=no
5294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5296 echo "$as_me:$LINENO: result: $ac_cv_have_decl_abort" >&5
5297 echo "${ECHO_T}$ac_cv_have_decl_abort" >&6
5298 if test $ac_cv_have_decl_abort = yes; then
5300 cat >>confdefs.h <<_ACEOF
5301 #define HAVE_DECL_ABORT 1
5302 _ACEOF
5305 else
5306 cat >>confdefs.h <<_ACEOF
5307 #define HAVE_DECL_ABORT 0
5308 _ACEOF
5312 echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
5313 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
5314 if test "${ac_cv_have_decl_asprintf+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 else
5317 cat >conftest.$ac_ext <<_ACEOF
5318 /* confdefs.h. */
5319 _ACEOF
5320 cat confdefs.h >>conftest.$ac_ext
5321 cat >>conftest.$ac_ext <<_ACEOF
5322 /* end confdefs.h. */
5323 $ac_includes_default
5325 main ()
5327 #ifndef asprintf
5328 char *p = (char *) asprintf;
5329 #endif
5332 return 0;
5334 _ACEOF
5335 rm -f conftest.$ac_objext
5336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5337 (eval $ac_compile) 2>conftest.er1
5338 ac_status=$?
5339 grep -v '^ *+' conftest.er1 >conftest.err
5340 rm -f conftest.er1
5341 cat conftest.err >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); } &&
5344 { ac_try='test -z "$ac_c_werror_flag"
5345 || test ! -s conftest.err'
5346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5347 (eval $ac_try) 2>&5
5348 ac_status=$?
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); }; } &&
5351 { ac_try='test -s conftest.$ac_objext'
5352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5353 (eval $ac_try) 2>&5
5354 ac_status=$?
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); }; }; then
5357 ac_cv_have_decl_asprintf=yes
5358 else
5359 echo "$as_me: failed program was:" >&5
5360 sed 's/^/| /' conftest.$ac_ext >&5
5362 ac_cv_have_decl_asprintf=no
5364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5366 echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
5367 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
5368 if test $ac_cv_have_decl_asprintf = yes; then
5370 cat >>confdefs.h <<_ACEOF
5371 #define HAVE_DECL_ASPRINTF 1
5372 _ACEOF
5375 else
5376 cat >>confdefs.h <<_ACEOF
5377 #define HAVE_DECL_ASPRINTF 0
5378 _ACEOF
5382 echo "$as_me:$LINENO: checking whether basename is declared" >&5
5383 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
5384 if test "${ac_cv_have_decl_basename+set}" = set; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5386 else
5387 cat >conftest.$ac_ext <<_ACEOF
5388 /* confdefs.h. */
5389 _ACEOF
5390 cat confdefs.h >>conftest.$ac_ext
5391 cat >>conftest.$ac_ext <<_ACEOF
5392 /* end confdefs.h. */
5393 $ac_includes_default
5395 main ()
5397 #ifndef basename
5398 char *p = (char *) basename;
5399 #endif
5402 return 0;
5404 _ACEOF
5405 rm -f conftest.$ac_objext
5406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5407 (eval $ac_compile) 2>conftest.er1
5408 ac_status=$?
5409 grep -v '^ *+' conftest.er1 >conftest.err
5410 rm -f conftest.er1
5411 cat conftest.err >&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); } &&
5414 { ac_try='test -z "$ac_c_werror_flag"
5415 || test ! -s conftest.err'
5416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5417 (eval $ac_try) 2>&5
5418 ac_status=$?
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); }; } &&
5421 { ac_try='test -s conftest.$ac_objext'
5422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5423 (eval $ac_try) 2>&5
5424 ac_status=$?
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); }; }; then
5427 ac_cv_have_decl_basename=yes
5428 else
5429 echo "$as_me: failed program was:" >&5
5430 sed 's/^/| /' conftest.$ac_ext >&5
5432 ac_cv_have_decl_basename=no
5434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5436 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
5437 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
5438 if test $ac_cv_have_decl_basename = yes; then
5440 cat >>confdefs.h <<_ACEOF
5441 #define HAVE_DECL_BASENAME 1
5442 _ACEOF
5445 else
5446 cat >>confdefs.h <<_ACEOF
5447 #define HAVE_DECL_BASENAME 0
5448 _ACEOF
5452 echo "$as_me:$LINENO: checking whether errno is declared" >&5
5453 echo $ECHO_N "checking whether errno is declared... $ECHO_C" >&6
5454 if test "${ac_cv_have_decl_errno+set}" = set; then
5455 echo $ECHO_N "(cached) $ECHO_C" >&6
5456 else
5457 cat >conftest.$ac_ext <<_ACEOF
5458 /* confdefs.h. */
5459 _ACEOF
5460 cat confdefs.h >>conftest.$ac_ext
5461 cat >>conftest.$ac_ext <<_ACEOF
5462 /* end confdefs.h. */
5463 $ac_includes_default
5465 main ()
5467 #ifndef errno
5468 char *p = (char *) errno;
5469 #endif
5472 return 0;
5474 _ACEOF
5475 rm -f conftest.$ac_objext
5476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5477 (eval $ac_compile) 2>conftest.er1
5478 ac_status=$?
5479 grep -v '^ *+' conftest.er1 >conftest.err
5480 rm -f conftest.er1
5481 cat conftest.err >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); } &&
5484 { ac_try='test -z "$ac_c_werror_flag"
5485 || test ! -s conftest.err'
5486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487 (eval $ac_try) 2>&5
5488 ac_status=$?
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }; } &&
5491 { ac_try='test -s conftest.$ac_objext'
5492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493 (eval $ac_try) 2>&5
5494 ac_status=$?
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); }; }; then
5497 ac_cv_have_decl_errno=yes
5498 else
5499 echo "$as_me: failed program was:" >&5
5500 sed 's/^/| /' conftest.$ac_ext >&5
5502 ac_cv_have_decl_errno=no
5504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5506 echo "$as_me:$LINENO: result: $ac_cv_have_decl_errno" >&5
5507 echo "${ECHO_T}$ac_cv_have_decl_errno" >&6
5508 if test $ac_cv_have_decl_errno = yes; then
5510 cat >>confdefs.h <<_ACEOF
5511 #define HAVE_DECL_ERRNO 1
5512 _ACEOF
5515 else
5516 cat >>confdefs.h <<_ACEOF
5517 #define HAVE_DECL_ERRNO 0
5518 _ACEOF
5522 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
5523 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
5524 if test "${ac_cv_have_decl_getopt+set}" = set; then
5525 echo $ECHO_N "(cached) $ECHO_C" >&6
5526 else
5527 cat >conftest.$ac_ext <<_ACEOF
5528 /* confdefs.h. */
5529 _ACEOF
5530 cat confdefs.h >>conftest.$ac_ext
5531 cat >>conftest.$ac_ext <<_ACEOF
5532 /* end confdefs.h. */
5533 $ac_includes_default
5535 main ()
5537 #ifndef getopt
5538 char *p = (char *) getopt;
5539 #endif
5542 return 0;
5544 _ACEOF
5545 rm -f conftest.$ac_objext
5546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5547 (eval $ac_compile) 2>conftest.er1
5548 ac_status=$?
5549 grep -v '^ *+' conftest.er1 >conftest.err
5550 rm -f conftest.er1
5551 cat conftest.err >&5
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); } &&
5554 { ac_try='test -z "$ac_c_werror_flag"
5555 || test ! -s conftest.err'
5556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5557 (eval $ac_try) 2>&5
5558 ac_status=$?
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); }; } &&
5561 { ac_try='test -s conftest.$ac_objext'
5562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5563 (eval $ac_try) 2>&5
5564 ac_status=$?
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); }; }; then
5567 ac_cv_have_decl_getopt=yes
5568 else
5569 echo "$as_me: failed program was:" >&5
5570 sed 's/^/| /' conftest.$ac_ext >&5
5572 ac_cv_have_decl_getopt=no
5574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5576 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
5577 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
5578 if test $ac_cv_have_decl_getopt = yes; then
5580 cat >>confdefs.h <<_ACEOF
5581 #define HAVE_DECL_GETOPT 1
5582 _ACEOF
5585 else
5586 cat >>confdefs.h <<_ACEOF
5587 #define HAVE_DECL_GETOPT 0
5588 _ACEOF
5592 echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
5593 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
5594 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
5595 echo $ECHO_N "(cached) $ECHO_C" >&6
5596 else
5597 cat >conftest.$ac_ext <<_ACEOF
5598 /* confdefs.h. */
5599 _ACEOF
5600 cat confdefs.h >>conftest.$ac_ext
5601 cat >>conftest.$ac_ext <<_ACEOF
5602 /* end confdefs.h. */
5603 $ac_includes_default
5605 main ()
5607 #ifndef clearerr_unlocked
5608 char *p = (char *) clearerr_unlocked;
5609 #endif
5612 return 0;
5614 _ACEOF
5615 rm -f conftest.$ac_objext
5616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5617 (eval $ac_compile) 2>conftest.er1
5618 ac_status=$?
5619 grep -v '^ *+' conftest.er1 >conftest.err
5620 rm -f conftest.er1
5621 cat conftest.err >&5
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); } &&
5624 { ac_try='test -z "$ac_c_werror_flag"
5625 || test ! -s conftest.err'
5626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5627 (eval $ac_try) 2>&5
5628 ac_status=$?
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); }; } &&
5631 { ac_try='test -s conftest.$ac_objext'
5632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5633 (eval $ac_try) 2>&5
5634 ac_status=$?
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); }; }; then
5637 ac_cv_have_decl_clearerr_unlocked=yes
5638 else
5639 echo "$as_me: failed program was:" >&5
5640 sed 's/^/| /' conftest.$ac_ext >&5
5642 ac_cv_have_decl_clearerr_unlocked=no
5644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5646 echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
5647 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
5648 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
5650 cat >>confdefs.h <<_ACEOF
5651 #define HAVE_DECL_CLEARERR_UNLOCKED 1
5652 _ACEOF
5655 else
5656 cat >>confdefs.h <<_ACEOF
5657 #define HAVE_DECL_CLEARERR_UNLOCKED 0
5658 _ACEOF
5662 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
5663 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
5664 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5666 else
5667 cat >conftest.$ac_ext <<_ACEOF
5668 /* confdefs.h. */
5669 _ACEOF
5670 cat confdefs.h >>conftest.$ac_ext
5671 cat >>conftest.$ac_ext <<_ACEOF
5672 /* end confdefs.h. */
5673 $ac_includes_default
5675 main ()
5677 #ifndef feof_unlocked
5678 char *p = (char *) feof_unlocked;
5679 #endif
5682 return 0;
5684 _ACEOF
5685 rm -f conftest.$ac_objext
5686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5687 (eval $ac_compile) 2>conftest.er1
5688 ac_status=$?
5689 grep -v '^ *+' conftest.er1 >conftest.err
5690 rm -f conftest.er1
5691 cat conftest.err >&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); } &&
5694 { ac_try='test -z "$ac_c_werror_flag"
5695 || test ! -s conftest.err'
5696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5697 (eval $ac_try) 2>&5
5698 ac_status=$?
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); }; } &&
5701 { ac_try='test -s conftest.$ac_objext'
5702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5703 (eval $ac_try) 2>&5
5704 ac_status=$?
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; }; then
5707 ac_cv_have_decl_feof_unlocked=yes
5708 else
5709 echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.$ac_ext >&5
5712 ac_cv_have_decl_feof_unlocked=no
5714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5716 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
5717 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
5718 if test $ac_cv_have_decl_feof_unlocked = yes; then
5720 cat >>confdefs.h <<_ACEOF
5721 #define HAVE_DECL_FEOF_UNLOCKED 1
5722 _ACEOF
5725 else
5726 cat >>confdefs.h <<_ACEOF
5727 #define HAVE_DECL_FEOF_UNLOCKED 0
5728 _ACEOF
5732 echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
5733 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
5734 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5736 else
5737 cat >conftest.$ac_ext <<_ACEOF
5738 /* confdefs.h. */
5739 _ACEOF
5740 cat confdefs.h >>conftest.$ac_ext
5741 cat >>conftest.$ac_ext <<_ACEOF
5742 /* end confdefs.h. */
5743 $ac_includes_default
5745 main ()
5747 #ifndef ferror_unlocked
5748 char *p = (char *) ferror_unlocked;
5749 #endif
5752 return 0;
5754 _ACEOF
5755 rm -f conftest.$ac_objext
5756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5757 (eval $ac_compile) 2>conftest.er1
5758 ac_status=$?
5759 grep -v '^ *+' conftest.er1 >conftest.err
5760 rm -f conftest.er1
5761 cat conftest.err >&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); } &&
5764 { ac_try='test -z "$ac_c_werror_flag"
5765 || test ! -s conftest.err'
5766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5767 (eval $ac_try) 2>&5
5768 ac_status=$?
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); }; } &&
5771 { ac_try='test -s conftest.$ac_objext'
5772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773 (eval $ac_try) 2>&5
5774 ac_status=$?
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); }; }; then
5777 ac_cv_have_decl_ferror_unlocked=yes
5778 else
5779 echo "$as_me: failed program was:" >&5
5780 sed 's/^/| /' conftest.$ac_ext >&5
5782 ac_cv_have_decl_ferror_unlocked=no
5784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5786 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
5787 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
5788 if test $ac_cv_have_decl_ferror_unlocked = yes; then
5790 cat >>confdefs.h <<_ACEOF
5791 #define HAVE_DECL_FERROR_UNLOCKED 1
5792 _ACEOF
5795 else
5796 cat >>confdefs.h <<_ACEOF
5797 #define HAVE_DECL_FERROR_UNLOCKED 0
5798 _ACEOF
5802 echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
5803 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
5804 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
5805 echo $ECHO_N "(cached) $ECHO_C" >&6
5806 else
5807 cat >conftest.$ac_ext <<_ACEOF
5808 /* confdefs.h. */
5809 _ACEOF
5810 cat confdefs.h >>conftest.$ac_ext
5811 cat >>conftest.$ac_ext <<_ACEOF
5812 /* end confdefs.h. */
5813 $ac_includes_default
5815 main ()
5817 #ifndef fflush_unlocked
5818 char *p = (char *) fflush_unlocked;
5819 #endif
5822 return 0;
5824 _ACEOF
5825 rm -f conftest.$ac_objext
5826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5827 (eval $ac_compile) 2>conftest.er1
5828 ac_status=$?
5829 grep -v '^ *+' conftest.er1 >conftest.err
5830 rm -f conftest.er1
5831 cat conftest.err >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } &&
5834 { ac_try='test -z "$ac_c_werror_flag"
5835 || test ! -s conftest.err'
5836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5837 (eval $ac_try) 2>&5
5838 ac_status=$?
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; } &&
5841 { ac_try='test -s conftest.$ac_objext'
5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843 (eval $ac_try) 2>&5
5844 ac_status=$?
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; }; then
5847 ac_cv_have_decl_fflush_unlocked=yes
5848 else
5849 echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5852 ac_cv_have_decl_fflush_unlocked=no
5854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5856 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
5857 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
5858 if test $ac_cv_have_decl_fflush_unlocked = yes; then
5860 cat >>confdefs.h <<_ACEOF
5861 #define HAVE_DECL_FFLUSH_UNLOCKED 1
5862 _ACEOF
5865 else
5866 cat >>confdefs.h <<_ACEOF
5867 #define HAVE_DECL_FFLUSH_UNLOCKED 0
5868 _ACEOF
5872 echo "$as_me:$LINENO: checking whether fgetc_unlocked is declared" >&5
5873 echo $ECHO_N "checking whether fgetc_unlocked is declared... $ECHO_C" >&6
5874 if test "${ac_cv_have_decl_fgetc_unlocked+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 else
5877 cat >conftest.$ac_ext <<_ACEOF
5878 /* confdefs.h. */
5879 _ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5883 $ac_includes_default
5885 main ()
5887 #ifndef fgetc_unlocked
5888 char *p = (char *) fgetc_unlocked;
5889 #endif
5892 return 0;
5894 _ACEOF
5895 rm -f conftest.$ac_objext
5896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5897 (eval $ac_compile) 2>conftest.er1
5898 ac_status=$?
5899 grep -v '^ *+' conftest.er1 >conftest.err
5900 rm -f conftest.er1
5901 cat conftest.err >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } &&
5904 { ac_try='test -z "$ac_c_werror_flag"
5905 || test ! -s conftest.err'
5906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5907 (eval $ac_try) 2>&5
5908 ac_status=$?
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); }; } &&
5911 { ac_try='test -s conftest.$ac_objext'
5912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913 (eval $ac_try) 2>&5
5914 ac_status=$?
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); }; }; then
5917 ac_cv_have_decl_fgetc_unlocked=yes
5918 else
5919 echo "$as_me: failed program was:" >&5
5920 sed 's/^/| /' conftest.$ac_ext >&5
5922 ac_cv_have_decl_fgetc_unlocked=no
5924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5926 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgetc_unlocked" >&5
5927 echo "${ECHO_T}$ac_cv_have_decl_fgetc_unlocked" >&6
5928 if test $ac_cv_have_decl_fgetc_unlocked = yes; then
5930 cat >>confdefs.h <<_ACEOF
5931 #define HAVE_DECL_FGETC_UNLOCKED 1
5932 _ACEOF
5935 else
5936 cat >>confdefs.h <<_ACEOF
5937 #define HAVE_DECL_FGETC_UNLOCKED 0
5938 _ACEOF
5942 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
5943 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
5944 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5946 else
5947 cat >conftest.$ac_ext <<_ACEOF
5948 /* confdefs.h. */
5949 _ACEOF
5950 cat confdefs.h >>conftest.$ac_ext
5951 cat >>conftest.$ac_ext <<_ACEOF
5952 /* end confdefs.h. */
5953 $ac_includes_default
5955 main ()
5957 #ifndef fgets_unlocked
5958 char *p = (char *) fgets_unlocked;
5959 #endif
5962 return 0;
5964 _ACEOF
5965 rm -f conftest.$ac_objext
5966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5967 (eval $ac_compile) 2>conftest.er1
5968 ac_status=$?
5969 grep -v '^ *+' conftest.er1 >conftest.err
5970 rm -f conftest.er1
5971 cat conftest.err >&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); } &&
5974 { ac_try='test -z "$ac_c_werror_flag"
5975 || test ! -s conftest.err'
5976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5977 (eval $ac_try) 2>&5
5978 ac_status=$?
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); }; } &&
5981 { ac_try='test -s conftest.$ac_objext'
5982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5983 (eval $ac_try) 2>&5
5984 ac_status=$?
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; }; then
5987 ac_cv_have_decl_fgets_unlocked=yes
5988 else
5989 echo "$as_me: failed program was:" >&5
5990 sed 's/^/| /' conftest.$ac_ext >&5
5992 ac_cv_have_decl_fgets_unlocked=no
5994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5996 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
5997 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
5998 if test $ac_cv_have_decl_fgets_unlocked = yes; then
6000 cat >>confdefs.h <<_ACEOF
6001 #define HAVE_DECL_FGETS_UNLOCKED 1
6002 _ACEOF
6005 else
6006 cat >>confdefs.h <<_ACEOF
6007 #define HAVE_DECL_FGETS_UNLOCKED 0
6008 _ACEOF
6012 echo "$as_me:$LINENO: checking whether fileno_unlocked is declared" >&5
6013 echo $ECHO_N "checking whether fileno_unlocked is declared... $ECHO_C" >&6
6014 if test "${ac_cv_have_decl_fileno_unlocked+set}" = set; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6016 else
6017 cat >conftest.$ac_ext <<_ACEOF
6018 /* confdefs.h. */
6019 _ACEOF
6020 cat confdefs.h >>conftest.$ac_ext
6021 cat >>conftest.$ac_ext <<_ACEOF
6022 /* end confdefs.h. */
6023 $ac_includes_default
6025 main ()
6027 #ifndef fileno_unlocked
6028 char *p = (char *) fileno_unlocked;
6029 #endif
6032 return 0;
6034 _ACEOF
6035 rm -f conftest.$ac_objext
6036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6037 (eval $ac_compile) 2>conftest.er1
6038 ac_status=$?
6039 grep -v '^ *+' conftest.er1 >conftest.err
6040 rm -f conftest.er1
6041 cat conftest.err >&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } &&
6044 { ac_try='test -z "$ac_c_werror_flag"
6045 || test ! -s conftest.err'
6046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6047 (eval $ac_try) 2>&5
6048 ac_status=$?
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); }; } &&
6051 { ac_try='test -s conftest.$ac_objext'
6052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053 (eval $ac_try) 2>&5
6054 ac_status=$?
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); }; }; then
6057 ac_cv_have_decl_fileno_unlocked=yes
6058 else
6059 echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.$ac_ext >&5
6062 ac_cv_have_decl_fileno_unlocked=no
6064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6066 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fileno_unlocked" >&5
6067 echo "${ECHO_T}$ac_cv_have_decl_fileno_unlocked" >&6
6068 if test $ac_cv_have_decl_fileno_unlocked = yes; then
6070 cat >>confdefs.h <<_ACEOF
6071 #define HAVE_DECL_FILENO_UNLOCKED 1
6072 _ACEOF
6075 else
6076 cat >>confdefs.h <<_ACEOF
6077 #define HAVE_DECL_FILENO_UNLOCKED 0
6078 _ACEOF
6082 echo "$as_me:$LINENO: checking whether fprintf_unlocked is declared" >&5
6083 echo $ECHO_N "checking whether fprintf_unlocked is declared... $ECHO_C" >&6
6084 if test "${ac_cv_have_decl_fprintf_unlocked+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6086 else
6087 cat >conftest.$ac_ext <<_ACEOF
6088 /* confdefs.h. */
6089 _ACEOF
6090 cat confdefs.h >>conftest.$ac_ext
6091 cat >>conftest.$ac_ext <<_ACEOF
6092 /* end confdefs.h. */
6093 $ac_includes_default
6095 main ()
6097 #ifndef fprintf_unlocked
6098 char *p = (char *) fprintf_unlocked;
6099 #endif
6102 return 0;
6104 _ACEOF
6105 rm -f conftest.$ac_objext
6106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6107 (eval $ac_compile) 2>conftest.er1
6108 ac_status=$?
6109 grep -v '^ *+' conftest.er1 >conftest.err
6110 rm -f conftest.er1
6111 cat conftest.err >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } &&
6114 { ac_try='test -z "$ac_c_werror_flag"
6115 || test ! -s conftest.err'
6116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117 (eval $ac_try) 2>&5
6118 ac_status=$?
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); }; } &&
6121 { ac_try='test -s conftest.$ac_objext'
6122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123 (eval $ac_try) 2>&5
6124 ac_status=$?
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); }; }; then
6127 ac_cv_have_decl_fprintf_unlocked=yes
6128 else
6129 echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6132 ac_cv_have_decl_fprintf_unlocked=no
6134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6136 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf_unlocked" >&5
6137 echo "${ECHO_T}$ac_cv_have_decl_fprintf_unlocked" >&6
6138 if test $ac_cv_have_decl_fprintf_unlocked = yes; then
6140 cat >>confdefs.h <<_ACEOF
6141 #define HAVE_DECL_FPRINTF_UNLOCKED 1
6142 _ACEOF
6145 else
6146 cat >>confdefs.h <<_ACEOF
6147 #define HAVE_DECL_FPRINTF_UNLOCKED 0
6148 _ACEOF
6152 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
6153 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
6154 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
6155 echo $ECHO_N "(cached) $ECHO_C" >&6
6156 else
6157 cat >conftest.$ac_ext <<_ACEOF
6158 /* confdefs.h. */
6159 _ACEOF
6160 cat confdefs.h >>conftest.$ac_ext
6161 cat >>conftest.$ac_ext <<_ACEOF
6162 /* end confdefs.h. */
6163 $ac_includes_default
6165 main ()
6167 #ifndef fputc_unlocked
6168 char *p = (char *) fputc_unlocked;
6169 #endif
6172 return 0;
6174 _ACEOF
6175 rm -f conftest.$ac_objext
6176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6177 (eval $ac_compile) 2>conftest.er1
6178 ac_status=$?
6179 grep -v '^ *+' conftest.er1 >conftest.err
6180 rm -f conftest.er1
6181 cat conftest.err >&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); } &&
6184 { ac_try='test -z "$ac_c_werror_flag"
6185 || test ! -s conftest.err'
6186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187 (eval $ac_try) 2>&5
6188 ac_status=$?
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); }; } &&
6191 { ac_try='test -s conftest.$ac_objext'
6192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6193 (eval $ac_try) 2>&5
6194 ac_status=$?
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); }; }; then
6197 ac_cv_have_decl_fputc_unlocked=yes
6198 else
6199 echo "$as_me: failed program was:" >&5
6200 sed 's/^/| /' conftest.$ac_ext >&5
6202 ac_cv_have_decl_fputc_unlocked=no
6204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6206 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
6207 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
6208 if test $ac_cv_have_decl_fputc_unlocked = yes; then
6210 cat >>confdefs.h <<_ACEOF
6211 #define HAVE_DECL_FPUTC_UNLOCKED 1
6212 _ACEOF
6215 else
6216 cat >>confdefs.h <<_ACEOF
6217 #define HAVE_DECL_FPUTC_UNLOCKED 0
6218 _ACEOF
6222 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
6223 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
6224 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
6225 echo $ECHO_N "(cached) $ECHO_C" >&6
6226 else
6227 cat >conftest.$ac_ext <<_ACEOF
6228 /* confdefs.h. */
6229 _ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h. */
6233 $ac_includes_default
6235 main ()
6237 #ifndef fputs_unlocked
6238 char *p = (char *) fputs_unlocked;
6239 #endif
6242 return 0;
6244 _ACEOF
6245 rm -f conftest.$ac_objext
6246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6247 (eval $ac_compile) 2>conftest.er1
6248 ac_status=$?
6249 grep -v '^ *+' conftest.er1 >conftest.err
6250 rm -f conftest.er1
6251 cat conftest.err >&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); } &&
6254 { ac_try='test -z "$ac_c_werror_flag"
6255 || test ! -s conftest.err'
6256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6257 (eval $ac_try) 2>&5
6258 ac_status=$?
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); }; } &&
6261 { ac_try='test -s conftest.$ac_objext'
6262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263 (eval $ac_try) 2>&5
6264 ac_status=$?
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }; }; then
6267 ac_cv_have_decl_fputs_unlocked=yes
6268 else
6269 echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.$ac_ext >&5
6272 ac_cv_have_decl_fputs_unlocked=no
6274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6276 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
6277 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
6278 if test $ac_cv_have_decl_fputs_unlocked = yes; then
6280 cat >>confdefs.h <<_ACEOF
6281 #define HAVE_DECL_FPUTS_UNLOCKED 1
6282 _ACEOF
6285 else
6286 cat >>confdefs.h <<_ACEOF
6287 #define HAVE_DECL_FPUTS_UNLOCKED 0
6288 _ACEOF
6292 echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
6293 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
6294 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
6295 echo $ECHO_N "(cached) $ECHO_C" >&6
6296 else
6297 cat >conftest.$ac_ext <<_ACEOF
6298 /* confdefs.h. */
6299 _ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h. */
6303 $ac_includes_default
6305 main ()
6307 #ifndef fread_unlocked
6308 char *p = (char *) fread_unlocked;
6309 #endif
6312 return 0;
6314 _ACEOF
6315 rm -f conftest.$ac_objext
6316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6317 (eval $ac_compile) 2>conftest.er1
6318 ac_status=$?
6319 grep -v '^ *+' conftest.er1 >conftest.err
6320 rm -f conftest.er1
6321 cat conftest.err >&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } &&
6324 { ac_try='test -z "$ac_c_werror_flag"
6325 || test ! -s conftest.err'
6326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6327 (eval $ac_try) 2>&5
6328 ac_status=$?
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); }; } &&
6331 { ac_try='test -s conftest.$ac_objext'
6332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333 (eval $ac_try) 2>&5
6334 ac_status=$?
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); }; }; then
6337 ac_cv_have_decl_fread_unlocked=yes
6338 else
6339 echo "$as_me: failed program was:" >&5
6340 sed 's/^/| /' conftest.$ac_ext >&5
6342 ac_cv_have_decl_fread_unlocked=no
6344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6346 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
6347 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
6348 if test $ac_cv_have_decl_fread_unlocked = yes; then
6350 cat >>confdefs.h <<_ACEOF
6351 #define HAVE_DECL_FREAD_UNLOCKED 1
6352 _ACEOF
6355 else
6356 cat >>confdefs.h <<_ACEOF
6357 #define HAVE_DECL_FREAD_UNLOCKED 0
6358 _ACEOF
6362 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
6363 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
6364 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
6366 else
6367 cat >conftest.$ac_ext <<_ACEOF
6368 /* confdefs.h. */
6369 _ACEOF
6370 cat confdefs.h >>conftest.$ac_ext
6371 cat >>conftest.$ac_ext <<_ACEOF
6372 /* end confdefs.h. */
6373 $ac_includes_default
6375 main ()
6377 #ifndef fwrite_unlocked
6378 char *p = (char *) fwrite_unlocked;
6379 #endif
6382 return 0;
6384 _ACEOF
6385 rm -f conftest.$ac_objext
6386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6387 (eval $ac_compile) 2>conftest.er1
6388 ac_status=$?
6389 grep -v '^ *+' conftest.er1 >conftest.err
6390 rm -f conftest.er1
6391 cat conftest.err >&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); } &&
6394 { ac_try='test -z "$ac_c_werror_flag"
6395 || test ! -s conftest.err'
6396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6397 (eval $ac_try) 2>&5
6398 ac_status=$?
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); }; } &&
6401 { ac_try='test -s conftest.$ac_objext'
6402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6403 (eval $ac_try) 2>&5
6404 ac_status=$?
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); }; }; then
6407 ac_cv_have_decl_fwrite_unlocked=yes
6408 else
6409 echo "$as_me: failed program was:" >&5
6410 sed 's/^/| /' conftest.$ac_ext >&5
6412 ac_cv_have_decl_fwrite_unlocked=no
6414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6416 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
6417 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
6418 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
6420 cat >>confdefs.h <<_ACEOF
6421 #define HAVE_DECL_FWRITE_UNLOCKED 1
6422 _ACEOF
6425 else
6426 cat >>confdefs.h <<_ACEOF
6427 #define HAVE_DECL_FWRITE_UNLOCKED 0
6428 _ACEOF
6432 echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
6433 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
6434 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6436 else
6437 cat >conftest.$ac_ext <<_ACEOF
6438 /* confdefs.h. */
6439 _ACEOF
6440 cat confdefs.h >>conftest.$ac_ext
6441 cat >>conftest.$ac_ext <<_ACEOF
6442 /* end confdefs.h. */
6443 $ac_includes_default
6445 main ()
6447 #ifndef getchar_unlocked
6448 char *p = (char *) getchar_unlocked;
6449 #endif
6452 return 0;
6454 _ACEOF
6455 rm -f conftest.$ac_objext
6456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6457 (eval $ac_compile) 2>conftest.er1
6458 ac_status=$?
6459 grep -v '^ *+' conftest.er1 >conftest.err
6460 rm -f conftest.er1
6461 cat conftest.err >&5
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); } &&
6464 { ac_try='test -z "$ac_c_werror_flag"
6465 || test ! -s conftest.err'
6466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467 (eval $ac_try) 2>&5
6468 ac_status=$?
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); }; } &&
6471 { ac_try='test -s conftest.$ac_objext'
6472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6473 (eval $ac_try) 2>&5
6474 ac_status=$?
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); }; }; then
6477 ac_cv_have_decl_getchar_unlocked=yes
6478 else
6479 echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.$ac_ext >&5
6482 ac_cv_have_decl_getchar_unlocked=no
6484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6486 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
6487 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
6488 if test $ac_cv_have_decl_getchar_unlocked = yes; then
6490 cat >>confdefs.h <<_ACEOF
6491 #define HAVE_DECL_GETCHAR_UNLOCKED 1
6492 _ACEOF
6495 else
6496 cat >>confdefs.h <<_ACEOF
6497 #define HAVE_DECL_GETCHAR_UNLOCKED 0
6498 _ACEOF
6502 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
6503 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
6504 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6506 else
6507 cat >conftest.$ac_ext <<_ACEOF
6508 /* confdefs.h. */
6509 _ACEOF
6510 cat confdefs.h >>conftest.$ac_ext
6511 cat >>conftest.$ac_ext <<_ACEOF
6512 /* end confdefs.h. */
6513 $ac_includes_default
6515 main ()
6517 #ifndef getc_unlocked
6518 char *p = (char *) getc_unlocked;
6519 #endif
6522 return 0;
6524 _ACEOF
6525 rm -f conftest.$ac_objext
6526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6527 (eval $ac_compile) 2>conftest.er1
6528 ac_status=$?
6529 grep -v '^ *+' conftest.er1 >conftest.err
6530 rm -f conftest.er1
6531 cat conftest.err >&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); } &&
6534 { ac_try='test -z "$ac_c_werror_flag"
6535 || test ! -s conftest.err'
6536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6537 (eval $ac_try) 2>&5
6538 ac_status=$?
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; } &&
6541 { ac_try='test -s conftest.$ac_objext'
6542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6543 (eval $ac_try) 2>&5
6544 ac_status=$?
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); }; }; then
6547 ac_cv_have_decl_getc_unlocked=yes
6548 else
6549 echo "$as_me: failed program was:" >&5
6550 sed 's/^/| /' conftest.$ac_ext >&5
6552 ac_cv_have_decl_getc_unlocked=no
6554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6556 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
6557 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
6558 if test $ac_cv_have_decl_getc_unlocked = yes; then
6560 cat >>confdefs.h <<_ACEOF
6561 #define HAVE_DECL_GETC_UNLOCKED 1
6562 _ACEOF
6565 else
6566 cat >>confdefs.h <<_ACEOF
6567 #define HAVE_DECL_GETC_UNLOCKED 0
6568 _ACEOF
6572 echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
6573 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
6574 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 else
6577 cat >conftest.$ac_ext <<_ACEOF
6578 /* confdefs.h. */
6579 _ACEOF
6580 cat confdefs.h >>conftest.$ac_ext
6581 cat >>conftest.$ac_ext <<_ACEOF
6582 /* end confdefs.h. */
6583 $ac_includes_default
6585 main ()
6587 #ifndef putchar_unlocked
6588 char *p = (char *) putchar_unlocked;
6589 #endif
6592 return 0;
6594 _ACEOF
6595 rm -f conftest.$ac_objext
6596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6597 (eval $ac_compile) 2>conftest.er1
6598 ac_status=$?
6599 grep -v '^ *+' conftest.er1 >conftest.err
6600 rm -f conftest.er1
6601 cat conftest.err >&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } &&
6604 { ac_try='test -z "$ac_c_werror_flag"
6605 || test ! -s conftest.err'
6606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 (eval $ac_try) 2>&5
6608 ac_status=$?
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); }; } &&
6611 { ac_try='test -s conftest.$ac_objext'
6612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613 (eval $ac_try) 2>&5
6614 ac_status=$?
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }; }; then
6617 ac_cv_have_decl_putchar_unlocked=yes
6618 else
6619 echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6622 ac_cv_have_decl_putchar_unlocked=no
6624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6626 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
6627 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
6628 if test $ac_cv_have_decl_putchar_unlocked = yes; then
6630 cat >>confdefs.h <<_ACEOF
6631 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
6632 _ACEOF
6635 else
6636 cat >>confdefs.h <<_ACEOF
6637 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
6638 _ACEOF
6642 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
6643 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
6644 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
6645 echo $ECHO_N "(cached) $ECHO_C" >&6
6646 else
6647 cat >conftest.$ac_ext <<_ACEOF
6648 /* confdefs.h. */
6649 _ACEOF
6650 cat confdefs.h >>conftest.$ac_ext
6651 cat >>conftest.$ac_ext <<_ACEOF
6652 /* end confdefs.h. */
6653 $ac_includes_default
6655 main ()
6657 #ifndef putc_unlocked
6658 char *p = (char *) putc_unlocked;
6659 #endif
6662 return 0;
6664 _ACEOF
6665 rm -f conftest.$ac_objext
6666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6667 (eval $ac_compile) 2>conftest.er1
6668 ac_status=$?
6669 grep -v '^ *+' conftest.er1 >conftest.err
6670 rm -f conftest.er1
6671 cat conftest.err >&5
6672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); } &&
6674 { ac_try='test -z "$ac_c_werror_flag"
6675 || test ! -s conftest.err'
6676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677 (eval $ac_try) 2>&5
6678 ac_status=$?
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); }; } &&
6681 { ac_try='test -s conftest.$ac_objext'
6682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6683 (eval $ac_try) 2>&5
6684 ac_status=$?
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); }; }; then
6687 ac_cv_have_decl_putc_unlocked=yes
6688 else
6689 echo "$as_me: failed program was:" >&5
6690 sed 's/^/| /' conftest.$ac_ext >&5
6692 ac_cv_have_decl_putc_unlocked=no
6694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6696 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
6697 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
6698 if test $ac_cv_have_decl_putc_unlocked = yes; then
6700 cat >>confdefs.h <<_ACEOF
6701 #define HAVE_DECL_PUTC_UNLOCKED 1
6702 _ACEOF
6705 else
6706 cat >>confdefs.h <<_ACEOF
6707 #define HAVE_DECL_PUTC_UNLOCKED 0
6708 _ACEOF
6712 echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
6713 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
6714 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6716 else
6717 cat >conftest.$ac_ext <<_ACEOF
6718 /* confdefs.h. */
6719 _ACEOF
6720 cat confdefs.h >>conftest.$ac_ext
6721 cat >>conftest.$ac_ext <<_ACEOF
6722 /* end confdefs.h. */
6723 $ac_includes_default
6725 main ()
6727 #ifndef vasprintf
6728 char *p = (char *) vasprintf;
6729 #endif
6732 return 0;
6734 _ACEOF
6735 rm -f conftest.$ac_objext
6736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6737 (eval $ac_compile) 2>conftest.er1
6738 ac_status=$?
6739 grep -v '^ *+' conftest.er1 >conftest.err
6740 rm -f conftest.er1
6741 cat conftest.err >&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } &&
6744 { ac_try='test -z "$ac_c_werror_flag"
6745 || test ! -s conftest.err'
6746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747 (eval $ac_try) 2>&5
6748 ac_status=$?
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); }; } &&
6751 { ac_try='test -s conftest.$ac_objext'
6752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6753 (eval $ac_try) 2>&5
6754 ac_status=$?
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); }; }; then
6757 ac_cv_have_decl_vasprintf=yes
6758 else
6759 echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.$ac_ext >&5
6762 ac_cv_have_decl_vasprintf=no
6764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6766 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
6767 echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
6768 if test $ac_cv_have_decl_vasprintf = yes; then
6770 cat >>confdefs.h <<_ACEOF
6771 #define HAVE_DECL_VASPRINTF 1
6772 _ACEOF
6775 else
6776 cat >>confdefs.h <<_ACEOF
6777 #define HAVE_DECL_VASPRINTF 0
6778 _ACEOF
6785 # Checks for library functions.
6786 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6787 # for constant arguments. Useless!
6788 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6789 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6790 if test "${ac_cv_working_alloca_h+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 else
6793 cat >conftest.$ac_ext <<_ACEOF
6794 /* confdefs.h. */
6795 _ACEOF
6796 cat confdefs.h >>conftest.$ac_ext
6797 cat >>conftest.$ac_ext <<_ACEOF
6798 /* end confdefs.h. */
6799 #include <alloca.h>
6801 main ()
6803 char *p = (char *) alloca (2 * sizeof (int));
6805 return 0;
6807 _ACEOF
6808 rm -f conftest.$ac_objext conftest$ac_exeext
6809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6810 (eval $ac_link) 2>conftest.er1
6811 ac_status=$?
6812 grep -v '^ *+' conftest.er1 >conftest.err
6813 rm -f conftest.er1
6814 cat conftest.err >&5
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); } &&
6817 { ac_try='test -z "$ac_c_werror_flag"
6818 || test ! -s conftest.err'
6819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820 (eval $ac_try) 2>&5
6821 ac_status=$?
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); }; } &&
6824 { ac_try='test -s conftest$ac_exeext'
6825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826 (eval $ac_try) 2>&5
6827 ac_status=$?
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); }; }; then
6830 ac_cv_working_alloca_h=yes
6831 else
6832 echo "$as_me: failed program was:" >&5
6833 sed 's/^/| /' conftest.$ac_ext >&5
6835 ac_cv_working_alloca_h=no
6837 rm -f conftest.err conftest.$ac_objext \
6838 conftest$ac_exeext conftest.$ac_ext
6840 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6841 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6842 if test $ac_cv_working_alloca_h = yes; then
6844 cat >>confdefs.h <<\_ACEOF
6845 #define HAVE_ALLOCA_H 1
6846 _ACEOF
6850 echo "$as_me:$LINENO: checking for alloca" >&5
6851 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6852 if test "${ac_cv_func_alloca_works+set}" = set; then
6853 echo $ECHO_N "(cached) $ECHO_C" >&6
6854 else
6855 cat >conftest.$ac_ext <<_ACEOF
6856 /* confdefs.h. */
6857 _ACEOF
6858 cat confdefs.h >>conftest.$ac_ext
6859 cat >>conftest.$ac_ext <<_ACEOF
6860 /* end confdefs.h. */
6861 #ifdef __GNUC__
6862 # define alloca __builtin_alloca
6863 #else
6864 # ifdef _MSC_VER
6865 # include <malloc.h>
6866 # define alloca _alloca
6867 # else
6868 # if HAVE_ALLOCA_H
6869 # include <alloca.h>
6870 # else
6871 # ifdef _AIX
6872 #pragma alloca
6873 # else
6874 # ifndef alloca /* predefined by HP cc +Olibcalls */
6875 char *alloca ();
6876 # endif
6877 # endif
6878 # endif
6879 # endif
6880 #endif
6883 main ()
6885 char *p = (char *) alloca (1);
6887 return 0;
6889 _ACEOF
6890 rm -f conftest.$ac_objext conftest$ac_exeext
6891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6892 (eval $ac_link) 2>conftest.er1
6893 ac_status=$?
6894 grep -v '^ *+' conftest.er1 >conftest.err
6895 rm -f conftest.er1
6896 cat conftest.err >&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); } &&
6899 { ac_try='test -z "$ac_c_werror_flag"
6900 || test ! -s conftest.err'
6901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6902 (eval $ac_try) 2>&5
6903 ac_status=$?
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); }; } &&
6906 { ac_try='test -s conftest$ac_exeext'
6907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908 (eval $ac_try) 2>&5
6909 ac_status=$?
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); }; }; then
6912 ac_cv_func_alloca_works=yes
6913 else
6914 echo "$as_me: failed program was:" >&5
6915 sed 's/^/| /' conftest.$ac_ext >&5
6917 ac_cv_func_alloca_works=no
6919 rm -f conftest.err conftest.$ac_objext \
6920 conftest$ac_exeext conftest.$ac_ext
6922 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6923 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6925 if test $ac_cv_func_alloca_works = yes; then
6927 cat >>confdefs.h <<\_ACEOF
6928 #define HAVE_ALLOCA 1
6929 _ACEOF
6931 else
6932 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6933 # that cause trouble. Some versions do not even contain alloca or
6934 # contain a buggy version. If you still want to use their alloca,
6935 # use ar to extract alloca.o from them instead of compiling alloca.c.
6937 ALLOCA=alloca.$ac_objext
6939 cat >>confdefs.h <<\_ACEOF
6940 #define C_ALLOCA 1
6941 _ACEOF
6944 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6945 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6946 if test "${ac_cv_os_cray+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6948 else
6949 cat >conftest.$ac_ext <<_ACEOF
6950 /* confdefs.h. */
6951 _ACEOF
6952 cat confdefs.h >>conftest.$ac_ext
6953 cat >>conftest.$ac_ext <<_ACEOF
6954 /* end confdefs.h. */
6955 #if defined(CRAY) && ! defined(CRAY2)
6956 webecray
6957 #else
6958 wenotbecray
6959 #endif
6961 _ACEOF
6962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6963 $EGREP "webecray" >/dev/null 2>&1; then
6964 ac_cv_os_cray=yes
6965 else
6966 ac_cv_os_cray=no
6968 rm -f conftest*
6971 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6972 echo "${ECHO_T}$ac_cv_os_cray" >&6
6973 if test $ac_cv_os_cray = yes; then
6974 for ac_func in _getb67 GETB67 getb67; do
6975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6976 echo "$as_me:$LINENO: checking for $ac_func" >&5
6977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6978 if eval "test \"\${$as_ac_var+set}\" = set"; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6980 else
6981 cat >conftest.$ac_ext <<_ACEOF
6982 /* confdefs.h. */
6983 _ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h. */
6987 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6989 #define $ac_func innocuous_$ac_func
6991 /* System header to define __stub macros and hopefully few prototypes,
6992 which can conflict with char $ac_func (); below.
6993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6994 <limits.h> exists even on freestanding compilers. */
6996 #ifdef __STDC__
6997 # include <limits.h>
6998 #else
6999 # include <assert.h>
7000 #endif
7002 #undef $ac_func
7004 /* Override any gcc2 internal prototype to avoid an error. */
7005 #ifdef __cplusplus
7006 extern "C"
7008 #endif
7009 /* We use char because int might match the return type of a gcc2
7010 builtin and then its argument prototype would still apply. */
7011 char $ac_func ();
7012 /* The GNU C library defines this for functions which it implements
7013 to always fail with ENOSYS. Some functions are actually named
7014 something starting with __ and the normal name is an alias. */
7015 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7016 choke me
7017 #else
7018 char (*f) () = $ac_func;
7019 #endif
7020 #ifdef __cplusplus
7022 #endif
7025 main ()
7027 return f != $ac_func;
7029 return 0;
7031 _ACEOF
7032 rm -f conftest.$ac_objext conftest$ac_exeext
7033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7034 (eval $ac_link) 2>conftest.er1
7035 ac_status=$?
7036 grep -v '^ *+' conftest.er1 >conftest.err
7037 rm -f conftest.er1
7038 cat conftest.err >&5
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); } &&
7041 { ac_try='test -z "$ac_c_werror_flag"
7042 || test ! -s conftest.err'
7043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7044 (eval $ac_try) 2>&5
7045 ac_status=$?
7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047 (exit $ac_status); }; } &&
7048 { ac_try='test -s conftest$ac_exeext'
7049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7050 (eval $ac_try) 2>&5
7051 ac_status=$?
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); }; }; then
7054 eval "$as_ac_var=yes"
7055 else
7056 echo "$as_me: failed program was:" >&5
7057 sed 's/^/| /' conftest.$ac_ext >&5
7059 eval "$as_ac_var=no"
7061 rm -f conftest.err conftest.$ac_objext \
7062 conftest$ac_exeext conftest.$ac_ext
7064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7065 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7066 if test `eval echo '${'$as_ac_var'}'` = yes; then
7068 cat >>confdefs.h <<_ACEOF
7069 #define CRAY_STACKSEG_END $ac_func
7070 _ACEOF
7072 break
7075 done
7078 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7079 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7080 if test "${ac_cv_c_stack_direction+set}" = set; then
7081 echo $ECHO_N "(cached) $ECHO_C" >&6
7082 else
7083 if test "$cross_compiling" = yes; then
7084 ac_cv_c_stack_direction=0
7085 else
7086 cat >conftest.$ac_ext <<_ACEOF
7087 /* confdefs.h. */
7088 _ACEOF
7089 cat confdefs.h >>conftest.$ac_ext
7090 cat >>conftest.$ac_ext <<_ACEOF
7091 /* end confdefs.h. */
7093 find_stack_direction ()
7095 static char *addr = 0;
7096 auto char dummy;
7097 if (addr == 0)
7099 addr = &dummy;
7100 return find_stack_direction ();
7102 else
7103 return (&dummy > addr) ? 1 : -1;
7107 main ()
7109 exit (find_stack_direction () < 0);
7111 _ACEOF
7112 rm -f conftest$ac_exeext
7113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7114 (eval $ac_link) 2>&5
7115 ac_status=$?
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119 (eval $ac_try) 2>&5
7120 ac_status=$?
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); }; }; then
7123 ac_cv_c_stack_direction=1
7124 else
7125 echo "$as_me: program exited with status $ac_status" >&5
7126 echo "$as_me: failed program was:" >&5
7127 sed 's/^/| /' conftest.$ac_ext >&5
7129 ( exit $ac_status )
7130 ac_cv_c_stack_direction=-1
7132 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7135 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7136 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7138 cat >>confdefs.h <<_ACEOF
7139 #define STACK_DIRECTION $ac_cv_c_stack_direction
7140 _ACEOF
7145 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7146 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7147 if test "${ac_cv_header_stdc+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7149 else
7150 cat >conftest.$ac_ext <<_ACEOF
7151 /* confdefs.h. */
7152 _ACEOF
7153 cat confdefs.h >>conftest.$ac_ext
7154 cat >>conftest.$ac_ext <<_ACEOF
7155 /* end confdefs.h. */
7156 #include <stdlib.h>
7157 #include <stdarg.h>
7158 #include <string.h>
7159 #include <float.h>
7162 main ()
7166 return 0;
7168 _ACEOF
7169 rm -f conftest.$ac_objext
7170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7171 (eval $ac_compile) 2>conftest.er1
7172 ac_status=$?
7173 grep -v '^ *+' conftest.er1 >conftest.err
7174 rm -f conftest.er1
7175 cat conftest.err >&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); } &&
7178 { ac_try='test -z "$ac_c_werror_flag"
7179 || test ! -s conftest.err'
7180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7181 (eval $ac_try) 2>&5
7182 ac_status=$?
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); }; } &&
7185 { ac_try='test -s conftest.$ac_objext'
7186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7187 (eval $ac_try) 2>&5
7188 ac_status=$?
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); }; }; then
7191 ac_cv_header_stdc=yes
7192 else
7193 echo "$as_me: failed program was:" >&5
7194 sed 's/^/| /' conftest.$ac_ext >&5
7196 ac_cv_header_stdc=no
7198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7200 if test $ac_cv_header_stdc = yes; then
7201 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7202 cat >conftest.$ac_ext <<_ACEOF
7203 /* confdefs.h. */
7204 _ACEOF
7205 cat confdefs.h >>conftest.$ac_ext
7206 cat >>conftest.$ac_ext <<_ACEOF
7207 /* end confdefs.h. */
7208 #include <string.h>
7210 _ACEOF
7211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7212 $EGREP "memchr" >/dev/null 2>&1; then
7214 else
7215 ac_cv_header_stdc=no
7217 rm -f conftest*
7221 if test $ac_cv_header_stdc = yes; then
7222 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7223 cat >conftest.$ac_ext <<_ACEOF
7224 /* confdefs.h. */
7225 _ACEOF
7226 cat confdefs.h >>conftest.$ac_ext
7227 cat >>conftest.$ac_ext <<_ACEOF
7228 /* end confdefs.h. */
7229 #include <stdlib.h>
7231 _ACEOF
7232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7233 $EGREP "free" >/dev/null 2>&1; then
7235 else
7236 ac_cv_header_stdc=no
7238 rm -f conftest*
7242 if test $ac_cv_header_stdc = yes; then
7243 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7244 if test "$cross_compiling" = yes; then
7246 else
7247 cat >conftest.$ac_ext <<_ACEOF
7248 /* confdefs.h. */
7249 _ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h. */
7253 #include <ctype.h>
7254 #if ((' ' & 0x0FF) == 0x020)
7255 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7256 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7257 #else
7258 # define ISLOWER(c) \
7259 (('a' <= (c) && (c) <= 'i') \
7260 || ('j' <= (c) && (c) <= 'r') \
7261 || ('s' <= (c) && (c) <= 'z'))
7262 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7263 #endif
7265 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7267 main ()
7269 int i;
7270 for (i = 0; i < 256; i++)
7271 if (XOR (islower (i), ISLOWER (i))
7272 || toupper (i) != TOUPPER (i))
7273 exit(2);
7274 exit (0);
7276 _ACEOF
7277 rm -f conftest$ac_exeext
7278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7279 (eval $ac_link) 2>&5
7280 ac_status=$?
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7284 (eval $ac_try) 2>&5
7285 ac_status=$?
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); }; }; then
7289 else
7290 echo "$as_me: program exited with status $ac_status" >&5
7291 echo "$as_me: failed program was:" >&5
7292 sed 's/^/| /' conftest.$ac_ext >&5
7294 ( exit $ac_status )
7295 ac_cv_header_stdc=no
7297 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7301 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7302 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7303 if test $ac_cv_header_stdc = yes; then
7305 cat >>confdefs.h <<\_ACEOF
7306 #define STDC_HEADERS 1
7307 _ACEOF
7312 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
7313 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7314 if test "${am_cv_langinfo_codeset+set}" = set; then
7315 echo $ECHO_N "(cached) $ECHO_C" >&6
7316 else
7317 cat >conftest.$ac_ext <<_ACEOF
7318 /* confdefs.h. */
7319 _ACEOF
7320 cat confdefs.h >>conftest.$ac_ext
7321 cat >>conftest.$ac_ext <<_ACEOF
7322 /* end confdefs.h. */
7323 #include <langinfo.h>
7325 main ()
7327 char* cs = nl_langinfo(CODESET);
7329 return 0;
7331 _ACEOF
7332 rm -f conftest.$ac_objext conftest$ac_exeext
7333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7334 (eval $ac_link) 2>conftest.er1
7335 ac_status=$?
7336 grep -v '^ *+' conftest.er1 >conftest.err
7337 rm -f conftest.er1
7338 cat conftest.err >&5
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); } &&
7341 { ac_try='test -z "$ac_c_werror_flag"
7342 || test ! -s conftest.err'
7343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7344 (eval $ac_try) 2>&5
7345 ac_status=$?
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); }; } &&
7348 { ac_try='test -s conftest$ac_exeext'
7349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350 (eval $ac_try) 2>&5
7351 ac_status=$?
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); }; }; then
7354 am_cv_langinfo_codeset=yes
7355 else
7356 echo "$as_me: failed program was:" >&5
7357 sed 's/^/| /' conftest.$ac_ext >&5
7359 am_cv_langinfo_codeset=no
7361 rm -f conftest.err conftest.$ac_objext \
7362 conftest$ac_exeext conftest.$ac_ext
7365 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
7366 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7367 if test $am_cv_langinfo_codeset = yes; then
7369 cat >>confdefs.h <<\_ACEOF
7370 #define HAVE_LANGINFO_CODESET 1
7371 _ACEOF
7375 # If we haven't got the data from the intl directory,
7376 # assume NLS is disabled.
7377 USE_NLS=no
7378 LIBINTL=
7379 LIBINTL_DEP=
7380 INCINTL=
7381 XGETTEXT=
7382 GMSGFMT=
7383 POSUB=
7385 if test -f ../intl/config.intl; then
7386 . ../intl/config.intl
7388 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7389 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7390 if test x"$USE_NLS" != xyes; then
7391 echo "$as_me:$LINENO: result: no" >&5
7392 echo "${ECHO_T}no" >&6
7393 else
7394 echo "$as_me:$LINENO: result: yes" >&5
7395 echo "${ECHO_T}yes" >&6
7397 cat >>confdefs.h <<\_ACEOF
7398 #define ENABLE_NLS 1
7399 _ACEOF
7402 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7403 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
7404 # Look for .po and .gmo files in the source directory.
7405 CATALOGS=
7406 XLINGUAS=
7407 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
7408 # If there aren't any .gmo files the shell will give us the
7409 # literal string "../path/to/srcdir/po/*.gmo" which has to be
7410 # weeded out.
7411 case "$cat" in *\**)
7412 continue;;
7413 esac
7414 # The quadruple backslash is collapsed to a double backslash
7415 # by the backticks, then collapsed again by the double quotes,
7416 # leaving us with one backslash in the sed expression (right
7417 # before the dot that mustn't act as a wildcard).
7418 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
7419 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
7420 # The user is allowed to set LINGUAS to a list of languages to
7421 # install catalogs for. If it's empty that means "all of them."
7422 if test "x$LINGUAS" = x; then
7423 CATALOGS="$CATALOGS $cat"
7424 XLINGUAS="$XLINGUAS $lang"
7425 else
7426 case "$LINGUAS" in *$lang*)
7427 CATALOGS="$CATALOGS $cat"
7428 XLINGUAS="$XLINGUAS $lang"
7430 esac
7432 done
7433 LINGUAS="$XLINGUAS"
7434 echo "$as_me:$LINENO: result: $LINGUAS" >&5
7435 echo "${ECHO_T}$LINGUAS" >&6
7438 DATADIRNAME=share
7440 INSTOBJEXT=.mo
7442 GENCAT=gencat
7444 CATOBJEXT=.gmo
7448 echo "$as_me:$LINENO: checking for uchar" >&5
7449 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
7450 if test "${gcc_cv_type_uchar+set}" = set; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7452 else
7453 cat >conftest.$ac_ext <<_ACEOF
7454 /* confdefs.h. */
7455 _ACEOF
7456 cat confdefs.h >>conftest.$ac_ext
7457 cat >>conftest.$ac_ext <<_ACEOF
7458 /* end confdefs.h. */
7460 #include <sys/types.h>
7463 main ()
7465 if ((uchar *)0) return 0;
7466 if (sizeof(uchar)) return 0;
7468 return 0;
7470 _ACEOF
7471 rm -f conftest.$ac_objext
7472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7473 (eval $ac_compile) 2>conftest.er1
7474 ac_status=$?
7475 grep -v '^ *+' conftest.er1 >conftest.err
7476 rm -f conftest.er1
7477 cat conftest.err >&5
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); } &&
7480 { ac_try='test -z "$ac_c_werror_flag"
7481 || test ! -s conftest.err'
7482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7483 (eval $ac_try) 2>&5
7484 ac_status=$?
7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); }; } &&
7487 { ac_try='test -s conftest.$ac_objext'
7488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7489 (eval $ac_try) 2>&5
7490 ac_status=$?
7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 (exit $ac_status); }; }; then
7493 ac_cv_type_uchar=yes
7494 else
7495 echo "$as_me: failed program was:" >&5
7496 sed 's/^/| /' conftest.$ac_ext >&5
7498 ac_cv_type_uchar=no
7500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7502 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
7503 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
7504 if test $ac_cv_type_uchar = yes; then
7506 cat >>confdefs.h <<\_ACEOF
7507 #define HAVE_UCHAR 1
7508 _ACEOF
7513 if test "X$prefix" = "XNONE"; then
7514 acl_final_prefix="$ac_default_prefix"
7515 else
7516 acl_final_prefix="$prefix"
7518 if test "X$exec_prefix" = "XNONE"; then
7519 acl_final_exec_prefix='${prefix}'
7520 else
7521 acl_final_exec_prefix="$exec_prefix"
7523 acl_save_prefix="$prefix"
7524 prefix="$acl_final_prefix"
7525 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7526 prefix="$acl_save_prefix"
7529 # Check whether --with-gnu-ld or --without-gnu-ld was given.
7530 if test "${with_gnu_ld+set}" = set; then
7531 withval="$with_gnu_ld"
7532 test "$withval" = no || with_gnu_ld=yes
7533 else
7534 with_gnu_ld=no
7536 # Prepare PATH_SEPARATOR.
7537 # The user is always right.
7538 if test "${PATH_SEPARATOR+set}" != set; then
7539 echo "#! /bin/sh" >conf$$.sh
7540 echo "exit 0" >>conf$$.sh
7541 chmod +x conf$$.sh
7542 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7543 PATH_SEPARATOR=';'
7544 else
7545 PATH_SEPARATOR=:
7547 rm -f conf$$.sh
7549 ac_prog=ld
7550 if test "$GCC" = yes; then
7551 # Check if gcc -print-prog-name=ld gives a path.
7552 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7553 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7554 case $host in
7555 *-*-mingw*)
7556 # gcc leaves a trailing carriage return which upsets mingw
7557 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7559 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7560 esac
7561 case $ac_prog in
7562 # Accept absolute paths.
7563 [\\/]* | [A-Za-z]:[\\/]*)
7564 re_direlt='/[^/][^/]*/\.\./'
7565 # Canonicalize the path of ld
7566 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7567 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7568 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7569 done
7570 test -z "$LD" && LD="$ac_prog"
7573 # If it fails, then pretend we aren't using GCC.
7574 ac_prog=ld
7577 # If it is relative, then search for the first ld in PATH.
7578 with_gnu_ld=unknown
7580 esac
7581 elif test "$with_gnu_ld" = yes; then
7582 echo "$as_me:$LINENO: checking for GNU ld" >&5
7583 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7584 else
7585 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7586 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7588 if test "${acl_cv_path_LD+set}" = set; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
7590 else
7591 if test -z "$LD"; then
7592 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7593 for ac_dir in $PATH; do
7594 test -z "$ac_dir" && ac_dir=.
7595 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7596 acl_cv_path_LD="$ac_dir/$ac_prog"
7597 # Check to see if the program is GNU ld. I'd rather use --version,
7598 # but apparently some GNU ld's only accept -v.
7599 # Break only if it was the GNU/non-GNU ld that we prefer.
7600 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7601 test "$with_gnu_ld" != no && break
7602 else
7603 test "$with_gnu_ld" != yes && break
7606 done
7607 IFS="$ac_save_ifs"
7608 else
7609 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7613 LD="$acl_cv_path_LD"
7614 if test -n "$LD"; then
7615 echo "$as_me:$LINENO: result: $LD" >&5
7616 echo "${ECHO_T}$LD" >&6
7617 else
7618 echo "$as_me:$LINENO: result: no" >&5
7619 echo "${ECHO_T}no" >&6
7621 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7622 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7623 { (exit 1); exit 1; }; }
7624 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7625 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7626 if test "${acl_cv_prog_gnu_ld+set}" = set; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
7628 else
7629 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7630 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7631 acl_cv_prog_gnu_ld=yes
7632 else
7633 acl_cv_prog_gnu_ld=no
7636 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7637 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7638 with_gnu_ld=$acl_cv_prog_gnu_ld
7642 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7643 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7644 if test "${acl_cv_rpath+set}" = set; then
7645 echo $ECHO_N "(cached) $ECHO_C" >&6
7646 else
7648 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7649 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7650 . ./conftest.sh
7651 rm -f ./conftest.sh
7652 acl_cv_rpath=done
7655 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7656 echo "${ECHO_T}$acl_cv_rpath" >&6
7657 wl="$acl_cv_wl"
7658 libext="$acl_cv_libext"
7659 shlibext="$acl_cv_shlibext"
7660 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7661 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7662 hardcode_direct="$acl_cv_hardcode_direct"
7663 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7664 # Check whether --enable-rpath or --disable-rpath was given.
7665 if test "${enable_rpath+set}" = set; then
7666 enableval="$enable_rpath"
7668 else
7669 enable_rpath=yes
7678 use_additional=yes
7680 acl_save_prefix="$prefix"
7681 prefix="$acl_final_prefix"
7682 acl_save_exec_prefix="$exec_prefix"
7683 exec_prefix="$acl_final_exec_prefix"
7685 eval additional_includedir=\"$includedir\"
7686 eval additional_libdir=\"$libdir\"
7688 exec_prefix="$acl_save_exec_prefix"
7689 prefix="$acl_save_prefix"
7692 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7693 if test "${with_libiconv_prefix+set}" = set; then
7694 withval="$with_libiconv_prefix"
7696 if test "X$withval" = "Xno"; then
7697 use_additional=no
7698 else
7699 if test "X$withval" = "X"; then
7701 acl_save_prefix="$prefix"
7702 prefix="$acl_final_prefix"
7703 acl_save_exec_prefix="$exec_prefix"
7704 exec_prefix="$acl_final_exec_prefix"
7706 eval additional_includedir=\"$includedir\"
7707 eval additional_libdir=\"$libdir\"
7709 exec_prefix="$acl_save_exec_prefix"
7710 prefix="$acl_save_prefix"
7712 else
7713 additional_includedir="$withval/include"
7714 additional_libdir="$withval/lib"
7719 LIBICONV=
7720 LTLIBICONV=
7721 INCICONV=
7722 rpathdirs=
7723 ltrpathdirs=
7724 names_already_handled=
7725 names_next_round='iconv '
7726 while test -n "$names_next_round"; do
7727 names_this_round="$names_next_round"
7728 names_next_round=
7729 for name in $names_this_round; do
7730 already_handled=
7731 for n in $names_already_handled; do
7732 if test "$n" = "$name"; then
7733 already_handled=yes
7734 break
7736 done
7737 if test -z "$already_handled"; then
7738 names_already_handled="$names_already_handled $name"
7739 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7740 eval value=\"\$HAVE_LIB$uppername\"
7741 if test -n "$value"; then
7742 if test "$value" = yes; then
7743 eval value=\"\$LIB$uppername\"
7744 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7745 eval value=\"\$LTLIB$uppername\"
7746 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7747 else
7750 else
7751 found_dir=
7752 found_la=
7753 found_so=
7754 found_a=
7755 if test $use_additional = yes; then
7756 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7757 found_dir="$additional_libdir"
7758 found_so="$additional_libdir/lib$name.$shlibext"
7759 if test -f "$additional_libdir/lib$name.la"; then
7760 found_la="$additional_libdir/lib$name.la"
7762 else
7763 if test -f "$additional_libdir/lib$name.$libext"; then
7764 found_dir="$additional_libdir"
7765 found_a="$additional_libdir/lib$name.$libext"
7766 if test -f "$additional_libdir/lib$name.la"; then
7767 found_la="$additional_libdir/lib$name.la"
7772 if test "X$found_dir" = "X"; then
7773 for x in $LDFLAGS $LTLIBICONV; do
7775 acl_save_prefix="$prefix"
7776 prefix="$acl_final_prefix"
7777 acl_save_exec_prefix="$exec_prefix"
7778 exec_prefix="$acl_final_exec_prefix"
7779 eval x=\"$x\"
7780 exec_prefix="$acl_save_exec_prefix"
7781 prefix="$acl_save_prefix"
7783 case "$x" in
7784 -L*)
7785 dir=`echo "X$x" | sed -e 's/^X-L//'`
7786 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7787 found_dir="$dir"
7788 found_so="$dir/lib$name.$shlibext"
7789 if test -f "$dir/lib$name.la"; then
7790 found_la="$dir/lib$name.la"
7792 else
7793 if test -f "$dir/lib$name.$libext"; then
7794 found_dir="$dir"
7795 found_a="$dir/lib$name.$libext"
7796 if test -f "$dir/lib$name.la"; then
7797 found_la="$dir/lib$name.la"
7802 esac
7803 if test "X$found_dir" != "X"; then
7804 break
7806 done
7808 if test "X$found_dir" != "X"; then
7809 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7810 if test "X$found_so" != "X"; then
7811 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7812 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7813 else
7814 haveit=
7815 for x in $ltrpathdirs; do
7816 if test "X$x" = "X$found_dir"; then
7817 haveit=yes
7818 break
7820 done
7821 if test -z "$haveit"; then
7822 ltrpathdirs="$ltrpathdirs $found_dir"
7824 if test "$hardcode_direct" = yes; then
7825 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7826 else
7827 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7828 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7829 haveit=
7830 for x in $rpathdirs; do
7831 if test "X$x" = "X$found_dir"; then
7832 haveit=yes
7833 break
7835 done
7836 if test -z "$haveit"; then
7837 rpathdirs="$rpathdirs $found_dir"
7839 else
7840 haveit=
7841 for x in $LDFLAGS $LIBICONV; do
7843 acl_save_prefix="$prefix"
7844 prefix="$acl_final_prefix"
7845 acl_save_exec_prefix="$exec_prefix"
7846 exec_prefix="$acl_final_exec_prefix"
7847 eval x=\"$x\"
7848 exec_prefix="$acl_save_exec_prefix"
7849 prefix="$acl_save_prefix"
7851 if test "X$x" = "X-L$found_dir"; then
7852 haveit=yes
7853 break
7855 done
7856 if test -z "$haveit"; then
7857 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7859 if test "$hardcode_minus_L" != no; then
7860 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7861 else
7862 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7867 else
7868 if test "X$found_a" != "X"; then
7869 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7870 else
7871 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7874 additional_includedir=
7875 case "$found_dir" in
7876 */lib | */lib/)
7877 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7878 additional_includedir="$basedir/include"
7880 esac
7881 if test "X$additional_includedir" != "X"; then
7882 if test "X$additional_includedir" != "X/usr/include"; then
7883 haveit=
7884 if test "X$additional_includedir" = "X/usr/local/include"; then
7885 if test -n "$GCC"; then
7886 case $host_os in
7887 linux*) haveit=yes;;
7888 esac
7891 if test -z "$haveit"; then
7892 for x in $CPPFLAGS $INCICONV; do
7894 acl_save_prefix="$prefix"
7895 prefix="$acl_final_prefix"
7896 acl_save_exec_prefix="$exec_prefix"
7897 exec_prefix="$acl_final_exec_prefix"
7898 eval x=\"$x\"
7899 exec_prefix="$acl_save_exec_prefix"
7900 prefix="$acl_save_prefix"
7902 if test "X$x" = "X-I$additional_includedir"; then
7903 haveit=yes
7904 break
7906 done
7907 if test -z "$haveit"; then
7908 if test -d "$additional_includedir"; then
7909 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7915 if test -n "$found_la"; then
7916 save_libdir="$libdir"
7917 case "$found_la" in
7918 */* | *\\*) . "$found_la" ;;
7919 *) . "./$found_la" ;;
7920 esac
7921 libdir="$save_libdir"
7922 for dep in $dependency_libs; do
7923 case "$dep" in
7924 -L*)
7925 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7926 if test "X$additional_libdir" != "X/usr/lib"; then
7927 haveit=
7928 if test "X$additional_libdir" = "X/usr/local/lib"; then
7929 if test -n "$GCC"; then
7930 case $host_os in
7931 linux*) haveit=yes;;
7932 esac
7935 if test -z "$haveit"; then
7936 haveit=
7937 for x in $LDFLAGS $LIBICONV; do
7939 acl_save_prefix="$prefix"
7940 prefix="$acl_final_prefix"
7941 acl_save_exec_prefix="$exec_prefix"
7942 exec_prefix="$acl_final_exec_prefix"
7943 eval x=\"$x\"
7944 exec_prefix="$acl_save_exec_prefix"
7945 prefix="$acl_save_prefix"
7947 if test "X$x" = "X-L$additional_libdir"; then
7948 haveit=yes
7949 break
7951 done
7952 if test -z "$haveit"; then
7953 if test -d "$additional_libdir"; then
7954 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7957 haveit=
7958 for x in $LDFLAGS $LTLIBICONV; do
7960 acl_save_prefix="$prefix"
7961 prefix="$acl_final_prefix"
7962 acl_save_exec_prefix="$exec_prefix"
7963 exec_prefix="$acl_final_exec_prefix"
7964 eval x=\"$x\"
7965 exec_prefix="$acl_save_exec_prefix"
7966 prefix="$acl_save_prefix"
7968 if test "X$x" = "X-L$additional_libdir"; then
7969 haveit=yes
7970 break
7972 done
7973 if test -z "$haveit"; then
7974 if test -d "$additional_libdir"; then
7975 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7981 -R*)
7982 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7983 if test "$enable_rpath" != no; then
7984 haveit=
7985 for x in $rpathdirs; do
7986 if test "X$x" = "X$dir"; then
7987 haveit=yes
7988 break
7990 done
7991 if test -z "$haveit"; then
7992 rpathdirs="$rpathdirs $dir"
7994 haveit=
7995 for x in $ltrpathdirs; do
7996 if test "X$x" = "X$dir"; then
7997 haveit=yes
7998 break
8000 done
8001 if test -z "$haveit"; then
8002 ltrpathdirs="$ltrpathdirs $dir"
8006 -l*)
8007 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8009 *.la)
8010 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8013 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8014 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8016 esac
8017 done
8019 else
8020 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8021 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8025 done
8026 done
8027 if test "X$rpathdirs" != "X"; then
8028 if test -n "$hardcode_libdir_separator"; then
8029 alldirs=
8030 for found_dir in $rpathdirs; do
8031 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8032 done
8033 acl_save_libdir="$libdir"
8034 libdir="$alldirs"
8035 eval flag=\"$hardcode_libdir_flag_spec\"
8036 libdir="$acl_save_libdir"
8037 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8038 else
8039 for found_dir in $rpathdirs; do
8040 acl_save_libdir="$libdir"
8041 libdir="$found_dir"
8042 eval flag=\"$hardcode_libdir_flag_spec\"
8043 libdir="$acl_save_libdir"
8044 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8045 done
8048 if test "X$ltrpathdirs" != "X"; then
8049 for found_dir in $ltrpathdirs; do
8050 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8051 done
8060 am_save_CPPFLAGS="$CPPFLAGS"
8062 for element in $INCICONV; do
8063 haveit=
8064 for x in $CPPFLAGS; do
8066 acl_save_prefix="$prefix"
8067 prefix="$acl_final_prefix"
8068 acl_save_exec_prefix="$exec_prefix"
8069 exec_prefix="$acl_final_exec_prefix"
8070 eval x=\"$x\"
8071 exec_prefix="$acl_save_exec_prefix"
8072 prefix="$acl_save_prefix"
8074 if test "X$x" = "X$element"; then
8075 haveit=yes
8076 break
8078 done
8079 if test -z "$haveit"; then
8080 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8082 done
8085 echo "$as_me:$LINENO: checking for iconv" >&5
8086 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8087 if test "${am_cv_func_iconv+set}" = set; then
8088 echo $ECHO_N "(cached) $ECHO_C" >&6
8089 else
8091 am_cv_func_iconv="no, consider installing GNU libiconv"
8092 am_cv_lib_iconv=no
8093 cat >conftest.$ac_ext <<_ACEOF
8094 /* confdefs.h. */
8095 _ACEOF
8096 cat confdefs.h >>conftest.$ac_ext
8097 cat >>conftest.$ac_ext <<_ACEOF
8098 /* end confdefs.h. */
8099 #include <stdlib.h>
8100 #include <iconv.h>
8102 main ()
8104 iconv_t cd = iconv_open("","");
8105 iconv(cd,NULL,NULL,NULL,NULL);
8106 iconv_close(cd);
8108 return 0;
8110 _ACEOF
8111 rm -f conftest.$ac_objext conftest$ac_exeext
8112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8113 (eval $ac_link) 2>conftest.er1
8114 ac_status=$?
8115 grep -v '^ *+' conftest.er1 >conftest.err
8116 rm -f conftest.er1
8117 cat conftest.err >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } &&
8120 { ac_try='test -z "$ac_c_werror_flag"
8121 || test ! -s conftest.err'
8122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8123 (eval $ac_try) 2>&5
8124 ac_status=$?
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; } &&
8127 { ac_try='test -s conftest$ac_exeext'
8128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8129 (eval $ac_try) 2>&5
8130 ac_status=$?
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); }; }; then
8133 am_cv_func_iconv=yes
8134 else
8135 echo "$as_me: failed program was:" >&5
8136 sed 's/^/| /' conftest.$ac_ext >&5
8139 rm -f conftest.err conftest.$ac_objext \
8140 conftest$ac_exeext conftest.$ac_ext
8141 if test "$am_cv_func_iconv" != yes; then
8142 am_save_LIBS="$LIBS"
8143 LIBS="$LIBS $LIBICONV"
8144 cat >conftest.$ac_ext <<_ACEOF
8145 /* confdefs.h. */
8146 _ACEOF
8147 cat confdefs.h >>conftest.$ac_ext
8148 cat >>conftest.$ac_ext <<_ACEOF
8149 /* end confdefs.h. */
8150 #include <stdlib.h>
8151 #include <iconv.h>
8153 main ()
8155 iconv_t cd = iconv_open("","");
8156 iconv(cd,NULL,NULL,NULL,NULL);
8157 iconv_close(cd);
8159 return 0;
8161 _ACEOF
8162 rm -f conftest.$ac_objext conftest$ac_exeext
8163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8164 (eval $ac_link) 2>conftest.er1
8165 ac_status=$?
8166 grep -v '^ *+' conftest.er1 >conftest.err
8167 rm -f conftest.er1
8168 cat conftest.err >&5
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); } &&
8171 { ac_try='test -z "$ac_c_werror_flag"
8172 || test ! -s conftest.err'
8173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8174 (eval $ac_try) 2>&5
8175 ac_status=$?
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); }; } &&
8178 { ac_try='test -s conftest$ac_exeext'
8179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8180 (eval $ac_try) 2>&5
8181 ac_status=$?
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); }; }; then
8184 am_cv_lib_iconv=yes
8185 am_cv_func_iconv=yes
8186 else
8187 echo "$as_me: failed program was:" >&5
8188 sed 's/^/| /' conftest.$ac_ext >&5
8191 rm -f conftest.err conftest.$ac_objext \
8192 conftest$ac_exeext conftest.$ac_ext
8193 LIBS="$am_save_LIBS"
8197 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8198 echo "${ECHO_T}$am_cv_func_iconv" >&6
8199 if test "$am_cv_func_iconv" = yes; then
8201 cat >>confdefs.h <<\_ACEOF
8202 #define HAVE_ICONV 1
8203 _ACEOF
8206 if test "$am_cv_lib_iconv" = yes; then
8207 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8208 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
8209 echo "$as_me:$LINENO: result: $LIBICONV" >&5
8210 echo "${ECHO_T}$LIBICONV" >&6
8211 else
8212 CPPFLAGS="$am_save_CPPFLAGS"
8213 LIBICONV=
8214 LTLIBICONV=
8219 if test "$am_cv_func_iconv" = yes; then
8220 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8221 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8222 if test "${am_cv_proto_iconv+set}" = set; then
8223 echo $ECHO_N "(cached) $ECHO_C" >&6
8224 else
8226 cat >conftest.$ac_ext <<_ACEOF
8227 /* confdefs.h. */
8228 _ACEOF
8229 cat confdefs.h >>conftest.$ac_ext
8230 cat >>conftest.$ac_ext <<_ACEOF
8231 /* end confdefs.h. */
8233 #include <stdlib.h>
8234 #include <iconv.h>
8235 extern
8236 #ifdef __cplusplus
8238 #endif
8239 #if defined(__STDC__) || defined(__cplusplus)
8240 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8241 #else
8242 size_t iconv();
8243 #endif
8246 main ()
8250 return 0;
8252 _ACEOF
8253 rm -f conftest.$ac_objext
8254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8255 (eval $ac_compile) 2>conftest.er1
8256 ac_status=$?
8257 grep -v '^ *+' conftest.er1 >conftest.err
8258 rm -f conftest.er1
8259 cat conftest.err >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); } &&
8262 { ac_try='test -z "$ac_c_werror_flag"
8263 || test ! -s conftest.err'
8264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8265 (eval $ac_try) 2>&5
8266 ac_status=$?
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); }; } &&
8269 { ac_try='test -s conftest.$ac_objext'
8270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8271 (eval $ac_try) 2>&5
8272 ac_status=$?
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); }; }; then
8275 am_cv_proto_iconv_arg1=""
8276 else
8277 echo "$as_me: failed program was:" >&5
8278 sed 's/^/| /' conftest.$ac_ext >&5
8280 am_cv_proto_iconv_arg1="const"
8282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8283 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);"
8286 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8287 echo "$as_me:$LINENO: result: ${ac_t:-
8288 }$am_cv_proto_iconv" >&5
8289 echo "${ECHO_T}${ac_t:-
8290 }$am_cv_proto_iconv" >&6
8292 cat >>confdefs.h <<_ACEOF
8293 #define ICONV_CONST $am_cv_proto_iconv_arg1
8294 _ACEOF
8299 # More defines and substitutions.
8300 PACKAGE="$PACKAGE_TARNAME"
8302 cat >>confdefs.h <<_ACEOF
8303 #define PACKAGE "$PACKAGE"
8304 _ACEOF
8308 if test "x$enable_nls" != xno; then
8309 USED_CATALOGS='$(CATALOGS)'
8310 else
8311 USED_CATALOGS=
8315 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8316 if test "${enable_maintainer_mode+set}" = set; then
8317 enableval="$enable_maintainer_mode"
8319 else
8320 enable_maintainer_mode=no
8323 if test "x$enable_maintainer_mode" = xno; then
8324 MAINT='#'
8325 else
8326 MAINT=
8330 # Check whether --enable-checking or --disable-checking was given.
8331 if test "${enable_checking+set}" = set; then
8332 enableval="$enable_checking"
8334 else
8335 enable_checking=no
8338 if test $enable_checking != no ; then
8340 cat >>confdefs.h <<\_ACEOF
8341 #define ENABLE_CHECKING 1
8342 _ACEOF
8347 case $target in
8348 alpha*-*-* | \
8349 arm*-*-*eabi* | \
8350 arm*-*-symbianelf* | \
8351 x86_64-*-* | \
8352 ia64-*-* | \
8353 hppa*64*-*-* | \
8354 i[34567]86-*-darwin* | \
8355 i[34567]86-*-solaris2.1[0-9]* | \
8356 mips*-*-* | \
8357 mmix-*-* | \
8358 powerpc*-*-* | \
8359 rs6000*-*-* | \
8360 s390*-*-* | \
8361 sparc*-*-* | \
8362 spu-*-* | \
8363 sh[123456789lbe]*-*-* | sh-*-*)
8364 need_64bit_hwint=yes ;;
8365 i[34567]86-*-linux*)
8366 if test "x$enable_targets" = xall; then
8367 need_64bit_hwint=yes
8368 else
8369 need_64bit_hwint=no
8373 need_64bit_hwint=no ;;
8374 esac
8376 case $need_64bit_hwint:$ac_cv_sizeof_long in
8377 *:8 | no:*) host_wide_int=long ;;
8378 *) host_wide_int='long long' ;;
8379 esac
8383 cat >>confdefs.h <<_ACEOF
8384 #define HOST_WIDE_INT $host_wide_int
8385 _ACEOF
8388 # Output.
8390 ac_config_headers="$ac_config_headers config.h:config.in"
8392 ac_config_files="$ac_config_files Makefile"
8394 cat >confcache <<\_ACEOF
8395 # This file is a shell script that caches the results of configure
8396 # tests run on this system so they can be shared between configure
8397 # scripts and configure runs, see configure's option --config-cache.
8398 # It is not useful on other systems. If it contains results you don't
8399 # want to keep, you may remove or edit it.
8401 # config.status only pays attention to the cache file if you give it
8402 # the --recheck option to rerun configure.
8404 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8405 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8406 # following values.
8408 _ACEOF
8410 # The following way of writing the cache mishandles newlines in values,
8411 # but we know of no workaround that is simple, portable, and efficient.
8412 # So, don't put newlines in cache variables' values.
8413 # Ultrix sh set writes to stderr and can't be redirected directly,
8414 # and sets the high bit in the cache file unless we assign to the vars.
8416 (set) 2>&1 |
8417 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8418 *ac_space=\ *)
8419 # `set' does not quote correctly, so add quotes (double-quote
8420 # substitution turns \\\\ into \\, and sed turns \\ into \).
8421 sed -n \
8422 "s/'/'\\\\''/g;
8423 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8426 # `set' quotes correctly as required by POSIX, so do not add quotes.
8427 sed -n \
8428 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8430 esac;
8432 sed '
8433 t clear
8434 : clear
8435 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8436 t end
8437 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8438 : end' >>confcache
8439 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8440 if test -w $cache_file; then
8441 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8442 cat confcache >$cache_file
8443 else
8444 echo "not updating unwritable cache $cache_file"
8447 rm -f confcache
8449 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8450 # Let make expand exec_prefix.
8451 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8453 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8454 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8455 # trailing colons and then remove the whole line if VPATH becomes empty
8456 # (actually we leave an empty line to preserve line numbers).
8457 if test "x$srcdir" = x.; then
8458 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8459 s/:*\$(srcdir):*/:/;
8460 s/:*\${srcdir}:*/:/;
8461 s/:*@srcdir@:*/:/;
8462 s/^\([^=]*=[ ]*\):*/\1/;
8463 s/:*$//;
8464 s/^[^=]*=[ ]*$//;
8468 DEFS=-DHAVE_CONFIG_H
8470 ac_libobjs=
8471 ac_ltlibobjs=
8472 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8473 # 1. Remove the extension, and $U if already installed.
8474 ac_i=`echo "$ac_i" |
8475 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8476 # 2. Add them.
8477 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8478 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8479 done
8480 LIBOBJS=$ac_libobjs
8482 LTLIBOBJS=$ac_ltlibobjs
8486 : ${CONFIG_STATUS=./config.status}
8487 ac_clean_files_save=$ac_clean_files
8488 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8489 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8490 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8491 cat >$CONFIG_STATUS <<_ACEOF
8492 #! $SHELL
8493 # Generated by $as_me.
8494 # Run this file to recreate the current configuration.
8495 # Compiler output produced by configure, useful for debugging
8496 # configure, is in config.log if it exists.
8498 debug=false
8499 ac_cs_recheck=false
8500 ac_cs_silent=false
8501 SHELL=\${CONFIG_SHELL-$SHELL}
8502 _ACEOF
8504 cat >>$CONFIG_STATUS <<\_ACEOF
8505 ## --------------------- ##
8506 ## M4sh Initialization. ##
8507 ## --------------------- ##
8509 # Be Bourne compatible
8510 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8511 emulate sh
8512 NULLCMD=:
8513 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8514 # is contrary to our usage. Disable this feature.
8515 alias -g '${1+"$@"}'='"$@"'
8516 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8517 set -o posix
8519 DUALCASE=1; export DUALCASE # for MKS sh
8521 # Support unset when possible.
8522 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8523 as_unset=unset
8524 else
8525 as_unset=false
8529 # Work around bugs in pre-3.0 UWIN ksh.
8530 $as_unset ENV MAIL MAILPATH
8531 PS1='$ '
8532 PS2='> '
8533 PS4='+ '
8535 # NLS nuisances.
8536 for as_var in \
8537 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8538 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8539 LC_TELEPHONE LC_TIME
8541 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8542 eval $as_var=C; export $as_var
8543 else
8544 $as_unset $as_var
8546 done
8548 # Required to use basename.
8549 if expr a : '\(a\)' >/dev/null 2>&1; then
8550 as_expr=expr
8551 else
8552 as_expr=false
8555 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8556 as_basename=basename
8557 else
8558 as_basename=false
8562 # Name of the executable.
8563 as_me=`$as_basename "$0" ||
8564 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8565 X"$0" : 'X\(//\)$' \| \
8566 X"$0" : 'X\(/\)$' \| \
8567 . : '\(.\)' 2>/dev/null ||
8568 echo X/"$0" |
8569 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8570 /^X\/\(\/\/\)$/{ s//\1/; q; }
8571 /^X\/\(\/\).*/{ s//\1/; q; }
8572 s/.*/./; q'`
8575 # PATH needs CR, and LINENO needs CR and PATH.
8576 # Avoid depending upon Character Ranges.
8577 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8578 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8579 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8580 as_cr_digits='0123456789'
8581 as_cr_alnum=$as_cr_Letters$as_cr_digits
8583 # The user is always right.
8584 if test "${PATH_SEPARATOR+set}" != set; then
8585 echo "#! /bin/sh" >conf$$.sh
8586 echo "exit 0" >>conf$$.sh
8587 chmod +x conf$$.sh
8588 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8589 PATH_SEPARATOR=';'
8590 else
8591 PATH_SEPARATOR=:
8593 rm -f conf$$.sh
8597 as_lineno_1=$LINENO
8598 as_lineno_2=$LINENO
8599 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8600 test "x$as_lineno_1" != "x$as_lineno_2" &&
8601 test "x$as_lineno_3" = "x$as_lineno_2" || {
8602 # Find who we are. Look in the path if we contain no path at all
8603 # relative or not.
8604 case $0 in
8605 *[\\/]* ) as_myself=$0 ;;
8606 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8607 for as_dir in $PATH
8609 IFS=$as_save_IFS
8610 test -z "$as_dir" && as_dir=.
8611 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8612 done
8615 esac
8616 # We did not find ourselves, most probably we were run as `sh COMMAND'
8617 # in which case we are not to be found in the path.
8618 if test "x$as_myself" = x; then
8619 as_myself=$0
8621 if test ! -f "$as_myself"; then
8622 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8623 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8624 { (exit 1); exit 1; }; }
8626 case $CONFIG_SHELL in
8628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8629 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8631 IFS=$as_save_IFS
8632 test -z "$as_dir" && as_dir=.
8633 for as_base in sh bash ksh sh5; do
8634 case $as_dir in
8636 if ("$as_dir/$as_base" -c '
8637 as_lineno_1=$LINENO
8638 as_lineno_2=$LINENO
8639 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8640 test "x$as_lineno_1" != "x$as_lineno_2" &&
8641 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8642 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8643 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8644 CONFIG_SHELL=$as_dir/$as_base
8645 export CONFIG_SHELL
8646 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8647 fi;;
8648 esac
8649 done
8650 done
8652 esac
8654 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8655 # uniformly replaced by the line number. The first 'sed' inserts a
8656 # line-number line before each line; the second 'sed' does the real
8657 # work. The second script uses 'N' to pair each line-number line
8658 # with the numbered line, and appends trailing '-' during
8659 # substitution so that $LINENO is not a special case at line end.
8660 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8661 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8662 sed '=' <$as_myself |
8663 sed '
8665 s,$,-,
8666 : loop
8667 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8668 t loop
8669 s,-$,,
8670 s,^['$as_cr_digits']*\n,,
8671 ' >$as_me.lineno &&
8672 chmod +x $as_me.lineno ||
8673 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8674 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8675 { (exit 1); exit 1; }; }
8677 # Don't try to exec as it changes $[0], causing all sort of problems
8678 # (the dirname of $[0] is not the place where we might find the
8679 # original and so on. Autoconf is especially sensible to this).
8680 . ./$as_me.lineno
8681 # Exit status is that of the last command.
8682 exit
8686 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8687 *c*,-n*) ECHO_N= ECHO_C='
8688 ' ECHO_T=' ' ;;
8689 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8690 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8691 esac
8693 if expr a : '\(a\)' >/dev/null 2>&1; then
8694 as_expr=expr
8695 else
8696 as_expr=false
8699 rm -f conf$$ conf$$.exe conf$$.file
8700 echo >conf$$.file
8701 if ln -s conf$$.file conf$$ 2>/dev/null; then
8702 # We could just check for DJGPP; but this test a) works b) is more generic
8703 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8704 if test -f conf$$.exe; then
8705 # Don't use ln at all; we don't have any links
8706 as_ln_s='cp -p'
8707 else
8708 as_ln_s='ln -s'
8710 elif ln conf$$.file conf$$ 2>/dev/null; then
8711 as_ln_s=ln
8712 else
8713 as_ln_s='cp -p'
8715 rm -f conf$$ conf$$.exe conf$$.file
8717 if mkdir -p . 2>/dev/null; then
8718 as_mkdir_p=:
8719 else
8720 test -d ./-p && rmdir ./-p
8721 as_mkdir_p=false
8724 as_executable_p="test -f"
8726 # Sed expression to map a string onto a valid CPP name.
8727 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8729 # Sed expression to map a string onto a valid variable name.
8730 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8733 # IFS
8734 # We need space, tab and new line, in precisely that order.
8735 as_nl='
8737 IFS=" $as_nl"
8739 # CDPATH.
8740 $as_unset CDPATH
8742 exec 6>&1
8744 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8745 # report actual input values of CONFIG_FILES etc. instead of their
8746 # values after options handling. Logging --version etc. is OK.
8747 exec 5>>config.log
8749 echo
8750 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8751 ## Running $as_me. ##
8752 _ASBOX
8753 } >&5
8754 cat >&5 <<_CSEOF
8756 This file was extended by cpplib $as_me , which was
8757 generated by GNU Autoconf 2.59. Invocation command line was
8759 CONFIG_FILES = $CONFIG_FILES
8760 CONFIG_HEADERS = $CONFIG_HEADERS
8761 CONFIG_LINKS = $CONFIG_LINKS
8762 CONFIG_COMMANDS = $CONFIG_COMMANDS
8763 $ $0 $@
8765 _CSEOF
8766 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8767 echo >&5
8768 _ACEOF
8770 # Files that config.status was made for.
8771 if test -n "$ac_config_files"; then
8772 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8775 if test -n "$ac_config_headers"; then
8776 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8779 if test -n "$ac_config_links"; then
8780 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8783 if test -n "$ac_config_commands"; then
8784 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8787 cat >>$CONFIG_STATUS <<\_ACEOF
8789 ac_cs_usage="\
8790 \`$as_me' instantiates files from templates according to the
8791 current configuration.
8793 Usage: $0 [OPTIONS] [FILE]...
8795 -h, --help print this help, then exit
8796 -V, --version print version number, then exit
8797 -q, --quiet do not print progress messages
8798 -d, --debug don't remove temporary files
8799 --recheck update $as_me by reconfiguring in the same conditions
8800 --file=FILE[:TEMPLATE]
8801 instantiate the configuration file FILE
8802 --header=FILE[:TEMPLATE]
8803 instantiate the configuration header FILE
8805 Configuration files:
8806 $config_files
8808 Configuration headers:
8809 $config_headers
8811 Configuration commands:
8812 $config_commands
8814 Report bugs to <bug-autoconf@gnu.org>."
8815 _ACEOF
8817 cat >>$CONFIG_STATUS <<_ACEOF
8818 ac_cs_version="\\
8819 cpplib config.status
8820 configured by $0, generated by GNU Autoconf 2.59,
8821 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8823 Copyright (C) 2003 Free Software Foundation, Inc.
8824 This config.status script is free software; the Free Software Foundation
8825 gives unlimited permission to copy, distribute and modify it."
8826 srcdir=$srcdir
8827 INSTALL="$INSTALL"
8828 _ACEOF
8830 cat >>$CONFIG_STATUS <<\_ACEOF
8831 # If no file are specified by the user, then we need to provide default
8832 # value. By we need to know if files were specified by the user.
8833 ac_need_defaults=:
8834 while test $# != 0
8836 case $1 in
8837 --*=*)
8838 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8839 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8840 ac_shift=:
8843 ac_option=$1
8844 ac_optarg=$2
8845 ac_shift=shift
8847 *) # This is not an option, so the user has probably given explicit
8848 # arguments.
8849 ac_option=$1
8850 ac_need_defaults=false;;
8851 esac
8853 case $ac_option in
8854 # Handling of the options.
8855 _ACEOF
8856 cat >>$CONFIG_STATUS <<\_ACEOF
8857 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8858 ac_cs_recheck=: ;;
8859 --version | --vers* | -V )
8860 echo "$ac_cs_version"; exit 0 ;;
8861 --he | --h)
8862 # Conflict between --help and --header
8863 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8864 Try \`$0 --help' for more information." >&5
8865 echo "$as_me: error: ambiguous option: $1
8866 Try \`$0 --help' for more information." >&2;}
8867 { (exit 1); exit 1; }; };;
8868 --help | --hel | -h )
8869 echo "$ac_cs_usage"; exit 0 ;;
8870 --debug | --d* | -d )
8871 debug=: ;;
8872 --file | --fil | --fi | --f )
8873 $ac_shift
8874 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8875 ac_need_defaults=false;;
8876 --header | --heade | --head | --hea )
8877 $ac_shift
8878 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8879 ac_need_defaults=false;;
8880 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8881 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8882 ac_cs_silent=: ;;
8884 # This is an error.
8885 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8886 Try \`$0 --help' for more information." >&5
8887 echo "$as_me: error: unrecognized option: $1
8888 Try \`$0 --help' for more information." >&2;}
8889 { (exit 1); exit 1; }; } ;;
8891 *) ac_config_targets="$ac_config_targets $1" ;;
8893 esac
8894 shift
8895 done
8897 ac_configure_extra_args=
8899 if $ac_cs_silent; then
8900 exec 6>/dev/null
8901 ac_configure_extra_args="$ac_configure_extra_args --silent"
8904 _ACEOF
8905 cat >>$CONFIG_STATUS <<_ACEOF
8906 if \$ac_cs_recheck; then
8907 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8908 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8911 _ACEOF
8913 cat >>$CONFIG_STATUS <<_ACEOF
8915 # INIT-COMMANDS section.
8918 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
8920 _ACEOF
8924 cat >>$CONFIG_STATUS <<\_ACEOF
8925 for ac_config_target in $ac_config_targets
8927 case "$ac_config_target" in
8928 # Handling of arguments.
8929 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8930 "depdir" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
8931 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8932 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8933 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8934 { (exit 1); exit 1; }; };;
8935 esac
8936 done
8938 # If the user did not use the arguments to specify the items to instantiate,
8939 # then the envvar interface is used. Set only those that are not.
8940 # We use the long form for the default assignment because of an extremely
8941 # bizarre bug on SunOS 4.1.3.
8942 if $ac_need_defaults; then
8943 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8944 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8945 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8948 # Have a temporary directory for convenience. Make it in the build tree
8949 # simply because there is no reason to put it here, and in addition,
8950 # creating and moving files from /tmp can sometimes cause problems.
8951 # Create a temporary directory, and hook for its removal unless debugging.
8952 $debug ||
8954 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8955 trap '{ (exit 1); exit 1; }' 1 2 13 15
8958 # Create a (secure) tmp directory for tmp files.
8961 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8962 test -n "$tmp" && test -d "$tmp"
8963 } ||
8965 tmp=./confstat$$-$RANDOM
8966 (umask 077 && mkdir $tmp)
8967 } ||
8969 echo "$me: cannot create a temporary directory in ." >&2
8970 { (exit 1); exit 1; }
8973 _ACEOF
8975 cat >>$CONFIG_STATUS <<_ACEOF
8978 # CONFIG_FILES section.
8981 # No need to generate the scripts if there are no CONFIG_FILES.
8982 # This happens for instance when ./config.status config.h
8983 if test -n "\$CONFIG_FILES"; then
8984 # Protect against being on the right side of a sed subst in config.status.
8985 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8986 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8987 s,@SHELL@,$SHELL,;t t
8988 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8989 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8990 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8991 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8992 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8993 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8994 s,@exec_prefix@,$exec_prefix,;t t
8995 s,@prefix@,$prefix,;t t
8996 s,@program_transform_name@,$program_transform_name,;t t
8997 s,@bindir@,$bindir,;t t
8998 s,@sbindir@,$sbindir,;t t
8999 s,@libexecdir@,$libexecdir,;t t
9000 s,@datadir@,$datadir,;t t
9001 s,@sysconfdir@,$sysconfdir,;t t
9002 s,@sharedstatedir@,$sharedstatedir,;t t
9003 s,@localstatedir@,$localstatedir,;t t
9004 s,@libdir@,$libdir,;t t
9005 s,@includedir@,$includedir,;t t
9006 s,@oldincludedir@,$oldincludedir,;t t
9007 s,@infodir@,$infodir,;t t
9008 s,@mandir@,$mandir,;t t
9009 s,@build_alias@,$build_alias,;t t
9010 s,@host_alias@,$host_alias,;t t
9011 s,@target_alias@,$target_alias,;t t
9012 s,@DEFS@,$DEFS,;t t
9013 s,@ECHO_C@,$ECHO_C,;t t
9014 s,@ECHO_N@,$ECHO_N,;t t
9015 s,@ECHO_T@,$ECHO_T,;t t
9016 s,@LIBS@,$LIBS,;t t
9017 s,@build@,$build,;t t
9018 s,@build_cpu@,$build_cpu,;t t
9019 s,@build_vendor@,$build_vendor,;t t
9020 s,@build_os@,$build_os,;t t
9021 s,@host@,$host,;t t
9022 s,@host_cpu@,$host_cpu,;t t
9023 s,@host_vendor@,$host_vendor,;t t
9024 s,@host_os@,$host_os,;t t
9025 s,@target@,$target,;t t
9026 s,@target_cpu@,$target_cpu,;t t
9027 s,@target_vendor@,$target_vendor,;t t
9028 s,@target_os@,$target_os,;t t
9029 s,@SET_MAKE@,$SET_MAKE,;t t
9030 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9031 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9032 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9033 s,@CC@,$CC,;t t
9034 s,@CFLAGS@,$CFLAGS,;t t
9035 s,@LDFLAGS@,$LDFLAGS,;t t
9036 s,@CPPFLAGS@,$CPPFLAGS,;t t
9037 s,@ac_ct_CC@,$ac_ct_CC,;t t
9038 s,@EXEEXT@,$EXEEXT,;t t
9039 s,@OBJEXT@,$OBJEXT,;t t
9040 s,@RANLIB@,$RANLIB,;t t
9041 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9042 s,@ACLOCAL@,$ACLOCAL,;t t
9043 s,@AUTOCONF@,$AUTOCONF,;t t
9044 s,@AUTOHEADER@,$AUTOHEADER,;t t
9045 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9046 s,@WARN_PEDANTIC@,$WARN_PEDANTIC,;t t
9047 s,@WERROR@,$WERROR,;t t
9048 s,@am__leading_dot@,$am__leading_dot,;t t
9049 s,@DEPDIR@,$DEPDIR,;t t
9050 s,@CCDEPMODE@,$CCDEPMODE,;t t
9051 s,@CPP@,$CPP,;t t
9052 s,@EGREP@,$EGREP,;t t
9053 s,@LIBOBJS@,$LIBOBJS,;t t
9054 s,@ALLOCA@,$ALLOCA,;t t
9055 s,@USE_NLS@,$USE_NLS,;t t
9056 s,@LIBINTL@,$LIBINTL,;t t
9057 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
9058 s,@INCINTL@,$INCINTL,;t t
9059 s,@XGETTEXT@,$XGETTEXT,;t t
9060 s,@GMSGFMT@,$GMSGFMT,;t t
9061 s,@POSUB@,$POSUB,;t t
9062 s,@CATALOGS@,$CATALOGS,;t t
9063 s,@DATADIRNAME@,$DATADIRNAME,;t t
9064 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9065 s,@GENCAT@,$GENCAT,;t t
9066 s,@CATOBJEXT@,$CATOBJEXT,;t t
9067 s,@LIBICONV@,$LIBICONV,;t t
9068 s,@LTLIBICONV@,$LTLIBICONV,;t t
9069 s,@PACKAGE@,$PACKAGE,;t t
9070 s,@USED_CATALOGS@,$USED_CATALOGS,;t t
9071 s,@MAINT@,$MAINT,;t t
9072 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9073 CEOF
9075 _ACEOF
9077 cat >>$CONFIG_STATUS <<\_ACEOF
9078 # Split the substitutions into bite-sized pieces for seds with
9079 # small command number limits, like on Digital OSF/1 and HP-UX.
9080 ac_max_sed_lines=48
9081 ac_sed_frag=1 # Number of current file.
9082 ac_beg=1 # First line for current file.
9083 ac_end=$ac_max_sed_lines # Line after last line for current file.
9084 ac_more_lines=:
9085 ac_sed_cmds=
9086 while $ac_more_lines; do
9087 if test $ac_beg -gt 1; then
9088 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9089 else
9090 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9092 if test ! -s $tmp/subs.frag; then
9093 ac_more_lines=false
9094 else
9095 # The purpose of the label and of the branching condition is to
9096 # speed up the sed processing (if there are no `@' at all, there
9097 # is no need to browse any of the substitutions).
9098 # These are the two extra sed commands mentioned above.
9099 (echo ':t
9100 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9101 if test -z "$ac_sed_cmds"; then
9102 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9103 else
9104 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9106 ac_sed_frag=`expr $ac_sed_frag + 1`
9107 ac_beg=$ac_end
9108 ac_end=`expr $ac_end + $ac_max_sed_lines`
9110 done
9111 if test -z "$ac_sed_cmds"; then
9112 ac_sed_cmds=cat
9114 fi # test -n "$CONFIG_FILES"
9116 _ACEOF
9117 cat >>$CONFIG_STATUS <<\_ACEOF
9118 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9119 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9120 case $ac_file in
9121 - | *:- | *:-:* ) # input from stdin
9122 cat >$tmp/stdin
9123 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9124 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9125 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9126 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9127 * ) ac_file_in=$ac_file.in ;;
9128 esac
9130 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9131 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9132 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9133 X"$ac_file" : 'X\(//\)[^/]' \| \
9134 X"$ac_file" : 'X\(//\)$' \| \
9135 X"$ac_file" : 'X\(/\)' \| \
9136 . : '\(.\)' 2>/dev/null ||
9137 echo X"$ac_file" |
9138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9139 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9140 /^X\(\/\/\)$/{ s//\1/; q; }
9141 /^X\(\/\).*/{ s//\1/; q; }
9142 s/.*/./; q'`
9143 { if $as_mkdir_p; then
9144 mkdir -p "$ac_dir"
9145 else
9146 as_dir="$ac_dir"
9147 as_dirs=
9148 while test ! -d "$as_dir"; do
9149 as_dirs="$as_dir $as_dirs"
9150 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9151 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9152 X"$as_dir" : 'X\(//\)[^/]' \| \
9153 X"$as_dir" : 'X\(//\)$' \| \
9154 X"$as_dir" : 'X\(/\)' \| \
9155 . : '\(.\)' 2>/dev/null ||
9156 echo X"$as_dir" |
9157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9158 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9159 /^X\(\/\/\)$/{ s//\1/; q; }
9160 /^X\(\/\).*/{ s//\1/; q; }
9161 s/.*/./; q'`
9162 done
9163 test ! -n "$as_dirs" || mkdir $as_dirs
9164 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9165 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9166 { (exit 1); exit 1; }; }; }
9168 ac_builddir=.
9170 if test "$ac_dir" != .; then
9171 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9172 # A "../" for each directory in $ac_dir_suffix.
9173 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9174 else
9175 ac_dir_suffix= ac_top_builddir=
9178 case $srcdir in
9179 .) # No --srcdir option. We are building in place.
9180 ac_srcdir=.
9181 if test -z "$ac_top_builddir"; then
9182 ac_top_srcdir=.
9183 else
9184 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9185 fi ;;
9186 [\\/]* | ?:[\\/]* ) # Absolute path.
9187 ac_srcdir=$srcdir$ac_dir_suffix;
9188 ac_top_srcdir=$srcdir ;;
9189 *) # Relative path.
9190 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9191 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9192 esac
9194 # Do not use `cd foo && pwd` to compute absolute paths, because
9195 # the directories may not exist.
9196 case `pwd` in
9197 .) ac_abs_builddir="$ac_dir";;
9199 case "$ac_dir" in
9200 .) ac_abs_builddir=`pwd`;;
9201 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9202 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9203 esac;;
9204 esac
9205 case $ac_abs_builddir in
9206 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9208 case ${ac_top_builddir}. in
9209 .) ac_abs_top_builddir=$ac_abs_builddir;;
9210 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9211 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9212 esac;;
9213 esac
9214 case $ac_abs_builddir in
9215 .) ac_abs_srcdir=$ac_srcdir;;
9217 case $ac_srcdir in
9218 .) ac_abs_srcdir=$ac_abs_builddir;;
9219 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9220 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9221 esac;;
9222 esac
9223 case $ac_abs_builddir in
9224 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9226 case $ac_top_srcdir in
9227 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9228 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9229 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9230 esac;;
9231 esac
9234 case $INSTALL in
9235 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9236 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9237 esac
9239 if test x"$ac_file" != x-; then
9240 { echo "$as_me:$LINENO: creating $ac_file" >&5
9241 echo "$as_me: creating $ac_file" >&6;}
9242 rm -f "$ac_file"
9244 # Let's still pretend it is `configure' which instantiates (i.e., don't
9245 # use $as_me), people would be surprised to read:
9246 # /* config.h. Generated by config.status. */
9247 if test x"$ac_file" = x-; then
9248 configure_input=
9249 else
9250 configure_input="$ac_file. "
9252 configure_input=$configure_input"Generated from `echo $ac_file_in |
9253 sed 's,.*/,,'` by configure."
9255 # First look for the input files in the build tree, otherwise in the
9256 # src tree.
9257 ac_file_inputs=`IFS=:
9258 for f in $ac_file_in; do
9259 case $f in
9260 -) echo $tmp/stdin ;;
9261 [\\/$]*)
9262 # Absolute (can't be DOS-style, as IFS=:)
9263 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9264 echo "$as_me: error: cannot find input file: $f" >&2;}
9265 { (exit 1); exit 1; }; }
9266 echo "$f";;
9267 *) # Relative
9268 if test -f "$f"; then
9269 # Build tree
9270 echo "$f"
9271 elif test -f "$srcdir/$f"; then
9272 # Source tree
9273 echo "$srcdir/$f"
9274 else
9275 # /dev/null tree
9276 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9277 echo "$as_me: error: cannot find input file: $f" >&2;}
9278 { (exit 1); exit 1; }; }
9279 fi;;
9280 esac
9281 done` || { (exit 1); exit 1; }
9282 _ACEOF
9283 cat >>$CONFIG_STATUS <<_ACEOF
9284 sed "$ac_vpsub
9285 $extrasub
9286 _ACEOF
9287 cat >>$CONFIG_STATUS <<\_ACEOF
9289 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9290 s,@configure_input@,$configure_input,;t t
9291 s,@srcdir@,$ac_srcdir,;t t
9292 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9293 s,@top_srcdir@,$ac_top_srcdir,;t t
9294 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9295 s,@builddir@,$ac_builddir,;t t
9296 s,@abs_builddir@,$ac_abs_builddir,;t t
9297 s,@top_builddir@,$ac_top_builddir,;t t
9298 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9299 s,@INSTALL@,$ac_INSTALL,;t t
9300 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9301 rm -f $tmp/stdin
9302 if test x"$ac_file" != x-; then
9303 mv $tmp/out $ac_file
9304 else
9305 cat $tmp/out
9306 rm -f $tmp/out
9309 done
9310 _ACEOF
9311 cat >>$CONFIG_STATUS <<\_ACEOF
9314 # CONFIG_HEADER section.
9317 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9318 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9320 # ac_d sets the value in "#define NAME VALUE" lines.
9321 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9322 ac_dB='[ ].*$,\1#\2'
9323 ac_dC=' '
9324 ac_dD=',;t'
9325 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9326 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9327 ac_uB='$,\1#\2define\3'
9328 ac_uC=' '
9329 ac_uD=',;t'
9331 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9332 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9333 case $ac_file in
9334 - | *:- | *:-:* ) # input from stdin
9335 cat >$tmp/stdin
9336 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9337 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9338 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9339 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9340 * ) ac_file_in=$ac_file.in ;;
9341 esac
9343 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9344 echo "$as_me: creating $ac_file" >&6;}
9346 # First look for the input files in the build tree, otherwise in the
9347 # src tree.
9348 ac_file_inputs=`IFS=:
9349 for f in $ac_file_in; do
9350 case $f in
9351 -) echo $tmp/stdin ;;
9352 [\\/$]*)
9353 # Absolute (can't be DOS-style, as IFS=:)
9354 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9355 echo "$as_me: error: cannot find input file: $f" >&2;}
9356 { (exit 1); exit 1; }; }
9357 # Do quote $f, to prevent DOS paths from being IFS'd.
9358 echo "$f";;
9359 *) # Relative
9360 if test -f "$f"; then
9361 # Build tree
9362 echo "$f"
9363 elif test -f "$srcdir/$f"; then
9364 # Source tree
9365 echo "$srcdir/$f"
9366 else
9367 # /dev/null tree
9368 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9369 echo "$as_me: error: cannot find input file: $f" >&2;}
9370 { (exit 1); exit 1; }; }
9371 fi;;
9372 esac
9373 done` || { (exit 1); exit 1; }
9374 # Remove the trailing spaces.
9375 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9377 _ACEOF
9379 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9380 # `conftest.undefs', that substitutes the proper values into
9381 # config.h.in to produce config.h. The first handles `#define'
9382 # templates, and the second `#undef' templates.
9383 # And first: Protect against being on the right side of a sed subst in
9384 # config.status. Protect against being in an unquoted here document
9385 # in config.status.
9386 rm -f conftest.defines conftest.undefs
9387 # Using a here document instead of a string reduces the quoting nightmare.
9388 # Putting comments in sed scripts is not portable.
9390 # `end' is used to avoid that the second main sed command (meant for
9391 # 0-ary CPP macros) applies to n-ary macro definitions.
9392 # See the Autoconf documentation for `clear'.
9393 cat >confdef2sed.sed <<\_ACEOF
9394 s/[\\&,]/\\&/g
9395 s,[\\$`],\\&,g
9396 t clear
9397 : clear
9398 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9399 t end
9400 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9401 : end
9402 _ACEOF
9403 # If some macros were called several times there might be several times
9404 # the same #defines, which is useless. Nevertheless, we may not want to
9405 # sort them, since we want the *last* AC-DEFINE to be honored.
9406 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9407 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9408 rm -f confdef2sed.sed
9410 # This sed command replaces #undef with comments. This is necessary, for
9411 # example, in the case of _POSIX_SOURCE, which is predefined and required
9412 # on some systems where configure will not decide to define it.
9413 cat >>conftest.undefs <<\_ACEOF
9414 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9415 _ACEOF
9417 # Break up conftest.defines because some shells have a limit on the size
9418 # of here documents, and old seds have small limits too (100 cmds).
9419 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9420 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9421 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9422 echo ' :' >>$CONFIG_STATUS
9423 rm -f conftest.tail
9424 while grep . conftest.defines >/dev/null
9426 # Write a limited-size here document to $tmp/defines.sed.
9427 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9428 # Speed up: don't consider the non `#define' lines.
9429 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9430 # Work around the forget-to-reset-the-flag bug.
9431 echo 't clr' >>$CONFIG_STATUS
9432 echo ': clr' >>$CONFIG_STATUS
9433 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9434 echo 'CEOF
9435 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9436 rm -f $tmp/in
9437 mv $tmp/out $tmp/in
9438 ' >>$CONFIG_STATUS
9439 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9440 rm -f conftest.defines
9441 mv conftest.tail conftest.defines
9442 done
9443 rm -f conftest.defines
9444 echo ' fi # grep' >>$CONFIG_STATUS
9445 echo >>$CONFIG_STATUS
9447 # Break up conftest.undefs because some shells have a limit on the size
9448 # of here documents, and old seds have small limits too (100 cmds).
9449 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9450 rm -f conftest.tail
9451 while grep . conftest.undefs >/dev/null
9453 # Write a limited-size here document to $tmp/undefs.sed.
9454 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9455 # Speed up: don't consider the non `#undef'
9456 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9457 # Work around the forget-to-reset-the-flag bug.
9458 echo 't clr' >>$CONFIG_STATUS
9459 echo ': clr' >>$CONFIG_STATUS
9460 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9461 echo 'CEOF
9462 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9463 rm -f $tmp/in
9464 mv $tmp/out $tmp/in
9465 ' >>$CONFIG_STATUS
9466 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9467 rm -f conftest.undefs
9468 mv conftest.tail conftest.undefs
9469 done
9470 rm -f conftest.undefs
9472 cat >>$CONFIG_STATUS <<\_ACEOF
9473 # Let's still pretend it is `configure' which instantiates (i.e., don't
9474 # use $as_me), people would be surprised to read:
9475 # /* config.h. Generated by config.status. */
9476 if test x"$ac_file" = x-; then
9477 echo "/* Generated by configure. */" >$tmp/config.h
9478 else
9479 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9481 cat $tmp/in >>$tmp/config.h
9482 rm -f $tmp/in
9483 if test x"$ac_file" != x-; then
9484 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9485 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9486 echo "$as_me: $ac_file is unchanged" >&6;}
9487 else
9488 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9489 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9490 X"$ac_file" : 'X\(//\)[^/]' \| \
9491 X"$ac_file" : 'X\(//\)$' \| \
9492 X"$ac_file" : 'X\(/\)' \| \
9493 . : '\(.\)' 2>/dev/null ||
9494 echo X"$ac_file" |
9495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9496 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9497 /^X\(\/\/\)$/{ s//\1/; q; }
9498 /^X\(\/\).*/{ s//\1/; q; }
9499 s/.*/./; q'`
9500 { if $as_mkdir_p; then
9501 mkdir -p "$ac_dir"
9502 else
9503 as_dir="$ac_dir"
9504 as_dirs=
9505 while test ! -d "$as_dir"; do
9506 as_dirs="$as_dir $as_dirs"
9507 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9508 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9509 X"$as_dir" : 'X\(//\)[^/]' \| \
9510 X"$as_dir" : 'X\(//\)$' \| \
9511 X"$as_dir" : 'X\(/\)' \| \
9512 . : '\(.\)' 2>/dev/null ||
9513 echo X"$as_dir" |
9514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9515 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9516 /^X\(\/\/\)$/{ s//\1/; q; }
9517 /^X\(\/\).*/{ s//\1/; q; }
9518 s/.*/./; q'`
9519 done
9520 test ! -n "$as_dirs" || mkdir $as_dirs
9521 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9522 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9523 { (exit 1); exit 1; }; }; }
9525 rm -f $ac_file
9526 mv $tmp/config.h $ac_file
9528 else
9529 cat $tmp/config.h
9530 rm -f $tmp/config.h
9532 # Run the commands associated with the file.
9533 case $ac_file in
9534 config.h ) echo timestamp > stamp-h1 ;;
9535 esac
9536 done
9537 _ACEOF
9538 cat >>$CONFIG_STATUS <<\_ACEOF
9541 # CONFIG_COMMANDS section.
9543 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9544 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9545 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9546 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9547 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9548 X"$ac_dest" : 'X\(//\)[^/]' \| \
9549 X"$ac_dest" : 'X\(//\)$' \| \
9550 X"$ac_dest" : 'X\(/\)' \| \
9551 . : '\(.\)' 2>/dev/null ||
9552 echo X"$ac_dest" |
9553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9554 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9555 /^X\(\/\/\)$/{ s//\1/; q; }
9556 /^X\(\/\).*/{ s//\1/; q; }
9557 s/.*/./; q'`
9558 { if $as_mkdir_p; then
9559 mkdir -p "$ac_dir"
9560 else
9561 as_dir="$ac_dir"
9562 as_dirs=
9563 while test ! -d "$as_dir"; do
9564 as_dirs="$as_dir $as_dirs"
9565 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9566 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9567 X"$as_dir" : 'X\(//\)[^/]' \| \
9568 X"$as_dir" : 'X\(//\)$' \| \
9569 X"$as_dir" : 'X\(/\)' \| \
9570 . : '\(.\)' 2>/dev/null ||
9571 echo X"$as_dir" |
9572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9573 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9574 /^X\(\/\/\)$/{ s//\1/; q; }
9575 /^X\(\/\).*/{ s//\1/; q; }
9576 s/.*/./; q'`
9577 done
9578 test ! -n "$as_dirs" || mkdir $as_dirs
9579 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9580 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9581 { (exit 1); exit 1; }; }; }
9583 ac_builddir=.
9585 if test "$ac_dir" != .; then
9586 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9587 # A "../" for each directory in $ac_dir_suffix.
9588 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9589 else
9590 ac_dir_suffix= ac_top_builddir=
9593 case $srcdir in
9594 .) # No --srcdir option. We are building in place.
9595 ac_srcdir=.
9596 if test -z "$ac_top_builddir"; then
9597 ac_top_srcdir=.
9598 else
9599 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9600 fi ;;
9601 [\\/]* | ?:[\\/]* ) # Absolute path.
9602 ac_srcdir=$srcdir$ac_dir_suffix;
9603 ac_top_srcdir=$srcdir ;;
9604 *) # Relative path.
9605 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9606 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9607 esac
9609 # Do not use `cd foo && pwd` to compute absolute paths, because
9610 # the directories may not exist.
9611 case `pwd` in
9612 .) ac_abs_builddir="$ac_dir";;
9614 case "$ac_dir" in
9615 .) ac_abs_builddir=`pwd`;;
9616 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9617 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9618 esac;;
9619 esac
9620 case $ac_abs_builddir in
9621 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9623 case ${ac_top_builddir}. in
9624 .) ac_abs_top_builddir=$ac_abs_builddir;;
9625 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9626 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9627 esac;;
9628 esac
9629 case $ac_abs_builddir in
9630 .) ac_abs_srcdir=$ac_srcdir;;
9632 case $ac_srcdir in
9633 .) ac_abs_srcdir=$ac_abs_builddir;;
9634 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9635 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9636 esac;;
9637 esac
9638 case $ac_abs_builddir in
9639 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9641 case $ac_top_srcdir in
9642 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9643 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9644 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9645 esac;;
9646 esac
9649 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9650 echo "$as_me: executing $ac_dest commands" >&6;}
9651 case $ac_dest in
9652 depdir ) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
9653 esac
9654 done
9655 _ACEOF
9657 cat >>$CONFIG_STATUS <<\_ACEOF
9659 { (exit 0); exit 0; }
9660 _ACEOF
9661 chmod +x $CONFIG_STATUS
9662 ac_clean_files=$ac_clean_files_save
9665 # configure is writing to config.log, and then calls config.status.
9666 # config.status does its own redirection, appending to config.log.
9667 # Unfortunately, on DOS this fails, as config.log is still kept open
9668 # by configure, so config.status won't be able to write to it; its
9669 # output is simply discarded. So we exec the FD to /dev/null,
9670 # effectively closing config.log, so it can be properly (re)opened and
9671 # appended to by config.status. When coming back to configure, we
9672 # need to make the FD available again.
9673 if test "$no_create" != yes; then
9674 ac_cs_success=:
9675 ac_config_status_args=
9676 test "$silent" = yes &&
9677 ac_config_status_args="$ac_config_status_args --quiet"
9678 exec 5>/dev/null
9679 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9680 exec 5>>config.log
9681 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9682 # would make configure fail if this is the last instruction.
9683 $ac_cs_success || { (exit 1); exit 1; }