binutils/
[binutils.git] / binutils / configure
blob82db791cb6a4050b02ab9be06c85dc9f55b3e114
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="ar.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL REPORT_BUGS_TO WARN_CFLAGS NO_WERROR YACC LEX LEXLIB LEX_OUTPUT_ROOT CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT HDEFINES AR CC_FOR_BUILD EXEEXT_FOR_BUILD DEMANGLER_NAME NLMCONV_DEFS BUILD_NLMCONV BUILD_SRCONV BUILD_DLLTOOL DLLTOOL_DEFS BUILD_WINDRES BUILD_DLLWRAP BUILD_MISC OBJDUMP_DEFS EMULATION EMULATION_VECTOR datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839 System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843 _ACEOF
846 if test -n "$ac_init_help"; then
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 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
855 --enable-shared=PKGS build shared libraries default=yes
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --enable-targets alternative target configurations
860 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
861 --enable-werror treat compile warnings as errors
862 --enable-build-warnings Enable build-time compiler warnings
863 --disable-nls do not use Native Language Support
864 --enable-maintainer-mode enable make rules and dependencies not useful
865 (and sometimes confusing) to the casual installer
867 Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --with-gnu-ld assume the C compiler uses GNU ld default=no
871 --with-pic try to use only PIC/non-PIC objects default=use both
872 --with-bugurl=URL Direct users to URL to report a bug
873 --with-included-gettext use the GNU gettext library included here
875 Some influential environment variables:
876 CC C compiler command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
879 nonstandard directory <lib dir>
880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
881 headers in a nonstandard directory <include dir>
882 CPP C preprocessor
884 Use these variables to override the choices made by `configure' or to help
885 it to find libraries and programs with nonstandard names/locations.
887 _ACEOF
890 if test "$ac_init_help" = "recursive"; then
891 # If there are subdirs, report their specific --help.
892 ac_popdir=`pwd`
893 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
894 test -d $ac_dir || continue
895 ac_builddir=.
897 if test "$ac_dir" != .; then
898 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
899 # A "../" for each directory in $ac_dir_suffix.
900 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
901 else
902 ac_dir_suffix= ac_top_builddir=
905 case $srcdir in
906 .) # No --srcdir option. We are building in place.
907 ac_srcdir=.
908 if test -z "$ac_top_builddir"; then
909 ac_top_srcdir=.
910 else
911 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
912 fi ;;
913 [\\/]* | ?:[\\/]* ) # Absolute path.
914 ac_srcdir=$srcdir$ac_dir_suffix;
915 ac_top_srcdir=$srcdir ;;
916 *) # Relative path.
917 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
918 ac_top_srcdir=$ac_top_builddir$srcdir ;;
919 esac
921 # Do not use `cd foo && pwd` to compute absolute paths, because
922 # the directories may not exist.
923 case `pwd` in
924 .) ac_abs_builddir="$ac_dir";;
926 case "$ac_dir" in
927 .) ac_abs_builddir=`pwd`;;
928 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
929 *) ac_abs_builddir=`pwd`/"$ac_dir";;
930 esac;;
931 esac
932 case $ac_abs_builddir in
933 .) ac_abs_top_builddir=${ac_top_builddir}.;;
935 case ${ac_top_builddir}. in
936 .) ac_abs_top_builddir=$ac_abs_builddir;;
937 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
938 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
939 esac;;
940 esac
941 case $ac_abs_builddir in
942 .) ac_abs_srcdir=$ac_srcdir;;
944 case $ac_srcdir in
945 .) ac_abs_srcdir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
947 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
948 esac;;
949 esac
950 case $ac_abs_builddir in
951 .) ac_abs_top_srcdir=$ac_top_srcdir;;
953 case $ac_top_srcdir in
954 .) ac_abs_top_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
956 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
957 esac;;
958 esac
960 cd $ac_dir
961 # Check for guested configure; otherwise get Cygnus style configure.
962 if test -f $ac_srcdir/configure.gnu; then
963 echo
964 $SHELL $ac_srcdir/configure.gnu --help=recursive
965 elif test -f $ac_srcdir/configure; then
966 echo
967 $SHELL $ac_srcdir/configure --help=recursive
968 elif test -f $ac_srcdir/configure.ac ||
969 test -f $ac_srcdir/configure.in; then
970 echo
971 $ac_configure --help
972 else
973 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
975 cd $ac_popdir
976 done
979 test -n "$ac_init_help" && exit 0
980 if $ac_init_version; then
981 cat <<\_ACEOF
983 Copyright (C) 2003 Free Software Foundation, Inc.
984 This configure script is free software; the Free Software Foundation
985 gives unlimited permission to copy, distribute and modify it.
986 _ACEOF
987 exit 0
989 exec 5>config.log
990 cat >&5 <<_ACEOF
991 This file contains any messages produced by compilers while
992 running configure, to aid debugging if configure makes a mistake.
994 It was created by $as_me, which was
995 generated by GNU Autoconf 2.59. Invocation command line was
997 $ $0 $@
999 _ACEOF
1001 cat <<_ASUNAME
1002 ## --------- ##
1003 ## Platform. ##
1004 ## --------- ##
1006 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1007 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1008 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1009 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1010 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1012 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1013 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1015 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1016 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1017 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1018 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1019 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1020 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1021 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1023 _ASUNAME
1025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1026 for as_dir in $PATH
1028 IFS=$as_save_IFS
1029 test -z "$as_dir" && as_dir=.
1030 echo "PATH: $as_dir"
1031 done
1033 } >&5
1035 cat >&5 <<_ACEOF
1038 ## ----------- ##
1039 ## Core tests. ##
1040 ## ----------- ##
1042 _ACEOF
1045 # Keep a trace of the command line.
1046 # Strip out --no-create and --no-recursion so they do not pile up.
1047 # Strip out --silent because we don't want to record it for future runs.
1048 # Also quote any args containing shell meta-characters.
1049 # Make two passes to allow for proper duplicate-argument suppression.
1050 ac_configure_args=
1051 ac_configure_args0=
1052 ac_configure_args1=
1053 ac_sep=
1054 ac_must_keep_next=false
1055 for ac_pass in 1 2
1057 for ac_arg
1059 case $ac_arg in
1060 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1063 continue ;;
1064 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1065 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1066 esac
1067 case $ac_pass in
1068 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1070 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1071 if test $ac_must_keep_next = true; then
1072 ac_must_keep_next=false # Got value, back to normal.
1073 else
1074 case $ac_arg in
1075 *=* | --config-cache | -C | -disable-* | --disable-* \
1076 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1077 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1078 | -with-* | --with-* | -without-* | --without-* | --x)
1079 case "$ac_configure_args0 " in
1080 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1081 esac
1083 -* ) ac_must_keep_next=true ;;
1084 esac
1086 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1087 # Get rid of the leading space.
1088 ac_sep=" "
1090 esac
1091 done
1092 done
1093 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1094 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1096 # When interrupted or exit'd, cleanup temporary files, and complete
1097 # config.log. We remove comments because anyway the quotes in there
1098 # would cause problems or look ugly.
1099 # WARNING: Be sure not to use single quotes in there, as some shells,
1100 # such as our DU 5.0 friend, will then `close' the trap.
1101 trap 'exit_status=$?
1102 # Save into config.log some information that might help in debugging.
1104 echo
1106 cat <<\_ASBOX
1107 ## ---------------- ##
1108 ## Cache variables. ##
1109 ## ---------------- ##
1110 _ASBOX
1111 echo
1112 # The following way of writing the cache mishandles newlines in values,
1114 (set) 2>&1 |
1115 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1116 *ac_space=\ *)
1117 sed -n \
1118 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1122 sed -n \
1123 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1125 esac;
1127 echo
1129 cat <<\_ASBOX
1130 ## ----------------- ##
1131 ## Output variables. ##
1132 ## ----------------- ##
1133 _ASBOX
1134 echo
1135 for ac_var in $ac_subst_vars
1137 eval ac_val=$`echo $ac_var`
1138 echo "$ac_var='"'"'$ac_val'"'"'"
1139 done | sort
1140 echo
1142 if test -n "$ac_subst_files"; then
1143 cat <<\_ASBOX
1144 ## ------------- ##
1145 ## Output files. ##
1146 ## ------------- ##
1147 _ASBOX
1148 echo
1149 for ac_var in $ac_subst_files
1151 eval ac_val=$`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1153 done | sort
1154 echo
1157 if test -s confdefs.h; then
1158 cat <<\_ASBOX
1159 ## ----------- ##
1160 ## confdefs.h. ##
1161 ## ----------- ##
1162 _ASBOX
1163 echo
1164 sed "/^$/d" confdefs.h | sort
1165 echo
1167 test "$ac_signal" != 0 &&
1168 echo "$as_me: caught signal $ac_signal"
1169 echo "$as_me: exit $exit_status"
1170 } >&5
1171 rm -f core *.core &&
1172 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1173 exit $exit_status
1175 for ac_signal in 1 2 13 15; do
1176 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1177 done
1178 ac_signal=0
1180 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1181 rm -rf conftest* confdefs.h
1182 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1183 echo >confdefs.h
1185 # Predefined preprocessor variables.
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_NAME "$PACKAGE_NAME"
1189 _ACEOF
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1194 _ACEOF
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1199 _ACEOF
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_STRING "$PACKAGE_STRING"
1204 _ACEOF
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1209 _ACEOF
1212 # Let the site file select an alternate cache file if it wants to.
1213 # Prefer explicitly selected file to automatically selected ones.
1214 if test -z "$CONFIG_SITE"; then
1215 if test "x$prefix" != xNONE; then
1216 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1217 else
1218 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1221 for ac_site_file in $CONFIG_SITE; do
1222 if test -r "$ac_site_file"; then
1223 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1224 echo "$as_me: loading site script $ac_site_file" >&6;}
1225 sed 's/^/| /' "$ac_site_file" >&5
1226 . "$ac_site_file"
1228 done
1230 if test -r "$cache_file"; then
1231 # Some versions of bash will fail to source /dev/null (special
1232 # files actually), so we avoid doing that.
1233 if test -f "$cache_file"; then
1234 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1235 echo "$as_me: loading cache $cache_file" >&6;}
1236 case $cache_file in
1237 [\\/]* | ?:[\\/]* ) . $cache_file;;
1238 *) . ./$cache_file;;
1239 esac
1241 else
1242 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1243 echo "$as_me: creating cache $cache_file" >&6;}
1244 >$cache_file
1247 # Check that the precious variables saved in the cache have kept the same
1248 # value.
1249 ac_cache_corrupted=false
1250 for ac_var in `(set) 2>&1 |
1251 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1252 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1253 eval ac_new_set=\$ac_env_${ac_var}_set
1254 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1255 eval ac_new_val="\$ac_env_${ac_var}_value"
1256 case $ac_old_set,$ac_new_set in
1257 set,)
1258 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1259 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1260 ac_cache_corrupted=: ;;
1261 ,set)
1262 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1263 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1264 ac_cache_corrupted=: ;;
1265 ,);;
1267 if test "x$ac_old_val" != "x$ac_new_val"; then
1268 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1269 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1270 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1271 echo "$as_me: former value: $ac_old_val" >&2;}
1272 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1273 echo "$as_me: current value: $ac_new_val" >&2;}
1274 ac_cache_corrupted=:
1275 fi;;
1276 esac
1277 # Pass precious variables to config.status.
1278 if test "$ac_new_set" = set; then
1279 case $ac_new_val in
1280 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1281 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1282 *) ac_arg=$ac_var=$ac_new_val ;;
1283 esac
1284 case " $ac_configure_args " in
1285 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1286 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1287 esac
1289 done
1290 if $ac_cache_corrupted; then
1291 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1292 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1293 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1294 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1295 { (exit 1); exit 1; }; }
1298 ac_ext=c
1299 ac_cpp='$CPP $CPPFLAGS'
1300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1323 ac_aux_dir=
1324 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1325 if test -f $ac_dir/install-sh; then
1326 ac_aux_dir=$ac_dir
1327 ac_install_sh="$ac_aux_dir/install-sh -c"
1328 break
1329 elif test -f $ac_dir/install.sh; then
1330 ac_aux_dir=$ac_dir
1331 ac_install_sh="$ac_aux_dir/install.sh -c"
1332 break
1333 elif test -f $ac_dir/shtool; then
1334 ac_aux_dir=$ac_dir
1335 ac_install_sh="$ac_aux_dir/shtool install -c"
1336 break
1338 done
1339 if test -z "$ac_aux_dir"; then
1340 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1341 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1342 { (exit 1); exit 1; }; }
1344 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1345 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1346 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1348 # Make sure we can run config.sub.
1349 $ac_config_sub sun4 >/dev/null 2>&1 ||
1350 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1351 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1352 { (exit 1); exit 1; }; }
1354 echo "$as_me:$LINENO: checking build system type" >&5
1355 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1356 if test "${ac_cv_build+set}" = set; then
1357 echo $ECHO_N "(cached) $ECHO_C" >&6
1358 else
1359 ac_cv_build_alias=$build_alias
1360 test -z "$ac_cv_build_alias" &&
1361 ac_cv_build_alias=`$ac_config_guess`
1362 test -z "$ac_cv_build_alias" &&
1363 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1364 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1365 { (exit 1); exit 1; }; }
1366 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1367 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1368 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1369 { (exit 1); exit 1; }; }
1372 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1373 echo "${ECHO_T}$ac_cv_build" >&6
1374 build=$ac_cv_build
1375 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1376 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1377 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1380 echo "$as_me:$LINENO: checking host system type" >&5
1381 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1382 if test "${ac_cv_host+set}" = set; then
1383 echo $ECHO_N "(cached) $ECHO_C" >&6
1384 else
1385 ac_cv_host_alias=$host_alias
1386 test -z "$ac_cv_host_alias" &&
1387 ac_cv_host_alias=$ac_cv_build_alias
1388 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1389 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1390 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1391 { (exit 1); exit 1; }; }
1394 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1395 echo "${ECHO_T}$ac_cv_host" >&6
1396 host=$ac_cv_host
1397 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1398 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1399 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1402 echo "$as_me:$LINENO: checking target system type" >&5
1403 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1404 if test "${ac_cv_target+set}" = set; then
1405 echo $ECHO_N "(cached) $ECHO_C" >&6
1406 else
1407 ac_cv_target_alias=$target_alias
1408 test "x$ac_cv_target_alias" = "x" &&
1409 ac_cv_target_alias=$ac_cv_host_alias
1410 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1411 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1412 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1413 { (exit 1); exit 1; }; }
1416 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1417 echo "${ECHO_T}$ac_cv_target" >&6
1418 target=$ac_cv_target
1419 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1420 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1421 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1424 # The aliases save the names the user supplied, while $host etc.
1425 # will get canonicalized.
1426 test -n "$target_alias" &&
1427 test "$program_prefix$program_suffix$program_transform_name" = \
1428 NONENONEs,x,x, &&
1429 program_prefix=${target_alias}-
1430 ac_ext=c
1431 ac_cpp='$CPP $CPPFLAGS'
1432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1435 if test -n "$ac_tool_prefix"; then
1436 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1437 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1438 echo "$as_me:$LINENO: checking for $ac_word" >&5
1439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1440 if test "${ac_cv_prog_CC+set}" = set; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1442 else
1443 if test -n "$CC"; then
1444 ac_cv_prog_CC="$CC" # Let the user override the test.
1445 else
1446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1447 for as_dir in $PATH
1449 IFS=$as_save_IFS
1450 test -z "$as_dir" && as_dir=.
1451 for ac_exec_ext in '' $ac_executable_extensions; do
1452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1453 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1455 break 2
1457 done
1458 done
1462 CC=$ac_cv_prog_CC
1463 if test -n "$CC"; then
1464 echo "$as_me:$LINENO: result: $CC" >&5
1465 echo "${ECHO_T}$CC" >&6
1466 else
1467 echo "$as_me:$LINENO: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1472 if test -z "$ac_cv_prog_CC"; then
1473 ac_ct_CC=$CC
1474 # Extract the first word of "gcc", so it can be a program name with args.
1475 set dummy gcc; ac_word=$2
1476 echo "$as_me:$LINENO: checking for $ac_word" >&5
1477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1479 echo $ECHO_N "(cached) $ECHO_C" >&6
1480 else
1481 if test -n "$ac_ct_CC"; then
1482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1483 else
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 for as_dir in $PATH
1487 IFS=$as_save_IFS
1488 test -z "$as_dir" && as_dir=.
1489 for ac_exec_ext in '' $ac_executable_extensions; do
1490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1491 ac_cv_prog_ac_ct_CC="gcc"
1492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1493 break 2
1495 done
1496 done
1500 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1501 if test -n "$ac_ct_CC"; then
1502 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1503 echo "${ECHO_T}$ac_ct_CC" >&6
1504 else
1505 echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1509 CC=$ac_ct_CC
1510 else
1511 CC="$ac_cv_prog_CC"
1514 if test -z "$CC"; then
1515 if test -n "$ac_tool_prefix"; then
1516 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1517 set dummy ${ac_tool_prefix}cc; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_CC+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 else
1523 if test -n "$CC"; then
1524 ac_cv_prog_CC="$CC" # Let the user override the test.
1525 else
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527 for as_dir in $PATH
1529 IFS=$as_save_IFS
1530 test -z "$as_dir" && as_dir=.
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533 ac_cv_prog_CC="${ac_tool_prefix}cc"
1534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535 break 2
1537 done
1538 done
1542 CC=$ac_cv_prog_CC
1543 if test -n "$CC"; then
1544 echo "$as_me:$LINENO: result: $CC" >&5
1545 echo "${ECHO_T}$CC" >&6
1546 else
1547 echo "$as_me:$LINENO: result: no" >&5
1548 echo "${ECHO_T}no" >&6
1552 if test -z "$ac_cv_prog_CC"; then
1553 ac_ct_CC=$CC
1554 # Extract the first word of "cc", so it can be a program name with args.
1555 set dummy cc; ac_word=$2
1556 echo "$as_me:$LINENO: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1560 else
1561 if test -n "$ac_ct_CC"; then
1562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1563 else
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 for as_dir in $PATH
1567 IFS=$as_save_IFS
1568 test -z "$as_dir" && as_dir=.
1569 for ac_exec_ext in '' $ac_executable_extensions; do
1570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571 ac_cv_prog_ac_ct_CC="cc"
1572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573 break 2
1575 done
1576 done
1580 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1581 if test -n "$ac_ct_CC"; then
1582 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1583 echo "${ECHO_T}$ac_ct_CC" >&6
1584 else
1585 echo "$as_me:$LINENO: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1589 CC=$ac_ct_CC
1590 else
1591 CC="$ac_cv_prog_CC"
1595 if test -z "$CC"; then
1596 # Extract the first word of "cc", so it can be a program name with args.
1597 set dummy cc; ac_word=$2
1598 echo "$as_me:$LINENO: checking for $ac_word" >&5
1599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600 if test "${ac_cv_prog_CC+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1602 else
1603 if test -n "$CC"; then
1604 ac_cv_prog_CC="$CC" # Let the user override the test.
1605 else
1606 ac_prog_rejected=no
1607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608 for as_dir in $PATH
1610 IFS=$as_save_IFS
1611 test -z "$as_dir" && as_dir=.
1612 for ac_exec_ext in '' $ac_executable_extensions; do
1613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1614 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1615 ac_prog_rejected=yes
1616 continue
1618 ac_cv_prog_CC="cc"
1619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620 break 2
1622 done
1623 done
1625 if test $ac_prog_rejected = yes; then
1626 # We found a bogon in the path, so make sure we never use it.
1627 set dummy $ac_cv_prog_CC
1628 shift
1629 if test $# != 0; then
1630 # We chose a different compiler from the bogus one.
1631 # However, it has the same basename, so the bogon will be chosen
1632 # first if we set CC to just the basename; use the full file name.
1633 shift
1634 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1639 CC=$ac_cv_prog_CC
1640 if test -n "$CC"; then
1641 echo "$as_me:$LINENO: result: $CC" >&5
1642 echo "${ECHO_T}$CC" >&6
1643 else
1644 echo "$as_me:$LINENO: result: no" >&5
1645 echo "${ECHO_T}no" >&6
1649 if test -z "$CC"; then
1650 if test -n "$ac_tool_prefix"; then
1651 for ac_prog in cl
1653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1655 echo "$as_me:$LINENO: checking for $ac_word" >&5
1656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657 if test "${ac_cv_prog_CC+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1659 else
1660 if test -n "$CC"; then
1661 ac_cv_prog_CC="$CC" # Let the user override the test.
1662 else
1663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664 for as_dir in $PATH
1666 IFS=$as_save_IFS
1667 test -z "$as_dir" && as_dir=.
1668 for ac_exec_ext in '' $ac_executable_extensions; do
1669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672 break 2
1674 done
1675 done
1679 CC=$ac_cv_prog_CC
1680 if test -n "$CC"; then
1681 echo "$as_me:$LINENO: result: $CC" >&5
1682 echo "${ECHO_T}$CC" >&6
1683 else
1684 echo "$as_me:$LINENO: result: no" >&5
1685 echo "${ECHO_T}no" >&6
1688 test -n "$CC" && break
1689 done
1691 if test -z "$CC"; then
1692 ac_ct_CC=$CC
1693 for ac_prog in cl
1695 # Extract the first word of "$ac_prog", so it can be a program name with args.
1696 set dummy $ac_prog; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1701 else
1702 if test -n "$ac_ct_CC"; then
1703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1704 else
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706 for as_dir in $PATH
1708 IFS=$as_save_IFS
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_ac_ct_CC="$ac_prog"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 break 2
1716 done
1717 done
1721 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1722 if test -n "$ac_ct_CC"; then
1723 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1724 echo "${ECHO_T}$ac_ct_CC" >&6
1725 else
1726 echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1730 test -n "$ac_ct_CC" && break
1731 done
1733 CC=$ac_ct_CC
1739 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1740 See \`config.log' for more details." >&5
1741 echo "$as_me: error: no acceptable C compiler found in \$PATH
1742 See \`config.log' for more details." >&2;}
1743 { (exit 1); exit 1; }; }
1745 # Provide some information about the compiler.
1746 echo "$as_me:$LINENO:" \
1747 "checking for C compiler version" >&5
1748 ac_compiler=`set X $ac_compile; echo $2`
1749 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1750 (eval $ac_compiler --version </dev/null >&5) 2>&5
1751 ac_status=$?
1752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1753 (exit $ac_status); }
1754 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1755 (eval $ac_compiler -v </dev/null >&5) 2>&5
1756 ac_status=$?
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }
1759 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1760 (eval $ac_compiler -V </dev/null >&5) 2>&5
1761 ac_status=$?
1762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1763 (exit $ac_status); }
1765 cat >conftest.$ac_ext <<_ACEOF
1766 /* confdefs.h. */
1767 _ACEOF
1768 cat confdefs.h >>conftest.$ac_ext
1769 cat >>conftest.$ac_ext <<_ACEOF
1770 /* end confdefs.h. */
1773 main ()
1777 return 0;
1779 _ACEOF
1780 ac_clean_files_save=$ac_clean_files
1781 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1782 # Try to create an executable without -o first, disregard a.out.
1783 # It will help us diagnose broken compilers, and finding out an intuition
1784 # of exeext.
1785 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1786 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1787 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1788 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1789 (eval $ac_link_default) 2>&5
1790 ac_status=$?
1791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792 (exit $ac_status); }; then
1793 # Find the output, starting from the most likely. This scheme is
1794 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1795 # resort.
1797 # Be careful to initialize this variable, since it used to be cached.
1798 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1799 ac_cv_exeext=
1800 # b.out is created by i960 compilers.
1801 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1803 test -f "$ac_file" || continue
1804 case $ac_file in
1805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1807 conftest.$ac_ext )
1808 # This is the source file.
1810 [ab].out )
1811 # We found the default executable, but exeext='' is most
1812 # certainly right.
1813 break;;
1814 *.* )
1815 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1816 # FIXME: I believe we export ac_cv_exeext for Libtool,
1817 # but it would be cool to find out if it's true. Does anybody
1818 # maintain Libtool? --akim.
1819 export ac_cv_exeext
1820 break;;
1822 break;;
1823 esac
1824 done
1825 else
1826 echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1829 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1830 See \`config.log' for more details." >&5
1831 echo "$as_me: error: C compiler cannot create executables
1832 See \`config.log' for more details." >&2;}
1833 { (exit 77); exit 77; }; }
1836 ac_exeext=$ac_cv_exeext
1837 echo "$as_me:$LINENO: result: $ac_file" >&5
1838 echo "${ECHO_T}$ac_file" >&6
1840 # Check the compiler produces executables we can run. If not, either
1841 # the compiler is broken, or we cross compile.
1842 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1843 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1844 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1845 # If not cross compiling, check that we can run a simple program.
1846 if test "$cross_compiling" != yes; then
1847 if { ac_try='./$ac_file'
1848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1849 (eval $ac_try) 2>&5
1850 ac_status=$?
1851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852 (exit $ac_status); }; }; then
1853 cross_compiling=no
1854 else
1855 if test "$cross_compiling" = maybe; then
1856 cross_compiling=yes
1857 else
1858 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1859 If you meant to cross compile, use \`--host'.
1860 See \`config.log' for more details." >&5
1861 echo "$as_me: error: cannot run C compiled programs.
1862 If you meant to cross compile, use \`--host'.
1863 See \`config.log' for more details." >&2;}
1864 { (exit 1); exit 1; }; }
1868 echo "$as_me:$LINENO: result: yes" >&5
1869 echo "${ECHO_T}yes" >&6
1871 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1872 ac_clean_files=$ac_clean_files_save
1873 # Check the compiler produces executables we can run. If not, either
1874 # the compiler is broken, or we cross compile.
1875 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1876 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1877 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1878 echo "${ECHO_T}$cross_compiling" >&6
1880 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1881 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1883 (eval $ac_link) 2>&5
1884 ac_status=$?
1885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1886 (exit $ac_status); }; then
1887 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1888 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1889 # work properly (i.e., refer to `conftest.exe'), while it won't with
1890 # `rm'.
1891 for ac_file in conftest.exe conftest conftest.*; do
1892 test -f "$ac_file" || continue
1893 case $ac_file in
1894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1895 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1896 export ac_cv_exeext
1897 break;;
1898 * ) break;;
1899 esac
1900 done
1901 else
1902 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1903 See \`config.log' for more details." >&5
1904 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1905 See \`config.log' for more details." >&2;}
1906 { (exit 1); exit 1; }; }
1909 rm -f conftest$ac_cv_exeext
1910 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1911 echo "${ECHO_T}$ac_cv_exeext" >&6
1913 rm -f conftest.$ac_ext
1914 EXEEXT=$ac_cv_exeext
1915 ac_exeext=$EXEEXT
1916 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1917 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1918 if test "${ac_cv_objext+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921 cat >conftest.$ac_ext <<_ACEOF
1922 /* confdefs.h. */
1923 _ACEOF
1924 cat confdefs.h >>conftest.$ac_ext
1925 cat >>conftest.$ac_ext <<_ACEOF
1926 /* end confdefs.h. */
1929 main ()
1933 return 0;
1935 _ACEOF
1936 rm -f conftest.o conftest.obj
1937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1938 (eval $ac_compile) 2>&5
1939 ac_status=$?
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); }; then
1942 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1943 case $ac_file in
1944 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1945 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1946 break;;
1947 esac
1948 done
1949 else
1950 echo "$as_me: failed program was:" >&5
1951 sed 's/^/| /' conftest.$ac_ext >&5
1953 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1954 See \`config.log' for more details." >&5
1955 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1956 See \`config.log' for more details." >&2;}
1957 { (exit 1); exit 1; }; }
1960 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1962 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1963 echo "${ECHO_T}$ac_cv_objext" >&6
1964 OBJEXT=$ac_cv_objext
1965 ac_objext=$OBJEXT
1966 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1967 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1968 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 else
1971 cat >conftest.$ac_ext <<_ACEOF
1972 /* confdefs.h. */
1973 _ACEOF
1974 cat confdefs.h >>conftest.$ac_ext
1975 cat >>conftest.$ac_ext <<_ACEOF
1976 /* end confdefs.h. */
1979 main ()
1981 #ifndef __GNUC__
1982 choke me
1983 #endif
1986 return 0;
1988 _ACEOF
1989 rm -f conftest.$ac_objext
1990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1991 (eval $ac_compile) 2>conftest.er1
1992 ac_status=$?
1993 grep -v '^ *+' conftest.er1 >conftest.err
1994 rm -f conftest.er1
1995 cat conftest.err >&5
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); } &&
1998 { ac_try='test -z "$ac_c_werror_flag"
1999 || test ! -s conftest.err'
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); }; } &&
2005 { ac_try='test -s conftest.$ac_objext'
2006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2007 (eval $ac_try) 2>&5
2008 ac_status=$?
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010 (exit $ac_status); }; }; then
2011 ac_compiler_gnu=yes
2012 else
2013 echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.$ac_ext >&5
2016 ac_compiler_gnu=no
2018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2019 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2022 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2023 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2024 GCC=`test $ac_compiler_gnu = yes && echo yes`
2025 ac_test_CFLAGS=${CFLAGS+set}
2026 ac_save_CFLAGS=$CFLAGS
2027 CFLAGS="-g"
2028 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2029 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2030 if test "${ac_cv_prog_cc_g+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 else
2033 cat >conftest.$ac_ext <<_ACEOF
2034 /* confdefs.h. */
2035 _ACEOF
2036 cat confdefs.h >>conftest.$ac_ext
2037 cat >>conftest.$ac_ext <<_ACEOF
2038 /* end confdefs.h. */
2041 main ()
2045 return 0;
2047 _ACEOF
2048 rm -f conftest.$ac_objext
2049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2050 (eval $ac_compile) 2>conftest.er1
2051 ac_status=$?
2052 grep -v '^ *+' conftest.er1 >conftest.err
2053 rm -f conftest.er1
2054 cat conftest.err >&5
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); } &&
2057 { ac_try='test -z "$ac_c_werror_flag"
2058 || test ! -s conftest.err'
2059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060 (eval $ac_try) 2>&5
2061 ac_status=$?
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }; } &&
2064 { ac_try='test -s conftest.$ac_objext'
2065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2066 (eval $ac_try) 2>&5
2067 ac_status=$?
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); }; }; then
2070 ac_cv_prog_cc_g=yes
2071 else
2072 echo "$as_me: failed program was:" >&5
2073 sed 's/^/| /' conftest.$ac_ext >&5
2075 ac_cv_prog_cc_g=no
2077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2079 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2080 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2081 if test "$ac_test_CFLAGS" = set; then
2082 CFLAGS=$ac_save_CFLAGS
2083 elif test $ac_cv_prog_cc_g = yes; then
2084 if test "$GCC" = yes; then
2085 CFLAGS="-g -O2"
2086 else
2087 CFLAGS="-g"
2089 else
2090 if test "$GCC" = yes; then
2091 CFLAGS="-O2"
2092 else
2093 CFLAGS=
2096 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2097 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2098 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 else
2101 ac_cv_prog_cc_stdc=no
2102 ac_save_CC=$CC
2103 cat >conftest.$ac_ext <<_ACEOF
2104 /* confdefs.h. */
2105 _ACEOF
2106 cat confdefs.h >>conftest.$ac_ext
2107 cat >>conftest.$ac_ext <<_ACEOF
2108 /* end confdefs.h. */
2109 #include <stdarg.h>
2110 #include <stdio.h>
2111 #include <sys/types.h>
2112 #include <sys/stat.h>
2113 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2114 struct buf { int x; };
2115 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2116 static char *e (p, i)
2117 char **p;
2118 int i;
2120 return p[i];
2122 static char *f (char * (*g) (char **, int), char **p, ...)
2124 char *s;
2125 va_list v;
2126 va_start (v,p);
2127 s = g (p, va_arg (v,int));
2128 va_end (v);
2129 return s;
2132 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2133 function prototypes and stuff, but not '\xHH' hex character constants.
2134 These don't provoke an error unfortunately, instead are silently treated
2135 as 'x'. The following induces an error, until -std1 is added to get
2136 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2137 array size at least. It's necessary to write '\x00'==0 to get something
2138 that's true only with -std1. */
2139 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2141 int test (int i, double x);
2142 struct s1 {int (*f) (int a);};
2143 struct s2 {int (*f) (double a);};
2144 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2145 int argc;
2146 char **argv;
2148 main ()
2150 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2152 return 0;
2154 _ACEOF
2155 # Don't try gcc -ansi; that turns off useful extensions and
2156 # breaks some systems' header files.
2157 # AIX -qlanglvl=ansi
2158 # Ultrix and OSF/1 -std1
2159 # HP-UX 10.20 and later -Ae
2160 # HP-UX older versions -Aa -D_HPUX_SOURCE
2161 # SVR4 -Xc -D__EXTENSIONS__
2162 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2164 CC="$ac_save_CC $ac_arg"
2165 rm -f conftest.$ac_objext
2166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2167 (eval $ac_compile) 2>conftest.er1
2168 ac_status=$?
2169 grep -v '^ *+' conftest.er1 >conftest.err
2170 rm -f conftest.er1
2171 cat conftest.err >&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); } &&
2174 { ac_try='test -z "$ac_c_werror_flag"
2175 || test ! -s conftest.err'
2176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 (eval $ac_try) 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; } &&
2181 { ac_try='test -s conftest.$ac_objext'
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 (eval $ac_try) 2>&5
2184 ac_status=$?
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; }; then
2187 ac_cv_prog_cc_stdc=$ac_arg
2188 break
2189 else
2190 echo "$as_me: failed program was:" >&5
2191 sed 's/^/| /' conftest.$ac_ext >&5
2194 rm -f conftest.err conftest.$ac_objext
2195 done
2196 rm -f conftest.$ac_ext conftest.$ac_objext
2197 CC=$ac_save_CC
2201 case "x$ac_cv_prog_cc_stdc" in
2202 x|xno)
2203 echo "$as_me:$LINENO: result: none needed" >&5
2204 echo "${ECHO_T}none needed" >&6 ;;
2206 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2207 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2208 CC="$CC $ac_cv_prog_cc_stdc" ;;
2209 esac
2211 # Some people use a C++ compiler to compile C. Since we use `exit',
2212 # in C++ we need to declare it. In case someone uses the same compiler
2213 # for both compiling C and C++ we need to have the C++ compiler decide
2214 # the declaration of exit, since it's the most demanding environment.
2215 cat >conftest.$ac_ext <<_ACEOF
2216 #ifndef __cplusplus
2217 choke me
2218 #endif
2219 _ACEOF
2220 rm -f conftest.$ac_objext
2221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2222 (eval $ac_compile) 2>conftest.er1
2223 ac_status=$?
2224 grep -v '^ *+' conftest.er1 >conftest.err
2225 rm -f conftest.er1
2226 cat conftest.err >&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); } &&
2229 { ac_try='test -z "$ac_c_werror_flag"
2230 || test ! -s conftest.err'
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 (eval $ac_try) 2>&5
2233 ac_status=$?
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; } &&
2236 { ac_try='test -s conftest.$ac_objext'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2242 for ac_declaration in \
2243 '' \
2244 'extern "C" void std::exit (int) throw (); using std::exit;' \
2245 'extern "C" void std::exit (int); using std::exit;' \
2246 'extern "C" void exit (int) throw ();' \
2247 'extern "C" void exit (int);' \
2248 'void exit (int);'
2250 cat >conftest.$ac_ext <<_ACEOF
2251 /* confdefs.h. */
2252 _ACEOF
2253 cat confdefs.h >>conftest.$ac_ext
2254 cat >>conftest.$ac_ext <<_ACEOF
2255 /* end confdefs.h. */
2256 $ac_declaration
2257 #include <stdlib.h>
2259 main ()
2261 exit (42);
2263 return 0;
2265 _ACEOF
2266 rm -f conftest.$ac_objext
2267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2268 (eval $ac_compile) 2>conftest.er1
2269 ac_status=$?
2270 grep -v '^ *+' conftest.er1 >conftest.err
2271 rm -f conftest.er1
2272 cat conftest.err >&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); } &&
2275 { ac_try='test -z "$ac_c_werror_flag"
2276 || test ! -s conftest.err'
2277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 (eval $ac_try) 2>&5
2279 ac_status=$?
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; } &&
2282 { ac_try='test -s conftest.$ac_objext'
2283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284 (eval $ac_try) 2>&5
2285 ac_status=$?
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; }; then
2289 else
2290 echo "$as_me: failed program was:" >&5
2291 sed 's/^/| /' conftest.$ac_ext >&5
2293 continue
2295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2296 cat >conftest.$ac_ext <<_ACEOF
2297 /* confdefs.h. */
2298 _ACEOF
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h. */
2302 $ac_declaration
2304 main ()
2306 exit (42);
2308 return 0;
2310 _ACEOF
2311 rm -f conftest.$ac_objext
2312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313 (eval $ac_compile) 2>conftest.er1
2314 ac_status=$?
2315 grep -v '^ *+' conftest.er1 >conftest.err
2316 rm -f conftest.er1
2317 cat conftest.err >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); } &&
2320 { ac_try='test -z "$ac_c_werror_flag"
2321 || test ! -s conftest.err'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 (eval $ac_try) 2>&5
2324 ac_status=$?
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; } &&
2327 { ac_try='test -s conftest.$ac_objext'
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 (eval $ac_try) 2>&5
2330 ac_status=$?
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; }; then
2333 break
2334 else
2335 echo "$as_me: failed program was:" >&5
2336 sed 's/^/| /' conftest.$ac_ext >&5
2339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2340 done
2341 rm -f conftest*
2342 if test -n "$ac_declaration"; then
2343 echo '#ifdef __cplusplus' >>confdefs.h
2344 echo $ac_declaration >>confdefs.h
2345 echo '#endif' >>confdefs.h
2348 else
2349 echo "$as_me: failed program was:" >&5
2350 sed 's/^/| /' conftest.$ac_ext >&5
2353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2354 ac_ext=c
2355 ac_cpp='$CPP $CPPFLAGS'
2356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2361 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2362 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2363 if test "${ac_cv_search_strerror+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 else
2366 ac_func_search_save_LIBS=$LIBS
2367 ac_cv_search_strerror=no
2368 cat >conftest.$ac_ext <<_ACEOF
2369 /* confdefs.h. */
2370 _ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h. */
2375 /* Override any gcc2 internal prototype to avoid an error. */
2376 #ifdef __cplusplus
2377 extern "C"
2378 #endif
2379 /* We use char because int might match the return type of a gcc2
2380 builtin and then its argument prototype would still apply. */
2381 char strerror ();
2383 main ()
2385 strerror ();
2387 return 0;
2389 _ACEOF
2390 rm -f conftest.$ac_objext conftest$ac_exeext
2391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2392 (eval $ac_link) 2>conftest.er1
2393 ac_status=$?
2394 grep -v '^ *+' conftest.er1 >conftest.err
2395 rm -f conftest.er1
2396 cat conftest.err >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); } &&
2399 { ac_try='test -z "$ac_c_werror_flag"
2400 || test ! -s conftest.err'
2401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402 (eval $ac_try) 2>&5
2403 ac_status=$?
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; } &&
2406 { ac_try='test -s conftest$ac_exeext'
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 (eval $ac_try) 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; }; then
2412 ac_cv_search_strerror="none required"
2413 else
2414 echo "$as_me: failed program was:" >&5
2415 sed 's/^/| /' conftest.$ac_ext >&5
2418 rm -f conftest.err conftest.$ac_objext \
2419 conftest$ac_exeext conftest.$ac_ext
2420 if test "$ac_cv_search_strerror" = no; then
2421 for ac_lib in cposix; do
2422 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2423 cat >conftest.$ac_ext <<_ACEOF
2424 /* confdefs.h. */
2425 _ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h. */
2430 /* Override any gcc2 internal prototype to avoid an error. */
2431 #ifdef __cplusplus
2432 extern "C"
2433 #endif
2434 /* We use char because int might match the return type of a gcc2
2435 builtin and then its argument prototype would still apply. */
2436 char strerror ();
2438 main ()
2440 strerror ();
2442 return 0;
2444 _ACEOF
2445 rm -f conftest.$ac_objext conftest$ac_exeext
2446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2447 (eval $ac_link) 2>conftest.er1
2448 ac_status=$?
2449 grep -v '^ *+' conftest.er1 >conftest.err
2450 rm -f conftest.er1
2451 cat conftest.err >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); } &&
2454 { ac_try='test -z "$ac_c_werror_flag"
2455 || test ! -s conftest.err'
2456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 (eval $ac_try) 2>&5
2458 ac_status=$?
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; } &&
2461 { ac_try='test -s conftest$ac_exeext'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 (eval $ac_try) 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; }; then
2467 ac_cv_search_strerror="-l$ac_lib"
2468 break
2469 else
2470 echo "$as_me: failed program was:" >&5
2471 sed 's/^/| /' conftest.$ac_ext >&5
2474 rm -f conftest.err conftest.$ac_objext \
2475 conftest$ac_exeext conftest.$ac_ext
2476 done
2478 LIBS=$ac_func_search_save_LIBS
2480 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2481 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2482 if test "$ac_cv_search_strerror" != no; then
2483 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2488 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2489 am__api_version="1.9"
2490 # Find a good install program. We prefer a C program (faster),
2491 # so one script is as good as another. But avoid the broken or
2492 # incompatible versions:
2493 # SysV /etc/install, /usr/sbin/install
2494 # SunOS /usr/etc/install
2495 # IRIX /sbin/install
2496 # AIX /bin/install
2497 # AmigaOS /C/install, which installs bootblocks on floppy discs
2498 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2499 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2500 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2501 # OS/2's system install, which has a completely different semantic
2502 # ./install, which can be erroneously created by make from ./install.sh.
2503 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2504 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2505 if test -z "$INSTALL"; then
2506 if test "${ac_cv_path_install+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2508 else
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH
2512 IFS=$as_save_IFS
2513 test -z "$as_dir" && as_dir=.
2514 # Account for people who put trailing slashes in PATH elements.
2515 case $as_dir/ in
2516 ./ | .// | /cC/* | \
2517 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2518 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2519 /usr/ucb/* ) ;;
2521 # OSF1 and SCO ODT 3.0 have their own names for install.
2522 # Don't use installbsd from OSF since it installs stuff as root
2523 # by default.
2524 for ac_prog in ginstall scoinst install; do
2525 for ac_exec_ext in '' $ac_executable_extensions; do
2526 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2527 if test $ac_prog = install &&
2528 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2529 # AIX install. It has an incompatible calling convention.
2531 elif test $ac_prog = install &&
2532 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2533 # program-specific install script used by HP pwplus--don't use.
2535 else
2536 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2537 break 3
2540 done
2541 done
2543 esac
2544 done
2548 if test "${ac_cv_path_install+set}" = set; then
2549 INSTALL=$ac_cv_path_install
2550 else
2551 # As a last resort, use the slow shell script. We don't cache a
2552 # path for INSTALL within a source directory, because that will
2553 # break other packages using the cache if that directory is
2554 # removed, or if the path is relative.
2555 INSTALL=$ac_install_sh
2558 echo "$as_me:$LINENO: result: $INSTALL" >&5
2559 echo "${ECHO_T}$INSTALL" >&6
2561 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2562 # It thinks the first close brace ends the variable substitution.
2563 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2565 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2567 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2569 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2570 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2571 # Just in case
2572 sleep 1
2573 echo timestamp > conftest.file
2574 # Do `set' in a subshell so we don't clobber the current shell's
2575 # arguments. Must try -L first in case configure is actually a
2576 # symlink; some systems play weird games with the mod time of symlinks
2577 # (eg FreeBSD returns the mod time of the symlink's containing
2578 # directory).
2579 if (
2580 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2581 if test "$*" = "X"; then
2582 # -L didn't work.
2583 set X `ls -t $srcdir/configure conftest.file`
2585 rm -f conftest.file
2586 if test "$*" != "X $srcdir/configure conftest.file" \
2587 && test "$*" != "X conftest.file $srcdir/configure"; then
2589 # If neither matched, then we have a broken ls. This can happen
2590 # if, for instance, CONFIG_SHELL is bash and it inherits a
2591 # broken ls alias from the environment. This has actually
2592 # happened. Such a system could not be considered "sane".
2593 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2594 alias in your environment" >&5
2595 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2596 alias in your environment" >&2;}
2597 { (exit 1); exit 1; }; }
2600 test "$2" = conftest.file
2602 then
2603 # Ok.
2605 else
2606 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2607 Check your system clock" >&5
2608 echo "$as_me: error: newly created file is older than distributed files!
2609 Check your system clock" >&2;}
2610 { (exit 1); exit 1; }; }
2612 echo "$as_me:$LINENO: result: yes" >&5
2613 echo "${ECHO_T}yes" >&6
2614 test "$program_prefix" != NONE &&
2615 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2616 # Use a double $ so make ignores it.
2617 test "$program_suffix" != NONE &&
2618 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2619 # Double any \ or $. echo might interpret backslashes.
2620 # By default was `s,x,x', remove it if useless.
2621 cat <<\_ACEOF >conftest.sed
2622 s/[\\$]/&&/g;s/;s,x,x,$//
2623 _ACEOF
2624 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2625 rm conftest.sed
2627 # expand $ac_aux_dir to an absolute path
2628 am_aux_dir=`cd $ac_aux_dir && pwd`
2630 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2631 # Use eval to expand $SHELL
2632 if eval "$MISSING --run true"; then
2633 am_missing_run="$MISSING --run "
2634 else
2635 am_missing_run=
2636 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2637 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2640 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2641 # We used to keeping the `.' as first argument, in order to
2642 # allow $(mkdir_p) to be used without argument. As in
2643 # $(mkdir_p) $(somedir)
2644 # where $(somedir) is conditionally defined. However this is wrong
2645 # for two reasons:
2646 # 1. if the package is installed by a user who cannot write `.'
2647 # make install will fail,
2648 # 2. the above comment should most certainly read
2649 # $(mkdir_p) $(DESTDIR)$(somedir)
2650 # so it does not work when $(somedir) is undefined and
2651 # $(DESTDIR) is not.
2652 # To support the latter case, we have to write
2653 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2654 # so the `.' trick is pointless.
2655 mkdir_p='mkdir -p --'
2656 else
2657 # On NextStep and OpenStep, the `mkdir' command does not
2658 # recognize any option. It will interpret all options as
2659 # directories to create, and then abort because `.' already
2660 # exists.
2661 for d in ./-p ./--version;
2663 test -d $d && rmdir $d
2664 done
2665 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2666 if test -f "$ac_aux_dir/mkinstalldirs"; then
2667 mkdir_p='$(mkinstalldirs)'
2668 else
2669 mkdir_p='$(install_sh) -d'
2673 for ac_prog in gawk mawk nawk awk
2675 # Extract the first word of "$ac_prog", so it can be a program name with args.
2676 set dummy $ac_prog; ac_word=$2
2677 echo "$as_me:$LINENO: checking for $ac_word" >&5
2678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2679 if test "${ac_cv_prog_AWK+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2681 else
2682 if test -n "$AWK"; then
2683 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2684 else
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 for as_dir in $PATH
2688 IFS=$as_save_IFS
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2692 ac_cv_prog_AWK="$ac_prog"
2693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 break 2
2696 done
2697 done
2701 AWK=$ac_cv_prog_AWK
2702 if test -n "$AWK"; then
2703 echo "$as_me:$LINENO: result: $AWK" >&5
2704 echo "${ECHO_T}$AWK" >&6
2705 else
2706 echo "$as_me:$LINENO: result: no" >&5
2707 echo "${ECHO_T}no" >&6
2710 test -n "$AWK" && break
2711 done
2713 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2714 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2715 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2716 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2717 echo $ECHO_N "(cached) $ECHO_C" >&6
2718 else
2719 cat >conftest.make <<\_ACEOF
2720 all:
2721 @echo 'ac_maketemp="$(MAKE)"'
2722 _ACEOF
2723 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2724 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2725 if test -n "$ac_maketemp"; then
2726 eval ac_cv_prog_make_${ac_make}_set=yes
2727 else
2728 eval ac_cv_prog_make_${ac_make}_set=no
2730 rm -f conftest.make
2732 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2733 echo "$as_me:$LINENO: result: yes" >&5
2734 echo "${ECHO_T}yes" >&6
2735 SET_MAKE=
2736 else
2737 echo "$as_me:$LINENO: result: no" >&5
2738 echo "${ECHO_T}no" >&6
2739 SET_MAKE="MAKE=${MAKE-make}"
2742 rm -rf .tst 2>/dev/null
2743 mkdir .tst 2>/dev/null
2744 if test -d .tst; then
2745 am__leading_dot=.
2746 else
2747 am__leading_dot=_
2749 rmdir .tst 2>/dev/null
2751 DEPDIR="${am__leading_dot}deps"
2753 ac_config_commands="$ac_config_commands depfiles"
2756 am_make=${MAKE-make}
2757 cat > confinc << 'END'
2758 am__doit:
2759 @echo done
2760 .PHONY: am__doit
2762 # If we don't find an include directive, just comment out the code.
2763 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2764 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2765 am__include="#"
2766 am__quote=
2767 _am_result=none
2768 # First try GNU make style include.
2769 echo "include confinc" > confmf
2770 # We grep out `Entering directory' and `Leaving directory'
2771 # messages which can occur if `w' ends up in MAKEFLAGS.
2772 # In particular we don't look at `^make:' because GNU make might
2773 # be invoked under some other name (usually "gmake"), in which
2774 # case it prints its new name instead of `make'.
2775 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2776 am__include=include
2777 am__quote=
2778 _am_result=GNU
2780 # Now try BSD make style include.
2781 if test "$am__include" = "#"; then
2782 echo '.include "confinc"' > confmf
2783 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2784 am__include=.include
2785 am__quote="\""
2786 _am_result=BSD
2791 echo "$as_me:$LINENO: result: $_am_result" >&5
2792 echo "${ECHO_T}$_am_result" >&6
2793 rm -f confinc confmf
2795 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2796 if test "${enable_dependency_tracking+set}" = set; then
2797 enableval="$enable_dependency_tracking"
2800 if test "x$enable_dependency_tracking" != xno; then
2801 am_depcomp="$ac_aux_dir/depcomp"
2802 AMDEPBACKSLASH='\'
2806 if test "x$enable_dependency_tracking" != xno; then
2807 AMDEP_TRUE=
2808 AMDEP_FALSE='#'
2809 else
2810 AMDEP_TRUE='#'
2811 AMDEP_FALSE=
2816 # test to see if srcdir already configured
2817 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2818 test -f $srcdir/config.status; then
2819 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2820 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2821 { (exit 1); exit 1; }; }
2824 # test whether we have cygpath
2825 if test -z "$CYGPATH_W"; then
2826 if (cygpath --version) >/dev/null 2>/dev/null; then
2827 CYGPATH_W='cygpath -w'
2828 else
2829 CYGPATH_W=echo
2834 # Define the identity of the package.
2835 PACKAGE=binutils
2836 VERSION=${BFD_VERSION}
2839 cat >>confdefs.h <<_ACEOF
2840 #define PACKAGE "$PACKAGE"
2841 _ACEOF
2844 cat >>confdefs.h <<_ACEOF
2845 #define VERSION "$VERSION"
2846 _ACEOF
2848 # Some tools Automake needs.
2850 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2853 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2856 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2859 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2862 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2864 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2866 # Installed binaries are usually stripped using `strip' when the user
2867 # run `make install-strip'. However `strip' might not be the right
2868 # tool to use in cross-compilation environments, therefore Automake
2869 # will honor the `STRIP' environment variable to overrule this program.
2870 if test "$cross_compiling" != no; then
2871 if test -n "$ac_tool_prefix"; then
2872 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2873 set dummy ${ac_tool_prefix}strip; ac_word=$2
2874 echo "$as_me:$LINENO: checking for $ac_word" >&5
2875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2876 if test "${ac_cv_prog_STRIP+set}" = set; then
2877 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 else
2879 if test -n "$STRIP"; then
2880 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2881 else
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2889 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 break 2
2893 done
2894 done
2898 STRIP=$ac_cv_prog_STRIP
2899 if test -n "$STRIP"; then
2900 echo "$as_me:$LINENO: result: $STRIP" >&5
2901 echo "${ECHO_T}$STRIP" >&6
2902 else
2903 echo "$as_me:$LINENO: result: no" >&5
2904 echo "${ECHO_T}no" >&6
2908 if test -z "$ac_cv_prog_STRIP"; then
2909 ac_ct_STRIP=$STRIP
2910 # Extract the first word of "strip", so it can be a program name with args.
2911 set dummy strip; ac_word=$2
2912 echo "$as_me:$LINENO: checking for $ac_word" >&5
2913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2914 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 else
2917 if test -n "$ac_ct_STRIP"; then
2918 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2919 else
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 for as_dir in $PATH
2923 IFS=$as_save_IFS
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2927 ac_cv_prog_ac_ct_STRIP="strip"
2928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 break 2
2931 done
2932 done
2934 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2937 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2938 if test -n "$ac_ct_STRIP"; then
2939 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2940 echo "${ECHO_T}$ac_ct_STRIP" >&6
2941 else
2942 echo "$as_me:$LINENO: result: no" >&5
2943 echo "${ECHO_T}no" >&6
2946 STRIP=$ac_ct_STRIP
2947 else
2948 STRIP="$ac_cv_prog_STRIP"
2952 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2954 # We need awk for the "check" target. The system "awk" is bad on
2955 # some platforms.
2956 # Always define AMTAR for backward compatibility.
2958 AMTAR=${AMTAR-"${am_missing_run}tar"}
2960 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2965 depcc="$CC" am_compiler_list=
2967 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2968 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2969 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2970 echo $ECHO_N "(cached) $ECHO_C" >&6
2971 else
2972 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2973 # We make a subdir and do the tests there. Otherwise we can end up
2974 # making bogus files that we don't know about and never remove. For
2975 # instance it was reported that on HP-UX the gcc test will end up
2976 # making a dummy file named `D' -- because `-MD' means `put the output
2977 # in D'.
2978 mkdir conftest.dir
2979 # Copy depcomp to subdir because otherwise we won't find it if we're
2980 # using a relative directory.
2981 cp "$am_depcomp" conftest.dir
2982 cd conftest.dir
2983 # We will build objects and dependencies in a subdirectory because
2984 # it helps to detect inapplicable dependency modes. For instance
2985 # both Tru64's cc and ICC support -MD to output dependencies as a
2986 # side effect of compilation, but ICC will put the dependencies in
2987 # the current directory while Tru64 will put them in the object
2988 # directory.
2989 mkdir sub
2991 am_cv_CC_dependencies_compiler_type=none
2992 if test "$am_compiler_list" = ""; then
2993 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2995 for depmode in $am_compiler_list; do
2996 # Setup a source with many dependencies, because some compilers
2997 # like to wrap large dependency lists on column 80 (with \), and
2998 # we should not choose a depcomp mode which is confused by this.
3000 # We need to recreate these files for each test, as the compiler may
3001 # overwrite some of them when testing with obscure command lines.
3002 # This happens at least with the AIX C compiler.
3003 : > sub/conftest.c
3004 for i in 1 2 3 4 5 6; do
3005 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3006 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3007 # Solaris 8's {/usr,}/bin/sh.
3008 touch sub/conftst$i.h
3009 done
3010 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3012 case $depmode in
3013 nosideeffect)
3014 # after this tag, mechanisms are not by side-effect, so they'll
3015 # only be used when explicitly requested
3016 if test "x$enable_dependency_tracking" = xyes; then
3017 continue
3018 else
3019 break
3022 none) break ;;
3023 esac
3024 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3025 # mode. It turns out that the SunPro C++ compiler does not properly
3026 # handle `-M -o', and we need to detect this.
3027 if depmode=$depmode \
3028 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3029 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3030 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3031 >/dev/null 2>conftest.err &&
3032 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3033 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3034 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3035 # icc doesn't choke on unknown options, it will just issue warnings
3036 # or remarks (even with -Werror). So we grep stderr for any message
3037 # that says an option was ignored or not supported.
3038 # When given -MP, icc 7.0 and 7.1 complain thusly:
3039 # icc: Command line warning: ignoring option '-M'; no argument required
3040 # The diagnosis changed in icc 8.0:
3041 # icc: Command line remark: option '-MP' not supported
3042 if (grep 'ignoring option' conftest.err ||
3043 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3044 am_cv_CC_dependencies_compiler_type=$depmode
3045 break
3048 done
3050 cd ..
3051 rm -rf conftest.dir
3052 else
3053 am_cv_CC_dependencies_compiler_type=none
3057 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3058 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3059 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3064 test "x$enable_dependency_tracking" != xno \
3065 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3066 am__fastdepCC_TRUE=
3067 am__fastdepCC_FALSE='#'
3068 else
3069 am__fastdepCC_TRUE='#'
3070 am__fastdepCC_FALSE=
3076 # Check whether --enable-shared or --disable-shared was given.
3077 if test "${enable_shared+set}" = set; then
3078 enableval="$enable_shared"
3079 p=${PACKAGE-default}
3080 case $enableval in
3081 yes) enable_shared=yes ;;
3082 no) enable_shared=no ;;
3084 enable_shared=no
3085 # Look at the argument we got. We use all the common list separators.
3086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3087 for pkg in $enableval; do
3088 if test "X$pkg" = "X$p"; then
3089 enable_shared=yes
3091 done
3092 IFS="$ac_save_ifs"
3094 esac
3095 else
3096 enable_shared=yes
3098 # Check whether --enable-static or --disable-static was given.
3099 if test "${enable_static+set}" = set; then
3100 enableval="$enable_static"
3101 p=${PACKAGE-default}
3102 case $enableval in
3103 yes) enable_static=yes ;;
3104 no) enable_static=no ;;
3106 enable_static=no
3107 # Look at the argument we got. We use all the common list separators.
3108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3109 for pkg in $enableval; do
3110 if test "X$pkg" = "X$p"; then
3111 enable_static=yes
3113 done
3114 IFS="$ac_save_ifs"
3116 esac
3117 else
3118 enable_static=yes
3120 # Check whether --enable-fast-install or --disable-fast-install was given.
3121 if test "${enable_fast_install+set}" = set; then
3122 enableval="$enable_fast_install"
3123 p=${PACKAGE-default}
3124 case $enableval in
3125 yes) enable_fast_install=yes ;;
3126 no) enable_fast_install=no ;;
3128 enable_fast_install=no
3129 # Look at the argument we got. We use all the common list separators.
3130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3131 for pkg in $enableval; do
3132 if test "X$pkg" = "X$p"; then
3133 enable_fast_install=yes
3135 done
3136 IFS="$ac_save_ifs"
3138 esac
3139 else
3140 enable_fast_install=yes
3143 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3144 if test "${with_gnu_ld+set}" = set; then
3145 withval="$with_gnu_ld"
3146 test "$withval" = no || with_gnu_ld=yes
3147 else
3148 with_gnu_ld=no
3150 ac_prog=ld
3151 if test "$GCC" = yes; then
3152 # Check if gcc -print-prog-name=ld gives a path.
3153 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3154 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3155 case $host in
3156 *-*-mingw*)
3157 # gcc leaves a trailing carriage return which upsets mingw
3158 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3160 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3161 esac
3162 case $ac_prog in
3163 # Accept absolute paths.
3164 [\\/]* | [A-Za-z]:[\\/]*)
3165 re_direlt='/[^/][^/]*/\.\./'
3166 # Canonicalize the path of ld
3167 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3168 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3169 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3170 done
3171 test -z "$LD" && LD="$ac_prog"
3174 # If it fails, then pretend we aren't using GCC.
3175 ac_prog=ld
3178 # If it is relative, then search for the first ld in PATH.
3179 with_gnu_ld=unknown
3181 esac
3182 elif test "$with_gnu_ld" = yes; then
3183 echo "$as_me:$LINENO: checking for GNU ld" >&5
3184 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3185 else
3186 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3187 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3189 if test "${lt_cv_path_LD+set}" = set; then
3190 echo $ECHO_N "(cached) $ECHO_C" >&6
3191 else
3192 if test -z "$LD"; then
3193 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3194 for ac_dir in $PATH; do
3195 test -z "$ac_dir" && ac_dir=.
3196 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3197 lt_cv_path_LD="$ac_dir/$ac_prog"
3198 # Check to see if the program is GNU ld. I'd rather use --version,
3199 # but apparently some GNU ld's only accept -v.
3200 # Break only if it was the GNU/non-GNU ld that we prefer.
3201 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3202 test "$with_gnu_ld" != no && break
3203 else
3204 test "$with_gnu_ld" != yes && break
3207 done
3208 IFS="$ac_save_ifs"
3209 else
3210 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3214 LD="$lt_cv_path_LD"
3215 if test -n "$LD"; then
3216 echo "$as_me:$LINENO: result: $LD" >&5
3217 echo "${ECHO_T}$LD" >&6
3218 else
3219 echo "$as_me:$LINENO: result: no" >&5
3220 echo "${ECHO_T}no" >&6
3222 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3223 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3224 { (exit 1); exit 1; }; }
3225 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3226 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3227 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3229 else
3230 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3231 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3232 lt_cv_prog_gnu_ld=yes
3233 else
3234 lt_cv_prog_gnu_ld=no
3237 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3238 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3239 with_gnu_ld=$lt_cv_prog_gnu_ld
3242 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3243 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3244 if test "${lt_cv_ld_reload_flag+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247 lt_cv_ld_reload_flag='-r'
3249 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3250 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3251 reload_flag=$lt_cv_ld_reload_flag
3252 test -n "$reload_flag" && reload_flag=" $reload_flag"
3254 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3255 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3256 if test "${lt_cv_path_NM+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 else
3259 if test -n "$NM"; then
3260 # Let the user override the test.
3261 lt_cv_path_NM="$NM"
3262 else
3263 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3264 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3265 test -z "$ac_dir" && ac_dir=.
3266 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3267 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3268 # Check to see if the nm accepts a BSD-compat flag.
3269 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3270 # nm: unknown option "B" ignored
3271 # Tru64's nm complains that /dev/null is an invalid object file
3272 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3273 lt_cv_path_NM="$tmp_nm -B"
3274 break
3275 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3276 lt_cv_path_NM="$tmp_nm -p"
3277 break
3278 else
3279 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3280 continue # so that we can try to find one that supports BSD flags
3283 done
3284 IFS="$ac_save_ifs"
3285 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3289 NM="$lt_cv_path_NM"
3290 echo "$as_me:$LINENO: result: $NM" >&5
3291 echo "${ECHO_T}$NM" >&6
3293 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3294 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3295 LN_S=$as_ln_s
3296 if test "$LN_S" = "ln -s"; then
3297 echo "$as_me:$LINENO: result: yes" >&5
3298 echo "${ECHO_T}yes" >&6
3299 else
3300 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3301 echo "${ECHO_T}no, using $LN_S" >&6
3304 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3305 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3306 if test "${lt_cv_deplibs_check_method+set}" = set; then
3307 echo $ECHO_N "(cached) $ECHO_C" >&6
3308 else
3309 lt_cv_file_magic_cmd='$MAGIC_CMD'
3310 lt_cv_file_magic_test_file=
3311 lt_cv_deplibs_check_method='unknown'
3312 # Need to set the preceding variable on all platforms that support
3313 # interlibrary dependencies.
3314 # 'none' -- dependencies not supported.
3315 # `unknown' -- same as none, but documents that we really don't know.
3316 # 'pass_all' -- all dependencies passed with no checks.
3317 # 'test_compile' -- check by making test program.
3318 # 'file_magic [regex]' -- check by looking for files in library path
3319 # which responds to the $file_magic_cmd with a given egrep regex.
3320 # If you have `file' or equivalent on your system and you're not sure
3321 # whether `pass_all' will *always* work, you probably want this one.
3323 case $host_os in
3324 aix*)
3325 lt_cv_deplibs_check_method=pass_all
3328 beos*)
3329 lt_cv_deplibs_check_method=pass_all
3332 bsdi4*)
3333 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3334 lt_cv_file_magic_cmd='/usr/bin/file -L'
3335 lt_cv_file_magic_test_file=/shlib/libc.so
3338 cygwin* | mingw* |pw32*)
3339 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3340 lt_cv_file_magic_cmd='$OBJDUMP -f'
3343 darwin* | rhapsody*)
3344 # this will be overwritten by pass_all, but leave it in just in case
3345 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3346 lt_cv_file_magic_cmd='/usr/bin/file -L'
3347 case "$host_os" in
3348 rhapsody* | darwin1.012)
3349 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3351 *) # Darwin 1.3 on
3352 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3354 esac
3355 lt_cv_deplibs_check_method=pass_all
3358 freebsd* | kfreebsd*-gnu)
3359 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3360 case $host_cpu in
3361 i*86 )
3362 # Not sure whether the presence of OpenBSD here was a mistake.
3363 # Let's accept both of them until this is cleared up.
3364 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3365 lt_cv_file_magic_cmd=/usr/bin/file
3366 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3368 esac
3369 else
3370 lt_cv_deplibs_check_method=pass_all
3374 gnu*)
3375 lt_cv_deplibs_check_method=pass_all
3378 hpux10.20*|hpux11*)
3379 case $host_cpu in
3380 hppa*)
3381 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3382 lt_cv_file_magic_cmd=/usr/bin/file
3383 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3385 ia64*)
3386 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3387 lt_cv_file_magic_cmd=/usr/bin/file
3388 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3390 esac
3393 irix5* | irix6*)
3394 case $host_os in
3395 irix5*)
3396 # this will be overridden with pass_all, but let us keep it just in case
3397 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3400 case $LD in
3401 *-32|*"-32 ") libmagic=32-bit;;
3402 *-n32|*"-n32 ") libmagic=N32;;
3403 *-64|*"-64 ") libmagic=64-bit;;
3404 *) libmagic=never-match;;
3405 esac
3406 # this will be overridden with pass_all, but let us keep it just in case
3407 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3409 esac
3410 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3411 lt_cv_deplibs_check_method=pass_all
3414 # This must be Linux ELF.
3415 linux-gnu*)
3416 lt_cv_deplibs_check_method=pass_all
3419 netbsd* | knetbsd*-gnu)
3420 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3421 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3422 else
3423 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3427 newsos6)
3428 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3429 lt_cv_file_magic_cmd=/usr/bin/file
3430 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3433 osf3* | osf4* | osf5*)
3434 # this will be overridden with pass_all, but let us keep it just in case
3435 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3436 lt_cv_file_magic_test_file=/shlib/libc.so
3437 lt_cv_deplibs_check_method=pass_all
3440 sco3.2v5*)
3441 lt_cv_deplibs_check_method=pass_all
3444 solaris*)
3445 lt_cv_deplibs_check_method=pass_all
3446 lt_cv_file_magic_test_file=/lib/libc.so
3449 sysv5uw[78]* | sysv4*uw2*)
3450 lt_cv_deplibs_check_method=pass_all
3453 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3454 case $host_vendor in
3455 ncr)
3456 lt_cv_deplibs_check_method=pass_all
3458 motorola)
3459 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3460 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3462 esac
3464 esac
3467 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3468 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3469 file_magic_cmd=$lt_cv_file_magic_cmd
3470 deplibs_check_method=$lt_cv_deplibs_check_method
3475 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3477 # find the maximum length of command line arguments
3478 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3479 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3480 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3481 echo $ECHO_N "(cached) $ECHO_C" >&6
3482 else
3484 teststring="ABCD"
3486 case $build_os in
3487 msdosdjgpp*)
3488 # On DJGPP, this test can blow up pretty badly due to problems in libc
3489 # (any single argument exceeding 2000 bytes causes a buffer overrun
3490 # during glob expansion). Even if it were fixed, the result of this
3491 # check would be larger than it should be.
3492 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3495 cygwin* | mingw*)
3496 # On Win9x/ME, this test blows up -- it succeeds, but takes
3497 # about 5 minutes as the teststring grows exponentially.
3498 # Worse, since 9x/ME are not pre-emptively multitasking,
3499 # you end up with a "frozen" computer, even though with patience
3500 # the test eventually succeeds (with a max line length of 256k).
3501 # Instead, let's just punt: use the minimum linelength reported by
3502 # all of the supported platforms: 8192 (on NT/2K/XP).
3503 lt_cv_sys_max_cmd_len=8192;
3506 amigaos*)
3507 # On AmigaOS with pdksh, this test takes hours, literally.
3508 # So we just punt and use a minimum line length of 8192.
3509 lt_cv_sys_max_cmd_len=8192;
3512 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3513 # This has been around since 386BSD, at least. Likely further.
3514 if test -x /sbin/sysctl; then
3515 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3516 elif test -x /usr/sbin/sysctl; then
3517 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3518 else
3519 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3521 # And add a safety zone
3522 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3523 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3525 esac
3529 if test -n "$lt_cv_sys_max_cmd_len" ; then
3530 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3531 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3532 else
3533 echo "$as_me:$LINENO: result: none" >&5
3534 echo "${ECHO_T}none" >&6
3538 # Only perform the check for file, if the check method requires it
3539 case $deplibs_check_method in
3540 file_magic*)
3541 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3542 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3543 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3544 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 else
3547 case $MAGIC_CMD in
3549 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3551 ?:/*)
3552 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3555 ac_save_MAGIC_CMD="$MAGIC_CMD"
3556 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3557 ac_dummy="/usr/bin:$PATH"
3558 for ac_dir in $ac_dummy; do
3559 test -z "$ac_dir" && ac_dir=.
3560 if test -f $ac_dir/${ac_tool_prefix}file; then
3561 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3562 if test -n "$file_magic_test_file"; then
3563 case $deplibs_check_method in
3564 "file_magic "*)
3565 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3566 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3567 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3568 egrep "$file_magic_regex" > /dev/null; then
3570 else
3571 cat <<EOF 1>&2
3573 *** Warning: the command libtool uses to detect shared libraries,
3574 *** $file_magic_cmd, produces output that libtool cannot recognize.
3575 *** The result is that libtool may fail to recognize shared libraries
3576 *** as such. This will affect the creation of libtool libraries that
3577 *** depend on shared libraries, but programs linked with such libtool
3578 *** libraries will work regardless of this problem. Nevertheless, you
3579 *** may want to report the problem to your system manager and/or to
3580 *** bug-libtool@gnu.org
3583 fi ;;
3584 esac
3586 break
3588 done
3589 IFS="$ac_save_ifs"
3590 MAGIC_CMD="$ac_save_MAGIC_CMD"
3592 esac
3595 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3596 if test -n "$MAGIC_CMD"; then
3597 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3598 echo "${ECHO_T}$MAGIC_CMD" >&6
3599 else
3600 echo "$as_me:$LINENO: result: no" >&5
3601 echo "${ECHO_T}no" >&6
3604 if test -z "$lt_cv_path_MAGIC_CMD"; then
3605 if test -n "$ac_tool_prefix"; then
3606 echo "$as_me:$LINENO: checking for file" >&5
3607 echo $ECHO_N "checking for file... $ECHO_C" >&6
3608 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 else
3611 case $MAGIC_CMD in
3613 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3615 ?:/*)
3616 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3619 ac_save_MAGIC_CMD="$MAGIC_CMD"
3620 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3621 ac_dummy="/usr/bin:$PATH"
3622 for ac_dir in $ac_dummy; do
3623 test -z "$ac_dir" && ac_dir=.
3624 if test -f $ac_dir/file; then
3625 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3626 if test -n "$file_magic_test_file"; then
3627 case $deplibs_check_method in
3628 "file_magic "*)
3629 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3630 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3631 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3632 egrep "$file_magic_regex" > /dev/null; then
3634 else
3635 cat <<EOF 1>&2
3637 *** Warning: the command libtool uses to detect shared libraries,
3638 *** $file_magic_cmd, produces output that libtool cannot recognize.
3639 *** The result is that libtool may fail to recognize shared libraries
3640 *** as such. This will affect the creation of libtool libraries that
3641 *** depend on shared libraries, but programs linked with such libtool
3642 *** libraries will work regardless of this problem. Nevertheless, you
3643 *** may want to report the problem to your system manager and/or to
3644 *** bug-libtool@gnu.org
3647 fi ;;
3648 esac
3650 break
3652 done
3653 IFS="$ac_save_ifs"
3654 MAGIC_CMD="$ac_save_MAGIC_CMD"
3656 esac
3659 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3660 if test -n "$MAGIC_CMD"; then
3661 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3662 echo "${ECHO_T}$MAGIC_CMD" >&6
3663 else
3664 echo "$as_me:$LINENO: result: no" >&5
3665 echo "${ECHO_T}no" >&6
3668 else
3669 MAGIC_CMD=:
3675 esac
3677 if test -n "$ac_tool_prefix"; then
3678 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3679 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3680 echo "$as_me:$LINENO: checking for $ac_word" >&5
3681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3682 if test "${ac_cv_prog_RANLIB+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3684 else
3685 if test -n "$RANLIB"; then
3686 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3687 else
3688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 for as_dir in $PATH
3691 IFS=$as_save_IFS
3692 test -z "$as_dir" && as_dir=.
3693 for ac_exec_ext in '' $ac_executable_extensions; do
3694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3695 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3697 break 2
3699 done
3700 done
3704 RANLIB=$ac_cv_prog_RANLIB
3705 if test -n "$RANLIB"; then
3706 echo "$as_me:$LINENO: result: $RANLIB" >&5
3707 echo "${ECHO_T}$RANLIB" >&6
3708 else
3709 echo "$as_me:$LINENO: result: no" >&5
3710 echo "${ECHO_T}no" >&6
3714 if test -z "$ac_cv_prog_RANLIB"; then
3715 ac_ct_RANLIB=$RANLIB
3716 # Extract the first word of "ranlib", so it can be a program name with args.
3717 set dummy ranlib; ac_word=$2
3718 echo "$as_me:$LINENO: checking for $ac_word" >&5
3719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3720 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 else
3723 if test -n "$ac_ct_RANLIB"; then
3724 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3725 else
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 for as_dir in $PATH
3729 IFS=$as_save_IFS
3730 test -z "$as_dir" && as_dir=.
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3733 ac_cv_prog_ac_ct_RANLIB="ranlib"
3734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3735 break 2
3737 done
3738 done
3740 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3743 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3744 if test -n "$ac_ct_RANLIB"; then
3745 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3746 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3747 else
3748 echo "$as_me:$LINENO: result: no" >&5
3749 echo "${ECHO_T}no" >&6
3752 RANLIB=$ac_ct_RANLIB
3753 else
3754 RANLIB="$ac_cv_prog_RANLIB"
3757 if test -n "$ac_tool_prefix"; then
3758 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3759 set dummy ${ac_tool_prefix}strip; ac_word=$2
3760 echo "$as_me:$LINENO: checking for $ac_word" >&5
3761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3762 if test "${ac_cv_prog_STRIP+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3764 else
3765 if test -n "$STRIP"; then
3766 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3767 else
3768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769 for as_dir in $PATH
3771 IFS=$as_save_IFS
3772 test -z "$as_dir" && as_dir=.
3773 for ac_exec_ext in '' $ac_executable_extensions; do
3774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3775 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3777 break 2
3779 done
3780 done
3784 STRIP=$ac_cv_prog_STRIP
3785 if test -n "$STRIP"; then
3786 echo "$as_me:$LINENO: result: $STRIP" >&5
3787 echo "${ECHO_T}$STRIP" >&6
3788 else
3789 echo "$as_me:$LINENO: result: no" >&5
3790 echo "${ECHO_T}no" >&6
3794 if test -z "$ac_cv_prog_STRIP"; then
3795 ac_ct_STRIP=$STRIP
3796 # Extract the first word of "strip", so it can be a program name with args.
3797 set dummy strip; ac_word=$2
3798 echo "$as_me:$LINENO: checking for $ac_word" >&5
3799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3800 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3802 else
3803 if test -n "$ac_ct_STRIP"; then
3804 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3805 else
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 for as_dir in $PATH
3809 IFS=$as_save_IFS
3810 test -z "$as_dir" && as_dir=.
3811 for ac_exec_ext in '' $ac_executable_extensions; do
3812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3813 ac_cv_prog_ac_ct_STRIP="strip"
3814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3815 break 2
3817 done
3818 done
3820 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3823 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3824 if test -n "$ac_ct_STRIP"; then
3825 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3826 echo "${ECHO_T}$ac_ct_STRIP" >&6
3827 else
3828 echo "$as_me:$LINENO: result: no" >&5
3829 echo "${ECHO_T}no" >&6
3832 STRIP=$ac_ct_STRIP
3833 else
3834 STRIP="$ac_cv_prog_STRIP"
3838 # Check for any special flags to pass to ltconfig.
3839 libtool_flags="--cache-file=$cache_file"
3840 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3841 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3842 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3843 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3844 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3847 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3848 if test "${enable_libtool_lock+set}" = set; then
3849 enableval="$enable_libtool_lock"
3852 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3853 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3856 # Check whether --with-pic or --without-pic was given.
3857 if test "${with_pic+set}" = set; then
3858 withval="$with_pic"
3859 pic_mode="$withval"
3860 else
3861 pic_mode=default
3863 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3864 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3866 # Some flags need to be propagated to the compiler or linker for good
3867 # libtool support.
3868 case $host in
3869 *-*-irix6*)
3870 # Find out which ABI we are using.
3871 echo '#line 3871 "configure"' > conftest.$ac_ext
3872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3873 (eval $ac_compile) 2>&5
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; then
3877 if test "$lt_cv_prog_gnu_ld" = yes; then
3878 case `/usr/bin/file conftest.$ac_objext` in
3879 *32-bit*)
3880 LD="${LD-ld} -melf32bsmip"
3882 *N32*)
3883 LD="${LD-ld} -melf32bmipn32"
3885 *64-bit*)
3886 LD="${LD-ld} -melf64bmip"
3888 esac
3889 else
3890 case `/usr/bin/file conftest.$ac_objext` in
3891 *32-bit*)
3892 LD="${LD-ld} -32"
3894 *N32*)
3895 LD="${LD-ld} -n32"
3897 *64-bit*)
3898 LD="${LD-ld} -64"
3900 esac
3903 rm -rf conftest*
3906 ia64-*-hpux*)
3907 # Find out which ABI we are using.
3908 echo 'int i;' > conftest.$ac_ext
3909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3910 (eval $ac_compile) 2>&5
3911 ac_status=$?
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; then
3914 case "`/usr/bin/file conftest.o`" in
3915 *ELF-32*)
3916 HPUX_IA64_MODE="32"
3918 *ELF-64*)
3919 HPUX_IA64_MODE="64"
3921 esac
3923 rm -rf conftest*
3926 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3927 # Find out which ABI we are using.
3928 echo 'int i;' > conftest.$ac_ext
3929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3930 (eval $ac_compile) 2>&5
3931 ac_status=$?
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; then
3934 case "`/usr/bin/file conftest.o`" in
3935 *32-bit*)
3936 case $host in
3937 x86_64-*linux*)
3938 LD="${LD-ld} -m elf_i386"
3940 ppc64-*linux*|powerpc64-*linux*)
3941 LD="${LD-ld} -m elf32ppclinux"
3943 s390x-*linux*)
3944 LD="${LD-ld} -m elf_s390"
3946 sparc64-*linux*)
3947 LD="${LD-ld} -m elf32_sparc"
3949 esac
3951 *64-bit*)
3952 case $host in
3953 x86_64-*linux*)
3954 LD="${LD-ld} -m elf_x86_64"
3956 ppc*-*linux*|powerpc*-*linux*)
3957 LD="${LD-ld} -m elf64ppc"
3959 s390*-*linux*)
3960 LD="${LD-ld} -m elf64_s390"
3962 sparc*-*linux*)
3963 LD="${LD-ld} -m elf64_sparc"
3965 esac
3967 esac
3969 rm -rf conftest*
3972 *-*-sco3.2v5*)
3973 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3974 SAVE_CFLAGS="$CFLAGS"
3975 CFLAGS="$CFLAGS -belf"
3976 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3977 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3978 if test "${lt_cv_cc_needs_belf+set}" = set; then
3979 echo $ECHO_N "(cached) $ECHO_C" >&6
3980 else
3983 ac_ext=c
3984 ac_cpp='$CPP $CPPFLAGS'
3985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3989 cat >conftest.$ac_ext <<_ACEOF
3990 /* confdefs.h. */
3991 _ACEOF
3992 cat confdefs.h >>conftest.$ac_ext
3993 cat >>conftest.$ac_ext <<_ACEOF
3994 /* end confdefs.h. */
3997 main ()
4001 return 0;
4003 _ACEOF
4004 rm -f conftest.$ac_objext conftest$ac_exeext
4005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4006 (eval $ac_link) 2>conftest.er1
4007 ac_status=$?
4008 grep -v '^ *+' conftest.er1 >conftest.err
4009 rm -f conftest.er1
4010 cat conftest.err >&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } &&
4013 { ac_try='test -z "$ac_c_werror_flag"
4014 || test ! -s conftest.err'
4015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016 (eval $ac_try) 2>&5
4017 ac_status=$?
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; } &&
4020 { ac_try='test -s conftest$ac_exeext'
4021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022 (eval $ac_try) 2>&5
4023 ac_status=$?
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }; }; then
4026 lt_cv_cc_needs_belf=yes
4027 else
4028 echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4031 lt_cv_cc_needs_belf=no
4033 rm -f conftest.err conftest.$ac_objext \
4034 conftest$ac_exeext conftest.$ac_ext
4035 ac_ext=c
4036 ac_cpp='$CPP $CPPFLAGS'
4037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4042 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4043 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4044 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4045 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4046 CFLAGS="$SAVE_CFLAGS"
4051 esac
4054 # Save cache, so that ltconfig can load it
4055 cat >confcache <<\_ACEOF
4056 # This file is a shell script that caches the results of configure
4057 # tests run on this system so they can be shared between configure
4058 # scripts and configure runs, see configure's option --config-cache.
4059 # It is not useful on other systems. If it contains results you don't
4060 # want to keep, you may remove or edit it.
4062 # config.status only pays attention to the cache file if you give it
4063 # the --recheck option to rerun configure.
4065 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4066 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4067 # following values.
4069 _ACEOF
4071 # The following way of writing the cache mishandles newlines in values,
4072 # but we know of no workaround that is simple, portable, and efficient.
4073 # So, don't put newlines in cache variables' values.
4074 # Ultrix sh set writes to stderr and can't be redirected directly,
4075 # and sets the high bit in the cache file unless we assign to the vars.
4077 (set) 2>&1 |
4078 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4079 *ac_space=\ *)
4080 # `set' does not quote correctly, so add quotes (double-quote
4081 # substitution turns \\\\ into \\, and sed turns \\ into \).
4082 sed -n \
4083 "s/'/'\\\\''/g;
4084 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4087 # `set' quotes correctly as required by POSIX, so do not add quotes.
4088 sed -n \
4089 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4091 esac;
4093 sed '
4094 t clear
4095 : clear
4096 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4097 t end
4098 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4099 : end' >>confcache
4100 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4101 if test -w $cache_file; then
4102 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4103 cat confcache >$cache_file
4104 else
4105 echo "not updating unwritable cache $cache_file"
4108 rm -f confcache
4110 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4111 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4112 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4113 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4114 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4115 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4116 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4117 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4118 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4119 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4120 echo "$as_me: error: libtool configure failed" >&2;}
4121 { (exit 1); exit 1; }; }
4123 # Reload cache, that may have been modified by ltconfig
4124 if test -r "$cache_file"; then
4125 # Some versions of bash will fail to source /dev/null (special
4126 # files actually), so we avoid doing that.
4127 if test -f "$cache_file"; then
4128 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4129 echo "$as_me: loading cache $cache_file" >&6;}
4130 case $cache_file in
4131 [\\/]* | ?:[\\/]* ) . $cache_file;;
4132 *) . ./$cache_file;;
4133 esac
4135 else
4136 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4137 echo "$as_me: creating cache $cache_file" >&6;}
4138 >$cache_file
4142 # This can be used to rebuild libtool when needed
4143 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4145 # Always use our own libtool.
4146 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4148 # Redirect the config.log output again, so that the ltconfig log is not
4149 # clobbered by the next message.
4150 exec 5>>./config.log
4158 # Check whether --enable-targets or --disable-targets was given.
4159 if test "${enable_targets+set}" = set; then
4160 enableval="$enable_targets"
4161 case "${enableval}" in
4162 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4163 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4164 { (exit 1); exit 1; }; }
4166 no) enable_targets= ;;
4167 *) enable_targets=$enableval ;;
4168 esac
4169 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4170 if test "${enable_commonbfdlib+set}" = set; then
4171 enableval="$enable_commonbfdlib"
4172 case "${enableval}" in
4173 yes) commonbfdlib=true ;;
4174 no) commonbfdlib=false ;;
4175 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4176 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4177 { (exit 1); exit 1; }; } ;;
4178 esac
4180 # The location to which bugs should be reported.
4182 # Check whether --with-bugurl or --without-bugurl was given.
4183 if test "${with_bugurl+set}" = set; then
4184 withval="$with_bugurl"
4185 case "$withval" in
4186 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
4187 echo "$as_me: error: bug URL not specified" >&2;}
4188 { (exit 1); exit 1; }; } ;;
4189 no) REPORT_BUGS_TO="" ;;
4190 *) REPORT_BUGS_TO="<URL:$withval>" ;;
4191 esac
4192 else
4193 REPORT_BUGS_TO="<URL:http://www.sourceware.org/bugzilla/>"
4199 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4201 # Check whether --enable-werror or --disable-werror was given.
4202 if test "${enable_werror+set}" = set; then
4203 enableval="$enable_werror"
4204 case "${enableval}" in
4205 yes | y) ERROR_ON_WARNING="yes" ;;
4206 no | n) ERROR_ON_WARNING="no" ;;
4207 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4208 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4209 { (exit 1); exit 1; }; } ;;
4210 esac
4213 # Enable -Werror by default when using gcc
4214 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4215 ERROR_ON_WARNING=yes
4218 NO_WERROR=
4219 if test "${ERROR_ON_WARNING}" = yes ; then
4220 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4221 NO_WERROR="-Wno-error"
4224 if test "${GCC}" = yes ; then
4225 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4228 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4229 if test "${enable_build_warnings+set}" = set; then
4230 enableval="$enable_build_warnings"
4231 case "${enableval}" in
4232 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4233 no) if test "${GCC}" = yes ; then
4234 WARN_CFLAGS="-w"
4235 fi;;
4236 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4237 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4238 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4239 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4240 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4241 esac
4244 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4245 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4252 ac_config_headers="$ac_config_headers config.h:config.in"
4255 if test -z "$target" ; then
4256 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4257 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4258 { (exit 1); exit 1; }; }
4260 if test -z "$host" ; then
4261 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
4262 echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
4263 { (exit 1); exit 1; }; }
4266 ac_ext=c
4267 ac_cpp='$CPP $CPPFLAGS'
4268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4271 if test -n "$ac_tool_prefix"; then
4272 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4273 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4274 echo "$as_me:$LINENO: checking for $ac_word" >&5
4275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4276 if test "${ac_cv_prog_CC+set}" = set; then
4277 echo $ECHO_N "(cached) $ECHO_C" >&6
4278 else
4279 if test -n "$CC"; then
4280 ac_cv_prog_CC="$CC" # Let the user override the test.
4281 else
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 for as_dir in $PATH
4285 IFS=$as_save_IFS
4286 test -z "$as_dir" && as_dir=.
4287 for ac_exec_ext in '' $ac_executable_extensions; do
4288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4289 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4291 break 2
4293 done
4294 done
4298 CC=$ac_cv_prog_CC
4299 if test -n "$CC"; then
4300 echo "$as_me:$LINENO: result: $CC" >&5
4301 echo "${ECHO_T}$CC" >&6
4302 else
4303 echo "$as_me:$LINENO: result: no" >&5
4304 echo "${ECHO_T}no" >&6
4308 if test -z "$ac_cv_prog_CC"; then
4309 ac_ct_CC=$CC
4310 # Extract the first word of "gcc", so it can be a program name with args.
4311 set dummy gcc; ac_word=$2
4312 echo "$as_me:$LINENO: checking for $ac_word" >&5
4313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4314 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4315 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 else
4317 if test -n "$ac_ct_CC"; then
4318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4319 else
4320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 for as_dir in $PATH
4323 IFS=$as_save_IFS
4324 test -z "$as_dir" && as_dir=.
4325 for ac_exec_ext in '' $ac_executable_extensions; do
4326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4327 ac_cv_prog_ac_ct_CC="gcc"
4328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4329 break 2
4331 done
4332 done
4336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4337 if test -n "$ac_ct_CC"; then
4338 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4339 echo "${ECHO_T}$ac_ct_CC" >&6
4340 else
4341 echo "$as_me:$LINENO: result: no" >&5
4342 echo "${ECHO_T}no" >&6
4345 CC=$ac_ct_CC
4346 else
4347 CC="$ac_cv_prog_CC"
4350 if test -z "$CC"; then
4351 if test -n "$ac_tool_prefix"; then
4352 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4353 set dummy ${ac_tool_prefix}cc; ac_word=$2
4354 echo "$as_me:$LINENO: checking for $ac_word" >&5
4355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4356 if test "${ac_cv_prog_CC+set}" = set; then
4357 echo $ECHO_N "(cached) $ECHO_C" >&6
4358 else
4359 if test -n "$CC"; then
4360 ac_cv_prog_CC="$CC" # Let the user override the test.
4361 else
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 for as_dir in $PATH
4365 IFS=$as_save_IFS
4366 test -z "$as_dir" && as_dir=.
4367 for ac_exec_ext in '' $ac_executable_extensions; do
4368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4369 ac_cv_prog_CC="${ac_tool_prefix}cc"
4370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4371 break 2
4373 done
4374 done
4378 CC=$ac_cv_prog_CC
4379 if test -n "$CC"; then
4380 echo "$as_me:$LINENO: result: $CC" >&5
4381 echo "${ECHO_T}$CC" >&6
4382 else
4383 echo "$as_me:$LINENO: result: no" >&5
4384 echo "${ECHO_T}no" >&6
4388 if test -z "$ac_cv_prog_CC"; then
4389 ac_ct_CC=$CC
4390 # Extract the first word of "cc", so it can be a program name with args.
4391 set dummy cc; ac_word=$2
4392 echo "$as_me:$LINENO: checking for $ac_word" >&5
4393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4394 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 else
4397 if test -n "$ac_ct_CC"; then
4398 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4399 else
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 for as_dir in $PATH
4403 IFS=$as_save_IFS
4404 test -z "$as_dir" && as_dir=.
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4407 ac_cv_prog_ac_ct_CC="cc"
4408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4409 break 2
4411 done
4412 done
4416 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4417 if test -n "$ac_ct_CC"; then
4418 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4419 echo "${ECHO_T}$ac_ct_CC" >&6
4420 else
4421 echo "$as_me:$LINENO: result: no" >&5
4422 echo "${ECHO_T}no" >&6
4425 CC=$ac_ct_CC
4426 else
4427 CC="$ac_cv_prog_CC"
4431 if test -z "$CC"; then
4432 # Extract the first word of "cc", so it can be a program name with args.
4433 set dummy cc; ac_word=$2
4434 echo "$as_me:$LINENO: checking for $ac_word" >&5
4435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4436 if test "${ac_cv_prog_CC+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439 if test -n "$CC"; then
4440 ac_cv_prog_CC="$CC" # Let the user override the test.
4441 else
4442 ac_prog_rejected=no
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 for as_dir in $PATH
4446 IFS=$as_save_IFS
4447 test -z "$as_dir" && as_dir=.
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4450 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4451 ac_prog_rejected=yes
4452 continue
4454 ac_cv_prog_CC="cc"
4455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4456 break 2
4458 done
4459 done
4461 if test $ac_prog_rejected = yes; then
4462 # We found a bogon in the path, so make sure we never use it.
4463 set dummy $ac_cv_prog_CC
4464 shift
4465 if test $# != 0; then
4466 # We chose a different compiler from the bogus one.
4467 # However, it has the same basename, so the bogon will be chosen
4468 # first if we set CC to just the basename; use the full file name.
4469 shift
4470 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4475 CC=$ac_cv_prog_CC
4476 if test -n "$CC"; then
4477 echo "$as_me:$LINENO: result: $CC" >&5
4478 echo "${ECHO_T}$CC" >&6
4479 else
4480 echo "$as_me:$LINENO: result: no" >&5
4481 echo "${ECHO_T}no" >&6
4485 if test -z "$CC"; then
4486 if test -n "$ac_tool_prefix"; then
4487 for ac_prog in cl
4489 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4490 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4491 echo "$as_me:$LINENO: checking for $ac_word" >&5
4492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4493 if test "${ac_cv_prog_CC+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4495 else
4496 if test -n "$CC"; then
4497 ac_cv_prog_CC="$CC" # Let the user override the test.
4498 else
4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500 for as_dir in $PATH
4502 IFS=$as_save_IFS
4503 test -z "$as_dir" && as_dir=.
4504 for ac_exec_ext in '' $ac_executable_extensions; do
4505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4506 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4508 break 2
4510 done
4511 done
4515 CC=$ac_cv_prog_CC
4516 if test -n "$CC"; then
4517 echo "$as_me:$LINENO: result: $CC" >&5
4518 echo "${ECHO_T}$CC" >&6
4519 else
4520 echo "$as_me:$LINENO: result: no" >&5
4521 echo "${ECHO_T}no" >&6
4524 test -n "$CC" && break
4525 done
4527 if test -z "$CC"; then
4528 ac_ct_CC=$CC
4529 for ac_prog in cl
4531 # Extract the first word of "$ac_prog", so it can be a program name with args.
4532 set dummy $ac_prog; ac_word=$2
4533 echo "$as_me:$LINENO: checking for $ac_word" >&5
4534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4535 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4536 echo $ECHO_N "(cached) $ECHO_C" >&6
4537 else
4538 if test -n "$ac_ct_CC"; then
4539 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4540 else
4541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 for as_dir in $PATH
4544 IFS=$as_save_IFS
4545 test -z "$as_dir" && as_dir=.
4546 for ac_exec_ext in '' $ac_executable_extensions; do
4547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4548 ac_cv_prog_ac_ct_CC="$ac_prog"
4549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4550 break 2
4552 done
4553 done
4557 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4558 if test -n "$ac_ct_CC"; then
4559 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4560 echo "${ECHO_T}$ac_ct_CC" >&6
4561 else
4562 echo "$as_me:$LINENO: result: no" >&5
4563 echo "${ECHO_T}no" >&6
4566 test -n "$ac_ct_CC" && break
4567 done
4569 CC=$ac_ct_CC
4575 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4576 See \`config.log' for more details." >&5
4577 echo "$as_me: error: no acceptable C compiler found in \$PATH
4578 See \`config.log' for more details." >&2;}
4579 { (exit 1); exit 1; }; }
4581 # Provide some information about the compiler.
4582 echo "$as_me:$LINENO:" \
4583 "checking for C compiler version" >&5
4584 ac_compiler=`set X $ac_compile; echo $2`
4585 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4586 (eval $ac_compiler --version </dev/null >&5) 2>&5
4587 ac_status=$?
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); }
4590 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4591 (eval $ac_compiler -v </dev/null >&5) 2>&5
4592 ac_status=$?
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); }
4595 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4596 (eval $ac_compiler -V </dev/null >&5) 2>&5
4597 ac_status=$?
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }
4601 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4602 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4603 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4605 else
4606 cat >conftest.$ac_ext <<_ACEOF
4607 /* confdefs.h. */
4608 _ACEOF
4609 cat confdefs.h >>conftest.$ac_ext
4610 cat >>conftest.$ac_ext <<_ACEOF
4611 /* end confdefs.h. */
4614 main ()
4616 #ifndef __GNUC__
4617 choke me
4618 #endif
4621 return 0;
4623 _ACEOF
4624 rm -f conftest.$ac_objext
4625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4626 (eval $ac_compile) 2>conftest.er1
4627 ac_status=$?
4628 grep -v '^ *+' conftest.er1 >conftest.err
4629 rm -f conftest.er1
4630 cat conftest.err >&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); } &&
4633 { ac_try='test -z "$ac_c_werror_flag"
4634 || test ! -s conftest.err'
4635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636 (eval $ac_try) 2>&5
4637 ac_status=$?
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); }; } &&
4640 { ac_try='test -s conftest.$ac_objext'
4641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4642 (eval $ac_try) 2>&5
4643 ac_status=$?
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); }; }; then
4646 ac_compiler_gnu=yes
4647 else
4648 echo "$as_me: failed program was:" >&5
4649 sed 's/^/| /' conftest.$ac_ext >&5
4651 ac_compiler_gnu=no
4653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4654 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4657 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4658 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4659 GCC=`test $ac_compiler_gnu = yes && echo yes`
4660 ac_test_CFLAGS=${CFLAGS+set}
4661 ac_save_CFLAGS=$CFLAGS
4662 CFLAGS="-g"
4663 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4664 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4665 if test "${ac_cv_prog_cc_g+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4667 else
4668 cat >conftest.$ac_ext <<_ACEOF
4669 /* confdefs.h. */
4670 _ACEOF
4671 cat confdefs.h >>conftest.$ac_ext
4672 cat >>conftest.$ac_ext <<_ACEOF
4673 /* end confdefs.h. */
4676 main ()
4680 return 0;
4682 _ACEOF
4683 rm -f conftest.$ac_objext
4684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4685 (eval $ac_compile) 2>conftest.er1
4686 ac_status=$?
4687 grep -v '^ *+' conftest.er1 >conftest.err
4688 rm -f conftest.er1
4689 cat conftest.err >&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); } &&
4692 { ac_try='test -z "$ac_c_werror_flag"
4693 || test ! -s conftest.err'
4694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695 (eval $ac_try) 2>&5
4696 ac_status=$?
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }; } &&
4699 { ac_try='test -s conftest.$ac_objext'
4700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701 (eval $ac_try) 2>&5
4702 ac_status=$?
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); }; }; then
4705 ac_cv_prog_cc_g=yes
4706 else
4707 echo "$as_me: failed program was:" >&5
4708 sed 's/^/| /' conftest.$ac_ext >&5
4710 ac_cv_prog_cc_g=no
4712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4714 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4715 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4716 if test "$ac_test_CFLAGS" = set; then
4717 CFLAGS=$ac_save_CFLAGS
4718 elif test $ac_cv_prog_cc_g = yes; then
4719 if test "$GCC" = yes; then
4720 CFLAGS="-g -O2"
4721 else
4722 CFLAGS="-g"
4724 else
4725 if test "$GCC" = yes; then
4726 CFLAGS="-O2"
4727 else
4728 CFLAGS=
4731 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4732 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4733 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4735 else
4736 ac_cv_prog_cc_stdc=no
4737 ac_save_CC=$CC
4738 cat >conftest.$ac_ext <<_ACEOF
4739 /* confdefs.h. */
4740 _ACEOF
4741 cat confdefs.h >>conftest.$ac_ext
4742 cat >>conftest.$ac_ext <<_ACEOF
4743 /* end confdefs.h. */
4744 #include <stdarg.h>
4745 #include <stdio.h>
4746 #include <sys/types.h>
4747 #include <sys/stat.h>
4748 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4749 struct buf { int x; };
4750 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4751 static char *e (p, i)
4752 char **p;
4753 int i;
4755 return p[i];
4757 static char *f (char * (*g) (char **, int), char **p, ...)
4759 char *s;
4760 va_list v;
4761 va_start (v,p);
4762 s = g (p, va_arg (v,int));
4763 va_end (v);
4764 return s;
4767 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4768 function prototypes and stuff, but not '\xHH' hex character constants.
4769 These don't provoke an error unfortunately, instead are silently treated
4770 as 'x'. The following induces an error, until -std1 is added to get
4771 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4772 array size at least. It's necessary to write '\x00'==0 to get something
4773 that's true only with -std1. */
4774 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4776 int test (int i, double x);
4777 struct s1 {int (*f) (int a);};
4778 struct s2 {int (*f) (double a);};
4779 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4780 int argc;
4781 char **argv;
4783 main ()
4785 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4787 return 0;
4789 _ACEOF
4790 # Don't try gcc -ansi; that turns off useful extensions and
4791 # breaks some systems' header files.
4792 # AIX -qlanglvl=ansi
4793 # Ultrix and OSF/1 -std1
4794 # HP-UX 10.20 and later -Ae
4795 # HP-UX older versions -Aa -D_HPUX_SOURCE
4796 # SVR4 -Xc -D__EXTENSIONS__
4797 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4799 CC="$ac_save_CC $ac_arg"
4800 rm -f conftest.$ac_objext
4801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4802 (eval $ac_compile) 2>conftest.er1
4803 ac_status=$?
4804 grep -v '^ *+' conftest.er1 >conftest.err
4805 rm -f conftest.er1
4806 cat conftest.err >&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); } &&
4809 { ac_try='test -z "$ac_c_werror_flag"
4810 || test ! -s conftest.err'
4811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812 (eval $ac_try) 2>&5
4813 ac_status=$?
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); }; } &&
4816 { ac_try='test -s conftest.$ac_objext'
4817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818 (eval $ac_try) 2>&5
4819 ac_status=$?
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); }; }; then
4822 ac_cv_prog_cc_stdc=$ac_arg
4823 break
4824 else
4825 echo "$as_me: failed program was:" >&5
4826 sed 's/^/| /' conftest.$ac_ext >&5
4829 rm -f conftest.err conftest.$ac_objext
4830 done
4831 rm -f conftest.$ac_ext conftest.$ac_objext
4832 CC=$ac_save_CC
4836 case "x$ac_cv_prog_cc_stdc" in
4837 x|xno)
4838 echo "$as_me:$LINENO: result: none needed" >&5
4839 echo "${ECHO_T}none needed" >&6 ;;
4841 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4842 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4843 CC="$CC $ac_cv_prog_cc_stdc" ;;
4844 esac
4846 # Some people use a C++ compiler to compile C. Since we use `exit',
4847 # in C++ we need to declare it. In case someone uses the same compiler
4848 # for both compiling C and C++ we need to have the C++ compiler decide
4849 # the declaration of exit, since it's the most demanding environment.
4850 cat >conftest.$ac_ext <<_ACEOF
4851 #ifndef __cplusplus
4852 choke me
4853 #endif
4854 _ACEOF
4855 rm -f conftest.$ac_objext
4856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4857 (eval $ac_compile) 2>conftest.er1
4858 ac_status=$?
4859 grep -v '^ *+' conftest.er1 >conftest.err
4860 rm -f conftest.er1
4861 cat conftest.err >&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); } &&
4864 { ac_try='test -z "$ac_c_werror_flag"
4865 || test ! -s conftest.err'
4866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867 (eval $ac_try) 2>&5
4868 ac_status=$?
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); }; } &&
4871 { ac_try='test -s conftest.$ac_objext'
4872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873 (eval $ac_try) 2>&5
4874 ac_status=$?
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); }; }; then
4877 for ac_declaration in \
4878 '' \
4879 'extern "C" void std::exit (int) throw (); using std::exit;' \
4880 'extern "C" void std::exit (int); using std::exit;' \
4881 'extern "C" void exit (int) throw ();' \
4882 'extern "C" void exit (int);' \
4883 'void exit (int);'
4885 cat >conftest.$ac_ext <<_ACEOF
4886 /* confdefs.h. */
4887 _ACEOF
4888 cat confdefs.h >>conftest.$ac_ext
4889 cat >>conftest.$ac_ext <<_ACEOF
4890 /* end confdefs.h. */
4891 $ac_declaration
4892 #include <stdlib.h>
4894 main ()
4896 exit (42);
4898 return 0;
4900 _ACEOF
4901 rm -f conftest.$ac_objext
4902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4903 (eval $ac_compile) 2>conftest.er1
4904 ac_status=$?
4905 grep -v '^ *+' conftest.er1 >conftest.err
4906 rm -f conftest.er1
4907 cat conftest.err >&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } &&
4910 { ac_try='test -z "$ac_c_werror_flag"
4911 || test ! -s conftest.err'
4912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4913 (eval $ac_try) 2>&5
4914 ac_status=$?
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); }; } &&
4917 { ac_try='test -s conftest.$ac_objext'
4918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919 (eval $ac_try) 2>&5
4920 ac_status=$?
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); }; }; then
4924 else
4925 echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.$ac_ext >&5
4928 continue
4930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4931 cat >conftest.$ac_ext <<_ACEOF
4932 /* confdefs.h. */
4933 _ACEOF
4934 cat confdefs.h >>conftest.$ac_ext
4935 cat >>conftest.$ac_ext <<_ACEOF
4936 /* end confdefs.h. */
4937 $ac_declaration
4939 main ()
4941 exit (42);
4943 return 0;
4945 _ACEOF
4946 rm -f conftest.$ac_objext
4947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4948 (eval $ac_compile) 2>conftest.er1
4949 ac_status=$?
4950 grep -v '^ *+' conftest.er1 >conftest.err
4951 rm -f conftest.er1
4952 cat conftest.err >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } &&
4955 { ac_try='test -z "$ac_c_werror_flag"
4956 || test ! -s conftest.err'
4957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4958 (eval $ac_try) 2>&5
4959 ac_status=$?
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); }; } &&
4962 { ac_try='test -s conftest.$ac_objext'
4963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4964 (eval $ac_try) 2>&5
4965 ac_status=$?
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); }; }; then
4968 break
4969 else
4970 echo "$as_me: failed program was:" >&5
4971 sed 's/^/| /' conftest.$ac_ext >&5
4974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4975 done
4976 rm -f conftest*
4977 if test -n "$ac_declaration"; then
4978 echo '#ifdef __cplusplus' >>confdefs.h
4979 echo $ac_declaration >>confdefs.h
4980 echo '#endif' >>confdefs.h
4983 else
4984 echo "$as_me: failed program was:" >&5
4985 sed 's/^/| /' conftest.$ac_ext >&5
4988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4989 ac_ext=c
4990 ac_cpp='$CPP $CPPFLAGS'
4991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4996 cat >>confdefs.h <<\_ACEOF
4997 #define _GNU_SOURCE 1
4998 _ACEOF
5002 for ac_prog in 'bison -y' byacc
5004 # Extract the first word of "$ac_prog", so it can be a program name with args.
5005 set dummy $ac_prog; ac_word=$2
5006 echo "$as_me:$LINENO: checking for $ac_word" >&5
5007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5008 if test "${ac_cv_prog_YACC+set}" = set; then
5009 echo $ECHO_N "(cached) $ECHO_C" >&6
5010 else
5011 if test -n "$YACC"; then
5012 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5013 else
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 for as_dir in $PATH
5017 IFS=$as_save_IFS
5018 test -z "$as_dir" && as_dir=.
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5021 ac_cv_prog_YACC="$ac_prog"
5022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5023 break 2
5025 done
5026 done
5030 YACC=$ac_cv_prog_YACC
5031 if test -n "$YACC"; then
5032 echo "$as_me:$LINENO: result: $YACC" >&5
5033 echo "${ECHO_T}$YACC" >&6
5034 else
5035 echo "$as_me:$LINENO: result: no" >&5
5036 echo "${ECHO_T}no" >&6
5039 test -n "$YACC" && break
5040 done
5041 test -n "$YACC" || YACC="yacc"
5043 for ac_prog in flex lex
5045 # Extract the first word of "$ac_prog", so it can be a program name with args.
5046 set dummy $ac_prog; ac_word=$2
5047 echo "$as_me:$LINENO: checking for $ac_word" >&5
5048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5049 if test "${ac_cv_prog_LEX+set}" = set; then
5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5051 else
5052 if test -n "$LEX"; then
5053 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5054 else
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH
5058 IFS=$as_save_IFS
5059 test -z "$as_dir" && as_dir=.
5060 for ac_exec_ext in '' $ac_executable_extensions; do
5061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5062 ac_cv_prog_LEX="$ac_prog"
5063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5064 break 2
5066 done
5067 done
5071 LEX=$ac_cv_prog_LEX
5072 if test -n "$LEX"; then
5073 echo "$as_me:$LINENO: result: $LEX" >&5
5074 echo "${ECHO_T}$LEX" >&6
5075 else
5076 echo "$as_me:$LINENO: result: no" >&5
5077 echo "${ECHO_T}no" >&6
5080 test -n "$LEX" && break
5081 done
5082 test -n "$LEX" || LEX=":"
5084 if test -z "$LEXLIB"
5085 then
5086 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5087 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5088 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5089 echo $ECHO_N "(cached) $ECHO_C" >&6
5090 else
5091 ac_check_lib_save_LIBS=$LIBS
5092 LIBS="-lfl $LIBS"
5093 cat >conftest.$ac_ext <<_ACEOF
5094 /* confdefs.h. */
5095 _ACEOF
5096 cat confdefs.h >>conftest.$ac_ext
5097 cat >>conftest.$ac_ext <<_ACEOF
5098 /* end confdefs.h. */
5100 /* Override any gcc2 internal prototype to avoid an error. */
5101 #ifdef __cplusplus
5102 extern "C"
5103 #endif
5104 /* We use char because int might match the return type of a gcc2
5105 builtin and then its argument prototype would still apply. */
5106 char yywrap ();
5108 main ()
5110 yywrap ();
5112 return 0;
5114 _ACEOF
5115 rm -f conftest.$ac_objext conftest$ac_exeext
5116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5117 (eval $ac_link) 2>conftest.er1
5118 ac_status=$?
5119 grep -v '^ *+' conftest.er1 >conftest.err
5120 rm -f conftest.er1
5121 cat conftest.err >&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); } &&
5124 { ac_try='test -z "$ac_c_werror_flag"
5125 || test ! -s conftest.err'
5126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5127 (eval $ac_try) 2>&5
5128 ac_status=$?
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); }; } &&
5131 { ac_try='test -s conftest$ac_exeext'
5132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133 (eval $ac_try) 2>&5
5134 ac_status=$?
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); }; }; then
5137 ac_cv_lib_fl_yywrap=yes
5138 else
5139 echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.$ac_ext >&5
5142 ac_cv_lib_fl_yywrap=no
5144 rm -f conftest.err conftest.$ac_objext \
5145 conftest$ac_exeext conftest.$ac_ext
5146 LIBS=$ac_check_lib_save_LIBS
5148 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5149 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5150 if test $ac_cv_lib_fl_yywrap = yes; then
5151 LEXLIB="-lfl"
5152 else
5153 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5154 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5155 if test "${ac_cv_lib_l_yywrap+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5157 else
5158 ac_check_lib_save_LIBS=$LIBS
5159 LIBS="-ll $LIBS"
5160 cat >conftest.$ac_ext <<_ACEOF
5161 /* confdefs.h. */
5162 _ACEOF
5163 cat confdefs.h >>conftest.$ac_ext
5164 cat >>conftest.$ac_ext <<_ACEOF
5165 /* end confdefs.h. */
5167 /* Override any gcc2 internal prototype to avoid an error. */
5168 #ifdef __cplusplus
5169 extern "C"
5170 #endif
5171 /* We use char because int might match the return type of a gcc2
5172 builtin and then its argument prototype would still apply. */
5173 char yywrap ();
5175 main ()
5177 yywrap ();
5179 return 0;
5181 _ACEOF
5182 rm -f conftest.$ac_objext conftest$ac_exeext
5183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5184 (eval $ac_link) 2>conftest.er1
5185 ac_status=$?
5186 grep -v '^ *+' conftest.er1 >conftest.err
5187 rm -f conftest.er1
5188 cat conftest.err >&5
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); } &&
5191 { ac_try='test -z "$ac_c_werror_flag"
5192 || test ! -s conftest.err'
5193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5194 (eval $ac_try) 2>&5
5195 ac_status=$?
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); }; } &&
5198 { ac_try='test -s conftest$ac_exeext'
5199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200 (eval $ac_try) 2>&5
5201 ac_status=$?
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); }; }; then
5204 ac_cv_lib_l_yywrap=yes
5205 else
5206 echo "$as_me: failed program was:" >&5
5207 sed 's/^/| /' conftest.$ac_ext >&5
5209 ac_cv_lib_l_yywrap=no
5211 rm -f conftest.err conftest.$ac_objext \
5212 conftest$ac_exeext conftest.$ac_ext
5213 LIBS=$ac_check_lib_save_LIBS
5215 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5216 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5217 if test $ac_cv_lib_l_yywrap = yes; then
5218 LEXLIB="-ll"
5225 if test "x$LEX" != "x:"; then
5226 echo "$as_me:$LINENO: checking lex output file root" >&5
5227 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5228 if test "${ac_cv_prog_lex_root+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5230 else
5231 # The minimal lex program is just a single line: %%. But some broken lexes
5232 # (Solaris, I think it was) want two %% lines, so accommodate them.
5233 cat >conftest.l <<_ACEOF
5236 _ACEOF
5237 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5238 (eval $LEX conftest.l) 2>&5
5239 ac_status=$?
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); }
5242 if test -f lex.yy.c; then
5243 ac_cv_prog_lex_root=lex.yy
5244 elif test -f lexyy.c; then
5245 ac_cv_prog_lex_root=lexyy
5246 else
5247 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5248 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5249 { (exit 1); exit 1; }; }
5252 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5253 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5254 rm -f conftest.l
5255 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5257 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5258 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5259 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5261 else
5262 # POSIX says lex can declare yytext either as a pointer or an array; the
5263 # default is implementation-dependent. Figure out which it is, since
5264 # not all implementations provide the %pointer and %array declarations.
5265 ac_cv_prog_lex_yytext_pointer=no
5266 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5267 ac_save_LIBS=$LIBS
5268 LIBS="$LIBS $LEXLIB"
5269 cat >conftest.$ac_ext <<_ACEOF
5270 `cat $LEX_OUTPUT_ROOT.c`
5271 _ACEOF
5272 rm -f conftest.$ac_objext conftest$ac_exeext
5273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5274 (eval $ac_link) 2>conftest.er1
5275 ac_status=$?
5276 grep -v '^ *+' conftest.er1 >conftest.err
5277 rm -f conftest.er1
5278 cat conftest.err >&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); } &&
5281 { ac_try='test -z "$ac_c_werror_flag"
5282 || test ! -s conftest.err'
5283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284 (eval $ac_try) 2>&5
5285 ac_status=$?
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); }; } &&
5288 { ac_try='test -s conftest$ac_exeext'
5289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5290 (eval $ac_try) 2>&5
5291 ac_status=$?
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }; }; then
5294 ac_cv_prog_lex_yytext_pointer=yes
5295 else
5296 echo "$as_me: failed program was:" >&5
5297 sed 's/^/| /' conftest.$ac_ext >&5
5300 rm -f conftest.err conftest.$ac_objext \
5301 conftest$ac_exeext conftest.$ac_ext
5302 LIBS=$ac_save_LIBS
5303 rm -f "${LEX_OUTPUT_ROOT}.c"
5306 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5307 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
5308 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5310 cat >>confdefs.h <<\_ACEOF
5311 #define YYTEXT_POINTER 1
5312 _ACEOF
5317 if test "$LEX" = :; then
5318 LEX=${am_missing_run}flex
5321 ALL_LINGUAS="fr tr ja es sv da zh_CN ru ro rw zh_TW fi vi"
5322 if test -n "$ac_tool_prefix"; then
5323 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5324 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5325 echo "$as_me:$LINENO: checking for $ac_word" >&5
5326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5327 if test "${ac_cv_prog_RANLIB+set}" = set; then
5328 echo $ECHO_N "(cached) $ECHO_C" >&6
5329 else
5330 if test -n "$RANLIB"; then
5331 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5332 else
5333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334 for as_dir in $PATH
5336 IFS=$as_save_IFS
5337 test -z "$as_dir" && as_dir=.
5338 for ac_exec_ext in '' $ac_executable_extensions; do
5339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5340 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5342 break 2
5344 done
5345 done
5349 RANLIB=$ac_cv_prog_RANLIB
5350 if test -n "$RANLIB"; then
5351 echo "$as_me:$LINENO: result: $RANLIB" >&5
5352 echo "${ECHO_T}$RANLIB" >&6
5353 else
5354 echo "$as_me:$LINENO: result: no" >&5
5355 echo "${ECHO_T}no" >&6
5359 if test -z "$ac_cv_prog_RANLIB"; then
5360 ac_ct_RANLIB=$RANLIB
5361 # Extract the first word of "ranlib", so it can be a program name with args.
5362 set dummy ranlib; ac_word=$2
5363 echo "$as_me:$LINENO: checking for $ac_word" >&5
5364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5365 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5366 echo $ECHO_N "(cached) $ECHO_C" >&6
5367 else
5368 if test -n "$ac_ct_RANLIB"; then
5369 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5370 else
5371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372 for as_dir in $PATH
5374 IFS=$as_save_IFS
5375 test -z "$as_dir" && as_dir=.
5376 for ac_exec_ext in '' $ac_executable_extensions; do
5377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5378 ac_cv_prog_ac_ct_RANLIB="ranlib"
5379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5380 break 2
5382 done
5383 done
5385 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5388 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5389 if test -n "$ac_ct_RANLIB"; then
5390 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5391 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5392 else
5393 echo "$as_me:$LINENO: result: no" >&5
5394 echo "${ECHO_T}no" >&6
5397 RANLIB=$ac_ct_RANLIB
5398 else
5399 RANLIB="$ac_cv_prog_RANLIB"
5402 ac_ext=c
5403 ac_cpp='$CPP $CPPFLAGS'
5404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5407 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5408 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5409 # On Suns, sometimes $CPP names a directory.
5410 if test -n "$CPP" && test -d "$CPP"; then
5411 CPP=
5413 if test -z "$CPP"; then
5414 if test "${ac_cv_prog_CPP+set}" = set; then
5415 echo $ECHO_N "(cached) $ECHO_C" >&6
5416 else
5417 # Double quotes because CPP needs to be expanded
5418 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5420 ac_preproc_ok=false
5421 for ac_c_preproc_warn_flag in '' yes
5423 # Use a header file that comes with gcc, so configuring glibc
5424 # with a fresh cross-compiler works.
5425 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5426 # <limits.h> exists even on freestanding compilers.
5427 # On the NeXT, cc -E runs the code through the compiler's parser,
5428 # not just through cpp. "Syntax error" is here to catch this case.
5429 cat >conftest.$ac_ext <<_ACEOF
5430 /* confdefs.h. */
5431 _ACEOF
5432 cat confdefs.h >>conftest.$ac_ext
5433 cat >>conftest.$ac_ext <<_ACEOF
5434 /* end confdefs.h. */
5435 #ifdef __STDC__
5436 # include <limits.h>
5437 #else
5438 # include <assert.h>
5439 #endif
5440 Syntax error
5441 _ACEOF
5442 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5443 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5444 ac_status=$?
5445 grep -v '^ *+' conftest.er1 >conftest.err
5446 rm -f conftest.er1
5447 cat conftest.err >&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); } >/dev/null; then
5450 if test -s conftest.err; then
5451 ac_cpp_err=$ac_c_preproc_warn_flag
5452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5453 else
5454 ac_cpp_err=
5456 else
5457 ac_cpp_err=yes
5459 if test -z "$ac_cpp_err"; then
5461 else
5462 echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5465 # Broken: fails on valid input.
5466 continue
5468 rm -f conftest.err conftest.$ac_ext
5470 # OK, works on sane cases. Now check whether non-existent headers
5471 # can be detected and how.
5472 cat >conftest.$ac_ext <<_ACEOF
5473 /* confdefs.h. */
5474 _ACEOF
5475 cat confdefs.h >>conftest.$ac_ext
5476 cat >>conftest.$ac_ext <<_ACEOF
5477 /* end confdefs.h. */
5478 #include <ac_nonexistent.h>
5479 _ACEOF
5480 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5482 ac_status=$?
5483 grep -v '^ *+' conftest.er1 >conftest.err
5484 rm -f conftest.er1
5485 cat conftest.err >&5
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); } >/dev/null; then
5488 if test -s conftest.err; then
5489 ac_cpp_err=$ac_c_preproc_warn_flag
5490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5491 else
5492 ac_cpp_err=
5494 else
5495 ac_cpp_err=yes
5497 if test -z "$ac_cpp_err"; then
5498 # Broken: success on invalid input.
5499 continue
5500 else
5501 echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5504 # Passes both tests.
5505 ac_preproc_ok=:
5506 break
5508 rm -f conftest.err conftest.$ac_ext
5510 done
5511 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5512 rm -f conftest.err conftest.$ac_ext
5513 if $ac_preproc_ok; then
5514 break
5517 done
5518 ac_cv_prog_CPP=$CPP
5521 CPP=$ac_cv_prog_CPP
5522 else
5523 ac_cv_prog_CPP=$CPP
5525 echo "$as_me:$LINENO: result: $CPP" >&5
5526 echo "${ECHO_T}$CPP" >&6
5527 ac_preproc_ok=false
5528 for ac_c_preproc_warn_flag in '' yes
5530 # Use a header file that comes with gcc, so configuring glibc
5531 # with a fresh cross-compiler works.
5532 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5533 # <limits.h> exists even on freestanding compilers.
5534 # On the NeXT, cc -E runs the code through the compiler's parser,
5535 # not just through cpp. "Syntax error" is here to catch this case.
5536 cat >conftest.$ac_ext <<_ACEOF
5537 /* confdefs.h. */
5538 _ACEOF
5539 cat confdefs.h >>conftest.$ac_ext
5540 cat >>conftest.$ac_ext <<_ACEOF
5541 /* end confdefs.h. */
5542 #ifdef __STDC__
5543 # include <limits.h>
5544 #else
5545 # include <assert.h>
5546 #endif
5547 Syntax error
5548 _ACEOF
5549 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5550 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5551 ac_status=$?
5552 grep -v '^ *+' conftest.er1 >conftest.err
5553 rm -f conftest.er1
5554 cat conftest.err >&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); } >/dev/null; then
5557 if test -s conftest.err; then
5558 ac_cpp_err=$ac_c_preproc_warn_flag
5559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5560 else
5561 ac_cpp_err=
5563 else
5564 ac_cpp_err=yes
5566 if test -z "$ac_cpp_err"; then
5568 else
5569 echo "$as_me: failed program was:" >&5
5570 sed 's/^/| /' conftest.$ac_ext >&5
5572 # Broken: fails on valid input.
5573 continue
5575 rm -f conftest.err conftest.$ac_ext
5577 # OK, works on sane cases. Now check whether non-existent headers
5578 # can be detected and how.
5579 cat >conftest.$ac_ext <<_ACEOF
5580 /* confdefs.h. */
5581 _ACEOF
5582 cat confdefs.h >>conftest.$ac_ext
5583 cat >>conftest.$ac_ext <<_ACEOF
5584 /* end confdefs.h. */
5585 #include <ac_nonexistent.h>
5586 _ACEOF
5587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5589 ac_status=$?
5590 grep -v '^ *+' conftest.er1 >conftest.err
5591 rm -f conftest.er1
5592 cat conftest.err >&5
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); } >/dev/null; then
5595 if test -s conftest.err; then
5596 ac_cpp_err=$ac_c_preproc_warn_flag
5597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5598 else
5599 ac_cpp_err=
5601 else
5602 ac_cpp_err=yes
5604 if test -z "$ac_cpp_err"; then
5605 # Broken: success on invalid input.
5606 continue
5607 else
5608 echo "$as_me: failed program was:" >&5
5609 sed 's/^/| /' conftest.$ac_ext >&5
5611 # Passes both tests.
5612 ac_preproc_ok=:
5613 break
5615 rm -f conftest.err conftest.$ac_ext
5617 done
5618 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5619 rm -f conftest.err conftest.$ac_ext
5620 if $ac_preproc_ok; then
5622 else
5623 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5624 See \`config.log' for more details." >&5
5625 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5626 See \`config.log' for more details." >&2;}
5627 { (exit 1); exit 1; }; }
5630 ac_ext=c
5631 ac_cpp='$CPP $CPPFLAGS'
5632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5637 echo "$as_me:$LINENO: checking for egrep" >&5
5638 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5639 if test "${ac_cv_prog_egrep+set}" = set; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5643 then ac_cv_prog_egrep='grep -E'
5644 else ac_cv_prog_egrep='egrep'
5647 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5648 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5649 EGREP=$ac_cv_prog_egrep
5652 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5653 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5654 if test "${ac_cv_header_stdc+set}" = set; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5656 else
5657 cat >conftest.$ac_ext <<_ACEOF
5658 /* confdefs.h. */
5659 _ACEOF
5660 cat confdefs.h >>conftest.$ac_ext
5661 cat >>conftest.$ac_ext <<_ACEOF
5662 /* end confdefs.h. */
5663 #include <stdlib.h>
5664 #include <stdarg.h>
5665 #include <string.h>
5666 #include <float.h>
5669 main ()
5673 return 0;
5675 _ACEOF
5676 rm -f conftest.$ac_objext
5677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5678 (eval $ac_compile) 2>conftest.er1
5679 ac_status=$?
5680 grep -v '^ *+' conftest.er1 >conftest.err
5681 rm -f conftest.er1
5682 cat conftest.err >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); } &&
5685 { ac_try='test -z "$ac_c_werror_flag"
5686 || test ! -s conftest.err'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688 (eval $ac_try) 2>&5
5689 ac_status=$?
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; } &&
5692 { ac_try='test -s conftest.$ac_objext'
5693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5694 (eval $ac_try) 2>&5
5695 ac_status=$?
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); }; }; then
5698 ac_cv_header_stdc=yes
5699 else
5700 echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.$ac_ext >&5
5703 ac_cv_header_stdc=no
5705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5707 if test $ac_cv_header_stdc = yes; then
5708 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5709 cat >conftest.$ac_ext <<_ACEOF
5710 /* confdefs.h. */
5711 _ACEOF
5712 cat confdefs.h >>conftest.$ac_ext
5713 cat >>conftest.$ac_ext <<_ACEOF
5714 /* end confdefs.h. */
5715 #include <string.h>
5717 _ACEOF
5718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5719 $EGREP "memchr" >/dev/null 2>&1; then
5721 else
5722 ac_cv_header_stdc=no
5724 rm -f conftest*
5728 if test $ac_cv_header_stdc = yes; then
5729 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5730 cat >conftest.$ac_ext <<_ACEOF
5731 /* confdefs.h. */
5732 _ACEOF
5733 cat confdefs.h >>conftest.$ac_ext
5734 cat >>conftest.$ac_ext <<_ACEOF
5735 /* end confdefs.h. */
5736 #include <stdlib.h>
5738 _ACEOF
5739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5740 $EGREP "free" >/dev/null 2>&1; then
5742 else
5743 ac_cv_header_stdc=no
5745 rm -f conftest*
5749 if test $ac_cv_header_stdc = yes; then
5750 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5751 if test "$cross_compiling" = yes; then
5753 else
5754 cat >conftest.$ac_ext <<_ACEOF
5755 /* confdefs.h. */
5756 _ACEOF
5757 cat confdefs.h >>conftest.$ac_ext
5758 cat >>conftest.$ac_ext <<_ACEOF
5759 /* end confdefs.h. */
5760 #include <ctype.h>
5761 #if ((' ' & 0x0FF) == 0x020)
5762 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5763 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5764 #else
5765 # define ISLOWER(c) \
5766 (('a' <= (c) && (c) <= 'i') \
5767 || ('j' <= (c) && (c) <= 'r') \
5768 || ('s' <= (c) && (c) <= 'z'))
5769 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5770 #endif
5772 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5774 main ()
5776 int i;
5777 for (i = 0; i < 256; i++)
5778 if (XOR (islower (i), ISLOWER (i))
5779 || toupper (i) != TOUPPER (i))
5780 exit(2);
5781 exit (0);
5783 _ACEOF
5784 rm -f conftest$ac_exeext
5785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5786 (eval $ac_link) 2>&5
5787 ac_status=$?
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791 (eval $ac_try) 2>&5
5792 ac_status=$?
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; }; then
5796 else
5797 echo "$as_me: program exited with status $ac_status" >&5
5798 echo "$as_me: failed program was:" >&5
5799 sed 's/^/| /' conftest.$ac_ext >&5
5801 ( exit $ac_status )
5802 ac_cv_header_stdc=no
5804 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5808 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5809 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5810 if test $ac_cv_header_stdc = yes; then
5812 cat >>confdefs.h <<\_ACEOF
5813 #define STDC_HEADERS 1
5814 _ACEOF
5818 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5819 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5820 if test "${ac_cv_c_const+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823 cat >conftest.$ac_ext <<_ACEOF
5824 /* confdefs.h. */
5825 _ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5831 main ()
5833 /* FIXME: Include the comments suggested by Paul. */
5834 #ifndef __cplusplus
5835 /* Ultrix mips cc rejects this. */
5836 typedef int charset[2];
5837 const charset x;
5838 /* SunOS 4.1.1 cc rejects this. */
5839 char const *const *ccp;
5840 char **p;
5841 /* NEC SVR4.0.2 mips cc rejects this. */
5842 struct point {int x, y;};
5843 static struct point const zero = {0,0};
5844 /* AIX XL C 1.02.0.0 rejects this.
5845 It does not let you subtract one const X* pointer from another in
5846 an arm of an if-expression whose if-part is not a constant
5847 expression */
5848 const char *g = "string";
5849 ccp = &g + (g ? g-g : 0);
5850 /* HPUX 7.0 cc rejects these. */
5851 ++ccp;
5852 p = (char**) ccp;
5853 ccp = (char const *const *) p;
5854 { /* SCO 3.2v4 cc rejects this. */
5855 char *t;
5856 char const *s = 0 ? (char *) 0 : (char const *) 0;
5858 *t++ = 0;
5860 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5861 int x[] = {25, 17};
5862 const int *foo = &x[0];
5863 ++foo;
5865 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5866 typedef const int *iptr;
5867 iptr p = 0;
5868 ++p;
5870 { /* AIX XL C 1.02.0.0 rejects this saying
5871 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5872 struct s { int j; const int *ap[3]; };
5873 struct s *b; b->j = 5;
5875 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5876 const int foo = 10;
5878 #endif
5881 return 0;
5883 _ACEOF
5884 rm -f conftest.$ac_objext
5885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5886 (eval $ac_compile) 2>conftest.er1
5887 ac_status=$?
5888 grep -v '^ *+' conftest.er1 >conftest.err
5889 rm -f conftest.er1
5890 cat conftest.err >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } &&
5893 { ac_try='test -z "$ac_c_werror_flag"
5894 || test ! -s conftest.err'
5895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5896 (eval $ac_try) 2>&5
5897 ac_status=$?
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); }; } &&
5900 { ac_try='test -s conftest.$ac_objext'
5901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902 (eval $ac_try) 2>&5
5903 ac_status=$?
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); }; }; then
5906 ac_cv_c_const=yes
5907 else
5908 echo "$as_me: failed program was:" >&5
5909 sed 's/^/| /' conftest.$ac_ext >&5
5911 ac_cv_c_const=no
5913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5915 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5916 echo "${ECHO_T}$ac_cv_c_const" >&6
5917 if test $ac_cv_c_const = no; then
5919 cat >>confdefs.h <<\_ACEOF
5920 #define const
5921 _ACEOF
5925 echo "$as_me:$LINENO: checking for inline" >&5
5926 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5927 if test "${ac_cv_c_inline+set}" = set; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
5929 else
5930 ac_cv_c_inline=no
5931 for ac_kw in inline __inline__ __inline; do
5932 cat >conftest.$ac_ext <<_ACEOF
5933 /* confdefs.h. */
5934 _ACEOF
5935 cat confdefs.h >>conftest.$ac_ext
5936 cat >>conftest.$ac_ext <<_ACEOF
5937 /* end confdefs.h. */
5938 #ifndef __cplusplus
5939 typedef int foo_t;
5940 static $ac_kw foo_t static_foo () {return 0; }
5941 $ac_kw foo_t foo () {return 0; }
5942 #endif
5944 _ACEOF
5945 rm -f conftest.$ac_objext
5946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5947 (eval $ac_compile) 2>conftest.er1
5948 ac_status=$?
5949 grep -v '^ *+' conftest.er1 >conftest.err
5950 rm -f conftest.er1
5951 cat conftest.err >&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } &&
5954 { ac_try='test -z "$ac_c_werror_flag"
5955 || test ! -s conftest.err'
5956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957 (eval $ac_try) 2>&5
5958 ac_status=$?
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; } &&
5961 { ac_try='test -s conftest.$ac_objext'
5962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5963 (eval $ac_try) 2>&5
5964 ac_status=$?
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); }; }; then
5967 ac_cv_c_inline=$ac_kw; break
5968 else
5969 echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5974 done
5977 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5978 echo "${ECHO_T}$ac_cv_c_inline" >&6
5981 case $ac_cv_c_inline in
5982 inline | yes) ;;
5984 case $ac_cv_c_inline in
5985 no) ac_val=;;
5986 *) ac_val=$ac_cv_c_inline;;
5987 esac
5988 cat >>confdefs.h <<_ACEOF
5989 #ifndef __cplusplus
5990 #define inline $ac_val
5991 #endif
5992 _ACEOF
5994 esac
5996 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6006 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6007 inttypes.h stdint.h unistd.h
6009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6010 echo "$as_me:$LINENO: checking for $ac_header" >&5
6011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6013 echo $ECHO_N "(cached) $ECHO_C" >&6
6014 else
6015 cat >conftest.$ac_ext <<_ACEOF
6016 /* confdefs.h. */
6017 _ACEOF
6018 cat confdefs.h >>conftest.$ac_ext
6019 cat >>conftest.$ac_ext <<_ACEOF
6020 /* end confdefs.h. */
6021 $ac_includes_default
6023 #include <$ac_header>
6024 _ACEOF
6025 rm -f conftest.$ac_objext
6026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6027 (eval $ac_compile) 2>conftest.er1
6028 ac_status=$?
6029 grep -v '^ *+' conftest.er1 >conftest.err
6030 rm -f conftest.er1
6031 cat conftest.err >&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); } &&
6034 { ac_try='test -z "$ac_c_werror_flag"
6035 || test ! -s conftest.err'
6036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6037 (eval $ac_try) 2>&5
6038 ac_status=$?
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); }; } &&
6041 { ac_try='test -s conftest.$ac_objext'
6042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6043 (eval $ac_try) 2>&5
6044 ac_status=$?
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); }; }; then
6047 eval "$as_ac_Header=yes"
6048 else
6049 echo "$as_me: failed program was:" >&5
6050 sed 's/^/| /' conftest.$ac_ext >&5
6052 eval "$as_ac_Header=no"
6054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6059 cat >>confdefs.h <<_ACEOF
6060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6061 _ACEOF
6065 done
6068 echo "$as_me:$LINENO: checking for off_t" >&5
6069 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6070 if test "${ac_cv_type_off_t+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6072 else
6073 cat >conftest.$ac_ext <<_ACEOF
6074 /* confdefs.h. */
6075 _ACEOF
6076 cat confdefs.h >>conftest.$ac_ext
6077 cat >>conftest.$ac_ext <<_ACEOF
6078 /* end confdefs.h. */
6079 $ac_includes_default
6081 main ()
6083 if ((off_t *) 0)
6084 return 0;
6085 if (sizeof (off_t))
6086 return 0;
6088 return 0;
6090 _ACEOF
6091 rm -f conftest.$ac_objext
6092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6093 (eval $ac_compile) 2>conftest.er1
6094 ac_status=$?
6095 grep -v '^ *+' conftest.er1 >conftest.err
6096 rm -f conftest.er1
6097 cat conftest.err >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } &&
6100 { ac_try='test -z "$ac_c_werror_flag"
6101 || test ! -s conftest.err'
6102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6103 (eval $ac_try) 2>&5
6104 ac_status=$?
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); }; } &&
6107 { ac_try='test -s conftest.$ac_objext'
6108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6109 (eval $ac_try) 2>&5
6110 ac_status=$?
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); }; }; then
6113 ac_cv_type_off_t=yes
6114 else
6115 echo "$as_me: failed program was:" >&5
6116 sed 's/^/| /' conftest.$ac_ext >&5
6118 ac_cv_type_off_t=no
6120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6122 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6123 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6124 if test $ac_cv_type_off_t = yes; then
6126 else
6128 cat >>confdefs.h <<_ACEOF
6129 #define off_t long
6130 _ACEOF
6134 echo "$as_me:$LINENO: checking for size_t" >&5
6135 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6136 if test "${ac_cv_type_size_t+set}" = set; then
6137 echo $ECHO_N "(cached) $ECHO_C" >&6
6138 else
6139 cat >conftest.$ac_ext <<_ACEOF
6140 /* confdefs.h. */
6141 _ACEOF
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h. */
6145 $ac_includes_default
6147 main ()
6149 if ((size_t *) 0)
6150 return 0;
6151 if (sizeof (size_t))
6152 return 0;
6154 return 0;
6156 _ACEOF
6157 rm -f conftest.$ac_objext
6158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6159 (eval $ac_compile) 2>conftest.er1
6160 ac_status=$?
6161 grep -v '^ *+' conftest.er1 >conftest.err
6162 rm -f conftest.er1
6163 cat conftest.err >&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } &&
6166 { ac_try='test -z "$ac_c_werror_flag"
6167 || test ! -s conftest.err'
6168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6169 (eval $ac_try) 2>&5
6170 ac_status=$?
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); }; } &&
6173 { ac_try='test -s conftest.$ac_objext'
6174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6175 (eval $ac_try) 2>&5
6176 ac_status=$?
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }; }; then
6179 ac_cv_type_size_t=yes
6180 else
6181 echo "$as_me: failed program was:" >&5
6182 sed 's/^/| /' conftest.$ac_ext >&5
6184 ac_cv_type_size_t=no
6186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6188 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6189 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6190 if test $ac_cv_type_size_t = yes; then
6192 else
6194 cat >>confdefs.h <<_ACEOF
6195 #define size_t unsigned
6196 _ACEOF
6200 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6201 # for constant arguments. Useless!
6202 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6203 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6204 if test "${ac_cv_working_alloca_h+set}" = set; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
6206 else
6207 cat >conftest.$ac_ext <<_ACEOF
6208 /* confdefs.h. */
6209 _ACEOF
6210 cat confdefs.h >>conftest.$ac_ext
6211 cat >>conftest.$ac_ext <<_ACEOF
6212 /* end confdefs.h. */
6213 #include <alloca.h>
6215 main ()
6217 char *p = (char *) alloca (2 * sizeof (int));
6219 return 0;
6221 _ACEOF
6222 rm -f conftest.$ac_objext conftest$ac_exeext
6223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6224 (eval $ac_link) 2>conftest.er1
6225 ac_status=$?
6226 grep -v '^ *+' conftest.er1 >conftest.err
6227 rm -f conftest.er1
6228 cat conftest.err >&5
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); } &&
6231 { ac_try='test -z "$ac_c_werror_flag"
6232 || test ! -s conftest.err'
6233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6234 (eval $ac_try) 2>&5
6235 ac_status=$?
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); }; } &&
6238 { ac_try='test -s conftest$ac_exeext'
6239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6240 (eval $ac_try) 2>&5
6241 ac_status=$?
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); }; }; then
6244 ac_cv_working_alloca_h=yes
6245 else
6246 echo "$as_me: failed program was:" >&5
6247 sed 's/^/| /' conftest.$ac_ext >&5
6249 ac_cv_working_alloca_h=no
6251 rm -f conftest.err conftest.$ac_objext \
6252 conftest$ac_exeext conftest.$ac_ext
6254 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6255 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6256 if test $ac_cv_working_alloca_h = yes; then
6258 cat >>confdefs.h <<\_ACEOF
6259 #define HAVE_ALLOCA_H 1
6260 _ACEOF
6264 echo "$as_me:$LINENO: checking for alloca" >&5
6265 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6266 if test "${ac_cv_func_alloca_works+set}" = set; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6268 else
6269 cat >conftest.$ac_ext <<_ACEOF
6270 /* confdefs.h. */
6271 _ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h. */
6275 #ifdef __GNUC__
6276 # define alloca __builtin_alloca
6277 #else
6278 # ifdef _MSC_VER
6279 # include <malloc.h>
6280 # define alloca _alloca
6281 # else
6282 # if HAVE_ALLOCA_H
6283 # include <alloca.h>
6284 # else
6285 # ifdef _AIX
6286 #pragma alloca
6287 # else
6288 # ifndef alloca /* predefined by HP cc +Olibcalls */
6289 char *alloca ();
6290 # endif
6291 # endif
6292 # endif
6293 # endif
6294 #endif
6297 main ()
6299 char *p = (char *) alloca (1);
6301 return 0;
6303 _ACEOF
6304 rm -f conftest.$ac_objext conftest$ac_exeext
6305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6306 (eval $ac_link) 2>conftest.er1
6307 ac_status=$?
6308 grep -v '^ *+' conftest.er1 >conftest.err
6309 rm -f conftest.er1
6310 cat conftest.err >&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); } &&
6313 { ac_try='test -z "$ac_c_werror_flag"
6314 || test ! -s conftest.err'
6315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316 (eval $ac_try) 2>&5
6317 ac_status=$?
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); }; } &&
6320 { ac_try='test -s conftest$ac_exeext'
6321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6322 (eval $ac_try) 2>&5
6323 ac_status=$?
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); }; }; then
6326 ac_cv_func_alloca_works=yes
6327 else
6328 echo "$as_me: failed program was:" >&5
6329 sed 's/^/| /' conftest.$ac_ext >&5
6331 ac_cv_func_alloca_works=no
6333 rm -f conftest.err conftest.$ac_objext \
6334 conftest$ac_exeext conftest.$ac_ext
6336 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6337 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6339 if test $ac_cv_func_alloca_works = yes; then
6341 cat >>confdefs.h <<\_ACEOF
6342 #define HAVE_ALLOCA 1
6343 _ACEOF
6345 else
6346 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6347 # that cause trouble. Some versions do not even contain alloca or
6348 # contain a buggy version. If you still want to use their alloca,
6349 # use ar to extract alloca.o from them instead of compiling alloca.c.
6351 ALLOCA=alloca.$ac_objext
6353 cat >>confdefs.h <<\_ACEOF
6354 #define C_ALLOCA 1
6355 _ACEOF
6358 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6359 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6360 if test "${ac_cv_os_cray+set}" = set; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
6362 else
6363 cat >conftest.$ac_ext <<_ACEOF
6364 /* confdefs.h. */
6365 _ACEOF
6366 cat confdefs.h >>conftest.$ac_ext
6367 cat >>conftest.$ac_ext <<_ACEOF
6368 /* end confdefs.h. */
6369 #if defined(CRAY) && ! defined(CRAY2)
6370 webecray
6371 #else
6372 wenotbecray
6373 #endif
6375 _ACEOF
6376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6377 $EGREP "webecray" >/dev/null 2>&1; then
6378 ac_cv_os_cray=yes
6379 else
6380 ac_cv_os_cray=no
6382 rm -f conftest*
6385 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6386 echo "${ECHO_T}$ac_cv_os_cray" >&6
6387 if test $ac_cv_os_cray = yes; then
6388 for ac_func in _getb67 GETB67 getb67; do
6389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6390 echo "$as_me:$LINENO: checking for $ac_func" >&5
6391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6392 if eval "test \"\${$as_ac_var+set}\" = set"; then
6393 echo $ECHO_N "(cached) $ECHO_C" >&6
6394 else
6395 cat >conftest.$ac_ext <<_ACEOF
6396 /* confdefs.h. */
6397 _ACEOF
6398 cat confdefs.h >>conftest.$ac_ext
6399 cat >>conftest.$ac_ext <<_ACEOF
6400 /* end confdefs.h. */
6401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6403 #define $ac_func innocuous_$ac_func
6405 /* System header to define __stub macros and hopefully few prototypes,
6406 which can conflict with char $ac_func (); below.
6407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6408 <limits.h> exists even on freestanding compilers. */
6410 #ifdef __STDC__
6411 # include <limits.h>
6412 #else
6413 # include <assert.h>
6414 #endif
6416 #undef $ac_func
6418 /* Override any gcc2 internal prototype to avoid an error. */
6419 #ifdef __cplusplus
6420 extern "C"
6422 #endif
6423 /* We use char because int might match the return type of a gcc2
6424 builtin and then its argument prototype would still apply. */
6425 char $ac_func ();
6426 /* The GNU C library defines this for functions which it implements
6427 to always fail with ENOSYS. Some functions are actually named
6428 something starting with __ and the normal name is an alias. */
6429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6430 choke me
6431 #else
6432 char (*f) () = $ac_func;
6433 #endif
6434 #ifdef __cplusplus
6436 #endif
6439 main ()
6441 return f != $ac_func;
6443 return 0;
6445 _ACEOF
6446 rm -f conftest.$ac_objext conftest$ac_exeext
6447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6448 (eval $ac_link) 2>conftest.er1
6449 ac_status=$?
6450 grep -v '^ *+' conftest.er1 >conftest.err
6451 rm -f conftest.er1
6452 cat conftest.err >&5
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); } &&
6455 { ac_try='test -z "$ac_c_werror_flag"
6456 || test ! -s conftest.err'
6457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458 (eval $ac_try) 2>&5
6459 ac_status=$?
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); }; } &&
6462 { ac_try='test -s conftest$ac_exeext'
6463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6464 (eval $ac_try) 2>&5
6465 ac_status=$?
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); }; }; then
6468 eval "$as_ac_var=yes"
6469 else
6470 echo "$as_me: failed program was:" >&5
6471 sed 's/^/| /' conftest.$ac_ext >&5
6473 eval "$as_ac_var=no"
6475 rm -f conftest.err conftest.$ac_objext \
6476 conftest$ac_exeext conftest.$ac_ext
6478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6479 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6480 if test `eval echo '${'$as_ac_var'}'` = yes; then
6482 cat >>confdefs.h <<_ACEOF
6483 #define CRAY_STACKSEG_END $ac_func
6484 _ACEOF
6486 break
6489 done
6492 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6493 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6494 if test "${ac_cv_c_stack_direction+set}" = set; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
6496 else
6497 if test "$cross_compiling" = yes; then
6498 ac_cv_c_stack_direction=0
6499 else
6500 cat >conftest.$ac_ext <<_ACEOF
6501 /* confdefs.h. */
6502 _ACEOF
6503 cat confdefs.h >>conftest.$ac_ext
6504 cat >>conftest.$ac_ext <<_ACEOF
6505 /* end confdefs.h. */
6507 find_stack_direction ()
6509 static char *addr = 0;
6510 auto char dummy;
6511 if (addr == 0)
6513 addr = &dummy;
6514 return find_stack_direction ();
6516 else
6517 return (&dummy > addr) ? 1 : -1;
6521 main ()
6523 exit (find_stack_direction () < 0);
6525 _ACEOF
6526 rm -f conftest$ac_exeext
6527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6528 (eval $ac_link) 2>&5
6529 ac_status=$?
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533 (eval $ac_try) 2>&5
6534 ac_status=$?
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); }; }; then
6537 ac_cv_c_stack_direction=1
6538 else
6539 echo "$as_me: program exited with status $ac_status" >&5
6540 echo "$as_me: failed program was:" >&5
6541 sed 's/^/| /' conftest.$ac_ext >&5
6543 ( exit $ac_status )
6544 ac_cv_c_stack_direction=-1
6546 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6549 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6550 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6552 cat >>confdefs.h <<_ACEOF
6553 #define STACK_DIRECTION $ac_cv_c_stack_direction
6554 _ACEOF
6561 for ac_header in stdlib.h unistd.h
6563 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6565 echo "$as_me:$LINENO: checking for $ac_header" >&5
6566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6572 else
6573 # Is the header compilable?
6574 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6575 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6576 cat >conftest.$ac_ext <<_ACEOF
6577 /* confdefs.h. */
6578 _ACEOF
6579 cat confdefs.h >>conftest.$ac_ext
6580 cat >>conftest.$ac_ext <<_ACEOF
6581 /* end confdefs.h. */
6582 $ac_includes_default
6583 #include <$ac_header>
6584 _ACEOF
6585 rm -f conftest.$ac_objext
6586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6587 (eval $ac_compile) 2>conftest.er1
6588 ac_status=$?
6589 grep -v '^ *+' conftest.er1 >conftest.err
6590 rm -f conftest.er1
6591 cat conftest.err >&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); } &&
6594 { ac_try='test -z "$ac_c_werror_flag"
6595 || test ! -s conftest.err'
6596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6597 (eval $ac_try) 2>&5
6598 ac_status=$?
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); }; } &&
6601 { ac_try='test -s conftest.$ac_objext'
6602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6603 (eval $ac_try) 2>&5
6604 ac_status=$?
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; }; then
6607 ac_header_compiler=yes
6608 else
6609 echo "$as_me: failed program was:" >&5
6610 sed 's/^/| /' conftest.$ac_ext >&5
6612 ac_header_compiler=no
6614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6615 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6616 echo "${ECHO_T}$ac_header_compiler" >&6
6618 # Is the header present?
6619 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6620 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6621 cat >conftest.$ac_ext <<_ACEOF
6622 /* confdefs.h. */
6623 _ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6627 #include <$ac_header>
6628 _ACEOF
6629 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6630 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6631 ac_status=$?
6632 grep -v '^ *+' conftest.er1 >conftest.err
6633 rm -f conftest.er1
6634 cat conftest.err >&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } >/dev/null; then
6637 if test -s conftest.err; then
6638 ac_cpp_err=$ac_c_preproc_warn_flag
6639 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6640 else
6641 ac_cpp_err=
6643 else
6644 ac_cpp_err=yes
6646 if test -z "$ac_cpp_err"; then
6647 ac_header_preproc=yes
6648 else
6649 echo "$as_me: failed program was:" >&5
6650 sed 's/^/| /' conftest.$ac_ext >&5
6652 ac_header_preproc=no
6654 rm -f conftest.err conftest.$ac_ext
6655 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6656 echo "${ECHO_T}$ac_header_preproc" >&6
6658 # So? What about this header?
6659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6660 yes:no: )
6661 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6662 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6664 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6665 ac_header_preproc=yes
6667 no:yes:* )
6668 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6669 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6670 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6671 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6672 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6673 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6674 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6675 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6677 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6678 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6679 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6681 cat <<\_ASBOX
6682 ## ------------------------------------------ ##
6683 ## Report this to the AC_PACKAGE_NAME lists. ##
6684 ## ------------------------------------------ ##
6685 _ASBOX
6687 sed "s/^/$as_me: WARNING: /" >&2
6689 esac
6690 echo "$as_me:$LINENO: checking for $ac_header" >&5
6691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6693 echo $ECHO_N "(cached) $ECHO_C" >&6
6694 else
6695 eval "$as_ac_Header=\$ac_header_preproc"
6697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6698 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6701 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6702 cat >>confdefs.h <<_ACEOF
6703 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6704 _ACEOF
6708 done
6711 for ac_func in getpagesize
6713 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6714 echo "$as_me:$LINENO: checking for $ac_func" >&5
6715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6716 if eval "test \"\${$as_ac_var+set}\" = set"; then
6717 echo $ECHO_N "(cached) $ECHO_C" >&6
6718 else
6719 cat >conftest.$ac_ext <<_ACEOF
6720 /* confdefs.h. */
6721 _ACEOF
6722 cat confdefs.h >>conftest.$ac_ext
6723 cat >>conftest.$ac_ext <<_ACEOF
6724 /* end confdefs.h. */
6725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6727 #define $ac_func innocuous_$ac_func
6729 /* System header to define __stub macros and hopefully few prototypes,
6730 which can conflict with char $ac_func (); below.
6731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6732 <limits.h> exists even on freestanding compilers. */
6734 #ifdef __STDC__
6735 # include <limits.h>
6736 #else
6737 # include <assert.h>
6738 #endif
6740 #undef $ac_func
6742 /* Override any gcc2 internal prototype to avoid an error. */
6743 #ifdef __cplusplus
6744 extern "C"
6746 #endif
6747 /* We use char because int might match the return type of a gcc2
6748 builtin and then its argument prototype would still apply. */
6749 char $ac_func ();
6750 /* The GNU C library defines this for functions which it implements
6751 to always fail with ENOSYS. Some functions are actually named
6752 something starting with __ and the normal name is an alias. */
6753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6754 choke me
6755 #else
6756 char (*f) () = $ac_func;
6757 #endif
6758 #ifdef __cplusplus
6760 #endif
6763 main ()
6765 return f != $ac_func;
6767 return 0;
6769 _ACEOF
6770 rm -f conftest.$ac_objext conftest$ac_exeext
6771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6772 (eval $ac_link) 2>conftest.er1
6773 ac_status=$?
6774 grep -v '^ *+' conftest.er1 >conftest.err
6775 rm -f conftest.er1
6776 cat conftest.err >&5
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); } &&
6779 { ac_try='test -z "$ac_c_werror_flag"
6780 || test ! -s conftest.err'
6781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6782 (eval $ac_try) 2>&5
6783 ac_status=$?
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); }; } &&
6786 { ac_try='test -s conftest$ac_exeext'
6787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6788 (eval $ac_try) 2>&5
6789 ac_status=$?
6790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); }; }; then
6792 eval "$as_ac_var=yes"
6793 else
6794 echo "$as_me: failed program was:" >&5
6795 sed 's/^/| /' conftest.$ac_ext >&5
6797 eval "$as_ac_var=no"
6799 rm -f conftest.err conftest.$ac_objext \
6800 conftest$ac_exeext conftest.$ac_ext
6802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6803 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6804 if test `eval echo '${'$as_ac_var'}'` = yes; then
6805 cat >>confdefs.h <<_ACEOF
6806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6807 _ACEOF
6810 done
6812 echo "$as_me:$LINENO: checking for working mmap" >&5
6813 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6814 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6815 echo $ECHO_N "(cached) $ECHO_C" >&6
6816 else
6817 if test "$cross_compiling" = yes; then
6818 ac_cv_func_mmap_fixed_mapped=no
6819 else
6820 cat >conftest.$ac_ext <<_ACEOF
6821 /* confdefs.h. */
6822 _ACEOF
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h. */
6826 $ac_includes_default
6827 /* malloc might have been renamed as rpl_malloc. */
6828 #undef malloc
6830 /* Thanks to Mike Haertel and Jim Avera for this test.
6831 Here is a matrix of mmap possibilities:
6832 mmap private not fixed
6833 mmap private fixed at somewhere currently unmapped
6834 mmap private fixed at somewhere already mapped
6835 mmap shared not fixed
6836 mmap shared fixed at somewhere currently unmapped
6837 mmap shared fixed at somewhere already mapped
6838 For private mappings, we should verify that changes cannot be read()
6839 back from the file, nor mmap's back from the file at a different
6840 address. (There have been systems where private was not correctly
6841 implemented like the infamous i386 svr4.0, and systems where the
6842 VM page cache was not coherent with the file system buffer cache
6843 like early versions of FreeBSD and possibly contemporary NetBSD.)
6844 For shared mappings, we should conversely verify that changes get
6845 propagated back to all the places they're supposed to be.
6847 Grep wants private fixed already mapped.
6848 The main things grep needs to know about mmap are:
6849 * does it exist and is it safe to write into the mmap'd area
6850 * how to use it (BSD variants) */
6852 #include <fcntl.h>
6853 #include <sys/mman.h>
6855 #if !STDC_HEADERS && !HAVE_STDLIB_H
6856 char *malloc ();
6857 #endif
6859 /* This mess was copied from the GNU getpagesize.h. */
6860 #if !HAVE_GETPAGESIZE
6861 /* Assume that all systems that can run configure have sys/param.h. */
6862 # if !HAVE_SYS_PARAM_H
6863 # define HAVE_SYS_PARAM_H 1
6864 # endif
6866 # ifdef _SC_PAGESIZE
6867 # define getpagesize() sysconf(_SC_PAGESIZE)
6868 # else /* no _SC_PAGESIZE */
6869 # if HAVE_SYS_PARAM_H
6870 # include <sys/param.h>
6871 # ifdef EXEC_PAGESIZE
6872 # define getpagesize() EXEC_PAGESIZE
6873 # else /* no EXEC_PAGESIZE */
6874 # ifdef NBPG
6875 # define getpagesize() NBPG * CLSIZE
6876 # ifndef CLSIZE
6877 # define CLSIZE 1
6878 # endif /* no CLSIZE */
6879 # else /* no NBPG */
6880 # ifdef NBPC
6881 # define getpagesize() NBPC
6882 # else /* no NBPC */
6883 # ifdef PAGESIZE
6884 # define getpagesize() PAGESIZE
6885 # endif /* PAGESIZE */
6886 # endif /* no NBPC */
6887 # endif /* no NBPG */
6888 # endif /* no EXEC_PAGESIZE */
6889 # else /* no HAVE_SYS_PARAM_H */
6890 # define getpagesize() 8192 /* punt totally */
6891 # endif /* no HAVE_SYS_PARAM_H */
6892 # endif /* no _SC_PAGESIZE */
6894 #endif /* no HAVE_GETPAGESIZE */
6897 main ()
6899 char *data, *data2, *data3;
6900 int i, pagesize;
6901 int fd;
6903 pagesize = getpagesize ();
6905 /* First, make a file with some known garbage in it. */
6906 data = (char *) malloc (pagesize);
6907 if (!data)
6908 exit (1);
6909 for (i = 0; i < pagesize; ++i)
6910 *(data + i) = rand ();
6911 umask (0);
6912 fd = creat ("conftest.mmap", 0600);
6913 if (fd < 0)
6914 exit (1);
6915 if (write (fd, data, pagesize) != pagesize)
6916 exit (1);
6917 close (fd);
6919 /* Next, try to mmap the file at a fixed address which already has
6920 something else allocated at it. If we can, also make sure that
6921 we see the same garbage. */
6922 fd = open ("conftest.mmap", O_RDWR);
6923 if (fd < 0)
6924 exit (1);
6925 data2 = (char *) malloc (2 * pagesize);
6926 if (!data2)
6927 exit (1);
6928 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6929 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6930 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6931 exit (1);
6932 for (i = 0; i < pagesize; ++i)
6933 if (*(data + i) != *(data2 + i))
6934 exit (1);
6936 /* Finally, make sure that changes to the mapped area do not
6937 percolate back to the file as seen by read(). (This is a bug on
6938 some variants of i386 svr4.0.) */
6939 for (i = 0; i < pagesize; ++i)
6940 *(data2 + i) = *(data2 + i) + 1;
6941 data3 = (char *) malloc (pagesize);
6942 if (!data3)
6943 exit (1);
6944 if (read (fd, data3, pagesize) != pagesize)
6945 exit (1);
6946 for (i = 0; i < pagesize; ++i)
6947 if (*(data + i) != *(data3 + i))
6948 exit (1);
6949 close (fd);
6950 exit (0);
6952 _ACEOF
6953 rm -f conftest$ac_exeext
6954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6955 (eval $ac_link) 2>&5
6956 ac_status=$?
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6960 (eval $ac_try) 2>&5
6961 ac_status=$?
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); }; }; then
6964 ac_cv_func_mmap_fixed_mapped=yes
6965 else
6966 echo "$as_me: program exited with status $ac_status" >&5
6967 echo "$as_me: failed program was:" >&5
6968 sed 's/^/| /' conftest.$ac_ext >&5
6970 ( exit $ac_status )
6971 ac_cv_func_mmap_fixed_mapped=no
6973 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6976 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6977 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6978 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6980 cat >>confdefs.h <<\_ACEOF
6981 #define HAVE_MMAP 1
6982 _ACEOF
6985 rm -f conftest.mmap
6997 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6998 unistd.h values.h sys/param.h
7000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7002 echo "$as_me:$LINENO: checking for $ac_header" >&5
7003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7009 else
7010 # Is the header compilable?
7011 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7013 cat >conftest.$ac_ext <<_ACEOF
7014 /* confdefs.h. */
7015 _ACEOF
7016 cat confdefs.h >>conftest.$ac_ext
7017 cat >>conftest.$ac_ext <<_ACEOF
7018 /* end confdefs.h. */
7019 $ac_includes_default
7020 #include <$ac_header>
7021 _ACEOF
7022 rm -f conftest.$ac_objext
7023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7024 (eval $ac_compile) 2>conftest.er1
7025 ac_status=$?
7026 grep -v '^ *+' conftest.er1 >conftest.err
7027 rm -f conftest.er1
7028 cat conftest.err >&5
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); } &&
7031 { ac_try='test -z "$ac_c_werror_flag"
7032 || test ! -s conftest.err'
7033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7034 (eval $ac_try) 2>&5
7035 ac_status=$?
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); }; } &&
7038 { ac_try='test -s conftest.$ac_objext'
7039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7040 (eval $ac_try) 2>&5
7041 ac_status=$?
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); }; }; then
7044 ac_header_compiler=yes
7045 else
7046 echo "$as_me: failed program was:" >&5
7047 sed 's/^/| /' conftest.$ac_ext >&5
7049 ac_header_compiler=no
7051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7052 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7053 echo "${ECHO_T}$ac_header_compiler" >&6
7055 # Is the header present?
7056 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7058 cat >conftest.$ac_ext <<_ACEOF
7059 /* confdefs.h. */
7060 _ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h. */
7064 #include <$ac_header>
7065 _ACEOF
7066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7068 ac_status=$?
7069 grep -v '^ *+' conftest.er1 >conftest.err
7070 rm -f conftest.er1
7071 cat conftest.err >&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } >/dev/null; then
7074 if test -s conftest.err; then
7075 ac_cpp_err=$ac_c_preproc_warn_flag
7076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7077 else
7078 ac_cpp_err=
7080 else
7081 ac_cpp_err=yes
7083 if test -z "$ac_cpp_err"; then
7084 ac_header_preproc=yes
7085 else
7086 echo "$as_me: failed program was:" >&5
7087 sed 's/^/| /' conftest.$ac_ext >&5
7089 ac_header_preproc=no
7091 rm -f conftest.err conftest.$ac_ext
7092 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7093 echo "${ECHO_T}$ac_header_preproc" >&6
7095 # So? What about this header?
7096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7097 yes:no: )
7098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7102 ac_header_preproc=yes
7104 no:yes:* )
7105 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7107 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7108 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7109 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7111 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7112 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7115 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7118 cat <<\_ASBOX
7119 ## ------------------------------------------ ##
7120 ## Report this to the AC_PACKAGE_NAME lists. ##
7121 ## ------------------------------------------ ##
7122 _ASBOX
7124 sed "s/^/$as_me: WARNING: /" >&2
7126 esac
7127 echo "$as_me:$LINENO: checking for $ac_header" >&5
7128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7131 else
7132 eval "$as_ac_Header=\$ac_header_preproc"
7134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7139 cat >>confdefs.h <<_ACEOF
7140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7141 _ACEOF
7145 done
7157 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7158 __argz_count __argz_stringify __argz_next
7160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7161 echo "$as_me:$LINENO: checking for $ac_func" >&5
7162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7163 if eval "test \"\${$as_ac_var+set}\" = set"; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166 cat >conftest.$ac_ext <<_ACEOF
7167 /* confdefs.h. */
7168 _ACEOF
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7172 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7174 #define $ac_func innocuous_$ac_func
7176 /* System header to define __stub macros and hopefully few prototypes,
7177 which can conflict with char $ac_func (); below.
7178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7179 <limits.h> exists even on freestanding compilers. */
7181 #ifdef __STDC__
7182 # include <limits.h>
7183 #else
7184 # include <assert.h>
7185 #endif
7187 #undef $ac_func
7189 /* Override any gcc2 internal prototype to avoid an error. */
7190 #ifdef __cplusplus
7191 extern "C"
7193 #endif
7194 /* We use char because int might match the return type of a gcc2
7195 builtin and then its argument prototype would still apply. */
7196 char $ac_func ();
7197 /* The GNU C library defines this for functions which it implements
7198 to always fail with ENOSYS. Some functions are actually named
7199 something starting with __ and the normal name is an alias. */
7200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7201 choke me
7202 #else
7203 char (*f) () = $ac_func;
7204 #endif
7205 #ifdef __cplusplus
7207 #endif
7210 main ()
7212 return f != $ac_func;
7214 return 0;
7216 _ACEOF
7217 rm -f conftest.$ac_objext conftest$ac_exeext
7218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7219 (eval $ac_link) 2>conftest.er1
7220 ac_status=$?
7221 grep -v '^ *+' conftest.er1 >conftest.err
7222 rm -f conftest.er1
7223 cat conftest.err >&5
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); } &&
7226 { ac_try='test -z "$ac_c_werror_flag"
7227 || test ! -s conftest.err'
7228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7229 (eval $ac_try) 2>&5
7230 ac_status=$?
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); }; } &&
7233 { ac_try='test -s conftest$ac_exeext'
7234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7235 (eval $ac_try) 2>&5
7236 ac_status=$?
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); }; }; then
7239 eval "$as_ac_var=yes"
7240 else
7241 echo "$as_me: failed program was:" >&5
7242 sed 's/^/| /' conftest.$ac_ext >&5
7244 eval "$as_ac_var=no"
7246 rm -f conftest.err conftest.$ac_objext \
7247 conftest$ac_exeext conftest.$ac_ext
7249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7250 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7251 if test `eval echo '${'$as_ac_var'}'` = yes; then
7252 cat >>confdefs.h <<_ACEOF
7253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7254 _ACEOF
7257 done
7260 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7262 for ac_func in stpcpy
7264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7265 echo "$as_me:$LINENO: checking for $ac_func" >&5
7266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7267 if eval "test \"\${$as_ac_var+set}\" = set"; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7269 else
7270 cat >conftest.$ac_ext <<_ACEOF
7271 /* confdefs.h. */
7272 _ACEOF
7273 cat confdefs.h >>conftest.$ac_ext
7274 cat >>conftest.$ac_ext <<_ACEOF
7275 /* end confdefs.h. */
7276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7278 #define $ac_func innocuous_$ac_func
7280 /* System header to define __stub macros and hopefully few prototypes,
7281 which can conflict with char $ac_func (); below.
7282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7283 <limits.h> exists even on freestanding compilers. */
7285 #ifdef __STDC__
7286 # include <limits.h>
7287 #else
7288 # include <assert.h>
7289 #endif
7291 #undef $ac_func
7293 /* Override any gcc2 internal prototype to avoid an error. */
7294 #ifdef __cplusplus
7295 extern "C"
7297 #endif
7298 /* We use char because int might match the return type of a gcc2
7299 builtin and then its argument prototype would still apply. */
7300 char $ac_func ();
7301 /* The GNU C library defines this for functions which it implements
7302 to always fail with ENOSYS. Some functions are actually named
7303 something starting with __ and the normal name is an alias. */
7304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7305 choke me
7306 #else
7307 char (*f) () = $ac_func;
7308 #endif
7309 #ifdef __cplusplus
7311 #endif
7314 main ()
7316 return f != $ac_func;
7318 return 0;
7320 _ACEOF
7321 rm -f conftest.$ac_objext conftest$ac_exeext
7322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7323 (eval $ac_link) 2>conftest.er1
7324 ac_status=$?
7325 grep -v '^ *+' conftest.er1 >conftest.err
7326 rm -f conftest.er1
7327 cat conftest.err >&5
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); } &&
7330 { ac_try='test -z "$ac_c_werror_flag"
7331 || test ! -s conftest.err'
7332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7333 (eval $ac_try) 2>&5
7334 ac_status=$?
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); }; } &&
7337 { ac_try='test -s conftest$ac_exeext'
7338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7339 (eval $ac_try) 2>&5
7340 ac_status=$?
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); }; }; then
7343 eval "$as_ac_var=yes"
7344 else
7345 echo "$as_me: failed program was:" >&5
7346 sed 's/^/| /' conftest.$ac_ext >&5
7348 eval "$as_ac_var=no"
7350 rm -f conftest.err conftest.$ac_objext \
7351 conftest$ac_exeext conftest.$ac_ext
7353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7354 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7355 if test `eval echo '${'$as_ac_var'}'` = yes; then
7356 cat >>confdefs.h <<_ACEOF
7357 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7358 _ACEOF
7361 done
7364 if test "${ac_cv_func_stpcpy}" = "yes"; then
7366 cat >>confdefs.h <<\_ACEOF
7367 #define HAVE_STPCPY 1
7368 _ACEOF
7372 if test $ac_cv_header_locale_h = yes; then
7373 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7374 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7375 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7377 else
7378 cat >conftest.$ac_ext <<_ACEOF
7379 /* confdefs.h. */
7380 _ACEOF
7381 cat confdefs.h >>conftest.$ac_ext
7382 cat >>conftest.$ac_ext <<_ACEOF
7383 /* end confdefs.h. */
7384 #include <locale.h>
7386 main ()
7388 return LC_MESSAGES
7390 return 0;
7392 _ACEOF
7393 rm -f conftest.$ac_objext conftest$ac_exeext
7394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7395 (eval $ac_link) 2>conftest.er1
7396 ac_status=$?
7397 grep -v '^ *+' conftest.er1 >conftest.err
7398 rm -f conftest.er1
7399 cat conftest.err >&5
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); } &&
7402 { ac_try='test -z "$ac_c_werror_flag"
7403 || test ! -s conftest.err'
7404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7405 (eval $ac_try) 2>&5
7406 ac_status=$?
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); }; } &&
7409 { ac_try='test -s conftest$ac_exeext'
7410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7411 (eval $ac_try) 2>&5
7412 ac_status=$?
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); }; }; then
7415 am_cv_val_LC_MESSAGES=yes
7416 else
7417 echo "$as_me: failed program was:" >&5
7418 sed 's/^/| /' conftest.$ac_ext >&5
7420 am_cv_val_LC_MESSAGES=no
7422 rm -f conftest.err conftest.$ac_objext \
7423 conftest$ac_exeext conftest.$ac_ext
7425 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7426 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7427 if test $am_cv_val_LC_MESSAGES = yes; then
7429 cat >>confdefs.h <<\_ACEOF
7430 #define HAVE_LC_MESSAGES 1
7431 _ACEOF
7435 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7436 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7437 # Check whether --enable-nls or --disable-nls was given.
7438 if test "${enable_nls+set}" = set; then
7439 enableval="$enable_nls"
7440 USE_NLS=$enableval
7441 else
7442 USE_NLS=yes
7444 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7445 echo "${ECHO_T}$USE_NLS" >&6
7448 USE_INCLUDED_LIBINTL=no
7450 if test "$USE_NLS" = "yes"; then
7451 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7452 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7454 # Check whether --with-included-gettext or --without-included-gettext was given.
7455 if test "${with_included_gettext+set}" = set; then
7456 withval="$with_included_gettext"
7457 nls_cv_force_use_gnu_gettext=$withval
7458 else
7459 nls_cv_force_use_gnu_gettext=no
7461 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7462 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7464 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7465 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7466 nls_cv_header_intl=
7467 nls_cv_header_libgt=
7468 CATOBJEXT=
7470 if test "${ac_cv_header_libintl_h+set}" = set; then
7471 echo "$as_me:$LINENO: checking for libintl.h" >&5
7472 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7473 if test "${ac_cv_header_libintl_h+set}" = set; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
7476 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7477 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7478 else
7479 # Is the header compilable?
7480 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7481 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7482 cat >conftest.$ac_ext <<_ACEOF
7483 /* confdefs.h. */
7484 _ACEOF
7485 cat confdefs.h >>conftest.$ac_ext
7486 cat >>conftest.$ac_ext <<_ACEOF
7487 /* end confdefs.h. */
7488 $ac_includes_default
7489 #include <libintl.h>
7490 _ACEOF
7491 rm -f conftest.$ac_objext
7492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7493 (eval $ac_compile) 2>conftest.er1
7494 ac_status=$?
7495 grep -v '^ *+' conftest.er1 >conftest.err
7496 rm -f conftest.er1
7497 cat conftest.err >&5
7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); } &&
7500 { ac_try='test -z "$ac_c_werror_flag"
7501 || test ! -s conftest.err'
7502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7503 (eval $ac_try) 2>&5
7504 ac_status=$?
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); }; } &&
7507 { ac_try='test -s conftest.$ac_objext'
7508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7509 (eval $ac_try) 2>&5
7510 ac_status=$?
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); }; }; then
7513 ac_header_compiler=yes
7514 else
7515 echo "$as_me: failed program was:" >&5
7516 sed 's/^/| /' conftest.$ac_ext >&5
7518 ac_header_compiler=no
7520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7521 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7522 echo "${ECHO_T}$ac_header_compiler" >&6
7524 # Is the header present?
7525 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7526 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7527 cat >conftest.$ac_ext <<_ACEOF
7528 /* confdefs.h. */
7529 _ACEOF
7530 cat confdefs.h >>conftest.$ac_ext
7531 cat >>conftest.$ac_ext <<_ACEOF
7532 /* end confdefs.h. */
7533 #include <libintl.h>
7534 _ACEOF
7535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7537 ac_status=$?
7538 grep -v '^ *+' conftest.er1 >conftest.err
7539 rm -f conftest.er1
7540 cat conftest.err >&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); } >/dev/null; then
7543 if test -s conftest.err; then
7544 ac_cpp_err=$ac_c_preproc_warn_flag
7545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7546 else
7547 ac_cpp_err=
7549 else
7550 ac_cpp_err=yes
7552 if test -z "$ac_cpp_err"; then
7553 ac_header_preproc=yes
7554 else
7555 echo "$as_me: failed program was:" >&5
7556 sed 's/^/| /' conftest.$ac_ext >&5
7558 ac_header_preproc=no
7560 rm -f conftest.err conftest.$ac_ext
7561 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7562 echo "${ECHO_T}$ac_header_preproc" >&6
7564 # So? What about this header?
7565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7566 yes:no: )
7567 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7568 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7569 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7570 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7571 ac_header_preproc=yes
7573 no:yes:* )
7574 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7575 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7576 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7577 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7578 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7579 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7580 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7581 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7582 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7583 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7584 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7585 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7587 cat <<\_ASBOX
7588 ## ------------------------------------------ ##
7589 ## Report this to the AC_PACKAGE_NAME lists. ##
7590 ## ------------------------------------------ ##
7591 _ASBOX
7593 sed "s/^/$as_me: WARNING: /" >&2
7595 esac
7596 echo "$as_me:$LINENO: checking for libintl.h" >&5
7597 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7598 if test "${ac_cv_header_libintl_h+set}" = set; then
7599 echo $ECHO_N "(cached) $ECHO_C" >&6
7600 else
7601 ac_cv_header_libintl_h=$ac_header_preproc
7603 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7604 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7607 if test $ac_cv_header_libintl_h = yes; then
7608 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7609 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7610 if test "${gt_cv_func_gettext_libc+set}" = set; then
7611 echo $ECHO_N "(cached) $ECHO_C" >&6
7612 else
7613 cat >conftest.$ac_ext <<_ACEOF
7614 /* confdefs.h. */
7615 _ACEOF
7616 cat confdefs.h >>conftest.$ac_ext
7617 cat >>conftest.$ac_ext <<_ACEOF
7618 /* end confdefs.h. */
7619 #include <libintl.h>
7621 main ()
7623 return (int) gettext ("")
7625 return 0;
7627 _ACEOF
7628 rm -f conftest.$ac_objext conftest$ac_exeext
7629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7630 (eval $ac_link) 2>conftest.er1
7631 ac_status=$?
7632 grep -v '^ *+' conftest.er1 >conftest.err
7633 rm -f conftest.er1
7634 cat conftest.err >&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); } &&
7637 { ac_try='test -z "$ac_c_werror_flag"
7638 || test ! -s conftest.err'
7639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7640 (eval $ac_try) 2>&5
7641 ac_status=$?
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); }; } &&
7644 { ac_try='test -s conftest$ac_exeext'
7645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7646 (eval $ac_try) 2>&5
7647 ac_status=$?
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); }; }; then
7650 gt_cv_func_gettext_libc=yes
7651 else
7652 echo "$as_me: failed program was:" >&5
7653 sed 's/^/| /' conftest.$ac_ext >&5
7655 gt_cv_func_gettext_libc=no
7657 rm -f conftest.err conftest.$ac_objext \
7658 conftest$ac_exeext conftest.$ac_ext
7660 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7661 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7663 if test "$gt_cv_func_gettext_libc" != "yes"; then
7664 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7665 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7666 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 else
7669 ac_check_lib_save_LIBS=$LIBS
7670 LIBS="-lintl $LIBS"
7671 cat >conftest.$ac_ext <<_ACEOF
7672 /* confdefs.h. */
7673 _ACEOF
7674 cat confdefs.h >>conftest.$ac_ext
7675 cat >>conftest.$ac_ext <<_ACEOF
7676 /* end confdefs.h. */
7678 /* Override any gcc2 internal prototype to avoid an error. */
7679 #ifdef __cplusplus
7680 extern "C"
7681 #endif
7682 /* We use char because int might match the return type of a gcc2
7683 builtin and then its argument prototype would still apply. */
7684 char bindtextdomain ();
7686 main ()
7688 bindtextdomain ();
7690 return 0;
7692 _ACEOF
7693 rm -f conftest.$ac_objext conftest$ac_exeext
7694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7695 (eval $ac_link) 2>conftest.er1
7696 ac_status=$?
7697 grep -v '^ *+' conftest.er1 >conftest.err
7698 rm -f conftest.er1
7699 cat conftest.err >&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); } &&
7702 { ac_try='test -z "$ac_c_werror_flag"
7703 || test ! -s conftest.err'
7704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705 (eval $ac_try) 2>&5
7706 ac_status=$?
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); }; } &&
7709 { ac_try='test -s conftest$ac_exeext'
7710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7711 (eval $ac_try) 2>&5
7712 ac_status=$?
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); }; }; then
7715 ac_cv_lib_intl_bindtextdomain=yes
7716 else
7717 echo "$as_me: failed program was:" >&5
7718 sed 's/^/| /' conftest.$ac_ext >&5
7720 ac_cv_lib_intl_bindtextdomain=no
7722 rm -f conftest.err conftest.$ac_objext \
7723 conftest$ac_exeext conftest.$ac_ext
7724 LIBS=$ac_check_lib_save_LIBS
7726 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7727 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7728 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7729 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7730 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7731 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7732 echo $ECHO_N "(cached) $ECHO_C" >&6
7733 else
7734 cat >conftest.$ac_ext <<_ACEOF
7735 /* confdefs.h. */
7736 _ACEOF
7737 cat confdefs.h >>conftest.$ac_ext
7738 cat >>conftest.$ac_ext <<_ACEOF
7739 /* end confdefs.h. */
7742 main ()
7744 return (int) gettext ("")
7746 return 0;
7748 _ACEOF
7749 rm -f conftest.$ac_objext conftest$ac_exeext
7750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7751 (eval $ac_link) 2>conftest.er1
7752 ac_status=$?
7753 grep -v '^ *+' conftest.er1 >conftest.err
7754 rm -f conftest.er1
7755 cat conftest.err >&5
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); } &&
7758 { ac_try='test -z "$ac_c_werror_flag"
7759 || test ! -s conftest.err'
7760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7761 (eval $ac_try) 2>&5
7762 ac_status=$?
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); }; } &&
7765 { ac_try='test -s conftest$ac_exeext'
7766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7767 (eval $ac_try) 2>&5
7768 ac_status=$?
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); }; }; then
7771 gt_cv_func_gettext_libintl=yes
7772 else
7773 echo "$as_me: failed program was:" >&5
7774 sed 's/^/| /' conftest.$ac_ext >&5
7776 gt_cv_func_gettext_libintl=no
7778 rm -f conftest.err conftest.$ac_objext \
7779 conftest$ac_exeext conftest.$ac_ext
7781 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7782 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7787 if test "$gt_cv_func_gettext_libc" = "yes" \
7788 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7790 cat >>confdefs.h <<\_ACEOF
7791 #define HAVE_GETTEXT 1
7792 _ACEOF
7794 # Extract the first word of "msgfmt", so it can be a program name with args.
7795 set dummy msgfmt; ac_word=$2
7796 echo "$as_me:$LINENO: checking for $ac_word" >&5
7797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7798 if test "${ac_cv_path_MSGFMT+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7800 else
7801 case "$MSGFMT" in
7803 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7806 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7807 for ac_dir in $PATH; do
7808 test -z "$ac_dir" && ac_dir=.
7809 if test -f $ac_dir/$ac_word; then
7810 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7811 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7812 break
7815 done
7816 IFS="$ac_save_ifs"
7817 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7819 esac
7821 MSGFMT="$ac_cv_path_MSGFMT"
7822 if test -n "$MSGFMT"; then
7823 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7824 echo "${ECHO_T}$MSGFMT" >&6
7825 else
7826 echo "$as_me:$LINENO: result: no" >&5
7827 echo "${ECHO_T}no" >&6
7829 if test "$MSGFMT" != "no"; then
7831 for ac_func in dcgettext
7833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7834 echo "$as_me:$LINENO: checking for $ac_func" >&5
7835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7836 if eval "test \"\${$as_ac_var+set}\" = set"; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
7838 else
7839 cat >conftest.$ac_ext <<_ACEOF
7840 /* confdefs.h. */
7841 _ACEOF
7842 cat confdefs.h >>conftest.$ac_ext
7843 cat >>conftest.$ac_ext <<_ACEOF
7844 /* end confdefs.h. */
7845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7847 #define $ac_func innocuous_$ac_func
7849 /* System header to define __stub macros and hopefully few prototypes,
7850 which can conflict with char $ac_func (); below.
7851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7852 <limits.h> exists even on freestanding compilers. */
7854 #ifdef __STDC__
7855 # include <limits.h>
7856 #else
7857 # include <assert.h>
7858 #endif
7860 #undef $ac_func
7862 /* Override any gcc2 internal prototype to avoid an error. */
7863 #ifdef __cplusplus
7864 extern "C"
7866 #endif
7867 /* We use char because int might match the return type of a gcc2
7868 builtin and then its argument prototype would still apply. */
7869 char $ac_func ();
7870 /* The GNU C library defines this for functions which it implements
7871 to always fail with ENOSYS. Some functions are actually named
7872 something starting with __ and the normal name is an alias. */
7873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7874 choke me
7875 #else
7876 char (*f) () = $ac_func;
7877 #endif
7878 #ifdef __cplusplus
7880 #endif
7883 main ()
7885 return f != $ac_func;
7887 return 0;
7889 _ACEOF
7890 rm -f conftest.$ac_objext conftest$ac_exeext
7891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7892 (eval $ac_link) 2>conftest.er1
7893 ac_status=$?
7894 grep -v '^ *+' conftest.er1 >conftest.err
7895 rm -f conftest.er1
7896 cat conftest.err >&5
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); } &&
7899 { ac_try='test -z "$ac_c_werror_flag"
7900 || test ! -s conftest.err'
7901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7902 (eval $ac_try) 2>&5
7903 ac_status=$?
7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); }; } &&
7906 { ac_try='test -s conftest$ac_exeext'
7907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7908 (eval $ac_try) 2>&5
7909 ac_status=$?
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); }; }; then
7912 eval "$as_ac_var=yes"
7913 else
7914 echo "$as_me: failed program was:" >&5
7915 sed 's/^/| /' conftest.$ac_ext >&5
7917 eval "$as_ac_var=no"
7919 rm -f conftest.err conftest.$ac_objext \
7920 conftest$ac_exeext conftest.$ac_ext
7922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7923 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7924 if test `eval echo '${'$as_ac_var'}'` = yes; then
7925 cat >>confdefs.h <<_ACEOF
7926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7927 _ACEOF
7930 done
7932 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7933 set dummy gmsgfmt; ac_word=$2
7934 echo "$as_me:$LINENO: checking for $ac_word" >&5
7935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7936 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7937 echo $ECHO_N "(cached) $ECHO_C" >&6
7938 else
7939 case $GMSGFMT in
7940 [\\/]* | ?:[\\/]*)
7941 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7945 for as_dir in $PATH
7947 IFS=$as_save_IFS
7948 test -z "$as_dir" && as_dir=.
7949 for ac_exec_ext in '' $ac_executable_extensions; do
7950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7951 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7953 break 2
7955 done
7956 done
7958 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7960 esac
7962 GMSGFMT=$ac_cv_path_GMSGFMT
7964 if test -n "$GMSGFMT"; then
7965 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7966 echo "${ECHO_T}$GMSGFMT" >&6
7967 else
7968 echo "$as_me:$LINENO: result: no" >&5
7969 echo "${ECHO_T}no" >&6
7972 # Extract the first word of "xgettext", so it can be a program name with args.
7973 set dummy xgettext; ac_word=$2
7974 echo "$as_me:$LINENO: checking for $ac_word" >&5
7975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7976 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7977 echo $ECHO_N "(cached) $ECHO_C" >&6
7978 else
7979 case "$XGETTEXT" in
7981 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7984 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7985 for ac_dir in $PATH; do
7986 test -z "$ac_dir" && ac_dir=.
7987 if test -f $ac_dir/$ac_word; then
7988 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7989 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7990 break
7993 done
7994 IFS="$ac_save_ifs"
7995 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7997 esac
7999 XGETTEXT="$ac_cv_path_XGETTEXT"
8000 if test -n "$XGETTEXT"; then
8001 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8002 echo "${ECHO_T}$XGETTEXT" >&6
8003 else
8004 echo "$as_me:$LINENO: result: no" >&5
8005 echo "${ECHO_T}no" >&6
8008 cat >conftest.$ac_ext <<_ACEOF
8009 /* confdefs.h. */
8010 _ACEOF
8011 cat confdefs.h >>conftest.$ac_ext
8012 cat >>conftest.$ac_ext <<_ACEOF
8013 /* end confdefs.h. */
8016 main ()
8018 extern int _nl_msg_cat_cntr;
8019 return _nl_msg_cat_cntr
8021 return 0;
8023 _ACEOF
8024 rm -f conftest.$ac_objext conftest$ac_exeext
8025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8026 (eval $ac_link) 2>conftest.er1
8027 ac_status=$?
8028 grep -v '^ *+' conftest.er1 >conftest.err
8029 rm -f conftest.er1
8030 cat conftest.err >&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); } &&
8033 { ac_try='test -z "$ac_c_werror_flag"
8034 || test ! -s conftest.err'
8035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8036 (eval $ac_try) 2>&5
8037 ac_status=$?
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); }; } &&
8040 { ac_try='test -s conftest$ac_exeext'
8041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8042 (eval $ac_try) 2>&5
8043 ac_status=$?
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); }; }; then
8046 CATOBJEXT=.gmo
8047 DATADIRNAME=share
8048 else
8049 echo "$as_me: failed program was:" >&5
8050 sed 's/^/| /' conftest.$ac_ext >&5
8052 CATOBJEXT=.mo
8053 DATADIRNAME=lib
8055 rm -f conftest.err conftest.$ac_objext \
8056 conftest$ac_exeext conftest.$ac_ext
8057 INSTOBJEXT=.mo
8066 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
8067 # Neither gettext nor catgets in included in the C library.
8068 # Fall back on GNU gettext library (assuming it is present).
8069 nls_cv_use_gnu_gettext=yes
8073 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8074 INTLOBJS="\$(GETTOBJS)"
8075 # Extract the first word of "msgfmt", so it can be a program name with args.
8076 set dummy msgfmt; ac_word=$2
8077 echo "$as_me:$LINENO: checking for $ac_word" >&5
8078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8079 if test "${ac_cv_path_MSGFMT+set}" = set; then
8080 echo $ECHO_N "(cached) $ECHO_C" >&6
8081 else
8082 case "$MSGFMT" in
8084 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8088 for ac_dir in $PATH; do
8089 test -z "$ac_dir" && ac_dir=.
8090 if test -f $ac_dir/$ac_word; then
8091 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8092 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8093 break
8096 done
8097 IFS="$ac_save_ifs"
8098 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
8100 esac
8102 MSGFMT="$ac_cv_path_MSGFMT"
8103 if test -n "$MSGFMT"; then
8104 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8105 echo "${ECHO_T}$MSGFMT" >&6
8106 else
8107 echo "$as_me:$LINENO: result: no" >&5
8108 echo "${ECHO_T}no" >&6
8111 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8112 set dummy gmsgfmt; ac_word=$2
8113 echo "$as_me:$LINENO: checking for $ac_word" >&5
8114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8115 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8116 echo $ECHO_N "(cached) $ECHO_C" >&6
8117 else
8118 case $GMSGFMT in
8119 [\\/]* | ?:[\\/]*)
8120 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124 for as_dir in $PATH
8126 IFS=$as_save_IFS
8127 test -z "$as_dir" && as_dir=.
8128 for ac_exec_ext in '' $ac_executable_extensions; do
8129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8130 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8132 break 2
8134 done
8135 done
8137 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8139 esac
8141 GMSGFMT=$ac_cv_path_GMSGFMT
8143 if test -n "$GMSGFMT"; then
8144 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8145 echo "${ECHO_T}$GMSGFMT" >&6
8146 else
8147 echo "$as_me:$LINENO: result: no" >&5
8148 echo "${ECHO_T}no" >&6
8151 # Extract the first word of "xgettext", so it can be a program name with args.
8152 set dummy xgettext; ac_word=$2
8153 echo "$as_me:$LINENO: checking for $ac_word" >&5
8154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8155 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8156 echo $ECHO_N "(cached) $ECHO_C" >&6
8157 else
8158 case "$XGETTEXT" in
8160 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8163 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8164 for ac_dir in $PATH; do
8165 test -z "$ac_dir" && ac_dir=.
8166 if test -f $ac_dir/$ac_word; then
8167 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8168 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8169 break
8172 done
8173 IFS="$ac_save_ifs"
8174 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8176 esac
8178 XGETTEXT="$ac_cv_path_XGETTEXT"
8179 if test -n "$XGETTEXT"; then
8180 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8181 echo "${ECHO_T}$XGETTEXT" >&6
8182 else
8183 echo "$as_me:$LINENO: result: no" >&5
8184 echo "${ECHO_T}no" >&6
8188 USE_INCLUDED_LIBINTL=yes
8189 CATOBJEXT=.gmo
8190 INSTOBJEXT=.mo
8191 DATADIRNAME=share
8192 INTLDEPS='$(top_builddir)/../intl/libintl.a'
8193 INTLLIBS=$INTLDEPS
8194 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8195 nls_cv_header_intl=libintl.h
8196 nls_cv_header_libgt=libgettext.h
8199 if test "$XGETTEXT" != ":"; then
8200 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8202 else
8203 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8204 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
8205 XGETTEXT=":"
8209 # We need to process the po/ directory.
8210 POSUB=po
8211 else
8212 DATADIRNAME=share
8213 nls_cv_header_intl=libintl.h
8214 nls_cv_header_libgt=libgettext.h
8217 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8218 # because some of the sources are only built for this goal.
8219 if test "$PACKAGE" = gettext; then
8220 USE_NLS=yes
8221 USE_INCLUDED_LIBINTL=yes
8224 for lang in $ALL_LINGUAS; do
8225 GMOFILES="$GMOFILES $lang.gmo"
8226 POFILES="$POFILES $lang.po"
8227 done
8240 if test "x$CATOBJEXT" != "x"; then
8242 cat >>confdefs.h <<\_ACEOF
8243 #define ENABLE_NLS 1
8244 _ACEOF
8249 if test "x$CATOBJEXT" != "x"; then
8250 if test "x$ALL_LINGUAS" = "x"; then
8251 LINGUAS=
8252 else
8253 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8254 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8255 NEW_LINGUAS=
8256 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8257 case "$ALL_LINGUAS" in
8258 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8259 esac
8260 done
8261 LINGUAS=$NEW_LINGUAS
8262 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8263 echo "${ECHO_T}$LINGUAS" >&6
8266 if test -n "$LINGUAS"; then
8267 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8271 if test $ac_cv_header_locale_h = yes; then
8272 INCLUDE_LOCALE_H="#include <locale.h>"
8273 else
8274 INCLUDE_LOCALE_H="\
8275 /* The system does not provide the header <locale.h>. Take care yourself. */"
8279 if test -f $srcdir/po2tbl.sed.in; then
8280 if test "$CATOBJEXT" = ".cat"; then
8281 if test "${ac_cv_header_linux_version_h+set}" = set; then
8282 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8283 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8284 if test "${ac_cv_header_linux_version_h+set}" = set; then
8285 echo $ECHO_N "(cached) $ECHO_C" >&6
8287 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8288 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8289 else
8290 # Is the header compilable?
8291 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8292 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8293 cat >conftest.$ac_ext <<_ACEOF
8294 /* confdefs.h. */
8295 _ACEOF
8296 cat confdefs.h >>conftest.$ac_ext
8297 cat >>conftest.$ac_ext <<_ACEOF
8298 /* end confdefs.h. */
8299 $ac_includes_default
8300 #include <linux/version.h>
8301 _ACEOF
8302 rm -f conftest.$ac_objext
8303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8304 (eval $ac_compile) 2>conftest.er1
8305 ac_status=$?
8306 grep -v '^ *+' conftest.er1 >conftest.err
8307 rm -f conftest.er1
8308 cat conftest.err >&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); } &&
8311 { ac_try='test -z "$ac_c_werror_flag"
8312 || test ! -s conftest.err'
8313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8314 (eval $ac_try) 2>&5
8315 ac_status=$?
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); }; } &&
8318 { ac_try='test -s conftest.$ac_objext'
8319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8320 (eval $ac_try) 2>&5
8321 ac_status=$?
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; }; then
8324 ac_header_compiler=yes
8325 else
8326 echo "$as_me: failed program was:" >&5
8327 sed 's/^/| /' conftest.$ac_ext >&5
8329 ac_header_compiler=no
8331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8332 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8333 echo "${ECHO_T}$ac_header_compiler" >&6
8335 # Is the header present?
8336 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8337 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8338 cat >conftest.$ac_ext <<_ACEOF
8339 /* confdefs.h. */
8340 _ACEOF
8341 cat confdefs.h >>conftest.$ac_ext
8342 cat >>conftest.$ac_ext <<_ACEOF
8343 /* end confdefs.h. */
8344 #include <linux/version.h>
8345 _ACEOF
8346 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8348 ac_status=$?
8349 grep -v '^ *+' conftest.er1 >conftest.err
8350 rm -f conftest.er1
8351 cat conftest.err >&5
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); } >/dev/null; then
8354 if test -s conftest.err; then
8355 ac_cpp_err=$ac_c_preproc_warn_flag
8356 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8357 else
8358 ac_cpp_err=
8360 else
8361 ac_cpp_err=yes
8363 if test -z "$ac_cpp_err"; then
8364 ac_header_preproc=yes
8365 else
8366 echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8369 ac_header_preproc=no
8371 rm -f conftest.err conftest.$ac_ext
8372 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8373 echo "${ECHO_T}$ac_header_preproc" >&6
8375 # So? What about this header?
8376 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8377 yes:no: )
8378 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8379 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8380 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8381 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8382 ac_header_preproc=yes
8384 no:yes:* )
8385 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8386 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8387 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8388 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8389 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8390 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8391 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8392 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8393 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8394 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8395 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8396 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8398 cat <<\_ASBOX
8399 ## ------------------------------------------ ##
8400 ## Report this to the AC_PACKAGE_NAME lists. ##
8401 ## ------------------------------------------ ##
8402 _ASBOX
8404 sed "s/^/$as_me: WARNING: /" >&2
8406 esac
8407 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8408 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8409 if test "${ac_cv_header_linux_version_h+set}" = set; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8411 else
8412 ac_cv_header_linux_version_h=$ac_header_preproc
8414 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8415 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8418 if test $ac_cv_header_linux_version_h = yes; then
8419 msgformat=linux
8420 else
8421 msgformat=xopen
8426 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8428 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8429 $srcdir/po2tbl.sed.in > po2tbl.sed
8432 if test "$PACKAGE" = "gettext"; then
8433 GT_NO="#NO#"
8434 GT_YES=
8435 else
8436 GT_NO=
8437 GT_YES="#YES#"
8442 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
8448 if test -f $srcdir/po/POTFILES.in; then
8449 test -d po || mkdir po
8450 if test "x$srcdir" != "x."; then
8451 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8452 posrcprefix="$srcdir/"
8453 else
8454 posrcprefix="../$srcdir/"
8456 else
8457 posrcprefix="../"
8459 rm -f po/POTFILES
8460 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8461 < $srcdir/po/POTFILES.in > po/POTFILES
8465 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
8466 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
8467 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8468 if test "${enable_maintainer_mode+set}" = set; then
8469 enableval="$enable_maintainer_mode"
8470 USE_MAINTAINER_MODE=$enableval
8471 else
8472 USE_MAINTAINER_MODE=no
8474 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
8475 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
8478 if test $USE_MAINTAINER_MODE = yes; then
8479 MAINTAINER_MODE_TRUE=
8480 MAINTAINER_MODE_FALSE='#'
8481 else
8482 MAINTAINER_MODE_TRUE='#'
8483 MAINTAINER_MODE_FALSE=
8486 MAINT=$MAINTAINER_MODE_TRUE
8490 if test -n "$EXEEXT"; then
8492 cat >>confdefs.h <<\_ACEOF
8493 #define HAVE_EXECUTABLE_SUFFIX 1
8494 _ACEOF
8498 cat >>confdefs.h <<_ACEOF
8499 #define EXECUTABLE_SUFFIX "${EXEEXT}"
8500 _ACEOF
8503 # host-specific stuff:
8505 HDEFINES=
8507 . ${srcdir}/../bfd/configure.host
8510 AR=${AR-ar}
8512 if test -n "$ac_tool_prefix"; then
8513 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8514 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8515 echo "$as_me:$LINENO: checking for $ac_word" >&5
8516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8517 if test "${ac_cv_prog_RANLIB+set}" = set; then
8518 echo $ECHO_N "(cached) $ECHO_C" >&6
8519 else
8520 if test -n "$RANLIB"; then
8521 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8522 else
8523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8524 for as_dir in $PATH
8526 IFS=$as_save_IFS
8527 test -z "$as_dir" && as_dir=.
8528 for ac_exec_ext in '' $ac_executable_extensions; do
8529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8530 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8532 break 2
8534 done
8535 done
8539 RANLIB=$ac_cv_prog_RANLIB
8540 if test -n "$RANLIB"; then
8541 echo "$as_me:$LINENO: result: $RANLIB" >&5
8542 echo "${ECHO_T}$RANLIB" >&6
8543 else
8544 echo "$as_me:$LINENO: result: no" >&5
8545 echo "${ECHO_T}no" >&6
8549 if test -z "$ac_cv_prog_RANLIB"; then
8550 ac_ct_RANLIB=$RANLIB
8551 # Extract the first word of "ranlib", so it can be a program name with args.
8552 set dummy ranlib; ac_word=$2
8553 echo "$as_me:$LINENO: checking for $ac_word" >&5
8554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8555 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8556 echo $ECHO_N "(cached) $ECHO_C" >&6
8557 else
8558 if test -n "$ac_ct_RANLIB"; then
8559 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8560 else
8561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8562 for as_dir in $PATH
8564 IFS=$as_save_IFS
8565 test -z "$as_dir" && as_dir=.
8566 for ac_exec_ext in '' $ac_executable_extensions; do
8567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8568 ac_cv_prog_ac_ct_RANLIB="ranlib"
8569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8570 break 2
8572 done
8573 done
8575 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8578 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8579 if test -n "$ac_ct_RANLIB"; then
8580 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8581 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8582 else
8583 echo "$as_me:$LINENO: result: no" >&5
8584 echo "${ECHO_T}no" >&6
8587 RANLIB=$ac_ct_RANLIB
8588 else
8589 RANLIB="$ac_cv_prog_RANLIB"
8592 # Find a good install program. We prefer a C program (faster),
8593 # so one script is as good as another. But avoid the broken or
8594 # incompatible versions:
8595 # SysV /etc/install, /usr/sbin/install
8596 # SunOS /usr/etc/install
8597 # IRIX /sbin/install
8598 # AIX /bin/install
8599 # AmigaOS /C/install, which installs bootblocks on floppy discs
8600 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8601 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8602 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8603 # OS/2's system install, which has a completely different semantic
8604 # ./install, which can be erroneously created by make from ./install.sh.
8605 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8606 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8607 if test -z "$INSTALL"; then
8608 if test "${ac_cv_path_install+set}" = set; then
8609 echo $ECHO_N "(cached) $ECHO_C" >&6
8610 else
8611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8612 for as_dir in $PATH
8614 IFS=$as_save_IFS
8615 test -z "$as_dir" && as_dir=.
8616 # Account for people who put trailing slashes in PATH elements.
8617 case $as_dir/ in
8618 ./ | .// | /cC/* | \
8619 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8620 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8621 /usr/ucb/* ) ;;
8623 # OSF1 and SCO ODT 3.0 have their own names for install.
8624 # Don't use installbsd from OSF since it installs stuff as root
8625 # by default.
8626 for ac_prog in ginstall scoinst install; do
8627 for ac_exec_ext in '' $ac_executable_extensions; do
8628 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8629 if test $ac_prog = install &&
8630 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8631 # AIX install. It has an incompatible calling convention.
8633 elif test $ac_prog = install &&
8634 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8635 # program-specific install script used by HP pwplus--don't use.
8637 else
8638 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8639 break 3
8642 done
8643 done
8645 esac
8646 done
8650 if test "${ac_cv_path_install+set}" = set; then
8651 INSTALL=$ac_cv_path_install
8652 else
8653 # As a last resort, use the slow shell script. We don't cache a
8654 # path for INSTALL within a source directory, because that will
8655 # break other packages using the cache if that directory is
8656 # removed, or if the path is relative.
8657 INSTALL=$ac_install_sh
8660 echo "$as_me:$LINENO: result: $INSTALL" >&5
8661 echo "${ECHO_T}$INSTALL" >&6
8663 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8664 # It thinks the first close brace ends the variable substitution.
8665 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8667 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8669 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8672 # Put a plausible default for CC_FOR_BUILD in Makefile.
8673 if test -z "$CC_FOR_BUILD"; then
8674 if test "x$cross_compiling" = "xno"; then
8675 CC_FOR_BUILD='$(CC)'
8676 else
8677 CC_FOR_BUILD=gcc
8681 # Also set EXEEXT_FOR_BUILD.
8682 if test "x$cross_compiling" = "xno"; then
8683 EXEEXT_FOR_BUILD='$(EXEEXT)'
8684 else
8685 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
8686 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
8687 if test "${bfd_cv_build_exeext+set}" = set; then
8688 echo $ECHO_N "(cached) $ECHO_C" >&6
8689 else
8690 rm -f conftest*
8691 echo 'int main () { return 0; }' > conftest.c
8692 bfd_cv_build_exeext=
8693 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
8694 for file in conftest.*; do
8695 case $file in
8696 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
8697 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
8698 esac
8699 done
8700 rm -f conftest*
8701 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
8703 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
8704 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
8705 EXEEXT_FOR_BUILD=""
8706 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
8710 DEMANGLER_NAME=c++filt
8711 case "${host}" in
8712 *-*-go32* | *-*-msdos*)
8713 DEMANGLER_NAME=cxxfilt
8714 esac
8723 for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h
8725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8727 echo "$as_me:$LINENO: checking for $ac_header" >&5
8728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8730 echo $ECHO_N "(cached) $ECHO_C" >&6
8732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8733 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8734 else
8735 # Is the header compilable?
8736 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8737 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8738 cat >conftest.$ac_ext <<_ACEOF
8739 /* confdefs.h. */
8740 _ACEOF
8741 cat confdefs.h >>conftest.$ac_ext
8742 cat >>conftest.$ac_ext <<_ACEOF
8743 /* end confdefs.h. */
8744 $ac_includes_default
8745 #include <$ac_header>
8746 _ACEOF
8747 rm -f conftest.$ac_objext
8748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8749 (eval $ac_compile) 2>conftest.er1
8750 ac_status=$?
8751 grep -v '^ *+' conftest.er1 >conftest.err
8752 rm -f conftest.er1
8753 cat conftest.err >&5
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); } &&
8756 { ac_try='test -z "$ac_c_werror_flag"
8757 || test ! -s conftest.err'
8758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8759 (eval $ac_try) 2>&5
8760 ac_status=$?
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); }; } &&
8763 { ac_try='test -s conftest.$ac_objext'
8764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765 (eval $ac_try) 2>&5
8766 ac_status=$?
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); }; }; then
8769 ac_header_compiler=yes
8770 else
8771 echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8774 ac_header_compiler=no
8776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8777 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8778 echo "${ECHO_T}$ac_header_compiler" >&6
8780 # Is the header present?
8781 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8782 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8783 cat >conftest.$ac_ext <<_ACEOF
8784 /* confdefs.h. */
8785 _ACEOF
8786 cat confdefs.h >>conftest.$ac_ext
8787 cat >>conftest.$ac_ext <<_ACEOF
8788 /* end confdefs.h. */
8789 #include <$ac_header>
8790 _ACEOF
8791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8793 ac_status=$?
8794 grep -v '^ *+' conftest.er1 >conftest.err
8795 rm -f conftest.er1
8796 cat conftest.err >&5
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); } >/dev/null; then
8799 if test -s conftest.err; then
8800 ac_cpp_err=$ac_c_preproc_warn_flag
8801 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8802 else
8803 ac_cpp_err=
8805 else
8806 ac_cpp_err=yes
8808 if test -z "$ac_cpp_err"; then
8809 ac_header_preproc=yes
8810 else
8811 echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8814 ac_header_preproc=no
8816 rm -f conftest.err conftest.$ac_ext
8817 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8818 echo "${ECHO_T}$ac_header_preproc" >&6
8820 # So? What about this header?
8821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8822 yes:no: )
8823 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8824 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8826 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8827 ac_header_preproc=yes
8829 no:yes:* )
8830 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8831 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8832 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8833 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8834 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8835 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8836 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8837 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8839 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8840 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8841 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8843 cat <<\_ASBOX
8844 ## ------------------------------------------ ##
8845 ## Report this to the AC_PACKAGE_NAME lists. ##
8846 ## ------------------------------------------ ##
8847 _ASBOX
8849 sed "s/^/$as_me: WARNING: /" >&2
8851 esac
8852 echo "$as_me:$LINENO: checking for $ac_header" >&5
8853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8855 echo $ECHO_N "(cached) $ECHO_C" >&6
8856 else
8857 eval "$as_ac_Header=\$ac_header_preproc"
8859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8864 cat >>confdefs.h <<_ACEOF
8865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8866 _ACEOF
8870 done
8872 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8873 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8874 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8875 echo $ECHO_N "(cached) $ECHO_C" >&6
8876 else
8877 cat >conftest.$ac_ext <<_ACEOF
8878 /* confdefs.h. */
8879 _ACEOF
8880 cat confdefs.h >>conftest.$ac_ext
8881 cat >>conftest.$ac_ext <<_ACEOF
8882 /* end confdefs.h. */
8883 #include <sys/types.h>
8884 #include <sys/wait.h>
8885 #ifndef WEXITSTATUS
8886 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8887 #endif
8888 #ifndef WIFEXITED
8889 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8890 #endif
8893 main ()
8895 int s;
8896 wait (&s);
8897 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8899 return 0;
8901 _ACEOF
8902 rm -f conftest.$ac_objext
8903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8904 (eval $ac_compile) 2>conftest.er1
8905 ac_status=$?
8906 grep -v '^ *+' conftest.er1 >conftest.err
8907 rm -f conftest.er1
8908 cat conftest.err >&5
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); } &&
8911 { ac_try='test -z "$ac_c_werror_flag"
8912 || test ! -s conftest.err'
8913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914 (eval $ac_try) 2>&5
8915 ac_status=$?
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); }; } &&
8918 { ac_try='test -s conftest.$ac_objext'
8919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8920 (eval $ac_try) 2>&5
8921 ac_status=$?
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); }; }; then
8924 ac_cv_header_sys_wait_h=yes
8925 else
8926 echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.$ac_ext >&5
8929 ac_cv_header_sys_wait_h=no
8931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8933 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8934 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8935 if test $ac_cv_header_sys_wait_h = yes; then
8937 cat >>confdefs.h <<\_ACEOF
8938 #define HAVE_SYS_WAIT_H 1
8939 _ACEOF
8943 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8944 # for constant arguments. Useless!
8945 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8946 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8947 if test "${ac_cv_working_alloca_h+set}" = set; then
8948 echo $ECHO_N "(cached) $ECHO_C" >&6
8949 else
8950 cat >conftest.$ac_ext <<_ACEOF
8951 /* confdefs.h. */
8952 _ACEOF
8953 cat confdefs.h >>conftest.$ac_ext
8954 cat >>conftest.$ac_ext <<_ACEOF
8955 /* end confdefs.h. */
8956 #include <alloca.h>
8958 main ()
8960 char *p = (char *) alloca (2 * sizeof (int));
8962 return 0;
8964 _ACEOF
8965 rm -f conftest.$ac_objext conftest$ac_exeext
8966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8967 (eval $ac_link) 2>conftest.er1
8968 ac_status=$?
8969 grep -v '^ *+' conftest.er1 >conftest.err
8970 rm -f conftest.er1
8971 cat conftest.err >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); } &&
8974 { ac_try='test -z "$ac_c_werror_flag"
8975 || test ! -s conftest.err'
8976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8977 (eval $ac_try) 2>&5
8978 ac_status=$?
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); }; } &&
8981 { ac_try='test -s conftest$ac_exeext'
8982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8983 (eval $ac_try) 2>&5
8984 ac_status=$?
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); }; }; then
8987 ac_cv_working_alloca_h=yes
8988 else
8989 echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8992 ac_cv_working_alloca_h=no
8994 rm -f conftest.err conftest.$ac_objext \
8995 conftest$ac_exeext conftest.$ac_ext
8997 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8998 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8999 if test $ac_cv_working_alloca_h = yes; then
9001 cat >>confdefs.h <<\_ACEOF
9002 #define HAVE_ALLOCA_H 1
9003 _ACEOF
9007 echo "$as_me:$LINENO: checking for alloca" >&5
9008 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9009 if test "${ac_cv_func_alloca_works+set}" = set; then
9010 echo $ECHO_N "(cached) $ECHO_C" >&6
9011 else
9012 cat >conftest.$ac_ext <<_ACEOF
9013 /* confdefs.h. */
9014 _ACEOF
9015 cat confdefs.h >>conftest.$ac_ext
9016 cat >>conftest.$ac_ext <<_ACEOF
9017 /* end confdefs.h. */
9018 #ifdef __GNUC__
9019 # define alloca __builtin_alloca
9020 #else
9021 # ifdef _MSC_VER
9022 # include <malloc.h>
9023 # define alloca _alloca
9024 # else
9025 # if HAVE_ALLOCA_H
9026 # include <alloca.h>
9027 # else
9028 # ifdef _AIX
9029 #pragma alloca
9030 # else
9031 # ifndef alloca /* predefined by HP cc +Olibcalls */
9032 char *alloca ();
9033 # endif
9034 # endif
9035 # endif
9036 # endif
9037 #endif
9040 main ()
9042 char *p = (char *) alloca (1);
9044 return 0;
9046 _ACEOF
9047 rm -f conftest.$ac_objext conftest$ac_exeext
9048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9049 (eval $ac_link) 2>conftest.er1
9050 ac_status=$?
9051 grep -v '^ *+' conftest.er1 >conftest.err
9052 rm -f conftest.er1
9053 cat conftest.err >&5
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); } &&
9056 { ac_try='test -z "$ac_c_werror_flag"
9057 || test ! -s conftest.err'
9058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9059 (eval $ac_try) 2>&5
9060 ac_status=$?
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); }; } &&
9063 { ac_try='test -s conftest$ac_exeext'
9064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065 (eval $ac_try) 2>&5
9066 ac_status=$?
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }; }; then
9069 ac_cv_func_alloca_works=yes
9070 else
9071 echo "$as_me: failed program was:" >&5
9072 sed 's/^/| /' conftest.$ac_ext >&5
9074 ac_cv_func_alloca_works=no
9076 rm -f conftest.err conftest.$ac_objext \
9077 conftest$ac_exeext conftest.$ac_ext
9079 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9080 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9082 if test $ac_cv_func_alloca_works = yes; then
9084 cat >>confdefs.h <<\_ACEOF
9085 #define HAVE_ALLOCA 1
9086 _ACEOF
9088 else
9089 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9090 # that cause trouble. Some versions do not even contain alloca or
9091 # contain a buggy version. If you still want to use their alloca,
9092 # use ar to extract alloca.o from them instead of compiling alloca.c.
9094 ALLOCA=alloca.$ac_objext
9096 cat >>confdefs.h <<\_ACEOF
9097 #define C_ALLOCA 1
9098 _ACEOF
9101 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9102 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9103 if test "${ac_cv_os_cray+set}" = set; then
9104 echo $ECHO_N "(cached) $ECHO_C" >&6
9105 else
9106 cat >conftest.$ac_ext <<_ACEOF
9107 /* confdefs.h. */
9108 _ACEOF
9109 cat confdefs.h >>conftest.$ac_ext
9110 cat >>conftest.$ac_ext <<_ACEOF
9111 /* end confdefs.h. */
9112 #if defined(CRAY) && ! defined(CRAY2)
9113 webecray
9114 #else
9115 wenotbecray
9116 #endif
9118 _ACEOF
9119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9120 $EGREP "webecray" >/dev/null 2>&1; then
9121 ac_cv_os_cray=yes
9122 else
9123 ac_cv_os_cray=no
9125 rm -f conftest*
9128 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9129 echo "${ECHO_T}$ac_cv_os_cray" >&6
9130 if test $ac_cv_os_cray = yes; then
9131 for ac_func in _getb67 GETB67 getb67; do
9132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9133 echo "$as_me:$LINENO: checking for $ac_func" >&5
9134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9135 if eval "test \"\${$as_ac_var+set}\" = set"; then
9136 echo $ECHO_N "(cached) $ECHO_C" >&6
9137 else
9138 cat >conftest.$ac_ext <<_ACEOF
9139 /* confdefs.h. */
9140 _ACEOF
9141 cat confdefs.h >>conftest.$ac_ext
9142 cat >>conftest.$ac_ext <<_ACEOF
9143 /* end confdefs.h. */
9144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9146 #define $ac_func innocuous_$ac_func
9148 /* System header to define __stub macros and hopefully few prototypes,
9149 which can conflict with char $ac_func (); below.
9150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9151 <limits.h> exists even on freestanding compilers. */
9153 #ifdef __STDC__
9154 # include <limits.h>
9155 #else
9156 # include <assert.h>
9157 #endif
9159 #undef $ac_func
9161 /* Override any gcc2 internal prototype to avoid an error. */
9162 #ifdef __cplusplus
9163 extern "C"
9165 #endif
9166 /* We use char because int might match the return type of a gcc2
9167 builtin and then its argument prototype would still apply. */
9168 char $ac_func ();
9169 /* The GNU C library defines this for functions which it implements
9170 to always fail with ENOSYS. Some functions are actually named
9171 something starting with __ and the normal name is an alias. */
9172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9173 choke me
9174 #else
9175 char (*f) () = $ac_func;
9176 #endif
9177 #ifdef __cplusplus
9179 #endif
9182 main ()
9184 return f != $ac_func;
9186 return 0;
9188 _ACEOF
9189 rm -f conftest.$ac_objext conftest$ac_exeext
9190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9191 (eval $ac_link) 2>conftest.er1
9192 ac_status=$?
9193 grep -v '^ *+' conftest.er1 >conftest.err
9194 rm -f conftest.er1
9195 cat conftest.err >&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } &&
9198 { ac_try='test -z "$ac_c_werror_flag"
9199 || test ! -s conftest.err'
9200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9201 (eval $ac_try) 2>&5
9202 ac_status=$?
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); }; } &&
9205 { ac_try='test -s conftest$ac_exeext'
9206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9207 (eval $ac_try) 2>&5
9208 ac_status=$?
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); }; }; then
9211 eval "$as_ac_var=yes"
9212 else
9213 echo "$as_me: failed program was:" >&5
9214 sed 's/^/| /' conftest.$ac_ext >&5
9216 eval "$as_ac_var=no"
9218 rm -f conftest.err conftest.$ac_objext \
9219 conftest$ac_exeext conftest.$ac_ext
9221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9222 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9223 if test `eval echo '${'$as_ac_var'}'` = yes; then
9225 cat >>confdefs.h <<_ACEOF
9226 #define CRAY_STACKSEG_END $ac_func
9227 _ACEOF
9229 break
9232 done
9235 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9236 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9237 if test "${ac_cv_c_stack_direction+set}" = set; then
9238 echo $ECHO_N "(cached) $ECHO_C" >&6
9239 else
9240 if test "$cross_compiling" = yes; then
9241 ac_cv_c_stack_direction=0
9242 else
9243 cat >conftest.$ac_ext <<_ACEOF
9244 /* confdefs.h. */
9245 _ACEOF
9246 cat confdefs.h >>conftest.$ac_ext
9247 cat >>conftest.$ac_ext <<_ACEOF
9248 /* end confdefs.h. */
9250 find_stack_direction ()
9252 static char *addr = 0;
9253 auto char dummy;
9254 if (addr == 0)
9256 addr = &dummy;
9257 return find_stack_direction ();
9259 else
9260 return (&dummy > addr) ? 1 : -1;
9264 main ()
9266 exit (find_stack_direction () < 0);
9268 _ACEOF
9269 rm -f conftest$ac_exeext
9270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9271 (eval $ac_link) 2>&5
9272 ac_status=$?
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9276 (eval $ac_try) 2>&5
9277 ac_status=$?
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); }; }; then
9280 ac_cv_c_stack_direction=1
9281 else
9282 echo "$as_me: program exited with status $ac_status" >&5
9283 echo "$as_me: failed program was:" >&5
9284 sed 's/^/| /' conftest.$ac_ext >&5
9286 ( exit $ac_status )
9287 ac_cv_c_stack_direction=-1
9289 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9292 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9293 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9295 cat >>confdefs.h <<_ACEOF
9296 #define STACK_DIRECTION $ac_cv_c_stack_direction
9297 _ACEOF
9307 for ac_func in sbrk utimes setmode getc_unlocked strcoll
9309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9310 echo "$as_me:$LINENO: checking for $ac_func" >&5
9311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9312 if eval "test \"\${$as_ac_var+set}\" = set"; then
9313 echo $ECHO_N "(cached) $ECHO_C" >&6
9314 else
9315 cat >conftest.$ac_ext <<_ACEOF
9316 /* confdefs.h. */
9317 _ACEOF
9318 cat confdefs.h >>conftest.$ac_ext
9319 cat >>conftest.$ac_ext <<_ACEOF
9320 /* end confdefs.h. */
9321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9323 #define $ac_func innocuous_$ac_func
9325 /* System header to define __stub macros and hopefully few prototypes,
9326 which can conflict with char $ac_func (); below.
9327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9328 <limits.h> exists even on freestanding compilers. */
9330 #ifdef __STDC__
9331 # include <limits.h>
9332 #else
9333 # include <assert.h>
9334 #endif
9336 #undef $ac_func
9338 /* Override any gcc2 internal prototype to avoid an error. */
9339 #ifdef __cplusplus
9340 extern "C"
9342 #endif
9343 /* We use char because int might match the return type of a gcc2
9344 builtin and then its argument prototype would still apply. */
9345 char $ac_func ();
9346 /* The GNU C library defines this for functions which it implements
9347 to always fail with ENOSYS. Some functions are actually named
9348 something starting with __ and the normal name is an alias. */
9349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9350 choke me
9351 #else
9352 char (*f) () = $ac_func;
9353 #endif
9354 #ifdef __cplusplus
9356 #endif
9359 main ()
9361 return f != $ac_func;
9363 return 0;
9365 _ACEOF
9366 rm -f conftest.$ac_objext conftest$ac_exeext
9367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9368 (eval $ac_link) 2>conftest.er1
9369 ac_status=$?
9370 grep -v '^ *+' conftest.er1 >conftest.err
9371 rm -f conftest.er1
9372 cat conftest.err >&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); } &&
9375 { ac_try='test -z "$ac_c_werror_flag"
9376 || test ! -s conftest.err'
9377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9378 (eval $ac_try) 2>&5
9379 ac_status=$?
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); }; } &&
9382 { ac_try='test -s conftest$ac_exeext'
9383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9384 (eval $ac_try) 2>&5
9385 ac_status=$?
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); }; }; then
9388 eval "$as_ac_var=yes"
9389 else
9390 echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.$ac_ext >&5
9393 eval "$as_ac_var=no"
9395 rm -f conftest.err conftest.$ac_objext \
9396 conftest$ac_exeext conftest.$ac_ext
9398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9399 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9400 if test `eval echo '${'$as_ac_var'}'` = yes; then
9401 cat >>confdefs.h <<_ACEOF
9402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9403 _ACEOF
9406 done
9409 # Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
9410 # needs to be defined for it
9411 echo "$as_me:$LINENO: checking for fopen64" >&5
9412 echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
9413 if test "${bu_cv_have_fopen64+set}" = set; then
9414 echo $ECHO_N "(cached) $ECHO_C" >&6
9415 else
9416 cat >conftest.$ac_ext <<_ACEOF
9417 /* confdefs.h. */
9418 _ACEOF
9419 cat confdefs.h >>conftest.$ac_ext
9420 cat >>conftest.$ac_ext <<_ACEOF
9421 /* end confdefs.h. */
9422 #include <stdio.h>
9424 main ()
9426 FILE *f = fopen64 ("/tmp/foo","r");
9428 return 0;
9430 _ACEOF
9431 rm -f conftest.$ac_objext conftest$ac_exeext
9432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9433 (eval $ac_link) 2>conftest.er1
9434 ac_status=$?
9435 grep -v '^ *+' conftest.er1 >conftest.err
9436 rm -f conftest.er1
9437 cat conftest.err >&5
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); } &&
9440 { ac_try='test -z "$ac_c_werror_flag"
9441 || test ! -s conftest.err'
9442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9443 (eval $ac_try) 2>&5
9444 ac_status=$?
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); }; } &&
9447 { ac_try='test -s conftest$ac_exeext'
9448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449 (eval $ac_try) 2>&5
9450 ac_status=$?
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); }; }; then
9453 bu_cv_have_fopen64=yes
9454 else
9455 echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.$ac_ext >&5
9458 saved_CPPFLAGS=$CPPFLAGS
9459 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
9460 cat >conftest.$ac_ext <<_ACEOF
9461 /* confdefs.h. */
9462 _ACEOF
9463 cat confdefs.h >>conftest.$ac_ext
9464 cat >>conftest.$ac_ext <<_ACEOF
9465 /* end confdefs.h. */
9466 #include <stdio.h>
9468 main ()
9470 FILE *f = fopen64 ("/tmp/foo","r");
9472 return 0;
9474 _ACEOF
9475 rm -f conftest.$ac_objext conftest$ac_exeext
9476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9477 (eval $ac_link) 2>conftest.er1
9478 ac_status=$?
9479 grep -v '^ *+' conftest.er1 >conftest.err
9480 rm -f conftest.er1
9481 cat conftest.err >&5
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); } &&
9484 { ac_try='test -z "$ac_c_werror_flag"
9485 || test ! -s conftest.err'
9486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9487 (eval $ac_try) 2>&5
9488 ac_status=$?
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); }; } &&
9491 { ac_try='test -s conftest$ac_exeext'
9492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9493 (eval $ac_try) 2>&5
9494 ac_status=$?
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); }; }; then
9497 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
9498 else
9499 echo "$as_me: failed program was:" >&5
9500 sed 's/^/| /' conftest.$ac_ext >&5
9502 bu_cv_have_fopen64=no
9504 rm -f conftest.err conftest.$ac_objext \
9505 conftest$ac_exeext conftest.$ac_ext
9506 CPPFLAGS=$saved_CPPFLAGS
9508 rm -f conftest.err conftest.$ac_objext \
9509 conftest$ac_exeext conftest.$ac_ext
9512 echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
9513 echo "${ECHO_T}$bu_cv_have_fopen64" >&6
9514 if test "$bu_cv_have_fopen64" != no; then
9516 cat >>confdefs.h <<\_ACEOF
9517 #define HAVE_FOPEN64 1
9518 _ACEOF
9521 echo "$as_me:$LINENO: checking for stat64" >&5
9522 echo $ECHO_N "checking for stat64... $ECHO_C" >&6
9523 if test "${bu_cv_have_stat64+set}" = set; then
9524 echo $ECHO_N "(cached) $ECHO_C" >&6
9525 else
9526 cat >conftest.$ac_ext <<_ACEOF
9527 /* confdefs.h. */
9528 _ACEOF
9529 cat confdefs.h >>conftest.$ac_ext
9530 cat >>conftest.$ac_ext <<_ACEOF
9531 /* end confdefs.h. */
9532 #include <sys/stat.h>
9534 main ()
9536 struct stat64 st; stat64 ("/tmp/foo", &st);
9538 return 0;
9540 _ACEOF
9541 rm -f conftest.$ac_objext conftest$ac_exeext
9542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9543 (eval $ac_link) 2>conftest.er1
9544 ac_status=$?
9545 grep -v '^ *+' conftest.er1 >conftest.err
9546 rm -f conftest.er1
9547 cat conftest.err >&5
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); } &&
9550 { ac_try='test -z "$ac_c_werror_flag"
9551 || test ! -s conftest.err'
9552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553 (eval $ac_try) 2>&5
9554 ac_status=$?
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); }; } &&
9557 { ac_try='test -s conftest$ac_exeext'
9558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9559 (eval $ac_try) 2>&5
9560 ac_status=$?
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); }; }; then
9563 bu_cv_have_stat64=yes
9564 else
9565 echo "$as_me: failed program was:" >&5
9566 sed 's/^/| /' conftest.$ac_ext >&5
9568 saved_CPPFLAGS=$CPPFLAGS
9569 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
9570 cat >conftest.$ac_ext <<_ACEOF
9571 /* confdefs.h. */
9572 _ACEOF
9573 cat confdefs.h >>conftest.$ac_ext
9574 cat >>conftest.$ac_ext <<_ACEOF
9575 /* end confdefs.h. */
9576 #include <sys/stat.h>
9578 main ()
9580 struct stat64 st; stat64 ("/tmp/foo", &st);
9582 return 0;
9584 _ACEOF
9585 rm -f conftest.$ac_objext conftest$ac_exeext
9586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9587 (eval $ac_link) 2>conftest.er1
9588 ac_status=$?
9589 grep -v '^ *+' conftest.er1 >conftest.err
9590 rm -f conftest.er1
9591 cat conftest.err >&5
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); } &&
9594 { ac_try='test -z "$ac_c_werror_flag"
9595 || test ! -s conftest.err'
9596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9597 (eval $ac_try) 2>&5
9598 ac_status=$?
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); }; } &&
9601 { ac_try='test -s conftest$ac_exeext'
9602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9603 (eval $ac_try) 2>&5
9604 ac_status=$?
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); }; }; then
9607 bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
9608 else
9609 echo "$as_me: failed program was:" >&5
9610 sed 's/^/| /' conftest.$ac_ext >&5
9612 bu_cv_have_stat64=no
9614 rm -f conftest.err conftest.$ac_objext \
9615 conftest$ac_exeext conftest.$ac_ext
9616 CPPFLAGS=$saved_CPPFLAGS
9618 rm -f conftest.err conftest.$ac_objext \
9619 conftest$ac_exeext conftest.$ac_ext
9622 echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
9623 echo "${ECHO_T}$bu_cv_have_stat64" >&6
9624 if test "$bu_cv_have_stat64" != no; then
9626 cat >>confdefs.h <<\_ACEOF
9627 #define HAVE_STAT64 1
9628 _ACEOF
9631 if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
9632 || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
9634 cat >>confdefs.h <<\_ACEOF
9635 #define _LARGEFILE64_SOURCE 1
9636 _ACEOF
9638 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
9641 # Some systems have frexp only in -lm, not in -lc.
9642 echo "$as_me:$LINENO: checking for library containing frexp" >&5
9643 echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
9644 if test "${ac_cv_search_frexp+set}" = set; then
9645 echo $ECHO_N "(cached) $ECHO_C" >&6
9646 else
9647 ac_func_search_save_LIBS=$LIBS
9648 ac_cv_search_frexp=no
9649 cat >conftest.$ac_ext <<_ACEOF
9650 /* confdefs.h. */
9651 _ACEOF
9652 cat confdefs.h >>conftest.$ac_ext
9653 cat >>conftest.$ac_ext <<_ACEOF
9654 /* end confdefs.h. */
9656 /* Override any gcc2 internal prototype to avoid an error. */
9657 #ifdef __cplusplus
9658 extern "C"
9659 #endif
9660 /* We use char because int might match the return type of a gcc2
9661 builtin and then its argument prototype would still apply. */
9662 char frexp ();
9664 main ()
9666 frexp ();
9668 return 0;
9670 _ACEOF
9671 rm -f conftest.$ac_objext conftest$ac_exeext
9672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9673 (eval $ac_link) 2>conftest.er1
9674 ac_status=$?
9675 grep -v '^ *+' conftest.er1 >conftest.err
9676 rm -f conftest.er1
9677 cat conftest.err >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } &&
9680 { ac_try='test -z "$ac_c_werror_flag"
9681 || test ! -s conftest.err'
9682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9683 (eval $ac_try) 2>&5
9684 ac_status=$?
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; } &&
9687 { ac_try='test -s conftest$ac_exeext'
9688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689 (eval $ac_try) 2>&5
9690 ac_status=$?
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); }; }; then
9693 ac_cv_search_frexp="none required"
9694 else
9695 echo "$as_me: failed program was:" >&5
9696 sed 's/^/| /' conftest.$ac_ext >&5
9699 rm -f conftest.err conftest.$ac_objext \
9700 conftest$ac_exeext conftest.$ac_ext
9701 if test "$ac_cv_search_frexp" = no; then
9702 for ac_lib in m; do
9703 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9704 cat >conftest.$ac_ext <<_ACEOF
9705 /* confdefs.h. */
9706 _ACEOF
9707 cat confdefs.h >>conftest.$ac_ext
9708 cat >>conftest.$ac_ext <<_ACEOF
9709 /* end confdefs.h. */
9711 /* Override any gcc2 internal prototype to avoid an error. */
9712 #ifdef __cplusplus
9713 extern "C"
9714 #endif
9715 /* We use char because int might match the return type of a gcc2
9716 builtin and then its argument prototype would still apply. */
9717 char frexp ();
9719 main ()
9721 frexp ();
9723 return 0;
9725 _ACEOF
9726 rm -f conftest.$ac_objext conftest$ac_exeext
9727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9728 (eval $ac_link) 2>conftest.er1
9729 ac_status=$?
9730 grep -v '^ *+' conftest.er1 >conftest.err
9731 rm -f conftest.er1
9732 cat conftest.err >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); } &&
9735 { ac_try='test -z "$ac_c_werror_flag"
9736 || test ! -s conftest.err'
9737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9738 (eval $ac_try) 2>&5
9739 ac_status=$?
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); }; } &&
9742 { ac_try='test -s conftest$ac_exeext'
9743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9744 (eval $ac_try) 2>&5
9745 ac_status=$?
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); }; }; then
9748 ac_cv_search_frexp="-l$ac_lib"
9749 break
9750 else
9751 echo "$as_me: failed program was:" >&5
9752 sed 's/^/| /' conftest.$ac_ext >&5
9755 rm -f conftest.err conftest.$ac_objext \
9756 conftest$ac_exeext conftest.$ac_ext
9757 done
9759 LIBS=$ac_func_search_save_LIBS
9761 echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
9762 echo "${ECHO_T}$ac_cv_search_frexp" >&6
9763 if test "$ac_cv_search_frexp" != no; then
9764 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
9769 echo "$as_me:$LINENO: checking for time_t in time.h" >&5
9770 echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
9771 if test "${bu_cv_decl_time_t_time_h+set}" = set; then
9772 echo $ECHO_N "(cached) $ECHO_C" >&6
9773 else
9774 cat >conftest.$ac_ext <<_ACEOF
9775 /* confdefs.h. */
9776 _ACEOF
9777 cat confdefs.h >>conftest.$ac_ext
9778 cat >>conftest.$ac_ext <<_ACEOF
9779 /* end confdefs.h. */
9780 #include <time.h>
9782 main ()
9784 time_t i;
9786 return 0;
9788 _ACEOF
9789 rm -f conftest.$ac_objext
9790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9791 (eval $ac_compile) 2>conftest.er1
9792 ac_status=$?
9793 grep -v '^ *+' conftest.er1 >conftest.err
9794 rm -f conftest.er1
9795 cat conftest.err >&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); } &&
9798 { ac_try='test -z "$ac_c_werror_flag"
9799 || test ! -s conftest.err'
9800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9801 (eval $ac_try) 2>&5
9802 ac_status=$?
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); }; } &&
9805 { ac_try='test -s conftest.$ac_objext'
9806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9807 (eval $ac_try) 2>&5
9808 ac_status=$?
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); }; }; then
9811 bu_cv_decl_time_t_time_h=yes
9812 else
9813 echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.$ac_ext >&5
9816 bu_cv_decl_time_t_time_h=no
9818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9821 echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
9822 echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
9823 if test $bu_cv_decl_time_t_time_h = yes; then
9825 cat >>confdefs.h <<\_ACEOF
9826 #define HAVE_TIME_T_IN_TIME_H 1
9827 _ACEOF
9831 echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
9832 echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
9833 if test "${bu_cv_decl_time_t_types_h+set}" = set; then
9834 echo $ECHO_N "(cached) $ECHO_C" >&6
9835 else
9836 cat >conftest.$ac_ext <<_ACEOF
9837 /* confdefs.h. */
9838 _ACEOF
9839 cat confdefs.h >>conftest.$ac_ext
9840 cat >>conftest.$ac_ext <<_ACEOF
9841 /* end confdefs.h. */
9842 #include <sys/types.h>
9844 main ()
9846 time_t i;
9848 return 0;
9850 _ACEOF
9851 rm -f conftest.$ac_objext
9852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9853 (eval $ac_compile) 2>conftest.er1
9854 ac_status=$?
9855 grep -v '^ *+' conftest.er1 >conftest.err
9856 rm -f conftest.er1
9857 cat conftest.err >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } &&
9860 { ac_try='test -z "$ac_c_werror_flag"
9861 || test ! -s conftest.err'
9862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863 (eval $ac_try) 2>&5
9864 ac_status=$?
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); }; } &&
9867 { ac_try='test -s conftest.$ac_objext'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 (eval $ac_try) 2>&5
9870 ac_status=$?
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; }; then
9873 bu_cv_decl_time_t_types_h=yes
9874 else
9875 echo "$as_me: failed program was:" >&5
9876 sed 's/^/| /' conftest.$ac_ext >&5
9878 bu_cv_decl_time_t_types_h=no
9880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9883 echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
9884 echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
9885 if test $bu_cv_decl_time_t_types_h = yes; then
9887 cat >>confdefs.h <<\_ACEOF
9888 #define HAVE_TIME_T_IN_TYPES_H 1
9889 _ACEOF
9893 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
9894 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
9895 if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then
9896 echo $ECHO_N "(cached) $ECHO_C" >&6
9897 else
9898 cat >conftest.$ac_ext <<_ACEOF
9899 /* confdefs.h. */
9900 _ACEOF
9901 cat confdefs.h >>conftest.$ac_ext
9902 cat >>conftest.$ac_ext <<_ACEOF
9903 /* end confdefs.h. */
9904 #include <unistd.h>
9906 main ()
9908 extern int getopt (int, char *const*, const char *);
9910 return 0;
9912 _ACEOF
9913 rm -f conftest.$ac_objext
9914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9915 (eval $ac_compile) 2>conftest.er1
9916 ac_status=$?
9917 grep -v '^ *+' conftest.er1 >conftest.err
9918 rm -f conftest.er1
9919 cat conftest.err >&5
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); } &&
9922 { ac_try='test -z "$ac_c_werror_flag"
9923 || test ! -s conftest.err'
9924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9925 (eval $ac_try) 2>&5
9926 ac_status=$?
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); }; } &&
9929 { ac_try='test -s conftest.$ac_objext'
9930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9931 (eval $ac_try) 2>&5
9932 ac_status=$?
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); }; }; then
9935 bu_cv_decl_getopt_unistd_h=yes
9936 else
9937 echo "$as_me: failed program was:" >&5
9938 sed 's/^/| /' conftest.$ac_ext >&5
9940 bu_cv_decl_getopt_unistd_h=no
9942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9945 echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
9946 echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6
9947 if test $bu_cv_decl_getopt_unistd_h = yes; then
9949 cat >>confdefs.h <<\_ACEOF
9950 #define HAVE_DECL_GETOPT 1
9951 _ACEOF
9955 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
9956 # by default.
9957 echo "$as_me:$LINENO: checking for utime.h" >&5
9958 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
9959 if test "${bu_cv_header_utime_h+set}" = set; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
9961 else
9962 cat >conftest.$ac_ext <<_ACEOF
9963 /* confdefs.h. */
9964 _ACEOF
9965 cat confdefs.h >>conftest.$ac_ext
9966 cat >>conftest.$ac_ext <<_ACEOF
9967 /* end confdefs.h. */
9968 #include <sys/types.h>
9969 #ifdef HAVE_TIME_H
9970 #include <time.h>
9971 #endif
9972 #include <utime.h>
9974 main ()
9976 struct utimbuf s;
9978 return 0;
9980 _ACEOF
9981 rm -f conftest.$ac_objext
9982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9983 (eval $ac_compile) 2>conftest.er1
9984 ac_status=$?
9985 grep -v '^ *+' conftest.er1 >conftest.err
9986 rm -f conftest.er1
9987 cat conftest.err >&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); } &&
9990 { ac_try='test -z "$ac_c_werror_flag"
9991 || test ! -s conftest.err'
9992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9993 (eval $ac_try) 2>&5
9994 ac_status=$?
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; } &&
9997 { ac_try='test -s conftest.$ac_objext'
9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999 (eval $ac_try) 2>&5
10000 ac_status=$?
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; }; then
10003 bu_cv_header_utime_h=yes
10004 else
10005 echo "$as_me: failed program was:" >&5
10006 sed 's/^/| /' conftest.$ac_ext >&5
10008 bu_cv_header_utime_h=no
10010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10013 echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
10014 echo "${ECHO_T}$bu_cv_header_utime_h" >&6
10015 if test $bu_cv_header_utime_h = yes; then
10017 cat >>confdefs.h <<\_ACEOF
10018 #define HAVE_GOOD_UTIME_H 1
10019 _ACEOF
10023 echo "$as_me:$LINENO: checking whether fprintf is declared" >&5
10024 echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6
10025 if test "${ac_cv_have_decl_fprintf+set}" = set; then
10026 echo $ECHO_N "(cached) $ECHO_C" >&6
10027 else
10028 cat >conftest.$ac_ext <<_ACEOF
10029 /* confdefs.h. */
10030 _ACEOF
10031 cat confdefs.h >>conftest.$ac_ext
10032 cat >>conftest.$ac_ext <<_ACEOF
10033 /* end confdefs.h. */
10034 $ac_includes_default
10036 main ()
10038 #ifndef fprintf
10039 char *p = (char *) fprintf;
10040 #endif
10043 return 0;
10045 _ACEOF
10046 rm -f conftest.$ac_objext
10047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10048 (eval $ac_compile) 2>conftest.er1
10049 ac_status=$?
10050 grep -v '^ *+' conftest.er1 >conftest.err
10051 rm -f conftest.er1
10052 cat conftest.err >&5
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); } &&
10055 { ac_try='test -z "$ac_c_werror_flag"
10056 || test ! -s conftest.err'
10057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058 (eval $ac_try) 2>&5
10059 ac_status=$?
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); }; } &&
10062 { ac_try='test -s conftest.$ac_objext'
10063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064 (eval $ac_try) 2>&5
10065 ac_status=$?
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; }; then
10068 ac_cv_have_decl_fprintf=yes
10069 else
10070 echo "$as_me: failed program was:" >&5
10071 sed 's/^/| /' conftest.$ac_ext >&5
10073 ac_cv_have_decl_fprintf=no
10075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10077 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
10078 echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6
10079 if test $ac_cv_have_decl_fprintf = yes; then
10081 cat >>confdefs.h <<_ACEOF
10082 #define HAVE_DECL_FPRINTF 1
10083 _ACEOF
10086 else
10087 cat >>confdefs.h <<_ACEOF
10088 #define HAVE_DECL_FPRINTF 0
10089 _ACEOF
10093 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
10094 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
10095 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
10096 echo $ECHO_N "(cached) $ECHO_C" >&6
10097 else
10098 cat >conftest.$ac_ext <<_ACEOF
10099 /* confdefs.h. */
10100 _ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h. */
10104 $ac_includes_default
10106 main ()
10108 #ifndef stpcpy
10109 char *p = (char *) stpcpy;
10110 #endif
10113 return 0;
10115 _ACEOF
10116 rm -f conftest.$ac_objext
10117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10118 (eval $ac_compile) 2>conftest.er1
10119 ac_status=$?
10120 grep -v '^ *+' conftest.er1 >conftest.err
10121 rm -f conftest.er1
10122 cat conftest.err >&5
10123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124 (exit $ac_status); } &&
10125 { ac_try='test -z "$ac_c_werror_flag"
10126 || test ! -s conftest.err'
10127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10128 (eval $ac_try) 2>&5
10129 ac_status=$?
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); }; } &&
10132 { ac_try='test -s conftest.$ac_objext'
10133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10134 (eval $ac_try) 2>&5
10135 ac_status=$?
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); }; }; then
10138 ac_cv_have_decl_stpcpy=yes
10139 else
10140 echo "$as_me: failed program was:" >&5
10141 sed 's/^/| /' conftest.$ac_ext >&5
10143 ac_cv_have_decl_stpcpy=no
10145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10147 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
10148 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
10149 if test $ac_cv_have_decl_stpcpy = yes; then
10151 cat >>confdefs.h <<_ACEOF
10152 #define HAVE_DECL_STPCPY 1
10153 _ACEOF
10156 else
10157 cat >>confdefs.h <<_ACEOF
10158 #define HAVE_DECL_STPCPY 0
10159 _ACEOF
10163 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
10164 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
10165 if test "${ac_cv_have_decl_strstr+set}" = set; then
10166 echo $ECHO_N "(cached) $ECHO_C" >&6
10167 else
10168 cat >conftest.$ac_ext <<_ACEOF
10169 /* confdefs.h. */
10170 _ACEOF
10171 cat confdefs.h >>conftest.$ac_ext
10172 cat >>conftest.$ac_ext <<_ACEOF
10173 /* end confdefs.h. */
10174 $ac_includes_default
10176 main ()
10178 #ifndef strstr
10179 char *p = (char *) strstr;
10180 #endif
10183 return 0;
10185 _ACEOF
10186 rm -f conftest.$ac_objext
10187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10188 (eval $ac_compile) 2>conftest.er1
10189 ac_status=$?
10190 grep -v '^ *+' conftest.er1 >conftest.err
10191 rm -f conftest.er1
10192 cat conftest.err >&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } &&
10195 { ac_try='test -z "$ac_c_werror_flag"
10196 || test ! -s conftest.err'
10197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198 (eval $ac_try) 2>&5
10199 ac_status=$?
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); }; } &&
10202 { ac_try='test -s conftest.$ac_objext'
10203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204 (eval $ac_try) 2>&5
10205 ac_status=$?
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; }; then
10208 ac_cv_have_decl_strstr=yes
10209 else
10210 echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.$ac_ext >&5
10213 ac_cv_have_decl_strstr=no
10215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10217 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
10218 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
10219 if test $ac_cv_have_decl_strstr = yes; then
10221 cat >>confdefs.h <<_ACEOF
10222 #define HAVE_DECL_STRSTR 1
10223 _ACEOF
10226 else
10227 cat >>confdefs.h <<_ACEOF
10228 #define HAVE_DECL_STRSTR 0
10229 _ACEOF
10233 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
10234 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
10235 if test "${ac_cv_have_decl_sbrk+set}" = set; then
10236 echo $ECHO_N "(cached) $ECHO_C" >&6
10237 else
10238 cat >conftest.$ac_ext <<_ACEOF
10239 /* confdefs.h. */
10240 _ACEOF
10241 cat confdefs.h >>conftest.$ac_ext
10242 cat >>conftest.$ac_ext <<_ACEOF
10243 /* end confdefs.h. */
10244 $ac_includes_default
10246 main ()
10248 #ifndef sbrk
10249 char *p = (char *) sbrk;
10250 #endif
10253 return 0;
10255 _ACEOF
10256 rm -f conftest.$ac_objext
10257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10258 (eval $ac_compile) 2>conftest.er1
10259 ac_status=$?
10260 grep -v '^ *+' conftest.er1 >conftest.err
10261 rm -f conftest.er1
10262 cat conftest.err >&5
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); } &&
10265 { ac_try='test -z "$ac_c_werror_flag"
10266 || test ! -s conftest.err'
10267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10268 (eval $ac_try) 2>&5
10269 ac_status=$?
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); }; } &&
10272 { ac_try='test -s conftest.$ac_objext'
10273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10274 (eval $ac_try) 2>&5
10275 ac_status=$?
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); }; }; then
10278 ac_cv_have_decl_sbrk=yes
10279 else
10280 echo "$as_me: failed program was:" >&5
10281 sed 's/^/| /' conftest.$ac_ext >&5
10283 ac_cv_have_decl_sbrk=no
10285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10287 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
10288 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
10289 if test $ac_cv_have_decl_sbrk = yes; then
10291 cat >>confdefs.h <<_ACEOF
10292 #define HAVE_DECL_SBRK 1
10293 _ACEOF
10296 else
10297 cat >>confdefs.h <<_ACEOF
10298 #define HAVE_DECL_SBRK 0
10299 _ACEOF
10303 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
10304 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
10305 if test "${ac_cv_have_decl_getenv+set}" = set; then
10306 echo $ECHO_N "(cached) $ECHO_C" >&6
10307 else
10308 cat >conftest.$ac_ext <<_ACEOF
10309 /* confdefs.h. */
10310 _ACEOF
10311 cat confdefs.h >>conftest.$ac_ext
10312 cat >>conftest.$ac_ext <<_ACEOF
10313 /* end confdefs.h. */
10314 $ac_includes_default
10316 main ()
10318 #ifndef getenv
10319 char *p = (char *) getenv;
10320 #endif
10323 return 0;
10325 _ACEOF
10326 rm -f conftest.$ac_objext
10327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10328 (eval $ac_compile) 2>conftest.er1
10329 ac_status=$?
10330 grep -v '^ *+' conftest.er1 >conftest.err
10331 rm -f conftest.er1
10332 cat conftest.err >&5
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); } &&
10335 { ac_try='test -z "$ac_c_werror_flag"
10336 || test ! -s conftest.err'
10337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10338 (eval $ac_try) 2>&5
10339 ac_status=$?
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); }; } &&
10342 { ac_try='test -s conftest.$ac_objext'
10343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10344 (eval $ac_try) 2>&5
10345 ac_status=$?
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); }; }; then
10348 ac_cv_have_decl_getenv=yes
10349 else
10350 echo "$as_me: failed program was:" >&5
10351 sed 's/^/| /' conftest.$ac_ext >&5
10353 ac_cv_have_decl_getenv=no
10355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10357 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
10358 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
10359 if test $ac_cv_have_decl_getenv = yes; then
10361 cat >>confdefs.h <<_ACEOF
10362 #define HAVE_DECL_GETENV 1
10363 _ACEOF
10366 else
10367 cat >>confdefs.h <<_ACEOF
10368 #define HAVE_DECL_GETENV 0
10369 _ACEOF
10373 echo "$as_me:$LINENO: checking whether environ is declared" >&5
10374 echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
10375 if test "${ac_cv_have_decl_environ+set}" = set; then
10376 echo $ECHO_N "(cached) $ECHO_C" >&6
10377 else
10378 cat >conftest.$ac_ext <<_ACEOF
10379 /* confdefs.h. */
10380 _ACEOF
10381 cat confdefs.h >>conftest.$ac_ext
10382 cat >>conftest.$ac_ext <<_ACEOF
10383 /* end confdefs.h. */
10384 $ac_includes_default
10386 main ()
10388 #ifndef environ
10389 char *p = (char *) environ;
10390 #endif
10393 return 0;
10395 _ACEOF
10396 rm -f conftest.$ac_objext
10397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10398 (eval $ac_compile) 2>conftest.er1
10399 ac_status=$?
10400 grep -v '^ *+' conftest.er1 >conftest.err
10401 rm -f conftest.er1
10402 cat conftest.err >&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } &&
10405 { ac_try='test -z "$ac_c_werror_flag"
10406 || test ! -s conftest.err'
10407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10408 (eval $ac_try) 2>&5
10409 ac_status=$?
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); }; } &&
10412 { ac_try='test -s conftest.$ac_objext'
10413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10414 (eval $ac_try) 2>&5
10415 ac_status=$?
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); }; }; then
10418 ac_cv_have_decl_environ=yes
10419 else
10420 echo "$as_me: failed program was:" >&5
10421 sed 's/^/| /' conftest.$ac_ext >&5
10423 ac_cv_have_decl_environ=no
10425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10427 echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
10428 echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
10429 if test $ac_cv_have_decl_environ = yes; then
10431 cat >>confdefs.h <<_ACEOF
10432 #define HAVE_DECL_ENVIRON 1
10433 _ACEOF
10436 else
10437 cat >>confdefs.h <<_ACEOF
10438 #define HAVE_DECL_ENVIRON 0
10439 _ACEOF
10443 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10444 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
10445 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
10446 echo $ECHO_N "(cached) $ECHO_C" >&6
10447 else
10448 cat >conftest.$ac_ext <<_ACEOF
10449 /* confdefs.h. */
10450 _ACEOF
10451 cat confdefs.h >>conftest.$ac_ext
10452 cat >>conftest.$ac_ext <<_ACEOF
10453 /* end confdefs.h. */
10454 $ac_includes_default
10456 main ()
10458 #ifndef getc_unlocked
10459 char *p = (char *) getc_unlocked;
10460 #endif
10463 return 0;
10465 _ACEOF
10466 rm -f conftest.$ac_objext
10467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10468 (eval $ac_compile) 2>conftest.er1
10469 ac_status=$?
10470 grep -v '^ *+' conftest.er1 >conftest.err
10471 rm -f conftest.er1
10472 cat conftest.err >&5
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); } &&
10475 { ac_try='test -z "$ac_c_werror_flag"
10476 || test ! -s conftest.err'
10477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478 (eval $ac_try) 2>&5
10479 ac_status=$?
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); }; } &&
10482 { ac_try='test -s conftest.$ac_objext'
10483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484 (eval $ac_try) 2>&5
10485 ac_status=$?
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); }; }; then
10488 ac_cv_have_decl_getc_unlocked=yes
10489 else
10490 echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10493 ac_cv_have_decl_getc_unlocked=no
10495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10497 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10498 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
10499 if test $ac_cv_have_decl_getc_unlocked = yes; then
10501 cat >>confdefs.h <<_ACEOF
10502 #define HAVE_DECL_GETC_UNLOCKED 1
10503 _ACEOF
10506 else
10507 cat >>confdefs.h <<_ACEOF
10508 #define HAVE_DECL_GETC_UNLOCKED 0
10509 _ACEOF
10513 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10514 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10515 if test "${ac_cv_have_decl_snprintf+set}" = set; then
10516 echo $ECHO_N "(cached) $ECHO_C" >&6
10517 else
10518 cat >conftest.$ac_ext <<_ACEOF
10519 /* confdefs.h. */
10520 _ACEOF
10521 cat confdefs.h >>conftest.$ac_ext
10522 cat >>conftest.$ac_ext <<_ACEOF
10523 /* end confdefs.h. */
10524 $ac_includes_default
10526 main ()
10528 #ifndef snprintf
10529 char *p = (char *) snprintf;
10530 #endif
10533 return 0;
10535 _ACEOF
10536 rm -f conftest.$ac_objext
10537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10538 (eval $ac_compile) 2>conftest.er1
10539 ac_status=$?
10540 grep -v '^ *+' conftest.er1 >conftest.err
10541 rm -f conftest.er1
10542 cat conftest.err >&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); } &&
10545 { ac_try='test -z "$ac_c_werror_flag"
10546 || test ! -s conftest.err'
10547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10548 (eval $ac_try) 2>&5
10549 ac_status=$?
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); }; } &&
10552 { ac_try='test -s conftest.$ac_objext'
10553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10554 (eval $ac_try) 2>&5
10555 ac_status=$?
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); }; }; then
10558 ac_cv_have_decl_snprintf=yes
10559 else
10560 echo "$as_me: failed program was:" >&5
10561 sed 's/^/| /' conftest.$ac_ext >&5
10563 ac_cv_have_decl_snprintf=no
10565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10567 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10568 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10569 if test $ac_cv_have_decl_snprintf = yes; then
10571 cat >>confdefs.h <<_ACEOF
10572 #define HAVE_DECL_SNPRINTF 1
10573 _ACEOF
10576 else
10577 cat >>confdefs.h <<_ACEOF
10578 #define HAVE_DECL_SNPRINTF 0
10579 _ACEOF
10583 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10584 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10585 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10586 echo $ECHO_N "(cached) $ECHO_C" >&6
10587 else
10588 cat >conftest.$ac_ext <<_ACEOF
10589 /* confdefs.h. */
10590 _ACEOF
10591 cat confdefs.h >>conftest.$ac_ext
10592 cat >>conftest.$ac_ext <<_ACEOF
10593 /* end confdefs.h. */
10594 $ac_includes_default
10596 main ()
10598 #ifndef vsnprintf
10599 char *p = (char *) vsnprintf;
10600 #endif
10603 return 0;
10605 _ACEOF
10606 rm -f conftest.$ac_objext
10607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10608 (eval $ac_compile) 2>conftest.er1
10609 ac_status=$?
10610 grep -v '^ *+' conftest.er1 >conftest.err
10611 rm -f conftest.er1
10612 cat conftest.err >&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } &&
10615 { ac_try='test -z "$ac_c_werror_flag"
10616 || test ! -s conftest.err'
10617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10618 (eval $ac_try) 2>&5
10619 ac_status=$?
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); }; } &&
10622 { ac_try='test -s conftest.$ac_objext'
10623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10624 (eval $ac_try) 2>&5
10625 ac_status=$?
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); }; }; then
10628 ac_cv_have_decl_vsnprintf=yes
10629 else
10630 echo "$as_me: failed program was:" >&5
10631 sed 's/^/| /' conftest.$ac_ext >&5
10633 ac_cv_have_decl_vsnprintf=no
10635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10637 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10638 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10639 if test $ac_cv_have_decl_vsnprintf = yes; then
10641 cat >>confdefs.h <<_ACEOF
10642 #define HAVE_DECL_VSNPRINTF 1
10643 _ACEOF
10646 else
10647 cat >>confdefs.h <<_ACEOF
10648 #define HAVE_DECL_VSNPRINTF 0
10649 _ACEOF
10657 case "${host}" in
10658 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
10660 cat >>confdefs.h <<\_ACEOF
10661 #define USE_BINARY_FOPEN 1
10662 _ACEOF
10664 esac
10666 # target-specific stuff:
10668 # Canonicalize the secondary target names.
10669 if test -n "$enable_targets"; then
10670 for targ in `echo $enable_targets | sed 's/,/ /g'`
10672 result=`$ac_config_sub $targ 2>/dev/null`
10673 if test -n "$result"; then
10674 canon_targets="$canon_targets $result"
10675 else
10676 # Allow targets that config.sub doesn't recognize, like "all".
10677 canon_targets="$canon_targets $targ"
10679 done
10682 all_targets=false
10683 BUILD_NLMCONV=
10684 NLMCONV_DEFS=
10685 BUILD_SRCONV=
10686 BUILD_DLLTOOL=
10687 DLLTOOL_DEFS=
10688 BUILD_WINDRES=
10689 BUILD_DLLWRAP=
10690 BUILD_MISC=
10691 OBJDUMP_DEFS=
10693 for targ in $target $canon_targets
10695 if test "x$targ" = "xall"; then
10696 all_targets=true
10697 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10698 BUILD_SRCONV='$(SRCONV_PROG)'
10699 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
10700 else
10701 case $targ in
10702 i[3-7]86*-*-netware*)
10703 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10704 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
10706 alpha*-*-netware*)
10707 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10708 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
10710 powerpc*-*-netware*)
10711 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10712 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
10714 sparc*-*-netware*)
10715 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10716 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
10718 esac
10719 case $targ in
10720 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
10721 esac
10722 case $targ in
10723 arm-epoc-pe*)
10724 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10725 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
10726 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10728 arm-*-pe* | arm-*-wince)
10729 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10730 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
10731 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10733 thumb-*-pe*)
10734 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10735 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
10736 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10738 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
10739 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10740 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
10741 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10742 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
10744 i[3-7]86-*-interix)
10745 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
10746 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
10748 powerpc*-aix5.[01])
10750 powerpc*-aix5.*)
10751 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
10753 powerpc*-*-pe* | powerpc*-*-cygwin*)
10754 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10755 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
10756 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10758 sh*-*-pe)
10759 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10760 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
10761 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10763 mips*-*-pe)
10764 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10765 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
10766 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10768 mcore-*-pe)
10769 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10770 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
10771 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10773 mcore-*-elf)
10774 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10775 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
10777 esac
10779 done
10781 if test "${with_windres+set}" = set; then
10782 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10796 cat >>confdefs.h <<_ACEOF
10797 #define TARGET "${target}"
10798 _ACEOF
10801 targ=$target
10802 . $srcdir/../bfd/config.bfd
10803 if test "x$targ_underscore" = "xyes"; then
10804 UNDERSCORE=1
10805 else
10806 UNDERSCORE=0
10809 cat >>confdefs.h <<_ACEOF
10810 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
10811 _ACEOF
10814 # Emulation
10815 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
10817 # Canonicalize the secondary target names.
10818 result=`$ac_config_sub $targ_alias 2>/dev/null`
10819 if test -n "$result"; then
10820 targ=$result
10821 else
10822 targ=$targ_alias
10825 . ${srcdir}/configure.tgt
10827 EMULATION=$targ_emul
10828 EMULATION_VECTOR=$targ_emul_vector
10829 done
10834 # Required for html and install-html
10839 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
10840 ac_config_commands="$ac_config_commands default"
10841 cat >confcache <<\_ACEOF
10842 # This file is a shell script that caches the results of configure
10843 # tests run on this system so they can be shared between configure
10844 # scripts and configure runs, see configure's option --config-cache.
10845 # It is not useful on other systems. If it contains results you don't
10846 # want to keep, you may remove or edit it.
10848 # config.status only pays attention to the cache file if you give it
10849 # the --recheck option to rerun configure.
10851 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10852 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10853 # following values.
10855 _ACEOF
10857 # The following way of writing the cache mishandles newlines in values,
10858 # but we know of no workaround that is simple, portable, and efficient.
10859 # So, don't put newlines in cache variables' values.
10860 # Ultrix sh set writes to stderr and can't be redirected directly,
10861 # and sets the high bit in the cache file unless we assign to the vars.
10863 (set) 2>&1 |
10864 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10865 *ac_space=\ *)
10866 # `set' does not quote correctly, so add quotes (double-quote
10867 # substitution turns \\\\ into \\, and sed turns \\ into \).
10868 sed -n \
10869 "s/'/'\\\\''/g;
10870 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10873 # `set' quotes correctly as required by POSIX, so do not add quotes.
10874 sed -n \
10875 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10877 esac;
10879 sed '
10880 t clear
10881 : clear
10882 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10883 t end
10884 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10885 : end' >>confcache
10886 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10887 if test -w $cache_file; then
10888 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10889 cat confcache >$cache_file
10890 else
10891 echo "not updating unwritable cache $cache_file"
10894 rm -f confcache
10896 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10897 # Let make expand exec_prefix.
10898 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10900 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10901 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10902 # trailing colons and then remove the whole line if VPATH becomes empty
10903 # (actually we leave an empty line to preserve line numbers).
10904 if test "x$srcdir" = x.; then
10905 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10906 s/:*\$(srcdir):*/:/;
10907 s/:*\${srcdir}:*/:/;
10908 s/:*@srcdir@:*/:/;
10909 s/^\([^=]*=[ ]*\):*/\1/;
10910 s/:*$//;
10911 s/^[^=]*=[ ]*$//;
10915 DEFS=-DHAVE_CONFIG_H
10917 ac_libobjs=
10918 ac_ltlibobjs=
10919 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10920 # 1. Remove the extension, and $U if already installed.
10921 ac_i=`echo "$ac_i" |
10922 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10923 # 2. Add them.
10924 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10925 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10926 done
10927 LIBOBJS=$ac_libobjs
10929 LTLIBOBJS=$ac_ltlibobjs
10932 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10933 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10934 Usually this means the macro was only invoked conditionally." >&5
10935 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10936 Usually this means the macro was only invoked conditionally." >&2;}
10937 { (exit 1); exit 1; }; }
10939 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10940 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10941 Usually this means the macro was only invoked conditionally." >&5
10942 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10943 Usually this means the macro was only invoked conditionally." >&2;}
10944 { (exit 1); exit 1; }; }
10946 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10947 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10948 Usually this means the macro was only invoked conditionally." >&5
10949 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10950 Usually this means the macro was only invoked conditionally." >&2;}
10951 { (exit 1); exit 1; }; }
10954 : ${CONFIG_STATUS=./config.status}
10955 ac_clean_files_save=$ac_clean_files
10956 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10957 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10958 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10959 cat >$CONFIG_STATUS <<_ACEOF
10960 #! $SHELL
10961 # Generated by $as_me.
10962 # Run this file to recreate the current configuration.
10963 # Compiler output produced by configure, useful for debugging
10964 # configure, is in config.log if it exists.
10966 debug=false
10967 ac_cs_recheck=false
10968 ac_cs_silent=false
10969 SHELL=\${CONFIG_SHELL-$SHELL}
10970 _ACEOF
10972 cat >>$CONFIG_STATUS <<\_ACEOF
10973 ## --------------------- ##
10974 ## M4sh Initialization. ##
10975 ## --------------------- ##
10977 # Be Bourne compatible
10978 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10979 emulate sh
10980 NULLCMD=:
10981 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10982 # is contrary to our usage. Disable this feature.
10983 alias -g '${1+"$@"}'='"$@"'
10984 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10985 set -o posix
10987 DUALCASE=1; export DUALCASE # for MKS sh
10989 # Support unset when possible.
10990 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10991 as_unset=unset
10992 else
10993 as_unset=false
10997 # Work around bugs in pre-3.0 UWIN ksh.
10998 $as_unset ENV MAIL MAILPATH
10999 PS1='$ '
11000 PS2='> '
11001 PS4='+ '
11003 # NLS nuisances.
11004 for as_var in \
11005 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11006 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11007 LC_TELEPHONE LC_TIME
11009 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11010 eval $as_var=C; export $as_var
11011 else
11012 $as_unset $as_var
11014 done
11016 # Required to use basename.
11017 if expr a : '\(a\)' >/dev/null 2>&1; then
11018 as_expr=expr
11019 else
11020 as_expr=false
11023 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11024 as_basename=basename
11025 else
11026 as_basename=false
11030 # Name of the executable.
11031 as_me=`$as_basename "$0" ||
11032 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11033 X"$0" : 'X\(//\)$' \| \
11034 X"$0" : 'X\(/\)$' \| \
11035 . : '\(.\)' 2>/dev/null ||
11036 echo X/"$0" |
11037 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11038 /^X\/\(\/\/\)$/{ s//\1/; q; }
11039 /^X\/\(\/\).*/{ s//\1/; q; }
11040 s/.*/./; q'`
11043 # PATH needs CR, and LINENO needs CR and PATH.
11044 # Avoid depending upon Character Ranges.
11045 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11046 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11047 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11048 as_cr_digits='0123456789'
11049 as_cr_alnum=$as_cr_Letters$as_cr_digits
11051 # The user is always right.
11052 if test "${PATH_SEPARATOR+set}" != set; then
11053 echo "#! /bin/sh" >conf$$.sh
11054 echo "exit 0" >>conf$$.sh
11055 chmod +x conf$$.sh
11056 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11057 PATH_SEPARATOR=';'
11058 else
11059 PATH_SEPARATOR=:
11061 rm -f conf$$.sh
11065 as_lineno_1=$LINENO
11066 as_lineno_2=$LINENO
11067 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11068 test "x$as_lineno_1" != "x$as_lineno_2" &&
11069 test "x$as_lineno_3" = "x$as_lineno_2" || {
11070 # Find who we are. Look in the path if we contain no path at all
11071 # relative or not.
11072 case $0 in
11073 *[\\/]* ) as_myself=$0 ;;
11074 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11075 for as_dir in $PATH
11077 IFS=$as_save_IFS
11078 test -z "$as_dir" && as_dir=.
11079 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11080 done
11083 esac
11084 # We did not find ourselves, most probably we were run as `sh COMMAND'
11085 # in which case we are not to be found in the path.
11086 if test "x$as_myself" = x; then
11087 as_myself=$0
11089 if test ! -f "$as_myself"; then
11090 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11091 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11092 { (exit 1); exit 1; }; }
11094 case $CONFIG_SHELL in
11096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11097 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11099 IFS=$as_save_IFS
11100 test -z "$as_dir" && as_dir=.
11101 for as_base in sh bash ksh sh5; do
11102 case $as_dir in
11104 if ("$as_dir/$as_base" -c '
11105 as_lineno_1=$LINENO
11106 as_lineno_2=$LINENO
11107 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11108 test "x$as_lineno_1" != "x$as_lineno_2" &&
11109 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11110 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11111 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11112 CONFIG_SHELL=$as_dir/$as_base
11113 export CONFIG_SHELL
11114 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11115 fi;;
11116 esac
11117 done
11118 done
11120 esac
11122 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11123 # uniformly replaced by the line number. The first 'sed' inserts a
11124 # line-number line before each line; the second 'sed' does the real
11125 # work. The second script uses 'N' to pair each line-number line
11126 # with the numbered line, and appends trailing '-' during
11127 # substitution so that $LINENO is not a special case at line end.
11128 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11129 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11130 sed '=' <$as_myself |
11131 sed '
11133 s,$,-,
11134 : loop
11135 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11136 t loop
11137 s,-$,,
11138 s,^['$as_cr_digits']*\n,,
11139 ' >$as_me.lineno &&
11140 chmod +x $as_me.lineno ||
11141 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11142 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11143 { (exit 1); exit 1; }; }
11145 # Don't try to exec as it changes $[0], causing all sort of problems
11146 # (the dirname of $[0] is not the place where we might find the
11147 # original and so on. Autoconf is especially sensible to this).
11148 . ./$as_me.lineno
11149 # Exit status is that of the last command.
11150 exit
11154 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11155 *c*,-n*) ECHO_N= ECHO_C='
11156 ' ECHO_T=' ' ;;
11157 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11158 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11159 esac
11161 if expr a : '\(a\)' >/dev/null 2>&1; then
11162 as_expr=expr
11163 else
11164 as_expr=false
11167 rm -f conf$$ conf$$.exe conf$$.file
11168 echo >conf$$.file
11169 if ln -s conf$$.file conf$$ 2>/dev/null; then
11170 # We could just check for DJGPP; but this test a) works b) is more generic
11171 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11172 if test -f conf$$.exe; then
11173 # Don't use ln at all; we don't have any links
11174 as_ln_s='cp -p'
11175 else
11176 as_ln_s='ln -s'
11178 elif ln conf$$.file conf$$ 2>/dev/null; then
11179 as_ln_s=ln
11180 else
11181 as_ln_s='cp -p'
11183 rm -f conf$$ conf$$.exe conf$$.file
11185 if mkdir -p . 2>/dev/null; then
11186 as_mkdir_p=:
11187 else
11188 test -d ./-p && rmdir ./-p
11189 as_mkdir_p=false
11192 as_executable_p="test -f"
11194 # Sed expression to map a string onto a valid CPP name.
11195 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11197 # Sed expression to map a string onto a valid variable name.
11198 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11201 # IFS
11202 # We need space, tab and new line, in precisely that order.
11203 as_nl='
11205 IFS=" $as_nl"
11207 # CDPATH.
11208 $as_unset CDPATH
11210 exec 6>&1
11212 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11213 # report actual input values of CONFIG_FILES etc. instead of their
11214 # values after options handling. Logging --version etc. is OK.
11215 exec 5>>config.log
11217 echo
11218 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11219 ## Running $as_me. ##
11220 _ASBOX
11221 } >&5
11222 cat >&5 <<_CSEOF
11224 This file was extended by $as_me, which was
11225 generated by GNU Autoconf 2.59. Invocation command line was
11227 CONFIG_FILES = $CONFIG_FILES
11228 CONFIG_HEADERS = $CONFIG_HEADERS
11229 CONFIG_LINKS = $CONFIG_LINKS
11230 CONFIG_COMMANDS = $CONFIG_COMMANDS
11231 $ $0 $@
11233 _CSEOF
11234 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11235 echo >&5
11236 _ACEOF
11238 # Files that config.status was made for.
11239 if test -n "$ac_config_files"; then
11240 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11243 if test -n "$ac_config_headers"; then
11244 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11247 if test -n "$ac_config_links"; then
11248 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11251 if test -n "$ac_config_commands"; then
11252 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11255 cat >>$CONFIG_STATUS <<\_ACEOF
11257 ac_cs_usage="\
11258 \`$as_me' instantiates files from templates according to the
11259 current configuration.
11261 Usage: $0 [OPTIONS] [FILE]...
11263 -h, --help print this help, then exit
11264 -V, --version print version number, then exit
11265 -q, --quiet do not print progress messages
11266 -d, --debug don't remove temporary files
11267 --recheck update $as_me by reconfiguring in the same conditions
11268 --file=FILE[:TEMPLATE]
11269 instantiate the configuration file FILE
11270 --header=FILE[:TEMPLATE]
11271 instantiate the configuration header FILE
11273 Configuration files:
11274 $config_files
11276 Configuration headers:
11277 $config_headers
11279 Configuration commands:
11280 $config_commands
11282 Report bugs to <bug-autoconf@gnu.org>."
11283 _ACEOF
11285 cat >>$CONFIG_STATUS <<_ACEOF
11286 ac_cs_version="\\
11287 config.status
11288 configured by $0, generated by GNU Autoconf 2.59,
11289 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11291 Copyright (C) 2003 Free Software Foundation, Inc.
11292 This config.status script is free software; the Free Software Foundation
11293 gives unlimited permission to copy, distribute and modify it."
11294 srcdir=$srcdir
11295 INSTALL="$INSTALL"
11296 _ACEOF
11298 cat >>$CONFIG_STATUS <<\_ACEOF
11299 # If no file are specified by the user, then we need to provide default
11300 # value. By we need to know if files were specified by the user.
11301 ac_need_defaults=:
11302 while test $# != 0
11304 case $1 in
11305 --*=*)
11306 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11307 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11308 ac_shift=:
11311 ac_option=$1
11312 ac_optarg=$2
11313 ac_shift=shift
11315 *) # This is not an option, so the user has probably given explicit
11316 # arguments.
11317 ac_option=$1
11318 ac_need_defaults=false;;
11319 esac
11321 case $ac_option in
11322 # Handling of the options.
11323 _ACEOF
11324 cat >>$CONFIG_STATUS <<\_ACEOF
11325 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11326 ac_cs_recheck=: ;;
11327 --version | --vers* | -V )
11328 echo "$ac_cs_version"; exit 0 ;;
11329 --he | --h)
11330 # Conflict between --help and --header
11331 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11332 Try \`$0 --help' for more information." >&5
11333 echo "$as_me: error: ambiguous option: $1
11334 Try \`$0 --help' for more information." >&2;}
11335 { (exit 1); exit 1; }; };;
11336 --help | --hel | -h )
11337 echo "$ac_cs_usage"; exit 0 ;;
11338 --debug | --d* | -d )
11339 debug=: ;;
11340 --file | --fil | --fi | --f )
11341 $ac_shift
11342 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11343 ac_need_defaults=false;;
11344 --header | --heade | --head | --hea )
11345 $ac_shift
11346 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11347 ac_need_defaults=false;;
11348 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11349 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11350 ac_cs_silent=: ;;
11352 # This is an error.
11353 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11354 Try \`$0 --help' for more information." >&5
11355 echo "$as_me: error: unrecognized option: $1
11356 Try \`$0 --help' for more information." >&2;}
11357 { (exit 1); exit 1; }; } ;;
11359 *) ac_config_targets="$ac_config_targets $1" ;;
11361 esac
11362 shift
11363 done
11365 ac_configure_extra_args=
11367 if $ac_cs_silent; then
11368 exec 6>/dev/null
11369 ac_configure_extra_args="$ac_configure_extra_args --silent"
11372 _ACEOF
11373 cat >>$CONFIG_STATUS <<_ACEOF
11374 if \$ac_cs_recheck; then
11375 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11376 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11379 _ACEOF
11381 cat >>$CONFIG_STATUS <<_ACEOF
11383 # INIT-COMMANDS section.
11386 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11388 _ACEOF
11392 cat >>$CONFIG_STATUS <<\_ACEOF
11393 for ac_config_target in $ac_config_targets
11395 case "$ac_config_target" in
11396 # Handling of arguments.
11397 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11398 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11399 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
11400 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11401 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11402 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
11403 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11404 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11405 { (exit 1); exit 1; }; };;
11406 esac
11407 done
11409 # If the user did not use the arguments to specify the items to instantiate,
11410 # then the envvar interface is used. Set only those that are not.
11411 # We use the long form for the default assignment because of an extremely
11412 # bizarre bug on SunOS 4.1.3.
11413 if $ac_need_defaults; then
11414 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11415 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11416 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11419 # Have a temporary directory for convenience. Make it in the build tree
11420 # simply because there is no reason to put it here, and in addition,
11421 # creating and moving files from /tmp can sometimes cause problems.
11422 # Create a temporary directory, and hook for its removal unless debugging.
11423 $debug ||
11425 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11426 trap '{ (exit 1); exit 1; }' 1 2 13 15
11429 # Create a (secure) tmp directory for tmp files.
11432 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11433 test -n "$tmp" && test -d "$tmp"
11434 } ||
11436 tmp=./confstat$$-$RANDOM
11437 (umask 077 && mkdir $tmp)
11438 } ||
11440 echo "$me: cannot create a temporary directory in ." >&2
11441 { (exit 1); exit 1; }
11444 _ACEOF
11446 cat >>$CONFIG_STATUS <<_ACEOF
11449 # CONFIG_FILES section.
11452 # No need to generate the scripts if there are no CONFIG_FILES.
11453 # This happens for instance when ./config.status config.h
11454 if test -n "\$CONFIG_FILES"; then
11455 # Protect against being on the right side of a sed subst in config.status.
11456 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11457 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11458 s,@SHELL@,$SHELL,;t t
11459 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11460 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11461 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11462 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11463 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11464 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11465 s,@exec_prefix@,$exec_prefix,;t t
11466 s,@prefix@,$prefix,;t t
11467 s,@program_transform_name@,$program_transform_name,;t t
11468 s,@bindir@,$bindir,;t t
11469 s,@sbindir@,$sbindir,;t t
11470 s,@libexecdir@,$libexecdir,;t t
11471 s,@datadir@,$datadir,;t t
11472 s,@sysconfdir@,$sysconfdir,;t t
11473 s,@sharedstatedir@,$sharedstatedir,;t t
11474 s,@localstatedir@,$localstatedir,;t t
11475 s,@libdir@,$libdir,;t t
11476 s,@includedir@,$includedir,;t t
11477 s,@oldincludedir@,$oldincludedir,;t t
11478 s,@infodir@,$infodir,;t t
11479 s,@mandir@,$mandir,;t t
11480 s,@build_alias@,$build_alias,;t t
11481 s,@host_alias@,$host_alias,;t t
11482 s,@target_alias@,$target_alias,;t t
11483 s,@DEFS@,$DEFS,;t t
11484 s,@ECHO_C@,$ECHO_C,;t t
11485 s,@ECHO_N@,$ECHO_N,;t t
11486 s,@ECHO_T@,$ECHO_T,;t t
11487 s,@LIBS@,$LIBS,;t t
11488 s,@build@,$build,;t t
11489 s,@build_cpu@,$build_cpu,;t t
11490 s,@build_vendor@,$build_vendor,;t t
11491 s,@build_os@,$build_os,;t t
11492 s,@host@,$host,;t t
11493 s,@host_cpu@,$host_cpu,;t t
11494 s,@host_vendor@,$host_vendor,;t t
11495 s,@host_os@,$host_os,;t t
11496 s,@target@,$target,;t t
11497 s,@target_cpu@,$target_cpu,;t t
11498 s,@target_vendor@,$target_vendor,;t t
11499 s,@target_os@,$target_os,;t t
11500 s,@CC@,$CC,;t t
11501 s,@CFLAGS@,$CFLAGS,;t t
11502 s,@LDFLAGS@,$LDFLAGS,;t t
11503 s,@CPPFLAGS@,$CPPFLAGS,;t t
11504 s,@ac_ct_CC@,$ac_ct_CC,;t t
11505 s,@EXEEXT@,$EXEEXT,;t t
11506 s,@OBJEXT@,$OBJEXT,;t t
11507 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11508 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11509 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11510 s,@CYGPATH_W@,$CYGPATH_W,;t t
11511 s,@PACKAGE@,$PACKAGE,;t t
11512 s,@VERSION@,$VERSION,;t t
11513 s,@ACLOCAL@,$ACLOCAL,;t t
11514 s,@AUTOCONF@,$AUTOCONF,;t t
11515 s,@AUTOMAKE@,$AUTOMAKE,;t t
11516 s,@AUTOHEADER@,$AUTOHEADER,;t t
11517 s,@MAKEINFO@,$MAKEINFO,;t t
11518 s,@install_sh@,$install_sh,;t t
11519 s,@STRIP@,$STRIP,;t t
11520 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11521 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11522 s,@mkdir_p@,$mkdir_p,;t t
11523 s,@AWK@,$AWK,;t t
11524 s,@SET_MAKE@,$SET_MAKE,;t t
11525 s,@am__leading_dot@,$am__leading_dot,;t t
11526 s,@AMTAR@,$AMTAR,;t t
11527 s,@am__tar@,$am__tar,;t t
11528 s,@am__untar@,$am__untar,;t t
11529 s,@DEPDIR@,$DEPDIR,;t t
11530 s,@am__include@,$am__include,;t t
11531 s,@am__quote@,$am__quote,;t t
11532 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11533 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11534 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11535 s,@CCDEPMODE@,$CCDEPMODE,;t t
11536 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11537 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11538 s,@LN_S@,$LN_S,;t t
11539 s,@RANLIB@,$RANLIB,;t t
11540 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11541 s,@LIBTOOL@,$LIBTOOL,;t t
11542 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
11543 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
11544 s,@NO_WERROR@,$NO_WERROR,;t t
11545 s,@YACC@,$YACC,;t t
11546 s,@LEX@,$LEX,;t t
11547 s,@LEXLIB@,$LEXLIB,;t t
11548 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
11549 s,@CPP@,$CPP,;t t
11550 s,@EGREP@,$EGREP,;t t
11551 s,@ALLOCA@,$ALLOCA,;t t
11552 s,@USE_NLS@,$USE_NLS,;t t
11553 s,@MSGFMT@,$MSGFMT,;t t
11554 s,@GMSGFMT@,$GMSGFMT,;t t
11555 s,@XGETTEXT@,$XGETTEXT,;t t
11556 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
11557 s,@CATALOGS@,$CATALOGS,;t t
11558 s,@CATOBJEXT@,$CATOBJEXT,;t t
11559 s,@DATADIRNAME@,$DATADIRNAME,;t t
11560 s,@GMOFILES@,$GMOFILES,;t t
11561 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
11562 s,@INTLDEPS@,$INTLDEPS,;t t
11563 s,@INTLLIBS@,$INTLLIBS,;t t
11564 s,@INTLOBJS@,$INTLOBJS,;t t
11565 s,@POFILES@,$POFILES,;t t
11566 s,@POSUB@,$POSUB,;t t
11567 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
11568 s,@GT_NO@,$GT_NO,;t t
11569 s,@GT_YES@,$GT_YES,;t t
11570 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
11571 s,@l@,$l,;t t
11572 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11573 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11574 s,@MAINT@,$MAINT,;t t
11575 s,@HDEFINES@,$HDEFINES,;t t
11576 s,@AR@,$AR,;t t
11577 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
11578 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
11579 s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
11580 s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
11581 s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
11582 s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
11583 s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
11584 s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
11585 s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
11586 s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
11587 s,@BUILD_MISC@,$BUILD_MISC,;t t
11588 s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
11589 s,@EMULATION@,$EMULATION,;t t
11590 s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
11591 s,@datarootdir@,$datarootdir,;t t
11592 s,@docdir@,$docdir,;t t
11593 s,@htmldir@,$htmldir,;t t
11594 s,@LIBOBJS@,$LIBOBJS,;t t
11595 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11596 CEOF
11598 _ACEOF
11600 cat >>$CONFIG_STATUS <<\_ACEOF
11601 # Split the substitutions into bite-sized pieces for seds with
11602 # small command number limits, like on Digital OSF/1 and HP-UX.
11603 ac_max_sed_lines=48
11604 ac_sed_frag=1 # Number of current file.
11605 ac_beg=1 # First line for current file.
11606 ac_end=$ac_max_sed_lines # Line after last line for current file.
11607 ac_more_lines=:
11608 ac_sed_cmds=
11609 while $ac_more_lines; do
11610 if test $ac_beg -gt 1; then
11611 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11612 else
11613 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11615 if test ! -s $tmp/subs.frag; then
11616 ac_more_lines=false
11617 else
11618 # The purpose of the label and of the branching condition is to
11619 # speed up the sed processing (if there are no `@' at all, there
11620 # is no need to browse any of the substitutions).
11621 # These are the two extra sed commands mentioned above.
11622 (echo ':t
11623 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11624 if test -z "$ac_sed_cmds"; then
11625 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11626 else
11627 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11629 ac_sed_frag=`expr $ac_sed_frag + 1`
11630 ac_beg=$ac_end
11631 ac_end=`expr $ac_end + $ac_max_sed_lines`
11633 done
11634 if test -z "$ac_sed_cmds"; then
11635 ac_sed_cmds=cat
11637 fi # test -n "$CONFIG_FILES"
11639 _ACEOF
11640 cat >>$CONFIG_STATUS <<\_ACEOF
11641 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11642 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11643 case $ac_file in
11644 - | *:- | *:-:* ) # input from stdin
11645 cat >$tmp/stdin
11646 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11647 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11648 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11649 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11650 * ) ac_file_in=$ac_file.in ;;
11651 esac
11653 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11654 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11655 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11656 X"$ac_file" : 'X\(//\)[^/]' \| \
11657 X"$ac_file" : 'X\(//\)$' \| \
11658 X"$ac_file" : 'X\(/\)' \| \
11659 . : '\(.\)' 2>/dev/null ||
11660 echo X"$ac_file" |
11661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11662 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11663 /^X\(\/\/\)$/{ s//\1/; q; }
11664 /^X\(\/\).*/{ s//\1/; q; }
11665 s/.*/./; q'`
11666 { if $as_mkdir_p; then
11667 mkdir -p "$ac_dir"
11668 else
11669 as_dir="$ac_dir"
11670 as_dirs=
11671 while test ! -d "$as_dir"; do
11672 as_dirs="$as_dir $as_dirs"
11673 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11674 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11675 X"$as_dir" : 'X\(//\)[^/]' \| \
11676 X"$as_dir" : 'X\(//\)$' \| \
11677 X"$as_dir" : 'X\(/\)' \| \
11678 . : '\(.\)' 2>/dev/null ||
11679 echo X"$as_dir" |
11680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11682 /^X\(\/\/\)$/{ s//\1/; q; }
11683 /^X\(\/\).*/{ s//\1/; q; }
11684 s/.*/./; q'`
11685 done
11686 test ! -n "$as_dirs" || mkdir $as_dirs
11687 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11688 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11689 { (exit 1); exit 1; }; }; }
11691 ac_builddir=.
11693 if test "$ac_dir" != .; then
11694 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11695 # A "../" for each directory in $ac_dir_suffix.
11696 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11697 else
11698 ac_dir_suffix= ac_top_builddir=
11701 case $srcdir in
11702 .) # No --srcdir option. We are building in place.
11703 ac_srcdir=.
11704 if test -z "$ac_top_builddir"; then
11705 ac_top_srcdir=.
11706 else
11707 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11708 fi ;;
11709 [\\/]* | ?:[\\/]* ) # Absolute path.
11710 ac_srcdir=$srcdir$ac_dir_suffix;
11711 ac_top_srcdir=$srcdir ;;
11712 *) # Relative path.
11713 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11714 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11715 esac
11717 # Do not use `cd foo && pwd` to compute absolute paths, because
11718 # the directories may not exist.
11719 case `pwd` in
11720 .) ac_abs_builddir="$ac_dir";;
11722 case "$ac_dir" in
11723 .) ac_abs_builddir=`pwd`;;
11724 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11725 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11726 esac;;
11727 esac
11728 case $ac_abs_builddir in
11729 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11731 case ${ac_top_builddir}. in
11732 .) ac_abs_top_builddir=$ac_abs_builddir;;
11733 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11734 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11735 esac;;
11736 esac
11737 case $ac_abs_builddir in
11738 .) ac_abs_srcdir=$ac_srcdir;;
11740 case $ac_srcdir in
11741 .) ac_abs_srcdir=$ac_abs_builddir;;
11742 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11743 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11744 esac;;
11745 esac
11746 case $ac_abs_builddir in
11747 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11749 case $ac_top_srcdir in
11750 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11751 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11752 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11753 esac;;
11754 esac
11757 case $INSTALL in
11758 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11759 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11760 esac
11762 if test x"$ac_file" != x-; then
11763 { echo "$as_me:$LINENO: creating $ac_file" >&5
11764 echo "$as_me: creating $ac_file" >&6;}
11765 rm -f "$ac_file"
11767 # Let's still pretend it is `configure' which instantiates (i.e., don't
11768 # use $as_me), people would be surprised to read:
11769 # /* config.h. Generated by config.status. */
11770 if test x"$ac_file" = x-; then
11771 configure_input=
11772 else
11773 configure_input="$ac_file. "
11775 configure_input=$configure_input"Generated from `echo $ac_file_in |
11776 sed 's,.*/,,'` by configure."
11778 # First look for the input files in the build tree, otherwise in the
11779 # src tree.
11780 ac_file_inputs=`IFS=:
11781 for f in $ac_file_in; do
11782 case $f in
11783 -) echo $tmp/stdin ;;
11784 [\\/$]*)
11785 # Absolute (can't be DOS-style, as IFS=:)
11786 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11787 echo "$as_me: error: cannot find input file: $f" >&2;}
11788 { (exit 1); exit 1; }; }
11789 echo "$f";;
11790 *) # Relative
11791 if test -f "$f"; then
11792 # Build tree
11793 echo "$f"
11794 elif test -f "$srcdir/$f"; then
11795 # Source tree
11796 echo "$srcdir/$f"
11797 else
11798 # /dev/null tree
11799 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11800 echo "$as_me: error: cannot find input file: $f" >&2;}
11801 { (exit 1); exit 1; }; }
11802 fi;;
11803 esac
11804 done` || { (exit 1); exit 1; }
11805 _ACEOF
11806 cat >>$CONFIG_STATUS <<_ACEOF
11807 sed "$ac_vpsub
11808 $extrasub
11809 _ACEOF
11810 cat >>$CONFIG_STATUS <<\_ACEOF
11812 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11813 s,@configure_input@,$configure_input,;t t
11814 s,@srcdir@,$ac_srcdir,;t t
11815 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11816 s,@top_srcdir@,$ac_top_srcdir,;t t
11817 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11818 s,@builddir@,$ac_builddir,;t t
11819 s,@abs_builddir@,$ac_abs_builddir,;t t
11820 s,@top_builddir@,$ac_top_builddir,;t t
11821 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11822 s,@INSTALL@,$ac_INSTALL,;t t
11823 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11824 rm -f $tmp/stdin
11825 if test x"$ac_file" != x-; then
11826 mv $tmp/out $ac_file
11827 else
11828 cat $tmp/out
11829 rm -f $tmp/out
11832 done
11833 _ACEOF
11834 cat >>$CONFIG_STATUS <<\_ACEOF
11837 # CONFIG_HEADER section.
11840 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11841 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11843 # ac_d sets the value in "#define NAME VALUE" lines.
11844 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11845 ac_dB='[ ].*$,\1#\2'
11846 ac_dC=' '
11847 ac_dD=',;t'
11848 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11849 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11850 ac_uB='$,\1#\2define\3'
11851 ac_uC=' '
11852 ac_uD=',;t'
11854 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11855 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11856 case $ac_file in
11857 - | *:- | *:-:* ) # input from stdin
11858 cat >$tmp/stdin
11859 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11860 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11861 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11862 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11863 * ) ac_file_in=$ac_file.in ;;
11864 esac
11866 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11867 echo "$as_me: creating $ac_file" >&6;}
11869 # First look for the input files in the build tree, otherwise in the
11870 # src tree.
11871 ac_file_inputs=`IFS=:
11872 for f in $ac_file_in; do
11873 case $f in
11874 -) echo $tmp/stdin ;;
11875 [\\/$]*)
11876 # Absolute (can't be DOS-style, as IFS=:)
11877 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11878 echo "$as_me: error: cannot find input file: $f" >&2;}
11879 { (exit 1); exit 1; }; }
11880 # Do quote $f, to prevent DOS paths from being IFS'd.
11881 echo "$f";;
11882 *) # Relative
11883 if test -f "$f"; then
11884 # Build tree
11885 echo "$f"
11886 elif test -f "$srcdir/$f"; then
11887 # Source tree
11888 echo "$srcdir/$f"
11889 else
11890 # /dev/null tree
11891 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11892 echo "$as_me: error: cannot find input file: $f" >&2;}
11893 { (exit 1); exit 1; }; }
11894 fi;;
11895 esac
11896 done` || { (exit 1); exit 1; }
11897 # Remove the trailing spaces.
11898 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11900 _ACEOF
11902 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11903 # `conftest.undefs', that substitutes the proper values into
11904 # config.h.in to produce config.h. The first handles `#define'
11905 # templates, and the second `#undef' templates.
11906 # And first: Protect against being on the right side of a sed subst in
11907 # config.status. Protect against being in an unquoted here document
11908 # in config.status.
11909 rm -f conftest.defines conftest.undefs
11910 # Using a here document instead of a string reduces the quoting nightmare.
11911 # Putting comments in sed scripts is not portable.
11913 # `end' is used to avoid that the second main sed command (meant for
11914 # 0-ary CPP macros) applies to n-ary macro definitions.
11915 # See the Autoconf documentation for `clear'.
11916 cat >confdef2sed.sed <<\_ACEOF
11917 s/[\\&,]/\\&/g
11918 s,[\\$`],\\&,g
11919 t clear
11920 : clear
11921 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11922 t end
11923 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11924 : end
11925 _ACEOF
11926 # If some macros were called several times there might be several times
11927 # the same #defines, which is useless. Nevertheless, we may not want to
11928 # sort them, since we want the *last* AC-DEFINE to be honored.
11929 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11930 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11931 rm -f confdef2sed.sed
11933 # This sed command replaces #undef with comments. This is necessary, for
11934 # example, in the case of _POSIX_SOURCE, which is predefined and required
11935 # on some systems where configure will not decide to define it.
11936 cat >>conftest.undefs <<\_ACEOF
11937 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11938 _ACEOF
11940 # Break up conftest.defines because some shells have a limit on the size
11941 # of here documents, and old seds have small limits too (100 cmds).
11942 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11943 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11944 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11945 echo ' :' >>$CONFIG_STATUS
11946 rm -f conftest.tail
11947 while grep . conftest.defines >/dev/null
11949 # Write a limited-size here document to $tmp/defines.sed.
11950 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11951 # Speed up: don't consider the non `#define' lines.
11952 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11953 # Work around the forget-to-reset-the-flag bug.
11954 echo 't clr' >>$CONFIG_STATUS
11955 echo ': clr' >>$CONFIG_STATUS
11956 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11957 echo 'CEOF
11958 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11959 rm -f $tmp/in
11960 mv $tmp/out $tmp/in
11961 ' >>$CONFIG_STATUS
11962 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11963 rm -f conftest.defines
11964 mv conftest.tail conftest.defines
11965 done
11966 rm -f conftest.defines
11967 echo ' fi # grep' >>$CONFIG_STATUS
11968 echo >>$CONFIG_STATUS
11970 # Break up conftest.undefs because some shells have a limit on the size
11971 # of here documents, and old seds have small limits too (100 cmds).
11972 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11973 rm -f conftest.tail
11974 while grep . conftest.undefs >/dev/null
11976 # Write a limited-size here document to $tmp/undefs.sed.
11977 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11978 # Speed up: don't consider the non `#undef'
11979 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11980 # Work around the forget-to-reset-the-flag bug.
11981 echo 't clr' >>$CONFIG_STATUS
11982 echo ': clr' >>$CONFIG_STATUS
11983 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11984 echo 'CEOF
11985 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11986 rm -f $tmp/in
11987 mv $tmp/out $tmp/in
11988 ' >>$CONFIG_STATUS
11989 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11990 rm -f conftest.undefs
11991 mv conftest.tail conftest.undefs
11992 done
11993 rm -f conftest.undefs
11995 cat >>$CONFIG_STATUS <<\_ACEOF
11996 # Let's still pretend it is `configure' which instantiates (i.e., don't
11997 # use $as_me), people would be surprised to read:
11998 # /* config.h. Generated by config.status. */
11999 if test x"$ac_file" = x-; then
12000 echo "/* Generated by configure. */" >$tmp/config.h
12001 else
12002 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12004 cat $tmp/in >>$tmp/config.h
12005 rm -f $tmp/in
12006 if test x"$ac_file" != x-; then
12007 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12008 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12009 echo "$as_me: $ac_file is unchanged" >&6;}
12010 else
12011 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12012 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12013 X"$ac_file" : 'X\(//\)[^/]' \| \
12014 X"$ac_file" : 'X\(//\)$' \| \
12015 X"$ac_file" : 'X\(/\)' \| \
12016 . : '\(.\)' 2>/dev/null ||
12017 echo X"$ac_file" |
12018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12019 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12020 /^X\(\/\/\)$/{ s//\1/; q; }
12021 /^X\(\/\).*/{ s//\1/; q; }
12022 s/.*/./; q'`
12023 { if $as_mkdir_p; then
12024 mkdir -p "$ac_dir"
12025 else
12026 as_dir="$ac_dir"
12027 as_dirs=
12028 while test ! -d "$as_dir"; do
12029 as_dirs="$as_dir $as_dirs"
12030 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12031 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12032 X"$as_dir" : 'X\(//\)[^/]' \| \
12033 X"$as_dir" : 'X\(//\)$' \| \
12034 X"$as_dir" : 'X\(/\)' \| \
12035 . : '\(.\)' 2>/dev/null ||
12036 echo X"$as_dir" |
12037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12038 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12039 /^X\(\/\/\)$/{ s//\1/; q; }
12040 /^X\(\/\).*/{ s//\1/; q; }
12041 s/.*/./; q'`
12042 done
12043 test ! -n "$as_dirs" || mkdir $as_dirs
12044 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12045 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12046 { (exit 1); exit 1; }; }; }
12048 rm -f $ac_file
12049 mv $tmp/config.h $ac_file
12051 else
12052 cat $tmp/config.h
12053 rm -f $tmp/config.h
12055 # Compute $ac_file's index in $config_headers.
12056 _am_stamp_count=1
12057 for _am_header in $config_headers :; do
12058 case $_am_header in
12059 $ac_file | $ac_file:* )
12060 break ;;
12062 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12063 esac
12064 done
12065 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12066 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12067 X$ac_file : 'X\(//\)[^/]' \| \
12068 X$ac_file : 'X\(//\)$' \| \
12069 X$ac_file : 'X\(/\)' \| \
12070 . : '\(.\)' 2>/dev/null ||
12071 echo X$ac_file |
12072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12073 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12074 /^X\(\/\/\)$/{ s//\1/; q; }
12075 /^X\(\/\).*/{ s//\1/; q; }
12076 s/.*/./; q'`/stamp-h$_am_stamp_count
12077 done
12078 _ACEOF
12079 cat >>$CONFIG_STATUS <<\_ACEOF
12082 # CONFIG_COMMANDS section.
12084 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12085 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12086 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12087 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12088 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12089 X"$ac_dest" : 'X\(//\)[^/]' \| \
12090 X"$ac_dest" : 'X\(//\)$' \| \
12091 X"$ac_dest" : 'X\(/\)' \| \
12092 . : '\(.\)' 2>/dev/null ||
12093 echo X"$ac_dest" |
12094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12095 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12096 /^X\(\/\/\)$/{ s//\1/; q; }
12097 /^X\(\/\).*/{ s//\1/; q; }
12098 s/.*/./; q'`
12099 { if $as_mkdir_p; then
12100 mkdir -p "$ac_dir"
12101 else
12102 as_dir="$ac_dir"
12103 as_dirs=
12104 while test ! -d "$as_dir"; do
12105 as_dirs="$as_dir $as_dirs"
12106 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12107 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12108 X"$as_dir" : 'X\(//\)[^/]' \| \
12109 X"$as_dir" : 'X\(//\)$' \| \
12110 X"$as_dir" : 'X\(/\)' \| \
12111 . : '\(.\)' 2>/dev/null ||
12112 echo X"$as_dir" |
12113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12114 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12115 /^X\(\/\/\)$/{ s//\1/; q; }
12116 /^X\(\/\).*/{ s//\1/; q; }
12117 s/.*/./; q'`
12118 done
12119 test ! -n "$as_dirs" || mkdir $as_dirs
12120 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12121 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12122 { (exit 1); exit 1; }; }; }
12124 ac_builddir=.
12126 if test "$ac_dir" != .; then
12127 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12128 # A "../" for each directory in $ac_dir_suffix.
12129 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12130 else
12131 ac_dir_suffix= ac_top_builddir=
12134 case $srcdir in
12135 .) # No --srcdir option. We are building in place.
12136 ac_srcdir=.
12137 if test -z "$ac_top_builddir"; then
12138 ac_top_srcdir=.
12139 else
12140 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12141 fi ;;
12142 [\\/]* | ?:[\\/]* ) # Absolute path.
12143 ac_srcdir=$srcdir$ac_dir_suffix;
12144 ac_top_srcdir=$srcdir ;;
12145 *) # Relative path.
12146 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12147 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12148 esac
12150 # Do not use `cd foo && pwd` to compute absolute paths, because
12151 # the directories may not exist.
12152 case `pwd` in
12153 .) ac_abs_builddir="$ac_dir";;
12155 case "$ac_dir" in
12156 .) ac_abs_builddir=`pwd`;;
12157 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12158 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12159 esac;;
12160 esac
12161 case $ac_abs_builddir in
12162 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12164 case ${ac_top_builddir}. in
12165 .) ac_abs_top_builddir=$ac_abs_builddir;;
12166 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12167 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12168 esac;;
12169 esac
12170 case $ac_abs_builddir in
12171 .) ac_abs_srcdir=$ac_srcdir;;
12173 case $ac_srcdir in
12174 .) ac_abs_srcdir=$ac_abs_builddir;;
12175 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12176 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12177 esac;;
12178 esac
12179 case $ac_abs_builddir in
12180 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12182 case $ac_top_srcdir in
12183 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12184 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12185 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12186 esac;;
12187 esac
12190 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12191 echo "$as_me: executing $ac_dest commands" >&6;}
12192 case $ac_dest in
12193 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12194 # Strip MF so we end up with the name of the file.
12195 mf=`echo "$mf" | sed -e 's/:.*$//'`
12196 # Check whether this is an Automake generated Makefile or not.
12197 # We used to match only the files named `Makefile.in', but
12198 # some people rename them; so instead we look at the file content.
12199 # Grep'ing the first line is not enough: some people post-process
12200 # each Makefile.in and add a new line on top of each file to say so.
12201 # So let's grep whole file.
12202 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12203 dirpart=`(dirname "$mf") 2>/dev/null ||
12204 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12205 X"$mf" : 'X\(//\)[^/]' \| \
12206 X"$mf" : 'X\(//\)$' \| \
12207 X"$mf" : 'X\(/\)' \| \
12208 . : '\(.\)' 2>/dev/null ||
12209 echo X"$mf" |
12210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12211 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12212 /^X\(\/\/\)$/{ s//\1/; q; }
12213 /^X\(\/\).*/{ s//\1/; q; }
12214 s/.*/./; q'`
12215 else
12216 continue
12218 # Extract the definition of DEPDIR, am__include, and am__quote
12219 # from the Makefile without running `make'.
12220 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12221 test -z "$DEPDIR" && continue
12222 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12223 test -z "am__include" && continue
12224 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12225 # When using ansi2knr, U may be empty or an underscore; expand it
12226 U=`sed -n 's/^U = //p' < "$mf"`
12227 # Find all dependency output files, they are included files with
12228 # $(DEPDIR) in their names. We invoke sed twice because it is the
12229 # simplest approach to changing $(DEPDIR) to its actual value in the
12230 # expansion.
12231 for file in `sed -n "
12232 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12233 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12234 # Make sure the directory exists.
12235 test -f "$dirpart/$file" && continue
12236 fdir=`(dirname "$file") 2>/dev/null ||
12237 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12238 X"$file" : 'X\(//\)[^/]' \| \
12239 X"$file" : 'X\(//\)$' \| \
12240 X"$file" : 'X\(/\)' \| \
12241 . : '\(.\)' 2>/dev/null ||
12242 echo X"$file" |
12243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12244 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12245 /^X\(\/\/\)$/{ s//\1/; q; }
12246 /^X\(\/\).*/{ s//\1/; q; }
12247 s/.*/./; q'`
12248 { if $as_mkdir_p; then
12249 mkdir -p $dirpart/$fdir
12250 else
12251 as_dir=$dirpart/$fdir
12252 as_dirs=
12253 while test ! -d "$as_dir"; do
12254 as_dirs="$as_dir $as_dirs"
12255 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12256 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12257 X"$as_dir" : 'X\(//\)[^/]' \| \
12258 X"$as_dir" : 'X\(//\)$' \| \
12259 X"$as_dir" : 'X\(/\)' \| \
12260 . : '\(.\)' 2>/dev/null ||
12261 echo X"$as_dir" |
12262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12263 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12264 /^X\(\/\/\)$/{ s//\1/; q; }
12265 /^X\(\/\).*/{ s//\1/; q; }
12266 s/.*/./; q'`
12267 done
12268 test ! -n "$as_dirs" || mkdir $as_dirs
12269 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12270 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12271 { (exit 1); exit 1; }; }; }
12273 # echo "creating $dirpart/$file"
12274 echo '# dummy' > "$dirpart/$file"
12275 done
12276 done
12278 default )
12279 case "x$CONFIG_FILES" in
12280 *) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
12281 esac
12283 esac
12284 done
12285 _ACEOF
12287 cat >>$CONFIG_STATUS <<\_ACEOF
12289 { (exit 0); exit 0; }
12290 _ACEOF
12291 chmod +x $CONFIG_STATUS
12292 ac_clean_files=$ac_clean_files_save
12295 # configure is writing to config.log, and then calls config.status.
12296 # config.status does its own redirection, appending to config.log.
12297 # Unfortunately, on DOS this fails, as config.log is still kept open
12298 # by configure, so config.status won't be able to write to it; its
12299 # output is simply discarded. So we exec the FD to /dev/null,
12300 # effectively closing config.log, so it can be properly (re)opened and
12301 # appended to by config.status. When coming back to configure, we
12302 # need to make the FD available again.
12303 if test "$no_create" != yes; then
12304 ac_cs_success=:
12305 ac_config_status_args=
12306 test "$silent" = yes &&
12307 ac_config_status_args="$ac_config_status_args --quiet"
12308 exec 5>/dev/null
12309 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12310 exec 5>>config.log
12311 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12312 # would make configure fail if this is the last instruction.
12313 $ac_cs_success || { (exit 1); exit 1; }